@depup/ioredis-mock 8.13.1-depup.0

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/browser.js ADDED
@@ -0,0 +1,505 @@
1
+ var mJ=Object.create;var hv=Object.defineProperty;var yJ=Object.getOwnPropertyDescriptor;var gJ=Object.getOwnPropertyNames;var _J=Object.getPrototypeOf,vJ=Object.prototype.hasOwnProperty;var Lp=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var K=(e,t)=>()=>(e&&(t=e(e=0)),t);var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yA=(e,t)=>{for(var r in t)hv(e,r,{get:t[r],enumerable:!0})},bJ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of gJ(t))!vJ.call(e,i)&&i!==r&&hv(e,i,{get:()=>t[i],enumerable:!(n=yJ(t,i))||n.enumerable});return e};var mt=(e,t,r)=>(r=e!=null?mJ(_J(e)):{},bJ(t||!e||!e.__esModule?hv(r,"default",{value:e,enumerable:!0}):r,e));var _A=I(gA=>{b();(function(e,t){"use strict";if(e.setImmediate)return;var r=1,n={},i=!1,o=e.document,h;function g(H){typeof H!="function"&&(H=new Function(""+H));for(var D=new Array(arguments.length-1),Se=0;Se<D.length;Se++)D[Se]=arguments[Se+1];var De={callback:H,args:D};return n[r]=De,h(r),r++}function v(H){delete n[H]}function w(H){var D=H.callback,Se=H.args;switch(Se.length){case 0:D();break;case 1:D(Se[0]);break;case 2:D(Se[0],Se[1]);break;case 3:D(Se[0],Se[1],Se[2]);break;default:D.apply(t,Se);break}}function k(H){if(i)setTimeout(k,0,H);else{var D=n[H];if(D){i=!0;try{w(D)}finally{v(H),i=!1}}}}function A(){h=function(H){S(function(){k(H)})}}function R(){if(e.postMessage&&!e.importScripts){var H=!0,D=e.onmessage;return e.onmessage=function(){H=!1},e.postMessage("","*"),e.onmessage=D,H}}function O(){var H="setImmediate$"+Math.random()+"$",D=function(Se){Se.source===e&&typeof Se.data=="string"&&Se.data.indexOf(H)===0&&k(+Se.data.slice(H.length))};e.addEventListener?e.addEventListener("message",D,!1):e.attachEvent("onmessage",D),h=function(Se){e.postMessage(H+Se,"*")}}function B(){var H=new MessageChannel;H.port1.onmessage=function(D){var Se=D.data;k(Se)},h=function(D){H.port2.postMessage(D)}}function L(){var H=o.documentElement;h=function(D){var Se=o.createElement("script");Se.onreadystatechange=function(){k(D),Se.onreadystatechange=null,H.removeChild(Se),Se=null},H.appendChild(Se)}}function X(){h=function(H){setTimeout(k,0,H)}}var P=Object.getPrototypeOf&&Object.getPrototypeOf(e);P=P&&P.setTimeout?P:e,{}.toString.call(e.process)==="[object process]"?A():R()?O():e.MessageChannel?B():o&&"onreadystatechange"in o.createElement("script")?L():X(),P.setImmediate=g,P.clearImmediate=v})(typeof self>"u"?typeof window>"u"?gA:window:self)});var bA=I((ZFe,vA)=>{b();vA.exports=T||wJ;var ou=window.performance||{},xJ=ou.now||ou.mozNow||ou.msNow||ou.oNow||ou.webkitNow||function(){return new Date().getTime()};function wJ(e){var t=xJ.call(ou)*.001,r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r=r-e[0],n=n-e[1],n<0&&(r--,n+=1e9)),[r,n]}});var kA=I(Gp=>{"use strict";b();Gp.byteLength=MJ;Gp.toByteArray=EJ;Gp.fromByteArray=RJ;var ys=[],wi=[],kJ=typeof Uint8Array<"u"?Uint8Array:Array,dv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(wl=0,xA=dv.length;wl<xA;++wl)ys[wl]=dv[wl],wi[dv.charCodeAt(wl)]=wl;var wl,xA;wi[45]=62;wi[95]=63;function wA(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function MJ(e){var t=wA(e),r=t[0],n=t[1];return(r+n)*3/4-n}function AJ(e,t,r){return(t+r)*3/4-r}function EJ(e){var t,r=wA(e),n=r[0],i=r[1],o=new kJ(AJ(e,n,i)),h=0,g=i>0?n-4:n,v;for(v=0;v<g;v+=4)t=wi[e.charCodeAt(v)]<<18|wi[e.charCodeAt(v+1)]<<12|wi[e.charCodeAt(v+2)]<<6|wi[e.charCodeAt(v+3)],o[h++]=t>>16&255,o[h++]=t>>8&255,o[h++]=t&255;return i===2&&(t=wi[e.charCodeAt(v)]<<2|wi[e.charCodeAt(v+1)]>>4,o[h++]=t&255),i===1&&(t=wi[e.charCodeAt(v)]<<10|wi[e.charCodeAt(v+1)]<<4|wi[e.charCodeAt(v+2)]>>2,o[h++]=t>>8&255,o[h++]=t&255),o}function SJ(e){return ys[e>>18&63]+ys[e>>12&63]+ys[e>>6&63]+ys[e&63]}function TJ(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(SJ(n));return i.join("")}function RJ(e){for(var t,r=e.length,n=r%3,i=[],o=16383,h=0,g=r-n;h<g;h+=o)i.push(TJ(e,h,h+o>g?g:h+o));return n===1?(t=e[r-1],i.push(ys[t>>2]+ys[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ys[t>>10]+ys[t>>4&63]+ys[t<<2&63]+"=")),i.join("")}});var MA=I(pv=>{b();pv.read=function(e,t,r,n,i){var o,h,g=i*8-n-1,v=(1<<g)-1,w=v>>1,k=-7,A=r?i-1:0,R=r?-1:1,O=e[t+A];for(A+=R,o=O&(1<<-k)-1,O>>=-k,k+=g;k>0;o=o*256+e[t+A],A+=R,k-=8);for(h=o&(1<<-k)-1,o>>=-k,k+=n;k>0;h=h*256+e[t+A],A+=R,k-=8);if(o===0)o=1-w;else{if(o===v)return h?NaN:(O?-1:1)*(1/0);h=h+Math.pow(2,n),o=o-w}return(O?-1:1)*h*Math.pow(2,o-n)};pv.write=function(e,t,r,n,i,o){var h,g,v,w=o*8-i-1,k=(1<<w)-1,A=k>>1,R=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=n?0:o-1,B=n?1:-1,L=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,h=k):(h=Math.floor(Math.log(t)/Math.LN2),t*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+A>=1?t+=R/v:t+=R*Math.pow(2,1-A),t*v>=2&&(h++,v/=2),h+A>=k?(g=0,h=k):h+A>=1?(g=(t*v-1)*Math.pow(2,i),h=h+A):(g=t*Math.pow(2,A-1)*Math.pow(2,i),h=0));i>=8;e[r+O]=g&255,O+=B,g/=256,i-=8);for(h=h<<i|g,w+=i;w>0;e[r+O]=h&255,O+=B,h/=256,w-=8);e[r+O-B]|=L*128}});var ii=I(cu=>{"use strict";b();var mv=kA(),fu=MA(),AA=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;cu.Buffer=Te;cu.SlowBuffer=UJ;cu.INSPECT_MAX_BYTES=50;var Kp=2147483647;cu.kMaxLength=Kp;Te.TYPED_ARRAY_SUPPORT=OJ();!Te.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function OJ(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(Te.prototype,"parent",{enumerable:!0,get:function(){if(Te.isBuffer(this))return this.buffer}});Object.defineProperty(Te.prototype,"offset",{enumerable:!0,get:function(){if(Te.isBuffer(this))return this.byteOffset}});function oa(e){if(e>Kp)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Te.prototype),t}function Te(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vv(e)}return RA(e,t,r)}Te.poolSize=8192;function RA(e,t,r){if(typeof e=="string")return NJ(e,t);if(ArrayBuffer.isView(e))return BJ(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(gs(e,ArrayBuffer)||e&&gs(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gs(e,SharedArrayBuffer)||e&&gs(e.buffer,SharedArrayBuffer)))return gv(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Te.from(n,t,r);let i=CJ(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Te.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Te.from=function(e,t,r){return RA(e,t,r)};Object.setPrototypeOf(Te.prototype,Uint8Array.prototype);Object.setPrototypeOf(Te,Uint8Array);function OA(e){if(typeof e!="number")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 IJ(e,t,r){return OA(e),e<=0?oa(e):t!==void 0?typeof r=="string"?oa(e).fill(t,r):oa(e).fill(t):oa(e)}Te.alloc=function(e,t,r){return IJ(e,t,r)};function vv(e){return OA(e),oa(e<0?0:bv(e)|0)}Te.allocUnsafe=function(e){return vv(e)};Te.allocUnsafeSlow=function(e){return vv(e)};function NJ(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Te.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=IA(e,t)|0,n=oa(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function yv(e){let t=e.length<0?0:bv(e.length)|0,r=oa(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function BJ(e){if(gs(e,Uint8Array)){let t=new Uint8Array(e);return gv(t.buffer,t.byteOffset,t.byteLength)}return yv(e)}function gv(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,Te.prototype),n}function CJ(e){if(Te.isBuffer(e)){let t=bv(e.length)|0,r=oa(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||wv(e.length)?oa(0):yv(e);if(e.type==="Buffer"&&Array.isArray(e.data))return yv(e.data)}function bv(e){if(e>=Kp)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Kp.toString(16)+" bytes");return e|0}function UJ(e){return+e!=e&&(e=0),Te.alloc(+e)}Te.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Te.prototype};Te.compare=function(t,r){if(gs(t,Uint8Array)&&(t=Te.from(t,t.offset,t.byteLength)),gs(r,Uint8Array)&&(r=Te.from(r,r.offset,r.byteLength)),!Te.isBuffer(t)||!Te.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let o=0,h=Math.min(n,i);o<h;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?1:0};Te.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Te.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Te.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let i=Te.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){let h=t[n];if(gs(h,Uint8Array))o+h.length>i.length?(Te.isBuffer(h)||(h=Te.from(h)),h.copy(i,o)):Uint8Array.prototype.set.call(i,h,o);else if(Te.isBuffer(h))h.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=h.length}return i};function IA(e,t){if(Te.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||gs(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _v(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return LA(e).length;default:if(i)return n?-1:_v(e).length;t=(""+t).toLowerCase(),i=!0}}Te.byteLength=IA;function DJ(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return VJ(this,t,r);case"utf8":case"utf-8":return BA(this,t,r);case"ascii":return zJ(this,t,r);case"latin1":case"binary":return jJ(this,t,r);case"base64":return KJ(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return WJ(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Te.prototype._isBuffer=!0;function kl(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}Te.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)kl(this,r,r+1);return this};Te.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)kl(this,r,r+3),kl(this,r+1,r+2);return this};Te.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)kl(this,r,r+7),kl(this,r+1,r+6),kl(this,r+2,r+5),kl(this,r+3,r+4);return this};Te.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?BA(this,0,t):DJ.apply(this,arguments)};Te.prototype.toLocaleString=Te.prototype.toString;Te.prototype.equals=function(t){if(!Te.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Te.compare(this,t)===0};Te.prototype.inspect=function(){let t="",r=cu.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};AA&&(Te.prototype[AA]=Te.prototype.inspect);Te.prototype.compare=function(t,r,n,i,o){if(gs(t,Uint8Array)&&(t=Te.from(t,t.offset,t.byteLength)),!Te.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;let h=o-i,g=n-r,v=Math.min(h,g),w=this.slice(i,o),k=t.slice(r,n);for(let A=0;A<v;++A)if(w[A]!==k[A]){h=w[A],g=k[A];break}return h<g?-1:g<h?1:0};function NA(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,wv(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=Te.from(t,n)),Te.isBuffer(t))return t.length===0?-1:EA(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):EA(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function EA(e,t,r,n,i){let o=1,h=e.length,g=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,h/=2,g/=2,r/=2}function v(k,A){return o===1?k[A]:k.readUInt16BE(A*o)}let w;if(i){let k=-1;for(w=r;w<h;w++)if(v(e,w)===v(t,k===-1?0:w-k)){if(k===-1&&(k=w),w-k+1===g)return k*o}else k!==-1&&(w-=w-k),k=-1}else for(r+g>h&&(r=h-g),w=r;w>=0;w--){let k=!0;for(let A=0;A<g;A++)if(v(e,w+A)!==v(t,A)){k=!1;break}if(k)return w}return-1}Te.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};Te.prototype.indexOf=function(t,r,n){return NA(this,t,r,n,!0)};Te.prototype.lastIndexOf=function(t,r,n){return NA(this,t,r,n,!1)};function PJ(e,t,r,n){r=Number(r)||0;let i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let h;for(h=0;h<n;++h){let g=parseInt(t.substr(h*2,2),16);if(wv(g))return h;e[r+h]=g}return h}function FJ(e,t,r,n){return Hp(_v(t,e.length-r),e,r,n)}function qJ(e,t,r,n){return Hp(ZJ(t),e,r,n)}function LJ(e,t,r,n){return Hp(LA(t),e,r,n)}function GJ(e,t,r,n){return Hp(JJ(t,e.length-r),e,r,n)}Te.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let h=!1;for(;;)switch(i){case"hex":return PJ(this,t,r,n);case"utf8":case"utf-8":return FJ(this,t,r,n);case"ascii":case"latin1":case"binary":return qJ(this,t,r,n);case"base64":return LJ(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return GJ(this,t,r,n);default:if(h)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}};Te.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function KJ(e,t,r){return t===0&&r===e.length?mv.fromByteArray(e):mv.fromByteArray(e.slice(t,r))}function BA(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let o=e[i],h=null,g=o>239?4:o>223?3:o>191?2:1;if(i+g<=r){let v,w,k,A;switch(g){case 1:o<128&&(h=o);break;case 2:v=e[i+1],(v&192)===128&&(A=(o&31)<<6|v&63,A>127&&(h=A));break;case 3:v=e[i+1],w=e[i+2],(v&192)===128&&(w&192)===128&&(A=(o&15)<<12|(v&63)<<6|w&63,A>2047&&(A<55296||A>57343)&&(h=A));break;case 4:v=e[i+1],w=e[i+2],k=e[i+3],(v&192)===128&&(w&192)===128&&(k&192)===128&&(A=(o&15)<<18|(v&63)<<12|(w&63)<<6|k&63,A>65535&&A<1114112&&(h=A))}}h===null?(h=65533,g=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),i+=g}return HJ(n)}var SA=4096;function HJ(e){let t=e.length;if(t<=SA)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=SA));return r}function zJ(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function jJ(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function VJ(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=QJ[e[o]];return i}function WJ(e,t,r){let n=e.slice(t,r),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}Te.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let i=this.subarray(t,r);return Object.setPrototypeOf(i,Te.prototype),i};function en(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}Te.prototype.readUintLE=Te.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||en(t,r,this.length);let i=this[t],o=1,h=0;for(;++h<r&&(o*=256);)i+=this[t+h]*o;return i};Te.prototype.readUintBE=Te.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||en(t,r,this.length);let i=this[t+--r],o=1;for(;r>0&&(o*=256);)i+=this[t+--r]*o;return i};Te.prototype.readUint8=Te.prototype.readUInt8=function(t,r){return t=t>>>0,r||en(t,1,this.length),this[t]};Te.prototype.readUint16LE=Te.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||en(t,2,this.length),this[t]|this[t+1]<<8};Te.prototype.readUint16BE=Te.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||en(t,2,this.length),this[t]<<8|this[t+1]};Te.prototype.readUint32LE=Te.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||en(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Te.prototype.readUint32BE=Te.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||en(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Te.prototype.readBigUInt64LE=mo(function(t){t=t>>>0,uu(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&D0(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))});Te.prototype.readBigUInt64BE=mo(function(t){t=t>>>0,uu(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&D0(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});Te.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||en(t,r,this.length);let i=this[t],o=1,h=0;for(;++h<r&&(o*=256);)i+=this[t+h]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};Te.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||en(t,r,this.length);let i=r,o=1,h=this[t+--i];for(;i>0&&(o*=256);)h+=this[t+--i]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*r)),h};Te.prototype.readInt8=function(t,r){return t=t>>>0,r||en(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Te.prototype.readInt16LE=function(t,r){t=t>>>0,r||en(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};Te.prototype.readInt16BE=function(t,r){t=t>>>0,r||en(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};Te.prototype.readInt32LE=function(t,r){return t=t>>>0,r||en(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Te.prototype.readInt32BE=function(t,r){return t=t>>>0,r||en(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Te.prototype.readBigInt64LE=mo(function(t){t=t>>>0,uu(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&D0(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});Te.prototype.readBigInt64BE=mo(function(t){t=t>>>0,uu(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&D0(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});Te.prototype.readFloatLE=function(t,r){return t=t>>>0,r||en(t,4,this.length),fu.read(this,t,!0,23,4)};Te.prototype.readFloatBE=function(t,r){return t=t>>>0,r||en(t,4,this.length),fu.read(this,t,!1,23,4)};Te.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||en(t,8,this.length),fu.read(this,t,!0,52,8)};Te.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||en(t,8,this.length),fu.read(this,t,!1,52,8)};function zn(e,t,r,n,i,o){if(!Te.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}Te.prototype.writeUintLE=Te.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let g=Math.pow(2,8*n)-1;zn(this,t,r,n,g,0)}let o=1,h=0;for(this[r]=t&255;++h<n&&(o*=256);)this[r+h]=t/o&255;return r+n};Te.prototype.writeUintBE=Te.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let g=Math.pow(2,8*n)-1;zn(this,t,r,n,g,0)}let o=n-1,h=1;for(this[r+o]=t&255;--o>=0&&(h*=256);)this[r+o]=t/h&255;return r+n};Te.prototype.writeUint8=Te.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,1,255,0),this[r]=t&255,r+1};Te.prototype.writeUint16LE=Te.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};Te.prototype.writeUint16BE=Te.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};Te.prototype.writeUint32LE=Te.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};Te.prototype.writeUint32BE=Te.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function CA(e,t,r,n,i){qA(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let h=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=h,h=h>>8,e[r++]=h,h=h>>8,e[r++]=h,h=h>>8,e[r++]=h,r}function UA(e,t,r,n,i){qA(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let h=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=h,h=h>>8,e[r+2]=h,h=h>>8,e[r+1]=h,h=h>>8,e[r]=h,r+8}Te.prototype.writeBigUInt64LE=mo(function(t,r=0){return CA(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Te.prototype.writeBigUInt64BE=mo(function(t,r=0){return UA(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Te.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let v=Math.pow(2,8*n-1);zn(this,t,r,n,v-1,-v)}let o=0,h=1,g=0;for(this[r]=t&255;++o<n&&(h*=256);)t<0&&g===0&&this[r+o-1]!==0&&(g=1),this[r+o]=(t/h>>0)-g&255;return r+n};Te.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let v=Math.pow(2,8*n-1);zn(this,t,r,n,v-1,-v)}let o=n-1,h=1,g=0;for(this[r+o]=t&255;--o>=0&&(h*=256);)t<0&&g===0&&this[r+o+1]!==0&&(g=1),this[r+o]=(t/h>>0)-g&255;return r+n};Te.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};Te.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};Te.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};Te.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};Te.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zn(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};Te.prototype.writeBigInt64LE=mo(function(t,r=0){return CA(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Te.prototype.writeBigInt64BE=mo(function(t,r=0){return UA(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function DA(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function PA(e,t,r,n,i){return t=+t,r=r>>>0,i||DA(e,t,r,4,34028234663852886e22,-34028234663852886e22),fu.write(e,t,r,n,23,4),r+4}Te.prototype.writeFloatLE=function(t,r,n){return PA(this,t,r,!0,n)};Te.prototype.writeFloatBE=function(t,r,n){return PA(this,t,r,!1,n)};function FA(e,t,r,n,i){return t=+t,r=r>>>0,i||DA(e,t,r,8,17976931348623157e292,-17976931348623157e292),fu.write(e,t,r,n,52,8),r+8}Te.prototype.writeDoubleLE=function(t,r,n){return FA(this,t,r,!0,n)};Te.prototype.writeDoubleBE=function(t,r,n){return FA(this,t,r,!1,n)};Te.prototype.copy=function(t,r,n,i){if(!Te.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);let o=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),o};Te.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!Te.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){let h=t.charCodeAt(0);(i==="utf8"&&h<128||i==="latin1")&&(t=h)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{let h=Te.isBuffer(t)?t:Te.from(t,i),g=h.length;if(g===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=h[o%g]}return this};var lu={};function xv(e,t,r){lu[e]=class extends r{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(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}xv("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);xv("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);xv("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=TA(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=TA(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function TA(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function XJ(e,t,r){uu(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&D0(t,e.length-(r+1))}function qA(e,t,r,n,i,o){if(e>r||e<t){let h=typeof t=="bigint"?"n":"",g;throw o>3?t===0||t===BigInt(0)?g=`>= 0${h} and < 2${h} ** ${(o+1)*8}${h}`:g=`>= -(2${h} ** ${(o+1)*8-1}${h}) and < 2 ** ${(o+1)*8-1}${h}`:g=`>= ${t}${h} and <= ${r}${h}`,new lu.ERR_OUT_OF_RANGE("value",g,e)}XJ(n,i,o)}function uu(e,t){if(typeof e!="number")throw new lu.ERR_INVALID_ARG_TYPE(t,"number",e)}function D0(e,t,r){throw Math.floor(e)!==e?(uu(e,r),new lu.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new lu.ERR_BUFFER_OUT_OF_BOUNDS:new lu.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var $J=/[^+/0-9A-Za-z-_]/g;function YJ(e){if(e=e.split("=")[0],e=e.trim().replace($J,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function _v(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let h=0;h<n;++h){if(r=e.charCodeAt(h),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(h+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function ZJ(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function JJ(e,t){let r,n,i,o=[];for(let h=0;h<e.length&&!((t-=2)<0);++h)r=e.charCodeAt(h),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function LA(e){return mv.toByteArray(YJ(e))}function Hp(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function gs(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function wv(e){return e!==e}var QJ=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t})();function mo(e){return typeof BigInt>"u"?eQ:e}function eQ(){throw new Error("BigInt not supported")}});function S(e){Promise.resolve().then(()=>{e()})}var aqe,GA,KA,T,b=K(()=>{aqe=mt(_A()),GA=mt(bA()),KA=mt(ii());window.Buffer=KA.Buffer;T=GA.default});var la=I((lqe,kv)=>{"use strict";b();var hu=typeof Reflect=="object"?Reflect:null,HA=hu&&typeof hu.apply=="function"?hu.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},zp;hu&&typeof hu.ownKeys=="function"?zp=hu.ownKeys:Object.getOwnPropertySymbols?zp=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:zp=function(t){return Object.getOwnPropertyNames(t)};function tQ(e){console&&console.warn&&console.warn(e)}var jA=Number.isNaN||function(t){return t!==t};function kt(){kt.init.call(this)}kv.exports=kt;kv.exports.once=sQ;kt.EventEmitter=kt;kt.prototype._events=void 0;kt.prototype._eventsCount=0;kt.prototype._maxListeners=void 0;var zA=10;function jp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(kt,"defaultMaxListeners",{enumerable:!0,get:function(){return zA},set:function(e){if(typeof e!="number"||e<0||jA(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");zA=e}});kt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};kt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||jA(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function VA(e){return e._maxListeners===void 0?kt.defaultMaxListeners:e._maxListeners}kt.prototype.getMaxListeners=function(){return VA(this)};kt.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var h;if(r.length>0&&(h=r[0]),h instanceof Error)throw h;var g=new Error("Unhandled error."+(h?" ("+h.message+")":""));throw g.context=h,g}var v=o[t];if(v===void 0)return!1;if(typeof v=="function")HA(v,this,r);else for(var w=v.length,k=ZA(v,w),n=0;n<w;++n)HA(k[n],this,r);return!0};function WA(e,t,r,n){var i,o,h;if(jp(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),h=o[t]),h===void 0)h=o[t]=r,++e._eventsCount;else if(typeof h=="function"?h=o[t]=n?[r,h]:[h,r]:n?h.unshift(r):h.push(r),i=VA(e),i>0&&h.length>i&&!h.warned){h.warned=!0;var g=new Error("Possible EventEmitter memory leak detected. "+h.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");g.name="MaxListenersExceededWarning",g.emitter=e,g.type=t,g.count=h.length,tQ(g)}return e}kt.prototype.addListener=function(t,r){return WA(this,t,r,!1)};kt.prototype.on=kt.prototype.addListener;kt.prototype.prependListener=function(t,r){return WA(this,t,r,!0)};function rQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function XA(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=rQ.bind(n);return i.listener=r,n.wrapFn=i,i}kt.prototype.once=function(t,r){return jp(r),this.on(t,XA(this,t,r)),this};kt.prototype.prependOnceListener=function(t,r){return jp(r),this.prependListener(t,XA(this,t,r)),this};kt.prototype.removeListener=function(t,r){var n,i,o,h,g;if(jp(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,h=n.length-1;h>=0;h--)if(n[h]===r||n[h].listener===r){g=n[h].listener,o=h;break}if(o<0)return this;o===0?n.shift():nQ(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,g||r)}return this};kt.prototype.off=kt.prototype.removeListener;kt.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),h;for(i=0;i<o.length;++i)h=o[i],h!=="removeListener"&&this.removeAllListeners(h);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function $A(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?iQ(i):ZA(i,i.length)}kt.prototype.listeners=function(t){return $A(this,t,!0)};kt.prototype.rawListeners=function(t){return $A(this,t,!1)};kt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):YA.call(e,t)};kt.prototype.listenerCount=YA;function YA(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}kt.prototype.eventNames=function(){return this._eventsCount>0?zp(this._events):[]};function ZA(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function nQ(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function iQ(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function sQ(e,t){return new Promise(function(r,n){function i(h){e.removeListener(t,o),n(h)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}JA(e,t,o,{once:!0}),t!=="error"&&aQ(e,i,{once:!0})})}function aQ(e,t,r){typeof e.on=="function"&&JA(e,"error",t,r)}function JA(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var QA=I((du,pu)=>{b();(function(e){var t=typeof du=="object"&&du&&!du.nodeType&&du,r=typeof pu=="object"&&pu&&!pu.nodeType&&pu,n=typeof window=="object"&&window;(n.global===n||n.window===n||n.self===n)&&(e=n);var i,o=2147483647,h=36,g=1,v=26,w=38,k=700,A=72,R=128,O="-",B=/^xn--/,L=/[^\x20-\x7E]/,X=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},H=h-g,D=Math.floor,Se=String.fromCharCode,De;function Ce(d){throw new RangeError(P[d])}function Ke(d,a){for(var p=d.length,M=[];p--;)M[p]=a(d[p]);return M}function j(d,a){var p=d.split("@"),M="";p.length>1&&(M=p[0]+"@",d=p[1]),d=d.replace(X,".");var x=d.split("."),E=Ke(x,a).join(".");return M+E}function Be(d){for(var a=[],p=0,M=d.length,x,E;p<M;)x=d.charCodeAt(p++),x>=55296&&x<=56319&&p<M?(E=d.charCodeAt(p++),(E&64512)==56320?a.push(((x&1023)<<10)+(E&1023)+65536):(a.push(x),p--)):a.push(x);return a}function y(d){return Ke(d,function(a){var p="";return a>65535&&(a-=65536,p+=Se(a>>>10&1023|55296),a=56320|a&1023),p+=Se(a),p}).join("")}function s(d){return d-48<10?d-22:d-65<26?d-65:d-97<26?d-97:h}function l(d,a){return d+22+75*(d<26)-((a!=0)<<5)}function u(d,a,p){var M=0;for(d=p?D(d/k):d>>1,d+=D(d/a);d>H*v>>1;M+=h)d=D(d/H);return D(M+(H+1)*d/(d+w))}function f(d){var a=[],p=d.length,M,x=0,E=R,N=A,C,U,Re,F,q,ft,V,W,wt;for(C=d.lastIndexOf(O),C<0&&(C=0),U=0;U<C;++U)d.charCodeAt(U)>=128&&Ce("not-basic"),a.push(d.charCodeAt(U));for(Re=C>0?C+1:0;Re<p;){for(F=x,q=1,ft=h;Re>=p&&Ce("invalid-input"),V=s(d.charCodeAt(Re++)),(V>=h||V>D((o-x)/q))&&Ce("overflow"),x+=V*q,W=ft<=N?g:ft>=N+v?v:ft-N,!(V<W);ft+=h)wt=h-W,q>D(o/wt)&&Ce("overflow"),q*=wt;M=a.length+1,N=u(x-F,M,F==0),D(x/M)>o-E&&Ce("overflow"),E+=D(x/M),x%=M,a.splice(x++,0,E)}return y(a)}function c(d){var a,p,M,x,E,N,C,U,Re,F,q,ft=[],V,W,wt,$;for(d=Be(d),V=d.length,a=R,p=0,E=A,N=0;N<V;++N)q=d[N],q<128&&ft.push(Se(q));for(M=x=ft.length,x&&ft.push(O);M<V;){for(C=o,N=0;N<V;++N)q=d[N],q>=a&&q<C&&(C=q);for(W=M+1,C-a>D((o-p)/W)&&Ce("overflow"),p+=(C-a)*W,a=C,N=0;N<V;++N)if(q=d[N],q<a&&++p>o&&Ce("overflow"),q==a){for(U=p,Re=h;F=Re<=E?g:Re>=E+v?v:Re-E,!(U<F);Re+=h)$=U-F,wt=h-F,ft.push(Se(l(F+$%wt,0))),U=D($/wt);ft.push(Se(l(U,0))),E=u(p,W,M==x),p=0,++M}++p,++a}return ft.join("")}function m(d){return j(d,function(a){return B.test(a)?f(a.slice(4).toLowerCase()):a})}function _(d){return j(d,function(a){return L.test(a)?"xn--"+c(a):a})}if(i={version:"1.4.1",ucs2:{decode:Be,encode:y},decode:f,encode:c,toASCII:_,toUnicode:m},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(pu.exports==t)r.exports=i;else for(De in i)i.hasOwnProperty(De)&&(t[De]=i[De]);else e.punycode=i})(du)});var _s=I((cqe,eE)=>{"use strict";b();eE.exports=TypeError});var tE=I(()=>{b()});var G0=I((yqe,xE)=>{b();var Bv=typeof Map=="function"&&Map.prototype,Mv=Object.getOwnPropertyDescriptor&&Bv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wp=Bv&&Mv&&typeof Mv.get=="function"?Mv.get:null,rE=Bv&&Map.prototype.forEach,Cv=typeof Set=="function"&&Set.prototype,Av=Object.getOwnPropertyDescriptor&&Cv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xp=Cv&&Av&&typeof Av.get=="function"?Av.get:null,nE=Cv&&Set.prototype.forEach,oQ=typeof WeakMap=="function"&&WeakMap.prototype,F0=oQ?WeakMap.prototype.has:null,lQ=typeof WeakSet=="function"&&WeakSet.prototype,q0=lQ?WeakSet.prototype.has:null,fQ=typeof WeakRef=="function"&&WeakRef.prototype,iE=fQ?WeakRef.prototype.deref:null,uQ=Boolean.prototype.valueOf,cQ=Object.prototype.toString,hQ=Function.prototype.toString,dQ=String.prototype.match,Uv=String.prototype.slice,yo=String.prototype.replace,pQ=String.prototype.toUpperCase,sE=String.prototype.toLowerCase,pE=RegExp.prototype.test,aE=Array.prototype.concat,vs=Array.prototype.join,mQ=Array.prototype.slice,oE=Math.floor,Tv=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ev=Object.getOwnPropertySymbols,Rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,mu=typeof Symbol=="function"&&typeof Symbol.iterator=="object",L0=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===mu||!0)?Symbol.toStringTag:null,mE=Object.prototype.propertyIsEnumerable,lE=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function fE(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||pE.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-oE(-e):oE(e);if(n!==e){var i=String(n),o=Uv.call(t,i.length+1);return yo.call(i,r,"$&_")+"."+yo.call(yo.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yo.call(t,r,"$&_")}var Ov=tE(),uE=Ov.custom,cE=_E(uE)?uE:null,yE={__proto__:null,double:'"',single:"'"},yQ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};xE.exports=function e(t,r,n,i){var o=r||{};if(fa(o,"quoteStyle")&&!fa(yE,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fa(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=fa(o,"customInspect")?o.customInspect:!0;if(typeof h!="boolean"&&h!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fa(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fa(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var g=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return bE(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var v=String(t);return g?fE(t,v):v}if(typeof t=="bigint"){var w=String(t)+"n";return g?fE(t,w):w}var k=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=k&&k>0&&typeof t=="object")return Iv(t)?"[Array]":"[Object]";var A=CQ(o,n);if(typeof i>"u")i=[];else if(vE(i,t)>=0)return"[Circular]";function R(u,f,c){if(f&&(i=mQ.call(i),i.push(f)),c){var m={depth:o.depth};return fa(o,"quoteStyle")&&(m.quoteStyle=o.quoteStyle),e(u,m,n+1,i)}return e(u,o,n+1,i)}if(typeof t=="function"&&!hE(t)){var O=AQ(t),B=Vp(t,R);return"[Function"+(O?": "+O:" (anonymous)")+"]"+(B.length>0?" { "+vs.call(B,", ")+" }":"")}if(_E(t)){var L=mu?yo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rv.call(t);return typeof t=="object"&&!mu?P0(L):L}if(IQ(t)){for(var X="<"+sE.call(String(t.nodeName)),P=t.attributes||[],H=0;H<P.length;H++)X+=" "+P[H].name+"="+gE(gQ(P[H].value),"double",o);return X+=">",t.childNodes&&t.childNodes.length&&(X+="..."),X+="</"+sE.call(String(t.nodeName))+">",X}if(Iv(t)){if(t.length===0)return"[]";var D=Vp(t,R);return A&&!BQ(D)?"["+Nv(D,A)+"]":"[ "+vs.call(D,", ")+" ]"}if(vQ(t)){var Se=Vp(t,R);return!("cause"in Error.prototype)&&"cause"in t&&!mE.call(t,"cause")?"{ ["+String(t)+"] "+vs.call(aE.call("[cause]: "+R(t.cause),Se),", ")+" }":Se.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+vs.call(Se,", ")+" }"}if(typeof t=="object"&&h){if(cE&&typeof t[cE]=="function"&&Ov)return Ov(t,{depth:k-n});if(h!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(EQ(t)){var De=[];return rE&&rE.call(t,function(u,f){De.push(R(f,t,!0)+" => "+R(u,t))}),dE("Map",Wp.call(t),De,A)}if(RQ(t)){var Ce=[];return nE&&nE.call(t,function(u){Ce.push(R(u,t))}),dE("Set",Xp.call(t),Ce,A)}if(SQ(t))return Sv("WeakMap");if(OQ(t))return Sv("WeakSet");if(TQ(t))return Sv("WeakRef");if(xQ(t))return P0(R(Number(t)));if(kQ(t))return P0(R(Tv.call(t)));if(wQ(t))return P0(uQ.call(t));if(bQ(t))return P0(R(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof window<"u"&&t===window)return"{ [object globalThis] }";if(!_Q(t)&&!hE(t)){var Ke=Vp(t,R),j=lE?lE(t)===Object.prototype:t instanceof Object||t.constructor===Object,Be=t instanceof Object?"":"null prototype",y=!j&&L0&&Object(t)===t&&L0 in t?Uv.call(go(t),8,-1):Be?"Object":"",s=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",l=s+(y||Be?"["+vs.call(aE.call([],y||[],Be||[]),": ")+"] ":"");return Ke.length===0?l+"{}":A?l+"{"+Nv(Ke,A)+"}":l+"{ "+vs.call(Ke,", ")+" }"}return String(t)};function gE(e,t,r){var n=r.quoteStyle||t,i=yE[n];return i+e+i}function gQ(e){return yo.call(String(e),/"/g,"&quot;")}function Ml(e){return!L0||!(typeof e=="object"&&(L0 in e||typeof e[L0]<"u"))}function Iv(e){return go(e)==="[object Array]"&&Ml(e)}function _Q(e){return go(e)==="[object Date]"&&Ml(e)}function hE(e){return go(e)==="[object RegExp]"&&Ml(e)}function vQ(e){return go(e)==="[object Error]"&&Ml(e)}function bQ(e){return go(e)==="[object String]"&&Ml(e)}function xQ(e){return go(e)==="[object Number]"&&Ml(e)}function wQ(e){return go(e)==="[object Boolean]"&&Ml(e)}function _E(e){if(mu)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Rv)return!1;try{return Rv.call(e),!0}catch{}return!1}function kQ(e){if(!e||typeof e!="object"||!Tv)return!1;try{return Tv.call(e),!0}catch{}return!1}var MQ=Object.prototype.hasOwnProperty||function(e){return e in this};function fa(e,t){return MQ.call(e,t)}function go(e){return cQ.call(e)}function AQ(e){if(e.name)return e.name;var t=dQ.call(hQ.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vE(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function EQ(e){if(!Wp||!e||typeof e!="object")return!1;try{Wp.call(e);try{Xp.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function SQ(e){if(!F0||!e||typeof e!="object")return!1;try{F0.call(e,F0);try{q0.call(e,q0)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function TQ(e){if(!iE||!e||typeof e!="object")return!1;try{return iE.call(e),!0}catch{}return!1}function RQ(e){if(!Xp||!e||typeof e!="object")return!1;try{Xp.call(e);try{Wp.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function OQ(e){if(!q0||!e||typeof e!="object")return!1;try{q0.call(e,q0);try{F0.call(e,F0)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function IQ(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function bE(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return bE(Uv.call(e,0,t.maxStringLength),t)+n}var i=yQ[t.quoteStyle||"single"];i.lastIndex=0;var o=yo.call(yo.call(e,i,"\\$1"),/[\x00-\x1f]/g,NQ);return gE(o,"single",t)}function NQ(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+pQ.call(t.toString(16))}function P0(e){return"Object("+e+")"}function Sv(e){return e+" { ? }"}function dE(e,t,r,n){var i=n?Nv(r,n):vs.call(r,", ");return e+" ("+t+") {"+i+"}"}function BQ(e){for(var t=0;t<e.length;t++)if(vE(e[t],`
2
+ `)>=0)return!1;return!0}function CQ(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=vs.call(Array(e.indent+1)," ");else return null;return{base:r,prev:vs.call(Array(t+1),r)}}function Nv(e,t){if(e.length===0)return"";var r=`
3
+ `+t.prev+t.base;return r+vs.call(e,","+r)+`
4
+ `+t.prev}function Vp(e,t){var r=Iv(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=fa(e,i)?t(e[i],e):""}var o=typeof Ev=="function"?Ev(e):[],h;if(mu){h={};for(var g=0;g<o.length;g++)h["$"+o[g]]=o[g]}for(var v in e)fa(e,v)&&(r&&String(Number(v))===v&&v<e.length||mu&&h["$"+v]instanceof Symbol||(pE.call(/[^\w$]/,v)?n.push(t(v,e)+": "+t(e[v],e)):n.push(v+": "+t(e[v],e))));if(typeof Ev=="function")for(var w=0;w<o.length;w++)mE.call(e,o[w])&&n.push("["+t(o[w])+"]: "+t(e[o[w]],e));return n}});var kE=I((_qe,wE)=>{"use strict";b();var UQ=G0(),DQ=_s(),$p=function(e,t,r){for(var n=e,i;(i=n.next)!=null;n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},PQ=function(e,t){if(e){var r=$p(e,t);return r&&r.value}},FQ=function(e,t,r){var n=$p(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},qQ=function(e,t){return e?!!$p(e,t):!1},LQ=function(e,t){if(e)return $p(e,t,!0)};wE.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new DQ("Side channel does not contain "+UQ(n))},delete:function(n){var i=t&&t.next,o=LQ(t,n);return o&&i&&i===o&&(t=void 0),!!o},get:function(n){return PQ(t,n)},has:function(n){return qQ(t,n)},set:function(n,i){t||(t={next:void 0}),FQ(t,n,i)}};return r}});var Dv=I((bqe,ME)=>{"use strict";b();ME.exports=Object});var EE=I((wqe,AE)=>{"use strict";b();AE.exports=Error});var TE=I((Mqe,SE)=>{"use strict";b();SE.exports=EvalError});var OE=I((Eqe,RE)=>{"use strict";b();RE.exports=RangeError});var NE=I((Tqe,IE)=>{"use strict";b();IE.exports=ReferenceError});var Pv=I((Oqe,BE)=>{"use strict";b();BE.exports=SyntaxError});var UE=I((Nqe,CE)=>{"use strict";b();CE.exports=URIError});var PE=I((Cqe,DE)=>{"use strict";b();DE.exports=Math.abs});var qE=I((Dqe,FE)=>{"use strict";b();FE.exports=Math.floor});var GE=I((Fqe,LE)=>{"use strict";b();LE.exports=Math.max});var HE=I((Lqe,KE)=>{"use strict";b();KE.exports=Math.min});var jE=I((Kqe,zE)=>{"use strict";b();zE.exports=Math.pow});var WE=I((zqe,VE)=>{"use strict";b();VE.exports=Math.round});var $E=I((Vqe,XE)=>{"use strict";b();XE.exports=Number.isNaN||function(t){return t!==t}});var ZE=I((Xqe,YE)=>{"use strict";b();var GQ=$E();YE.exports=function(t){return GQ(t)||t===0?t:t<0?-1:1}});var QE=I((Yqe,JE)=>{"use strict";b();JE.exports=Object.getOwnPropertyDescriptor});var yu=I((Jqe,eS)=>{"use strict";b();var Yp=QE();if(Yp)try{Yp([],"length")}catch{Yp=null}eS.exports=Yp});var K0=I((eLe,tS)=>{"use strict";b();var Zp=Object.defineProperty||!1;if(Zp)try{Zp({},"a",{value:1})}catch{Zp=!1}tS.exports=Zp});var Fv=I((rLe,rS)=>{"use strict";b();rS.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var h=Object.getOwnPropertySymbols(t);if(h.length!==1||h[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(t,r);if(g.value!==i||g.enumerable!==!0)return!1}return!0}});var sS=I((iLe,iS)=>{"use strict";b();var nS=typeof Symbol<"u"&&Symbol,KQ=Fv();iS.exports=function(){return typeof nS!="function"||typeof Symbol!="function"||typeof nS("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:KQ()}});var qv=I((aLe,aS)=>{"use strict";b();aS.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Lv=I((lLe,oS)=>{"use strict";b();var HQ=Dv();oS.exports=HQ.getPrototypeOf||null});var uS=I((uLe,fS)=>{"use strict";b();var zQ="Function.prototype.bind called on incompatible ",jQ=Object.prototype.toString,VQ=Math.max,WQ="[object Function]",lS=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},XQ=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},$Q=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};fS.exports=function(t){var r=this;if(typeof r!="function"||jQ.apply(r)!==WQ)throw new TypeError(zQ+r);for(var n=XQ(arguments,1),i,o=function(){if(this instanceof i){var k=r.apply(this,lS(n,arguments));return Object(k)===k?k:this}return r.apply(t,lS(n,arguments))},h=VQ(0,r.length-n.length),g=[],v=0;v<h;v++)g[v]="$"+v;if(i=Function("binder","return function ("+$Q(g,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var w=function(){};w.prototype=r.prototype,i.prototype=new w,w.prototype=null}return i}});var gu=I((hLe,cS)=>{"use strict";b();var YQ=uS();cS.exports=Function.prototype.bind||YQ});var Jp=I((pLe,hS)=>{"use strict";b();hS.exports=Function.prototype.call});var Qp=I((yLe,dS)=>{"use strict";b();dS.exports=Function.prototype.apply});var mS=I((_Le,pS)=>{"use strict";b();pS.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Gv=I((bLe,yS)=>{"use strict";b();var ZQ=gu(),JQ=Qp(),QQ=Jp(),eee=mS();yS.exports=eee||ZQ.call(QQ,JQ)});var em=I((wLe,gS)=>{"use strict";b();var tee=gu(),ree=_s(),nee=Jp(),iee=Gv();gS.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new ree("a function is required");return iee(tee,nee,t)}});var kS=I((MLe,wS)=>{"use strict";b();var see=em(),_S=yu(),bS;try{bS=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Kv=!!bS&&_S&&_S(Object.prototype,"__proto__"),xS=Object,vS=xS.getPrototypeOf;wS.exports=Kv&&typeof Kv.get=="function"?see([Kv.get]):typeof vS=="function"?function(t){return vS(t==null?t:xS(t))}:!1});var Hv=I((ELe,SS)=>{"use strict";b();var MS=qv(),AS=Lv(),ES=kS();SS.exports=MS?function(t){return MS(t)}:AS?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return AS(t)}:ES?function(t){return ES(t)}:null});var RS=I((TLe,TS)=>{"use strict";b();var aee=Function.prototype.call,oee=Object.prototype.hasOwnProperty,lee=gu();TS.exports=lee.call(aee,oee)});var V0=I((OLe,US)=>{"use strict";b();var dt,fee=Dv(),uee=EE(),cee=TE(),hee=OE(),dee=NE(),xu=Pv(),bu=_s(),pee=UE(),mee=PE(),yee=qE(),gee=GE(),_ee=HE(),vee=jE(),bee=WE(),xee=ZE(),BS=Function,zv=function(e){try{return BS('"use strict"; return ('+e+").constructor;")()}catch{}},H0=yu(),wee=K0(),jv=function(){throw new bu},kee=H0?(function(){try{return arguments.callee,jv}catch{try{return H0(arguments,"callee").get}catch{return jv}}})():jv,_u=sS()(),tn=Hv(),Mee=Lv(),Aee=qv(),CS=Qp(),z0=Jp(),vu={},Eee=typeof Uint8Array>"u"||!tn?dt:tn(Uint8Array),Al={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?dt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dt:ArrayBuffer,"%ArrayIteratorPrototype%":_u&&tn?tn([][Symbol.iterator]()):dt,"%AsyncFromSyncIteratorPrototype%":dt,"%AsyncFunction%":vu,"%AsyncGenerator%":vu,"%AsyncGeneratorFunction%":vu,"%AsyncIteratorPrototype%":vu,"%Atomics%":typeof Atomics>"u"?dt:Atomics,"%BigInt%":typeof BigInt>"u"?dt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":uee,"%eval%":eval,"%EvalError%":cee,"%Float16Array%":typeof Float16Array>"u"?dt:Float16Array,"%Float32Array%":typeof Float32Array>"u"?dt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dt:FinalizationRegistry,"%Function%":BS,"%GeneratorFunction%":vu,"%Int8Array%":typeof Int8Array>"u"?dt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_u&&tn?tn(tn([][Symbol.iterator]())):dt,"%JSON%":typeof JSON=="object"?JSON:dt,"%Map%":typeof Map>"u"?dt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_u||!tn?dt:tn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fee,"%Object.getOwnPropertyDescriptor%":H0,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dt:Promise,"%Proxy%":typeof Proxy>"u"?dt:Proxy,"%RangeError%":hee,"%ReferenceError%":dee,"%Reflect%":typeof Reflect>"u"?dt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_u||!tn?dt:tn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_u&&tn?tn(""[Symbol.iterator]()):dt,"%Symbol%":_u?Symbol:dt,"%SyntaxError%":xu,"%ThrowTypeError%":kee,"%TypedArray%":Eee,"%TypeError%":bu,"%Uint8Array%":typeof Uint8Array>"u"?dt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dt:Uint32Array,"%URIError%":pee,"%WeakMap%":typeof WeakMap>"u"?dt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dt:WeakSet,"%Function.prototype.call%":z0,"%Function.prototype.apply%":CS,"%Object.defineProperty%":wee,"%Object.getPrototypeOf%":Mee,"%Math.abs%":mee,"%Math.floor%":yee,"%Math.max%":gee,"%Math.min%":_ee,"%Math.pow%":vee,"%Math.round%":bee,"%Math.sign%":xee,"%Reflect.getPrototypeOf%":Aee};if(tn)try{null.error}catch(e){OS=tn(tn(e)),Al["%Error.prototype%"]=OS}var OS,See=function e(t){var r;if(t==="%AsyncFunction%")r=zv("async function () {}");else if(t==="%GeneratorFunction%")r=zv("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=zv("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&tn&&(r=tn(i.prototype))}return Al[t]=r,r},IS={__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"]},j0=gu(),tm=RS(),Tee=j0.call(z0,Array.prototype.concat),Ree=j0.call(CS,Array.prototype.splice),NS=j0.call(z0,String.prototype.replace),rm=j0.call(z0,String.prototype.slice),Oee=j0.call(z0,RegExp.prototype.exec),Iee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Nee=/\\(\\)?/g,Bee=function(t){var r=rm(t,0,1),n=rm(t,-1);if(r==="%"&&n!=="%")throw new xu("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new xu("invalid intrinsic syntax, expected opening `%`");var i=[];return NS(t,Iee,function(o,h,g,v){i[i.length]=g?NS(v,Nee,"$1"):h||o}),i},Cee=function(t,r){var n=t,i;if(tm(IS,n)&&(i=IS[n],n="%"+i[0]+"%"),tm(Al,n)){var o=Al[n];if(o===vu&&(o=See(n)),typeof o>"u"&&!r)throw new bu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new xu("intrinsic "+t+" does not exist!")};US.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new bu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new bu('"allowMissing" argument must be a boolean');if(Oee(/^%?[^%]*%?$/,t)===null)throw new xu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Bee(t),i=n.length>0?n[0]:"",o=Cee("%"+i+"%",r),h=o.name,g=o.value,v=!1,w=o.alias;w&&(i=w[0],Ree(n,Tee([0,1],w)));for(var k=1,A=!0;k<n.length;k+=1){var R=n[k],O=rm(R,0,1),B=rm(R,-1);if((O==='"'||O==="'"||O==="`"||B==='"'||B==="'"||B==="`")&&O!==B)throw new xu("property names with quotes must have matching quotes");if((R==="constructor"||!A)&&(v=!0),i+="."+R,h="%"+i+"%",tm(Al,h))g=Al[h];else if(g!=null){if(!(R in g)){if(!r)throw new bu("base intrinsic for "+t+" exists, but the property is not available.");return}if(H0&&k+1>=n.length){var L=H0(g,R);A=!!L,A&&"get"in L&&!("originalValue"in L.get)?g=L.get:g=g[R]}else A=tm(g,R),g=g[R];A&&!v&&(Al[h]=g)}}return g}});var W0=I((NLe,FS)=>{"use strict";b();var DS=V0(),PS=em(),Uee=PS([DS("%String.prototype.indexOf%")]);FS.exports=function(t,r){var n=DS(t,!!r);return typeof n=="function"&&Uee(t,".prototype.")>-1?PS([n]):n}});var Vv=I((CLe,LS)=>{"use strict";b();var Dee=V0(),X0=W0(),Pee=G0(),Fee=_s(),qS=Dee("%Map%",!0),qee=X0("Map.prototype.get",!0),Lee=X0("Map.prototype.set",!0),Gee=X0("Map.prototype.has",!0),Kee=X0("Map.prototype.delete",!0),Hee=X0("Map.prototype.size",!0);LS.exports=!!qS&&function(){var t,r={assert:function(n){if(!r.has(n))throw new Fee("Side channel does not contain "+Pee(n))},delete:function(n){if(t){var i=Kee(t,n);return Hee(t)===0&&(t=void 0),i}return!1},get:function(n){if(t)return qee(t,n)},has:function(n){return t?Gee(t,n):!1},set:function(n,i){t||(t=new qS),Lee(t,n,i)}};return r}});var KS=I((DLe,GS)=>{"use strict";b();var zee=V0(),im=W0(),jee=G0(),nm=Vv(),Vee=_s(),wu=zee("%WeakMap%",!0),Wee=im("WeakMap.prototype.get",!0),Xee=im("WeakMap.prototype.set",!0),$ee=im("WeakMap.prototype.has",!0),Yee=im("WeakMap.prototype.delete",!0);GS.exports=wu?function(){var t,r,n={assert:function(i){if(!n.has(i))throw new Vee("Side channel does not contain "+jee(i))},delete:function(i){if(wu&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Yee(t,i)}else if(nm&&r)return r.delete(i);return!1},get:function(i){return wu&&i&&(typeof i=="object"||typeof i=="function")&&t?Wee(t,i):r&&r.get(i)},has:function(i){return wu&&i&&(typeof i=="object"||typeof i=="function")&&t?$ee(t,i):!!r&&r.has(i)},set:function(i,o){wu&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new wu),Xee(t,i,o)):nm&&(r||(r=nm()),r.set(i,o))}};return n}:nm});var zS=I((FLe,HS)=>{"use strict";b();var Zee=_s(),Jee=G0(),Qee=kE(),ete=Vv(),tte=KS(),rte=tte||ete||Qee;HS.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new Zee("Side channel does not contain "+Jee(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,i){t||(t=rte()),t.set(n,i)}};return r}});var sm=I((LLe,jS)=>{"use strict";b();var nte=String.prototype.replace,ite=/%20/g,Wv={RFC1738:"RFC1738",RFC3986:"RFC3986"};jS.exports={default:Wv.RFC3986,formatters:{RFC1738:function(e){return nte.call(e,ite,"+")},RFC3986:function(e){return String(e)}},RFC1738:Wv.RFC1738,RFC3986:Wv.RFC3986}});var Yv=I((KLe,WS)=>{"use strict";b();var ste=sm(),Xv=Object.prototype.hasOwnProperty,El=Array.isArray,bs=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),ate=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(El(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},VS=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},ote=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(El(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Xv.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return El(t)&&!El(r)&&(i=VS(t,n)),El(t)&&El(r)?(r.forEach(function(o,h){if(Xv.call(t,h)){var g=t[h];g&&typeof g=="object"&&o&&typeof o=="object"?t[h]=e(g,o,n):t.push(o)}else t[h]=o}),t):Object.keys(r).reduce(function(o,h){var g=r[h];return Xv.call(o,h)?o[h]=e(o[h],g,n):o[h]=g,o},i)},lte=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},fte=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},$v=1024,ute=function(t,r,n,i,o){if(t.length===0)return t;var h=t;if(typeof t=="symbol"?h=Symbol.prototype.toString.call(t):typeof t!="string"&&(h=String(t)),n==="iso-8859-1")return escape(h).replace(/%u[0-9a-f]{4}/gi,function(O){return"%26%23"+parseInt(O.slice(2),16)+"%3B"});for(var g="",v=0;v<h.length;v+=$v){for(var w=h.length>=$v?h.slice(v,v+$v):h,k=[],A=0;A<w.length;++A){var R=w.charCodeAt(A);if(R===45||R===46||R===95||R===126||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||o===ste.RFC1738&&(R===40||R===41)){k[k.length]=w.charAt(A);continue}if(R<128){k[k.length]=bs[R];continue}if(R<2048){k[k.length]=bs[192|R>>6]+bs[128|R&63];continue}if(R<55296||R>=57344){k[k.length]=bs[224|R>>12]+bs[128|R>>6&63]+bs[128|R&63];continue}A+=1,R=65536+((R&1023)<<10|w.charCodeAt(A)&1023),k[k.length]=bs[240|R>>18]+bs[128|R>>12&63]+bs[128|R>>6&63]+bs[128|R&63]}g+=k.join("")}return g},cte=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],h=o.obj[o.prop],g=Object.keys(h),v=0;v<g.length;++v){var w=g[v],k=h[w];typeof k=="object"&&k!==null&&n.indexOf(k)===-1&&(r.push({obj:h,prop:w}),n.push(k))}return ate(r),t},hte=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},dte=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},pte=function(t,r){return[].concat(t,r)},mte=function(t,r){if(El(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};WS.exports={arrayToObject:VS,assign:lte,combine:pte,compact:cte,decode:fte,encode:ute,isBuffer:dte,isRegExp:hte,maybeMap:mte,merge:ote}});var QS=I((zLe,JS)=>{"use strict";b();var $S=zS(),am=Yv(),$0=sm(),yte=Object.prototype.hasOwnProperty,YS={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},xs=Array.isArray,gte=Array.prototype.push,ZS=function(e,t){gte.apply(e,xs(t)?t:[t])},_te=Date.prototype.toISOString,XS=$0.default,jr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:am.encode,encodeValuesOnly:!1,filter:void 0,format:XS,formatter:$0.formatters[XS],indices:!1,serializeDate:function(t){return _te.call(t)},skipNulls:!1,strictNullHandling:!1},vte=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Zv={},bte=function e(t,r,n,i,o,h,g,v,w,k,A,R,O,B,L,X,P,H){for(var D=t,Se=H,De=0,Ce=!1;(Se=Se.get(Zv))!==void 0&&!Ce;){var Ke=Se.get(t);if(De+=1,typeof Ke<"u"){if(Ke===De)throw new RangeError("Cyclic object value");Ce=!0}typeof Se.get(Zv)>"u"&&(De=0)}if(typeof k=="function"?D=k(r,D):D instanceof Date?D=O(D):n==="comma"&&xs(D)&&(D=am.maybeMap(D,function(p){return p instanceof Date?O(p):p})),D===null){if(h)return w&&!X?w(r,jr.encoder,P,"key",B):r;D=""}if(vte(D)||am.isBuffer(D)){if(w){var j=X?r:w(r,jr.encoder,P,"key",B);return[L(j)+"="+L(w(D,jr.encoder,P,"value",B))]}return[L(r)+"="+L(String(D))]}var Be=[];if(typeof D>"u")return Be;var y;if(n==="comma"&&xs(D))X&&w&&(D=am.maybeMap(D,w)),y=[{value:D.length>0?D.join(",")||null:void 0}];else if(xs(k))y=k;else{var s=Object.keys(D);y=A?s.sort(A):s}var l=v?String(r).replace(/\./g,"%2E"):String(r),u=i&&xs(D)&&D.length===1?l+"[]":l;if(o&&xs(D)&&D.length===0)return u+"[]";for(var f=0;f<y.length;++f){var c=y[f],m=typeof c=="object"&&c&&typeof c.value<"u"?c.value:D[c];if(!(g&&m===null)){var _=R&&v?String(c).replace(/\./g,"%2E"):String(c),d=xs(D)?typeof n=="function"?n(u,_):u:u+(R?"."+_:"["+_+"]");H.set(t,De);var a=$S();a.set(Zv,H),ZS(Be,e(m,d,n,i,o,h,g,v,n==="comma"&&X&&xs(D)?null:w,k,A,R,O,B,L,X,P,a))}}return Be},xte=function(t){if(!t)return jr;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||jr.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=$0.default;if(typeof t.format<"u"){if(!yte.call($0.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=$0.formatters[n],o=jr.filter;(typeof t.filter=="function"||xs(t.filter))&&(o=t.filter);var h;if(t.arrayFormat in YS?h=t.arrayFormat:"indices"in t?h=t.indices?"indices":"repeat":h=jr.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:jr.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:jr.addQueryPrefix,allowDots:g,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:jr.allowEmptyArrays,arrayFormat:h,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:jr.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?jr.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:jr.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:jr.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:jr.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:jr.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:jr.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:jr.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:jr.strictNullHandling}};JS.exports=function(e,t){var r=e,n=xte(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):xs(n.filter)&&(o=n.filter,i=o);var h=[];if(typeof r!="object"||r===null)return"";var g=YS[n.arrayFormat],v=g==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var w=$S(),k=0;k<i.length;++k){var A=i[k],R=r[A];n.skipNulls&&R===null||ZS(h,bte(R,A,g,v,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,w))}var O=h.join(n.delimiter),B=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?B+="utf8=%26%2310003%3B&":B+="utf8=%E2%9C%93&"),O.length>0?B+O:""}});var n8=I((VLe,r8)=>{"use strict";b();var Sl=Yv(),Jv=Object.prototype.hasOwnProperty,e8=Array.isArray,ur={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Sl.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},wte=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},t8=function(e,t,r){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},kte="utf8=%26%2310003%3B",Mte="utf8=%E2%9C%93",Ate=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,h=i.split(r.delimiter,r.throwOnLimitExceeded?o+1:o);if(r.throwOnLimitExceeded&&h.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var g=-1,v,w=r.charset;if(r.charsetSentinel)for(v=0;v<h.length;++v)h[v].indexOf("utf8=")===0&&(h[v]===Mte?w="utf-8":h[v]===kte&&(w="iso-8859-1"),g=v,v=h.length);for(v=0;v<h.length;++v)if(v!==g){var k=h[v],A=k.indexOf("]="),R=A===-1?k.indexOf("="):A+1,O,B;R===-1?(O=r.decoder(k,ur.decoder,w,"key"),B=r.strictNullHandling?null:""):(O=r.decoder(k.slice(0,R),ur.decoder,w,"key"),B=Sl.maybeMap(t8(k.slice(R+1),r,e8(n[O])?n[O].length:0),function(X){return r.decoder(X,ur.decoder,w,"value")})),B&&r.interpretNumericEntities&&w==="iso-8859-1"&&(B=wte(String(B))),k.indexOf("[]=")>-1&&(B=e8(B)?[B]:B);var L=Jv.call(n,O);L&&r.duplicates==="combine"?n[O]=Sl.combine(n[O],B):(!L||r.duplicates==="last")&&(n[O]=B)}return n},Ete=function(e,t,r,n){var i=0;if(e.length>0&&e[e.length-1]==="[]"){var o=e.slice(0,-1).join("");i=Array.isArray(t)&&t[o]?t[o].length:0}for(var h=n?t:t8(t,r,i),g=e.length-1;g>=0;--g){var v,w=e[g];if(w==="[]"&&r.parseArrays)v=r.allowEmptyArrays&&(h===""||r.strictNullHandling&&h===null)?[]:Sl.combine([],h);else{v=r.plainObjects?{__proto__:null}:{};var k=w.charAt(0)==="["&&w.charAt(w.length-1)==="]"?w.slice(1,-1):w,A=r.decodeDotInKeys?k.replace(/%2E/g,"."):k,R=parseInt(A,10);!r.parseArrays&&A===""?v={0:h}:!isNaN(R)&&w!==A&&String(R)===A&&R>=0&&r.parseArrays&&R<=r.arrayLimit?(v=[],v[R]=h):A!=="__proto__"&&(v[A]=h)}h=v}return h},Ste=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,h=/(\[[^[\]]*])/,g=/(\[[^[\]]*])/g,v=n.depth>0&&h.exec(o),w=v?o.slice(0,v.index):o,k=[];if(w){if(!n.plainObjects&&Jv.call(Object.prototype,w)&&!n.allowPrototypes)return;k.push(w)}for(var A=0;n.depth>0&&(v=g.exec(o))!==null&&A<n.depth;){if(A+=1,!n.plainObjects&&Jv.call(Object.prototype,v[1].slice(1,-1))&&!n.allowPrototypes)return;k.push(v[1])}if(v){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");k.push("["+o.slice(v.index)+"]")}return Ete(k,r,n,i)}},Tte=function(t){if(!t)return ur;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset>"u"?ur.charset:t.charset,n=typeof t.duplicates>"u"?ur.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:ur.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:ur.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:ur.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:ur.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:ur.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ur.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:ur.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:ur.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:ur.decoder,delimiter:typeof t.delimiter=="string"||Sl.isRegExp(t.delimiter)?t.delimiter:ur.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:ur.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:ur.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:ur.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:ur.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:ur.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ur.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}};r8.exports=function(e,t){var r=Tte(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?Ate(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),h=0;h<o.length;++h){var g=o[h],v=Ste(g,n[g],r,typeof e=="string");i=Sl.merge(i,v,r)}return r.allowSparse===!0?i:Sl.compact(i)}});var s8=I((XLe,i8)=>{"use strict";b();var Rte=QS(),Ote=n8(),Ite=sm();i8.exports={formats:Ite,parse:Ote,stringify:Rte}});var f8=I(Mu=>{"use strict";b();var Nte=QA();function ki(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Bte=/^([a-z0-9.+-]+:)/i,Cte=/:[0-9]*$/,Ute=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Dte=["<",">",'"',"`"," ","\r",`
5
+ `," "],Pte=["{","}","|","\\","^","`"].concat(Dte),Qv=["'"].concat(Pte),a8=["%","/","?",";","#"].concat(Qv),o8=["/","?","#"],Fte=255,l8=/^[+a-z0-9A-Z_-]{0,63}$/,qte=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Lte={javascript:!0,"javascript:":!0},eb={javascript:!0,"javascript:":!0},ku={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},tb=s8();function Y0(e,t,r){if(e&&typeof e=="object"&&e instanceof ki)return e;var n=new ki;return n.parse(e,t,r),n}ki.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",o=e.split(i),h=/\\/g;o[0]=o[0].replace(h,"/"),e=o.join(i);var g=e;if(g=g.trim(),!r&&e.split("#").length===1){var v=Ute.exec(g);if(v)return this.path=g,this.href=g,this.pathname=v[1],v[2]?(this.search=v[2],t?this.query=tb.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=Bte.exec(g);if(w){w=w[0];var k=w.toLowerCase();this.protocol=k,g=g.substr(w.length)}if(r||w||g.match(/^\/\/[^@/]+@[^@/]+/)){var A=g.substr(0,2)==="//";A&&!(w&&eb[w])&&(g=g.substr(2),this.slashes=!0)}if(!eb[w]&&(A||w&&!ku[w])){for(var R=-1,O=0;O<o8.length;O++){var B=g.indexOf(o8[O]);B!==-1&&(R===-1||B<R)&&(R=B)}var L,X;R===-1?X=g.lastIndexOf("@"):X=g.lastIndexOf("@",R),X!==-1&&(L=g.slice(0,X),g=g.slice(X+1),this.auth=decodeURIComponent(L)),R=-1;for(var O=0;O<a8.length;O++){var B=g.indexOf(a8[O]);B!==-1&&(R===-1||B<R)&&(R=B)}R===-1&&(R=g.length),this.host=g.slice(0,R),g=g.slice(R),this.parseHost(),this.hostname=this.hostname||"";var P=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!P)for(var H=this.hostname.split(/\./),O=0,D=H.length;O<D;O++){var Se=H[O];if(Se&&!Se.match(l8)){for(var De="",Ce=0,Ke=Se.length;Ce<Ke;Ce++)Se.charCodeAt(Ce)>127?De+="x":De+=Se[Ce];if(!De.match(l8)){var j=H.slice(0,O),Be=H.slice(O+1),y=Se.match(qte);y&&(j.push(y[1]),Be.unshift(y[2])),Be.length&&(g="/"+Be.join(".")+g),this.hostname=j.join(".");break}}}this.hostname.length>Fte?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=Nte.toASCII(this.hostname));var s=this.port?":"+this.port:"",l=this.hostname||"";this.host=l+s,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),g[0]!=="/"&&(g="/"+g))}if(!Lte[k])for(var O=0,D=Qv.length;O<D;O++){var u=Qv[O];if(g.indexOf(u)!==-1){var f=encodeURIComponent(u);f===u&&(f=escape(u)),g=g.split(u).join(f)}}var c=g.indexOf("#");c!==-1&&(this.hash=g.substr(c),g=g.slice(0,c));var m=g.indexOf("?");if(m!==-1?(this.search=g.substr(m),this.query=g.substr(m+1),t&&(this.query=tb.parse(this.query)),g=g.slice(0,m)):t&&(this.search="",this.query={}),g&&(this.pathname=g),ku[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var s=this.pathname||"",_=this.search||"";this.path=s+_}return this.href=this.format(),this};function Gte(e){return typeof e=="string"&&(e=Y0(e)),e instanceof ki?e.format():ki.prototype.format.call(e)}ki.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=tb.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var h=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||ku[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),h&&h.charAt(0)!=="?"&&(h="?"+h),r=r.replace(/[?#]/g,function(g){return encodeURIComponent(g)}),h=h.replace("#","%23"),t+i+r+h+n};function Kte(e,t){return Y0(e,!1,!0).resolve(t)}ki.prototype.resolve=function(e){return this.resolveObject(Y0(e,!1,!0)).format()};function Hte(e,t){return e?Y0(e,!1,!0).resolveObject(t):t}ki.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new ki;t.parse(e,!1,!0),e=t}for(var r=new ki,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var h=Object.keys(e),g=0;g<h.length;g++){var v=h[g];v!=="protocol"&&(r[v]=e[v])}return ku[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!ku[e.protocol]){for(var w=Object.keys(e),k=0;k<w.length;k++){var A=w[k];r[A]=e[A]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!eb[e.protocol]){for(var D=(e.pathname||"").split("/");D.length&&!(e.host=D.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),r.pathname=D.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var R=r.pathname||"",O=r.search||"";r.path=R+O}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var B=r.pathname&&r.pathname.charAt(0)==="/",L=e.host||e.pathname&&e.pathname.charAt(0)==="/",X=L||B||r.host&&e.pathname,P=X,H=r.pathname&&r.pathname.split("/")||[],D=e.pathname&&e.pathname.split("/")||[],Se=r.protocol&&!ku[r.protocol];if(Se&&(r.hostname="",r.port=null,r.host&&(H[0]===""?H[0]=r.host:H.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(D[0]===""?D[0]=e.host:D.unshift(e.host)),e.host=null),X=X&&(D[0]===""||H[0]==="")),L)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,H=D;else if(D.length)H||(H=[]),H.pop(),H=H.concat(D),r.search=e.search,r.query=e.query;else if(e.search!=null){if(Se){r.host=H.shift(),r.hostname=r.host;var De=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;De&&(r.auth=De.shift(),r.hostname=De.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!H.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var Ce=H.slice(-1)[0],Ke=(r.host||e.host||H.length>1)&&(Ce==="."||Ce==="..")||Ce==="",j=0,Be=H.length;Be>=0;Be--)Ce=H[Be],Ce==="."?H.splice(Be,1):Ce===".."?(H.splice(Be,1),j++):j&&(H.splice(Be,1),j--);if(!X&&!P)for(;j--;j)H.unshift("..");X&&H[0]!==""&&(!H[0]||H[0].charAt(0)!=="/")&&H.unshift(""),Ke&&H.join("/").substr(-1)!=="/"&&H.push("");var y=H[0]===""||H[0]&&H[0].charAt(0)==="/";if(Se){r.hostname=y?"":H.length?H.shift():"",r.host=r.hostname;var De=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;De&&(r.auth=De.shift(),r.hostname=De.shift(),r.host=r.hostname)}return X=X||r.host&&H.length,X&&!y&&H.unshift(""),H.length>0?r.pathname=H.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r};ki.prototype.parseHost=function(){var e=this.host,t=Cte.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};Mu.parse=Y0;Mu.resolve=Kte;Mu.resolveObject=Hte;Mu.format=Gte;Mu.Url=ki});var g8=I((JLe,y8)=>{b();var c8=9007199254740991,zte="[object Arguments]",jte="[object Function]",Vte="[object GeneratorFunction]",Wte=/^(?:0|[1-9]\d*)$/;function h8(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Xte(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Z0=Object.prototype,J0=Z0.hasOwnProperty,d8=Z0.toString,$te=Z0.propertyIsEnumerable,u8=Math.max;function Yte(e,t){var r=are(e)||sre(e)?Xte(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||J0.call(e,o))&&!(i&&(o=="length"||m8(o,n)))&&r.push(o);return r}function Zte(e,t,r,n){return e===void 0||rb(e,Z0[r])&&!J0.call(n,r)?t:e}function Jte(e,t,r){var n=e[t];(!(J0.call(e,t)&&rb(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Qte(e){if(!ib(e))return ire(e);var t=nre(e),r=[];for(var n in e)n=="constructor"&&(t||!J0.call(e,n))||r.push(n);return r}function p8(e,t){return t=u8(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=u8(r.length-t,0),o=Array(i);++n<i;)o[n]=r[t+n];n=-1;for(var h=Array(t+1);++n<t;)h[n]=r[n];return h[t]=o,h8(e,this,h)}}function ere(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var h=t[i],g=n?n(r[h],e[h],h,r,e):void 0;Jte(r,h,g===void 0?e[h]:g)}return r}function tre(e){return p8(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,h=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,h&&rre(r[0],r[1],h)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var g=r[n];g&&e(t,g,n,o)}return t})}function m8(e,t){return t=t??c8,!!t&&(typeof e=="number"||Wte.test(e))&&e>-1&&e%1==0&&e<t}function rre(e,t,r){if(!ib(r))return!1;var n=typeof t;return(n=="number"?nb(r)&&m8(t,r.length):n=="string"&&t in r)?rb(r[t],e):!1}function nre(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Z0;return e===r}function ire(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}function rb(e,t){return e===t||e!==e&&t!==t}function sre(e){return ore(e)&&J0.call(e,"callee")&&(!$te.call(e,"callee")||d8.call(e)==zte)}var are=Array.isArray;function nb(e){return e!=null&&fre(e.length)&&!lre(e)}function ore(e){return ure(e)&&nb(e)}function lre(e){var t=ib(e)?d8.call(e):"";return t==jte||t==Vte}function fre(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=c8}function ib(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ure(e){return!!e&&typeof e=="object"}var cre=tre(function(e,t,r,n){ere(t,dre(t),e,n)}),hre=p8(function(e){return e.push(void 0,Zte),h8(cre,void 0,e)});function dre(e){return nb(e)?Yte(e,!0):Qte(e)}y8.exports=hre});var b8=I((eGe,v8)=>{b();var pre=9007199254740991,mre="[object Arguments]",yre="[object Function]",gre="[object GeneratorFunction]",sb=Object.prototype,_re=sb.hasOwnProperty,_8=sb.toString,vre=sb.propertyIsEnumerable;function bre(e){return wre(e)&&_re.call(e,"callee")&&(!vre.call(e,"callee")||_8.call(e)==mre)}function xre(e){return e!=null&&Mre(e.length)&&!kre(e)}function wre(e){return Ere(e)&&xre(e)}function kre(e){var t=Are(e)?_8.call(e):"";return t==yre||t==gre}function Mre(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pre}function Are(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ere(e){return!!e&&typeof e=="object"}v8.exports=bre});var x8=I(_o=>{"use strict";b();Object.defineProperty(_o,"__esModule",{value:!0});_o.isArguments=_o.defaults=_o.noop=void 0;var Sre=g8();_o.defaults=Sre;var Tre=b8();_o.isArguments=Tre;function Rre(){}_o.noop=Rre});var k8=I((iGe,w8)=>{b();var Au=1e3,Eu=Au*60,Su=Eu*60,Tl=Su*24,Ore=Tl*7,Ire=Tl*365.25;w8.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Nre(e);if(r==="number"&&isFinite(e))return t.long?Cre(e):Bre(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Nre(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ire;case"weeks":case"week":case"w":return r*Ore;case"days":case"day":case"d":return r*Tl;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Su;case"minutes":case"minute":case"mins":case"min":case"m":return r*Eu;case"seconds":case"second":case"secs":case"sec":case"s":return r*Au;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Bre(e){var t=Math.abs(e);return t>=Tl?Math.round(e/Tl)+"d":t>=Su?Math.round(e/Su)+"h":t>=Eu?Math.round(e/Eu)+"m":t>=Au?Math.round(e/Au)+"s":e+"ms"}function Cre(e){var t=Math.abs(e);return t>=Tl?om(e,t,Tl,"day"):t>=Su?om(e,t,Su,"hour"):t>=Eu?om(e,t,Eu,"minute"):t>=Au?om(e,t,Au,"second"):e+" ms"}function om(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var A8=I((aGe,M8)=>{b();function Ure(e){r.debug=r,r.default=r,r.coerce=v,r.disable=h,r.enable=i,r.enabled=g,r.humanize=k8(),r.destroy=w,Object.keys(e).forEach(k=>{r[k]=e[k]}),r.names=[],r.skips=[],r.formatters={};function t(k){let A=0;for(let R=0;R<k.length;R++)A=(A<<5)-A+k.charCodeAt(R),A|=0;return r.colors[Math.abs(A)%r.colors.length]}r.selectColor=t;function r(k){let A,R=null,O,B;function L(...X){if(!L.enabled)return;let P=L,H=Number(new Date),D=H-(A||H);P.diff=D,P.prev=A,P.curr=H,A=H,X[0]=r.coerce(X[0]),typeof X[0]!="string"&&X.unshift("%O");let Se=0;X[0]=X[0].replace(/%([a-zA-Z%])/g,(Ce,Ke)=>{if(Ce==="%%")return"%";Se++;let j=r.formatters[Ke];if(typeof j=="function"){let Be=X[Se];Ce=j.call(P,Be),X.splice(Se,1),Se--}return Ce}),r.formatArgs.call(P,X),(P.log||r.log).apply(P,X)}return L.namespace=k,L.useColors=r.useColors(),L.color=r.selectColor(k),L.extend=n,L.destroy=r.destroy,Object.defineProperty(L,"enabled",{enumerable:!0,configurable:!1,get:()=>R!==null?R:(O!==r.namespaces&&(O=r.namespaces,B=r.enabled(k)),B),set:X=>{R=X}}),typeof r.init=="function"&&r.init(L),L}function n(k,A){let R=r(this.namespace+(typeof A>"u"?":":A)+k);return R.log=this.log,R}function i(k){r.save(k),r.namespaces=k,r.names=[],r.skips=[];let A=(typeof k=="string"?k:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let R of A)R[0]==="-"?r.skips.push(R.slice(1)):r.names.push(R)}function o(k,A){let R=0,O=0,B=-1,L=0;for(;R<k.length;)if(O<A.length&&(A[O]===k[R]||A[O]==="*"))A[O]==="*"?(B=O,L=R,O++):(R++,O++);else if(B!==-1)O=B+1,L++,R=L;else return!1;for(;O<A.length&&A[O]==="*";)O++;return O===A.length}function h(){let k=[...r.names,...r.skips.map(A=>"-"+A)].join(",");return r.enable(""),k}function g(k){for(let A of r.skips)if(o(k,A))return!1;for(let A of r.names)if(o(k,A))return!0;return!1}function v(k){return k instanceof Error?k.stack||k.message:k}function w(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}M8.exports=Ure});var E8=I((jn,lm)=>{b();jn.formatArgs=Pre;jn.save=Fre;jn.load=qre;jn.useColors=Dre;jn.storage=Lre();jn.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();jn.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"];function Dre(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Pre(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+lm.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}jn.log=console.debug||console.log||(()=>{});function Fre(e){try{e?jn.storage.setItem("debug",e):jn.storage.removeItem("debug")}catch{}}function qre(){let e;try{e=jn.storage.getItem("debug")||jn.storage.getItem("DEBUG")}catch{}return e}function Lre(){try{return localStorage}catch{}}lm.exports=A8()(jn);var{formatters:Gre}=lm.exports;Gre.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var R8=I(ua=>{"use strict";b();Object.defineProperty(ua,"__esModule",{value:!0});ua.genRedactedString=ua.getStringValue=ua.MAX_ARGUMENT_LENGTH=void 0;var Kre=E8(),ab=200;ua.MAX_ARGUMENT_LENGTH=ab;var Hre="ioredis";function S8(e){if(e!==null)switch(typeof e){case"boolean":return;case"number":return;case"object":if(Buffer.isBuffer(e))return e.toString("hex");if(Array.isArray(e))return e.join(",");try{return JSON.stringify(e)}catch{return}case"string":return e}}ua.getStringValue=S8;function T8(e,t){let{length:r}=e;return r<=t?e:e.slice(0,t)+' ... <REDACTED full-length="'+r+'">'}ua.genRedactedString=T8;function zre(e){let t=(0,Kre.default)(`${Hre}:${e}`);function r(...n){if(t.enabled){for(let i=1;i<n.length;i++){let o=S8(n[i]);typeof o=="string"&&o.length>ab&&(n[i]=T8(o,ab))}return t.apply(null,n)}}return Object.defineProperties(r,{namespace:{get(){return t.namespace}},enabled:{get(){return t.enabled}},destroy:{get(){return t.destroy}},log:{get(){return t.log},set(n){t.log=n}}}),r}ua.default=zre});var I8=I(ob=>{"use strict";b();Object.defineProperty(ob,"__esModule",{value:!0});var O8=`-----BEGIN CERTIFICATE-----
6
+ MIIDTzCCAjegAwIBAgIJAKSVpiDswLcwMA0GCSqGSIb3DQEBBQUAMD4xFjAUBgNV
7
+ BAoMDUdhcmFudGlhIERhdGExJDAiBgNVBAMMG1NTTCBDZXJ0aWZpY2F0aW9uIEF1
8
+ dGhvcml0eTAeFw0xMzEwMDExMjE0NTVaFw0yMzA5MjkxMjE0NTVaMD4xFjAUBgNV
9
+ BAoMDUdhcmFudGlhIERhdGExJDAiBgNVBAMMG1NTTCBDZXJ0aWZpY2F0aW9uIEF1
10
+ dGhvcml0eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZqkh/DczWP
11
+ JnxnHLQ7QL0T4B4CDKWBKCcisriGbA6ZePWVNo4hfKQC6JrzfR+081NeD6VcWUiz
12
+ rmd+jtPhIY4c+WVQYm5PKaN6DT1imYdxQw7aqO5j2KUCEh/cznpLxeSHoTxlR34E
13
+ QwF28Wl3eg2vc5ct8LjU3eozWVk3gb7alx9mSA2SgmuX5lEQawl++rSjsBStemY2
14
+ BDwOpAMXIrdEyP/cVn8mkvi/BDs5M5G+09j0gfhyCzRWMQ7Hn71u1eolRxwVxgi3
15
+ TMn+/vTaFSqxKjgck6zuAYjBRPaHe7qLxHNr1So/Mc9nPy+3wHebFwbIcnUojwbp
16
+ 4nctkWbjb2cCAwEAAaNQME4wHQYDVR0OBBYEFP1whtcrydmW3ZJeuSoKZIKjze3w
17
+ MB8GA1UdIwQYMBaAFP1whtcrydmW3ZJeuSoKZIKjze3wMAwGA1UdEwQFMAMBAf8w
18
+ DQYJKoZIhvcNAQEFBQADggEBAG2erXhwRAa7+ZOBs0B6X57Hwyd1R4kfmXcs0rta
19
+ lbPpvgULSiB+TCbf3EbhJnHGyvdCY1tvlffLjdA7HJ0PCOn+YYLBA0pTU/dyvrN6
20
+ Su8NuS5yubnt9mb13nDGYo1rnt0YRfxN+8DM3fXIVr038A30UlPX2Ou1ExFJT0MZ
21
+ uFKY6ZvLdI6/1cbgmguMlAhM+DhKyV6Sr5699LM3zqeI816pZmlREETYkGr91q7k
22
+ BpXJu/dtHaGxg1ZGu6w/PCsYGUcECWENYD4VQPd8N32JjOfu6vEgoEAwfPP+3oGp
23
+ Z4m3ewACcWOAenqflb+cQYC4PsF7qbXDmRaWrbKntOlZ3n0=
24
+ -----END CERTIFICATE-----
25
+ -----BEGIN CERTIFICATE-----
26
+ MIIGMTCCBBmgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwajELMAkGA1UEBhMCVVMx
27
+ CzAJBgNVBAgMAkNBMQswCQYDVQQHDAJDQTESMBAGA1UECgwJUmVkaXNMYWJzMS0w
28
+ KwYDVQQDDCRSZWRpc0xhYnMgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcN
29
+ MTgwMjI1MTUzNzM3WhcNMjgwMjIzMTUzNzM3WjBfMQswCQYDVQQGEwJVUzELMAkG
30
+ A1UECAwCQ0ExEjAQBgNVBAoMCVJlZGlzTGFiczEvMC0GA1UEAwwmUkNQIEludGVy
31
+ bWVkaWF0ZSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUA
32
+ A4ICDwAwggIKAoICAQDf9dqbxc8Bq7Ctq9rWcxrGNKKHivqLAFpPq02yLPx6fsOv
33
+ Tq7GsDChAYBBc4v7Y2Ap9RD5Vs3dIhEANcnolf27QwrG9RMnnvzk8pCvp1o6zSU4
34
+ VuOE1W66/O1/7e2rVxyrnTcP7UgK43zNIXu7+tiAqWsO92uSnuMoGPGpeaUm1jym
35
+ hjWKtkAwDFSqvHY+XL5qDVBEjeUe+WHkYUg40cAXjusAqgm2hZt29c2wnVrxW25W
36
+ P0meNlzHGFdA2AC5z54iRiqj57dTfBTkHoBczQxcyw6hhzxZQ4e5I5zOKjXXEhZN
37
+ r0tA3YC14CTabKRus/JmZieyZzRgEy2oti64tmLYTqSlAD78pRL40VNoaSYetXLw
38
+ hhNsXCHgWaY6d5bLOc/aIQMAV5oLvZQKvuXAF1IDmhPA+bZbpWipp0zagf1P1H3s
39
+ UzsMdn2KM0ejzgotbtNlj5TcrVwpmvE3ktvUAuA+hi3FkVx1US+2Gsp5x4YOzJ7u
40
+ P1WPk6ShF0JgnJH2ILdj6kttTWwFzH17keSFICWDfH/+kM+k7Y1v3EXMQXE7y0T9
41
+ MjvJskz6d/nv+sQhY04xt64xFMGTnZjlJMzfQNi7zWFLTZnDD0lPowq7l3YiPoTT
42
+ t5Xky83lu0KZsZBo0WlWaDG00gLVdtRgVbcuSWxpi5BdLb1kRab66JptWjxwXQID
43
+ AQABo4HrMIHoMDoGA1UdHwQzMDEwL6AtoCuGKWh0dHBzOi8vcmwtY2Etc2VydmVy
44
+ LnJlZGlzbGFicy5jb20vdjEvY3JsMEYGCCsGAQUFBwEBBDowODA2BggrBgEFBQcw
45
+ AYYqaHR0cHM6Ly9ybC1jYS1zZXJ2ZXIucmVkaXNsYWJzLmNvbS92MS9vY3NwMB0G
46
+ A1UdDgQWBBQHar5OKvQUpP2qWt6mckzToeCOHDAfBgNVHSMEGDAWgBQi42wH6hM4
47
+ L2sujEvLM0/u8lRXTzASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIB
48
+ hjANBgkqhkiG9w0BAQsFAAOCAgEAirEn/iTsAKyhd+pu2W3Z5NjCko4NPU0EYUbr
49
+ AP7+POK2rzjIrJO3nFYQ/LLuC7KCXG+2qwan2SAOGmqWst13Y+WHp44Kae0kaChW
50
+ vcYLXXSoGQGC8QuFSNUdaeg3RbMDYFT04dOkqufeWVccoHVxyTSg9eD8LZuHn5jw
51
+ 7QDLiEECBmIJHk5Eeo2TAZrx4Yx6ufSUX5HeVjlAzqwtAqdt99uCJ/EL8bgpWbe+
52
+ XoSpvUv0SEC1I1dCAhCKAvRlIOA6VBcmzg5Am12KzkqTul12/VEFIgzqu0Zy2Jbc
53
+ AUPrYVu/+tOGXQaijy7YgwH8P8n3s7ZeUa1VABJHcxrxYduDDJBLZi+MjheUDaZ1
54
+ jQRHYevI2tlqeSBqdPKG4zBY5lS0GiAlmuze5oENt0P3XboHoZPHiqcK3VECgTVh
55
+ /BkJcuudETSJcZDmQ8YfoKfBzRQNg2sv/hwvUv73Ss51Sco8GEt2lD8uEdib1Q6z
56
+ zDT5lXJowSzOD5ZA9OGDjnSRL+2riNtKWKEqvtEG3VBJoBzu9GoxbAc7wIZLxmli
57
+ iF5a/Zf5X+UXD3s4TMmy6C4QZJpAA2egsSQCnraWO2ULhh7iXMysSkF/nzVfZn43
58
+ iqpaB8++9a37hWq14ZmOv0TJIDz//b2+KC4VFXWQ5W5QC6whsjT+OlG4p5ZYG0jo
59
+ 616pxqo=
60
+ -----END CERTIFICATE-----
61
+ -----BEGIN CERTIFICATE-----
62
+ MIIFujCCA6KgAwIBAgIJAJ1aTT1lu2ScMA0GCSqGSIb3DQEBCwUAMGoxCzAJBgNV
63
+ BAYTAlVTMQswCQYDVQQIDAJDQTELMAkGA1UEBwwCQ0ExEjAQBgNVBAoMCVJlZGlz
64
+ TGFiczEtMCsGA1UEAwwkUmVkaXNMYWJzIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9y
65
+ aXR5MB4XDTE4MDIyNTE1MjA0MloXDTM4MDIyMDE1MjA0MlowajELMAkGA1UEBhMC
66
+ VVMxCzAJBgNVBAgMAkNBMQswCQYDVQQHDAJDQTESMBAGA1UECgwJUmVkaXNMYWJz
67
+ MS0wKwYDVQQDDCRSZWRpc0xhYnMgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkw
68
+ ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDLEjXy7YrbN5Waau5cd6g1
69
+ G5C2tMmeTpZ0duFAPxNU4oE3RHS5gGiok346fUXuUxbZ6QkuzeN2/2Z+RmRcJhQY
70
+ Dm0ZgdG4x59An1TJfnzKKoWj8ISmoHS/TGNBdFzXV7FYNLBuqZouqePI6ReC6Qhl
71
+ pp45huV32Q3a6IDrrvx7Wo5ZczEQeFNbCeCOQYNDdTmCyEkHqc2AGo8eoIlSTutT
72
+ ULOC7R5gzJVTS0e1hesQ7jmqHjbO+VQS1NAL4/5K6cuTEqUl+XhVhPdLWBXJQ5ag
73
+ 54qhX4v+ojLzeU1R/Vc6NjMvVtptWY6JihpgplprN0Yh2556ewcXMeturcKgXfGJ
74
+ xeYzsjzXerEjrVocX5V8BNrg64NlifzTMKNOOv4fVZszq1SIHR8F9ROrqiOdh8iC
75
+ JpUbLpXH9hWCSEO6VRMB2xJoKu3cgl63kF30s77x7wLFMEHiwsQRKxooE1UhgS9K
76
+ 2sO4TlQ1eWUvFvHSTVDQDlGQ6zu4qjbOpb3Q8bQwoK+ai2alkXVR4Ltxe9QlgYK3
77
+ StsnPhruzZGA0wbXdpw0bnM+YdlEm5ffSTpNIfgHeaa7Dtb801FtA71ZlH7A6TaI
78
+ SIQuUST9EKmv7xrJyx0W1pGoPOLw5T029aTjnICSLdtV9bLwysrLhIYG5bnPq78B
79
+ cS+jZHFGzD7PUVGQD01nOQIDAQABo2MwYTAdBgNVHQ4EFgQUIuNsB+oTOC9rLoxL
80
+ yzNP7vJUV08wHwYDVR0jBBgwFoAUIuNsB+oTOC9rLoxLyzNP7vJUV08wDwYDVR0T
81
+ AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwDQYJKoZIhvcNAQELBQADggIBAHfg
82
+ z5pMNUAKdMzK1aS1EDdK9yKz4qicILz5czSLj1mC7HKDRy8cVADUxEICis++CsCu
83
+ rYOvyCVergHQLREcxPq4rc5Nq1uj6J6649NEeh4WazOOjL4ZfQ1jVznMbGy+fJm3
84
+ 3Hoelv6jWRG9iqeJZja7/1s6YC6bWymI/OY1e4wUKeNHAo+Vger7MlHV+RuabaX+
85
+ hSJ8bJAM59NCM7AgMTQpJCncrcdLeceYniGy5Q/qt2b5mJkQVkIdy4TPGGB+AXDJ
86
+ D0q3I/JDRkDUFNFdeW0js7fHdsvCR7O3tJy5zIgEV/o/BCkmJVtuwPYOrw/yOlKj
87
+ TY/U7ATAx9VFF6/vYEOMYSmrZlFX+98L6nJtwDqfLB5VTltqZ4H/KBxGE3IRSt9l
88
+ FXy40U+LnXzhhW+7VBAvyYX8GEXhHkKU8Gqk1xitrqfBXY74xKgyUSTolFSfFVgj
89
+ mcM/X4K45bka+qpkj7Kfv/8D4j6aZekwhN2ly6hhC1SmQ8qjMjpG/mrWOSSHZFmf
90
+ ybu9iD2AYHeIOkshIl6xYIa++Q/00/vs46IzAbQyriOi0XxlSMMVtPx0Q3isp+ji
91
+ n8Mq9eOuxYOEQ4of8twUkUDd528iwGtEdwf0Q01UyT84S62N8AySl1ZBKXJz6W4F
92
+ UhWfa/HQYOAPDdEjNgnVwLI23b8t0TozyCWw7q8h
93
+ -----END CERTIFICATE-----
94
+
95
+ -----BEGIN CERTIFICATE-----
96
+ MIIEjzCCA3egAwIBAgIQe55B/ALCKJDZtdNT8kD6hTANBgkqhkiG9w0BAQsFADBM
97
+ MSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xv
98
+ YmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjAeFw0yMjAxMjYxMjAwMDBaFw0y
99
+ NTAxMjYwMDAwMDBaMFgxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWdu
100
+ IG52LXNhMS4wLAYDVQQDEyVHbG9iYWxTaWduIEF0bGFzIFIzIE9WIFRMUyBDQSAy
101
+ MDIyIFEyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmGmg1LW9b7Lf
102
+ 8zDD83yBDTEkt+FOxKJZqF4veWc5KZsQj9HfnUS2e5nj/E+JImlGPsQuoiosLuXD
103
+ BVBNAMcUFa11buFMGMeEMwiTmCXoXRrXQmH0qjpOfKgYc5gHG3BsRGaRrf7VR4eg
104
+ ofNMG9wUBw4/g/TT7+bQJdA4NfE7Y4d5gEryZiBGB/swaX6Jp/8MF4TgUmOWmalK
105
+ dZCKyb4sPGQFRTtElk67F7vU+wdGcrcOx1tDcIB0ncjLPMnaFicagl+daWGsKqTh
106
+ counQb6QJtYHa91KvCfKWocMxQ7OIbB5UARLPmC4CJ1/f8YFm35ebfzAeULYdGXu
107
+ jE9CLor0OwIDAQABo4IBXzCCAVswDgYDVR0PAQH/BAQDAgGGMB0GA1UdJQQWMBQG
108
+ CCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQW
109
+ BBSH5Zq7a7B/t95GfJWkDBpA8HHqdjAfBgNVHSMEGDAWgBSP8Et/qC5FJK5NUPpj
110
+ move4t0bvDB7BggrBgEFBQcBAQRvMG0wLgYIKwYBBQUHMAGGImh0dHA6Ly9vY3Nw
111
+ Mi5nbG9iYWxzaWduLmNvbS9yb290cjMwOwYIKwYBBQUHMAKGL2h0dHA6Ly9zZWN1
112
+ cmUuZ2xvYmFsc2lnbi5jb20vY2FjZXJ0L3Jvb3QtcjMuY3J0MDYGA1UdHwQvMC0w
113
+ K6ApoCeGJWh0dHA6Ly9jcmwuZ2xvYmFsc2lnbi5jb20vcm9vdC1yMy5jcmwwIQYD
114
+ VR0gBBowGDAIBgZngQwBAgIwDAYKKwYBBAGgMgoBAjANBgkqhkiG9w0BAQsFAAOC
115
+ AQEAKRic9/f+nmhQU/wz04APZLjgG5OgsuUOyUEZjKVhNGDwxGTvKhyXGGAMW2B/
116
+ 3bRi+aElpXwoxu3pL6fkElbX3B0BeS5LoDtxkyiVEBMZ8m+sXbocwlPyxrPbX6mY
117
+ 0rVIvnuUeBH8X0L5IwfpNVvKnBIilTbcebfHyXkPezGwz7E1yhUULjJFm2bt0SdX
118
+ y+4X/WeiiYIv+fTVgZZgl+/2MKIsu/qdBJc3f3TvJ8nz+Eax1zgZmww+RSQWeOj3
119
+ 15Iw6Z5FX+NwzY/Ab+9PosR5UosSeq+9HhtaxZttXG1nVh+avYPGYddWmiMT90J5
120
+ ZgKnO/Fx2hBgTxhOTMYaD312kg==
121
+ -----END CERTIFICATE-----
122
+
123
+ -----BEGIN CERTIFICATE-----
124
+ MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4G
125
+ A1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNp
126
+ Z24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4
127
+ MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEG
128
+ A1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQYJKoZI
129
+ hvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWtiHL8
130
+ RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsT
131
+ gHeMCOFJ0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmm
132
+ KPZpO/bLyCiR5Z2KYVc3rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zd
133
+ QQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjlOCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZ
134
+ XriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2xmmFghcCAwEAAaNCMEAw
135
+ DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFI/wS3+o
136
+ LkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZU
137
+ RUm7lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMp
138
+ jjM5RcOO5LlXbKr8EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK
139
+ 6fBdRoyV3XpYKBovHd7NADdBj+1EbddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQX
140
+ mcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18YIvDQVETI53O9zJrlAGomecs
141
+ Mx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7rkpeDMdmztcpH
142
+ WD9f
143
+ -----END CERTIFICATE-----`,jre={RedisCloudFixed:{ca:O8},RedisCloudFlexible:{ca:O8}};ob.default=jre});var fb=I(at=>{"use strict";b();Object.defineProperty(at,"__esModule",{value:!0});at.noop=at.defaults=at.Debug=at.getPackageMeta=at.zipMap=at.CONNECTION_CLOSED_ERROR_MSG=at.shuffle=at.sample=at.resolveTLSProfile=at.parseURL=at.optimizeErrorStack=at.toArg=at.convertMapToArray=at.convertObjectToArray=at.timeout=at.packObject=at.isInt=at.wrapMultiResult=at.convertBufferToString=void 0;var Vre=Lp("fs"),Wre=Lp("path"),N8=f8(),lb=x8();Object.defineProperty(at,"defaults",{enumerable:!0,get:function(){return lb.defaults}});Object.defineProperty(at,"noop",{enumerable:!0,get:function(){return lb.noop}});var Xre=R8();at.Debug=Xre.default;var $re=I8();function B8(e,t){if(e instanceof Buffer)return e.toString(t);if(Array.isArray(e)){let r=e.length,n=Array(r);for(let i=0;i<r;++i)n[i]=e[i]instanceof Buffer&&t==="utf8"?e[i].toString():B8(e[i],t);return n}return e}at.convertBufferToString=B8;function Yre(e){if(!e)return null;let t=[],r=e.length;for(let n=0;n<r;++n){let i=e[n];i instanceof Error?t.push([i]):t.push([null,i])}return t}at.wrapMultiResult=Yre;function C8(e){let t=parseFloat(e);return!isNaN(e)&&(t|0)===t}at.isInt=C8;function Zre(e){let t={},r=e.length;for(let n=1;n<r;n+=2)t[e[n-1]]=e[n];return t}at.packObject=Zre;function Jre(e,t){let r=null,n=function(){r&&(clearTimeout(r),r=null,e.apply(this,arguments))};return r=setTimeout(n,t,new Error("timeout")),n}at.timeout=Jre;function Qre(e){let t=[],r=Object.keys(e);for(let n=0,i=r.length;n<i;n++)t.push(r[n],e[r[n]]);return t}at.convertObjectToArray=Qre;function ene(e){let t=[],r=0;return e.forEach(function(n,i){t[r]=i,t[r+1]=n,r+=2}),t}at.convertMapToArray=ene;function tne(e){return e===null||typeof e>"u"?"":String(e)}at.toArg=tne;function rne(e,t,r){let n=t.split(`
144
+ `),i="",o;for(o=1;o<n.length&&n[o].indexOf(r)!==-1;++o);for(let h=o;h<n.length;++h)i+=`
145
+ `+n[h];if(e.stack){let h=e.stack.indexOf(`
146
+ `);e.stack=e.stack.slice(0,h)+i}return e}at.optimizeErrorStack=rne;function nne(e){if(C8(e))return{port:e};let t=(0,N8.parse)(e,!0,!0);!t.slashes&&e[0]!=="/"&&(e="//"+e,t=(0,N8.parse)(e,!0,!0));let r=t.query||{},n={};if(t.auth){let i=t.auth.indexOf(":");n.username=i===-1?t.auth:t.auth.slice(0,i),n.password=i===-1?"":t.auth.slice(i+1)}if(t.pathname&&(t.protocol==="redis:"||t.protocol==="rediss:"?t.pathname.length>1&&(n.db=t.pathname.slice(1)):n.path=t.pathname),t.host&&(n.host=t.hostname),t.port&&(n.port=t.port),typeof r.family=="string"){let i=Number.parseInt(r.family,10);Number.isNaN(i)||(n.family=i)}return(0,lb.defaults)(n,r),n}at.parseURL=nne;function ine(e){let t=e?.tls;typeof t=="string"&&(t={profile:t});let r=$re.default[t?.profile];return r&&(t=Object.assign({},r,t),delete t.profile,e=Object.assign({},e,{tls:t})),e}at.resolveTLSProfile=ine;function sne(e,t=0){let r=e.length;return t>=r?null:e[t+Math.floor(Math.random()*(r-t))]}at.sample=sne;function ane(e){let t=e.length;for(;t>0;){let r=Math.floor(Math.random()*t);t--,[e[t],e[r]]=[e[r],e[t]]}return e}at.shuffle=ane;at.CONNECTION_CLOSED_ERROR_MSG="Connection is closed.";function one(e,t){let r=new Map;return e.forEach((n,i)=>{r.set(n,t[i])}),r}at.zipMap=one;var Tu=null;async function lne(){if(Tu)return Tu;try{let e=(0,Wre.resolve)(__dirname,"..","..","package.json"),t=await Vre.promises.readFile(e,"utf8");return Tu={version:JSON.parse(t).version},Tu}catch{return Tu={version:"error-fetching-version"},Tu}}at.getPackageMeta=lne});var fm=I((mGe,fne)=>{fne.exports={list:["FT.ADD","FT.AGGREGATE","FT.ALIASADD","FT.ALIASDEL","FT.ALIASUPDATE","FT.ALTER","FT.CONFIG","FT.CREATE","FT.CURSOR","FT.DEL","FT.DICTADD","FT.DICTDEL","FT.DICTDUMP","FT.DROP","FT.DROPINDEX","FT.EXPLAIN","FT.EXPLAINCLI","FT.GET","FT.INFO","FT.MGET","FT.PROFILE","FT.SEARCH","FT.SPELLCHECK","FT.SUGADD","FT.SUGDEL","FT.SUGGET","FT.SUGLEN","FT.SYNADD","FT.SYNDUMP","FT.SYNUPDATE","FT.TAGVALS","FT._ALIASADDIFNX","FT._ALIASDELIFX","FT._ALTERIFNX","FT._CREATEIFNX","FT._DROPIFX","FT._DROPINDEXIFX","FT._LIST","VADD","VCARD","VDIM","VEMB","VGETATTR","VINFO","VISMEMBER","VLINKS","VRANDMEMBER","VREM","VSETATTR","VSIM","_FT.CONFIG","_FT.DEBUG","_FT.DEBUG|BG_SCAN_CONTROLLER","_FT.DEBUG|CLEAR_PENDING_TOPOLOGY","_FT.DEBUG|DELETE_LOCAL_CURSORS","_FT.DEBUG|DOCIDTOID","_FT.DEBUG|DOCINFO","_FT.DEBUG|DUMP_GEOMIDX","_FT.DEBUG|DUMP_HNSW","_FT.DEBUG|DUMP_INVIDX","_FT.DEBUG|DUMP_NUMIDX","_FT.DEBUG|DUMP_NUMIDXTREE","_FT.DEBUG|DUMP_PHONETIC_HASH","_FT.DEBUG|DUMP_PREFIX_TRIE","_FT.DEBUG|DUMP_SUFFIX_TRIE","_FT.DEBUG|DUMP_TAGIDX","_FT.DEBUG|DUMP_TERMS","_FT.DEBUG|FT.AGGREGATE","_FT.DEBUG|FT.SEARCH","_FT.DEBUG|GC_CLEAN_NUMERIC","_FT.DEBUG|GC_CONTINUE_SCHEDULE","_FT.DEBUG|GC_FORCEBGINVOKE","_FT.DEBUG|GC_FORCEINVOKE","_FT.DEBUG|GC_STOP_SCHEDULE","_FT.DEBUG|GC_WAIT_FOR_JOBS","_FT.DEBUG|GET_HIDE_USER_DATA_FROM_LOGS","_FT.DEBUG|GIT_SHA","_FT.DEBUG|HELP","_FT.DEBUG|IDTODOCID","_FT.DEBUG|INDEXES","_FT.DEBUG|INFO","_FT.DEBUG|INFO_TAGIDX","_FT.DEBUG|INVIDX_SUMMARY","_FT.DEBUG|NUMIDX_SUMMARY","_FT.DEBUG|PAUSE_TOPOLOGY_UPDATER","_FT.DEBUG|RESUME_TOPOLOGY_UPDATER","_FT.DEBUG|SET_MONITOR_EXPIRATION","_FT.DEBUG|SHARD_CONNECTION_STATES","_FT.DEBUG|SPEC_INVIDXES_INFO","_FT.DEBUG|TTL","_FT.DEBUG|TTL_EXPIRE","_FT.DEBUG|TTL_PAUSE","_FT.DEBUG|VECSIM_INFO","_FT.DEBUG|WORKERS","_FT.DEBUG|YIELDS_ON_LOAD_COUNTER","_FT.DEBUG|_FT.AGGREGATE","_FT.DEBUG|_FT.SEARCH","_FT.SAFEADD","acl","acl|cat","acl|deluser","acl|dryrun","acl|genpass","acl|getuser","acl|help","acl|list","acl|load","acl|log","acl|save","acl|setuser","acl|users","acl|whoami","append","asking","auth","bf.add","bf.card","bf.debug","bf.exists","bf.info","bf.insert","bf.loadchunk","bf.madd","bf.mexists","bf.reserve","bf.scandump","bgrewriteaof","bgsave","bitcount","bitfield","bitfield_ro","bitop","bitpos","blmove","blmpop","blpop","brpop","brpoplpush","bzmpop","bzpopmax","bzpopmin","cf.add","cf.addnx","cf.compact","cf.count","cf.debug","cf.del","cf.exists","cf.info","cf.insert","cf.insertnx","cf.loadchunk","cf.mexists","cf.reserve","cf.scandump","client","client|caching","client|getname","client|getredir","client|help","client|id","client|info","client|kill","client|list","client|no-evict","client|no-touch","client|pause","client|reply","client|setinfo","client|setname","client|tracking","client|trackinginfo","client|unblock","client|unpause","cluster","cluster|addslots","cluster|addslotsrange","cluster|bumpepoch","cluster|count-failure-reports","cluster|countkeysinslot","cluster|delslots","cluster|delslotsrange","cluster|failover","cluster|flushslots","cluster|forget","cluster|getkeysinslot","cluster|help","cluster|info","cluster|keyslot","cluster|links","cluster|meet","cluster|myid","cluster|myshardid","cluster|nodes","cluster|replicas","cluster|replicate","cluster|reset","cluster|saveconfig","cluster|set-config-epoch","cluster|setslot","cluster|shards","cluster|slaves","cluster|slot-stats","cluster|slots","cms.incrby","cms.info","cms.initbydim","cms.initbyprob","cms.merge","cms.query","command","command|count","command|docs","command|getkeys","command|getkeysandflags","command|help","command|info","command|list","config","config|get","config|help","config|resetstat","config|rewrite","config|set","copy","dbsize","debug","decr","decrby","del","discard","dump","echo","eval","eval_ro","evalsha","evalsha_ro","exec","exists","expire","expireat","expiretime","failover","fcall","fcall_ro","flushall","flushdb","function","function|delete","function|dump","function|flush","function|help","function|kill","function|list","function|load","function|restore","function|stats","geoadd","geodist","geohash","geopos","georadius","georadius_ro","georadiusbymember","georadiusbymember_ro","geosearch","geosearchstore","get","getbit","getdel","getex","getrange","getset","hdel","hello","hexists","hexpire","hexpireat","hexpiretime","hget","hgetall","hgetdel","hgetex","hincrby","hincrbyfloat","hkeys","hlen","hmget","hmset","hpersist","hpexpire","hpexpireat","hpexpiretime","hpttl","hrandfield","hscan","hset","hsetex","hsetnx","hstrlen","httl","hvals","incr","incrby","incrbyfloat","info","json.arrappend","json.arrindex","json.arrinsert","json.arrlen","json.arrpop","json.arrtrim","json.clear","json.debug","json.del","json.forget","json.get","json.merge","json.mget","json.mset","json.numincrby","json.nummultby","json.numpowby","json.objkeys","json.objlen","json.resp","json.set","json.strappend","json.strlen","json.toggle","json.type","keys","lastsave","latency","latency|doctor","latency|graph","latency|help","latency|histogram","latency|history","latency|latest","latency|reset","lcs","lindex","linsert","llen","lmove","lmpop","lolwut","lpop","lpos","lpush","lpushx","lrange","lrem","lset","ltrim","memory","memory|doctor","memory|help","memory|malloc-stats","memory|purge","memory|stats","memory|usage","mget","migrate","module","module|help","module|list","module|load","module|loadex","module|unload","monitor","move","mset","msetnx","multi","object","object|encoding","object|freq","object|help","object|idletime","object|refcount","persist","pexpire","pexpireat","pexpiretime","pfadd","pfcount","pfdebug","pfmerge","pfselftest","ping","psetex","psubscribe","psync","pttl","publish","pubsub","pubsub|channels","pubsub|help","pubsub|numpat","pubsub|numsub","pubsub|shardchannels","pubsub|shardnumsub","punsubscribe","quit","randomkey","readonly","readwrite","rename","renamenx","replconf","replicaof","reset","restore","restore-asking","role","rpop","rpoplpush","rpush","rpushx","sadd","save","scan","scard","script","script|debug","script|exists","script|flush","script|help","script|kill","script|load","sdiff","sdiffstore","search.CLUSTERINFO","search.CLUSTERREFRESH","search.CLUSTERSET","select","set","setbit","setex","setnx","setrange","shutdown","sinter","sintercard","sinterstore","sismember","slaveof","slowlog","slowlog|get","slowlog|help","slowlog|len","slowlog|reset","smembers","smismember","smove","sort","sort_ro","spop","spublish","srandmember","srem","sscan","ssubscribe","strlen","subscribe","substr","sunion","sunionstore","sunsubscribe","swapdb","sync","tdigest.add","tdigest.byrank","tdigest.byrevrank","tdigest.cdf","tdigest.create","tdigest.info","tdigest.max","tdigest.merge","tdigest.min","tdigest.quantile","tdigest.rank","tdigest.reset","tdigest.revrank","tdigest.trimmed_mean","time","timeseries.CLUSTERSET","timeseries.REFRESHCLUSTER","topk.add","topk.count","topk.incrby","topk.info","topk.list","topk.query","topk.reserve","touch","ts.add","ts.alter","ts.create","ts.createrule","ts.decrby","ts.del","ts.deleterule","ts.get","ts.incrby","ts.info","ts.madd","ts.mget","ts.mrange","ts.mrevrange","ts.queryindex","ts.range","ts.revrange","ttl","type","unlink","unsubscribe","unwatch","wait","waitaof","watch","xack","xackdel","xadd","xautoclaim","xclaim","xdel","xdelex","xgroup","xgroup|create","xgroup|createconsumer","xgroup|delconsumer","xgroup|destroy","xgroup|help","xgroup|setid","xinfo","xinfo|consumers","xinfo|groups","xinfo|help","xinfo|stream","xlen","xpending","xrange","xread","xreadgroup","xrevrange","xsetid","xtrim","zadd","zcard","zcount","zdiff","zdiffstore","zincrby","zinter","zintercard","zinterstore","zlexcount","zmpop","zmscore","zpopmax","zpopmin","zrandmember","zrange","zrangebylex","zrangebyscore","zrangestore","zrank","zrem","zremrangebylex","zremrangebyrank","zremrangebyscore","zrevrange","zrevrangebylex","zrevrangebyscore","zrevrank","zscan","zscore","zunion","zunionstore"],count:407}});var U8=I(vo=>{"use strict";b();Object.defineProperty(vo,"__esModule",{value:!0});vo.tryCatch=vo.errorObj=void 0;vo.errorObj={e:{}};var ub;function une(e,t){try{let r=ub;return ub=null,r.apply(this,arguments)}catch(r){return vo.errorObj.e=r,vo.errorObj}}function cne(e){return ub=e,une}vo.tryCatch=cne});var hb=I(cb=>{"use strict";b();Object.defineProperty(cb,"__esModule",{value:!0});var Ru=U8();function D8(e){setTimeout(function(){throw e},0)}function hne(e,t,r){return typeof t=="function"&&e.then(n=>{let i;r!==void 0&&Object(r).spread&&Array.isArray(n)?i=(0,Ru.tryCatch)(t).apply(void 0,[null].concat(n)):i=n===void 0?(0,Ru.tryCatch)(t)(null):(0,Ru.tryCatch)(t)(null,n),i===Ru.errorObj&&D8(i.e)},n=>{if(!n){let o=new Error(n+"");Object.assign(o,{cause:n}),n=o}let i=(0,Ru.tryCatch)(t)(n);i===Ru.errorObj&&D8(i.e)}),e}cb.default=hne});var P8=I((bGe,dne)=>{dne.exports={acl:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},append:{arity:3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},asking:{arity:1,flags:["fast"],keyStart:0,keyStop:0,step:0},auth:{arity:-2,flags:["noscript","loading","stale","fast","no_auth","allow_busy"],keyStart:0,keyStop:0,step:0},bgrewriteaof:{arity:1,flags:["admin","noscript","no_async_loading"],keyStart:0,keyStop:0,step:0},bgsave:{arity:-1,flags:["admin","noscript","no_async_loading"],keyStart:0,keyStop:0,step:0},bitcount:{arity:-2,flags:["readonly"],keyStart:1,keyStop:1,step:1},bitfield:{arity:-2,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},bitfield_ro:{arity:-2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},bitop:{arity:-4,flags:["write","denyoom"],keyStart:2,keyStop:-1,step:1},bitpos:{arity:-3,flags:["readonly"],keyStart:1,keyStop:1,step:1},blmove:{arity:6,flags:["write","denyoom","noscript","blocking"],keyStart:1,keyStop:2,step:1},blmpop:{arity:-5,flags:["write","blocking","movablekeys"],keyStart:0,keyStop:0,step:0},blpop:{arity:-3,flags:["write","noscript","blocking"],keyStart:1,keyStop:-2,step:1},brpop:{arity:-3,flags:["write","noscript","blocking"],keyStart:1,keyStop:-2,step:1},brpoplpush:{arity:4,flags:["write","denyoom","noscript","blocking"],keyStart:1,keyStop:2,step:1},bzmpop:{arity:-5,flags:["write","blocking","movablekeys"],keyStart:0,keyStop:0,step:0},bzpopmax:{arity:-3,flags:["write","noscript","blocking","fast"],keyStart:1,keyStop:-2,step:1},bzpopmin:{arity:-3,flags:["write","noscript","blocking","fast"],keyStart:1,keyStop:-2,step:1},client:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},cluster:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},command:{arity:-1,flags:["loading","stale"],keyStart:0,keyStop:0,step:0},config:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},copy:{arity:-3,flags:["write","denyoom"],keyStart:1,keyStop:2,step:1},dbsize:{arity:1,flags:["readonly","fast"],keyStart:0,keyStop:0,step:0},debug:{arity:-2,flags:["admin","noscript","loading","stale"],keyStart:0,keyStop:0,step:0},decr:{arity:2,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},decrby:{arity:3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},del:{arity:-2,flags:["write"],keyStart:1,keyStop:-1,step:1},discard:{arity:1,flags:["noscript","loading","stale","fast","allow_busy"],keyStart:0,keyStop:0,step:0},dump:{arity:2,flags:["readonly"],keyStart:1,keyStop:1,step:1},echo:{arity:2,flags:["fast"],keyStart:0,keyStop:0,step:0},eval:{arity:-3,flags:["noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],keyStart:0,keyStop:0,step:0},eval_ro:{arity:-3,flags:["readonly","noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],keyStart:0,keyStop:0,step:0},evalsha:{arity:-3,flags:["noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],keyStart:0,keyStop:0,step:0},evalsha_ro:{arity:-3,flags:["readonly","noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],keyStart:0,keyStop:0,step:0},exec:{arity:1,flags:["noscript","loading","stale","skip_slowlog"],keyStart:0,keyStop:0,step:0},exists:{arity:-2,flags:["readonly","fast"],keyStart:1,keyStop:-1,step:1},expire:{arity:-3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},expireat:{arity:-3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},expiretime:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},failover:{arity:-1,flags:["admin","noscript","stale"],keyStart:0,keyStop:0,step:0},fcall:{arity:-3,flags:["noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],keyStart:0,keyStop:0,step:0},fcall_ro:{arity:-3,flags:["readonly","noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],keyStart:0,keyStop:0,step:0},flushall:{arity:-1,flags:["write"],keyStart:0,keyStop:0,step:0},flushdb:{arity:-1,flags:["write"],keyStart:0,keyStop:0,step:0},function:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},geoadd:{arity:-5,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},geodist:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},geohash:{arity:-2,flags:["readonly"],keyStart:1,keyStop:1,step:1},geopos:{arity:-2,flags:["readonly"],keyStart:1,keyStop:1,step:1},georadius:{arity:-6,flags:["write","denyoom","movablekeys"],keyStart:1,keyStop:1,step:1},georadius_ro:{arity:-6,flags:["readonly"],keyStart:1,keyStop:1,step:1},georadiusbymember:{arity:-5,flags:["write","denyoom","movablekeys"],keyStart:1,keyStop:1,step:1},georadiusbymember_ro:{arity:-5,flags:["readonly"],keyStart:1,keyStop:1,step:1},geosearch:{arity:-7,flags:["readonly"],keyStart:1,keyStop:1,step:1},geosearchstore:{arity:-8,flags:["write","denyoom"],keyStart:1,keyStop:2,step:1},get:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},getbit:{arity:3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},getdel:{arity:2,flags:["write","fast"],keyStart:1,keyStop:1,step:1},getex:{arity:-2,flags:["write","fast"],keyStart:1,keyStop:1,step:1},getrange:{arity:4,flags:["readonly"],keyStart:1,keyStop:1,step:1},getset:{arity:3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},hdel:{arity:-3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},hello:{arity:-1,flags:["noscript","loading","stale","fast","no_auth","allow_busy"],keyStart:0,keyStop:0,step:0},hexists:{arity:3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},hexpire:{arity:-6,flags:["write","fast"],keyStart:1,keyStop:1,step:1},hpexpire:{arity:-6,flags:["write","fast"],keyStart:1,keyStop:1,step:1},hget:{arity:3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},hgetall:{arity:2,flags:["readonly"],keyStart:1,keyStop:1,step:1},hincrby:{arity:4,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},hincrbyfloat:{arity:4,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},hkeys:{arity:2,flags:["readonly"],keyStart:1,keyStop:1,step:1},hlen:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},hmget:{arity:-3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},hmset:{arity:-4,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},hrandfield:{arity:-2,flags:["readonly"],keyStart:1,keyStop:1,step:1},hscan:{arity:-3,flags:["readonly"],keyStart:1,keyStop:1,step:1},hset:{arity:-4,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},hsetnx:{arity:4,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},hstrlen:{arity:3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},hvals:{arity:2,flags:["readonly"],keyStart:1,keyStop:1,step:1},incr:{arity:2,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},incrby:{arity:3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},incrbyfloat:{arity:3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},info:{arity:-1,flags:["loading","stale"],keyStart:0,keyStop:0,step:0},keys:{arity:2,flags:["readonly"],keyStart:0,keyStop:0,step:0},lastsave:{arity:1,flags:["loading","stale","fast"],keyStart:0,keyStop:0,step:0},latency:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},lcs:{arity:-3,flags:["readonly"],keyStart:1,keyStop:2,step:1},lindex:{arity:3,flags:["readonly"],keyStart:1,keyStop:1,step:1},linsert:{arity:5,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},llen:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},lmove:{arity:5,flags:["write","denyoom"],keyStart:1,keyStop:2,step:1},lmpop:{arity:-4,flags:["write","movablekeys"],keyStart:0,keyStop:0,step:0},lolwut:{arity:-1,flags:["readonly","fast"],keyStart:0,keyStop:0,step:0},lpop:{arity:-2,flags:["write","fast"],keyStart:1,keyStop:1,step:1},lpos:{arity:-3,flags:["readonly"],keyStart:1,keyStop:1,step:1},lpush:{arity:-3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},lpushx:{arity:-3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},lrange:{arity:4,flags:["readonly"],keyStart:1,keyStop:1,step:1},lrem:{arity:4,flags:["write"],keyStart:1,keyStop:1,step:1},lset:{arity:4,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},ltrim:{arity:4,flags:["write"],keyStart:1,keyStop:1,step:1},memory:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},mget:{arity:-2,flags:["readonly","fast"],keyStart:1,keyStop:-1,step:1},migrate:{arity:-6,flags:["write","movablekeys"],keyStart:3,keyStop:3,step:1},module:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},monitor:{arity:1,flags:["admin","noscript","loading","stale"],keyStart:0,keyStop:0,step:0},move:{arity:3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},mset:{arity:-3,flags:["write","denyoom"],keyStart:1,keyStop:-1,step:2},msetnx:{arity:-3,flags:["write","denyoom"],keyStart:1,keyStop:-1,step:2},multi:{arity:1,flags:["noscript","loading","stale","fast","allow_busy"],keyStart:0,keyStop:0,step:0},object:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},persist:{arity:2,flags:["write","fast"],keyStart:1,keyStop:1,step:1},pexpire:{arity:-3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},pexpireat:{arity:-3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},pexpiretime:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},pfadd:{arity:-2,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},pfcount:{arity:-2,flags:["readonly"],keyStart:1,keyStop:-1,step:1},pfdebug:{arity:3,flags:["write","denyoom","admin"],keyStart:2,keyStop:2,step:1},pfmerge:{arity:-2,flags:["write","denyoom"],keyStart:1,keyStop:-1,step:1},pfselftest:{arity:1,flags:["admin"],keyStart:0,keyStop:0,step:0},ping:{arity:-1,flags:["fast"],keyStart:0,keyStop:0,step:0},psetex:{arity:4,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},psubscribe:{arity:-2,flags:["pubsub","noscript","loading","stale"],keyStart:0,keyStop:0,step:0},psync:{arity:-3,flags:["admin","noscript","no_async_loading","no_multi"],keyStart:0,keyStop:0,step:0},pttl:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},publish:{arity:3,flags:["pubsub","loading","stale","fast"],keyStart:0,keyStop:0,step:0},pubsub:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},punsubscribe:{arity:-1,flags:["pubsub","noscript","loading","stale"],keyStart:0,keyStop:0,step:0},quit:{arity:-1,flags:["noscript","loading","stale","fast","no_auth","allow_busy"],keyStart:0,keyStop:0,step:0},randomkey:{arity:1,flags:["readonly"],keyStart:0,keyStop:0,step:0},readonly:{arity:1,flags:["loading","stale","fast"],keyStart:0,keyStop:0,step:0},readwrite:{arity:1,flags:["loading","stale","fast"],keyStart:0,keyStop:0,step:0},rename:{arity:3,flags:["write"],keyStart:1,keyStop:2,step:1},renamenx:{arity:3,flags:["write","fast"],keyStart:1,keyStop:2,step:1},replconf:{arity:-1,flags:["admin","noscript","loading","stale","allow_busy"],keyStart:0,keyStop:0,step:0},replicaof:{arity:3,flags:["admin","noscript","stale","no_async_loading"],keyStart:0,keyStop:0,step:0},reset:{arity:1,flags:["noscript","loading","stale","fast","no_auth","allow_busy"],keyStart:0,keyStop:0,step:0},restore:{arity:-4,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},"restore-asking":{arity:-4,flags:["write","denyoom","asking"],keyStart:1,keyStop:1,step:1},role:{arity:1,flags:["noscript","loading","stale","fast"],keyStart:0,keyStop:0,step:0},rpop:{arity:-2,flags:["write","fast"],keyStart:1,keyStop:1,step:1},rpoplpush:{arity:3,flags:["write","denyoom"],keyStart:1,keyStop:2,step:1},rpush:{arity:-3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},rpushx:{arity:-3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},sadd:{arity:-3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},save:{arity:1,flags:["admin","noscript","no_async_loading","no_multi"],keyStart:0,keyStop:0,step:0},scan:{arity:-2,flags:["readonly"],keyStart:0,keyStop:0,step:0},scard:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},script:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},sdiff:{arity:-2,flags:["readonly"],keyStart:1,keyStop:-1,step:1},sdiffstore:{arity:-3,flags:["write","denyoom"],keyStart:1,keyStop:-1,step:1},select:{arity:2,flags:["loading","stale","fast"],keyStart:0,keyStop:0,step:0},set:{arity:-3,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},setbit:{arity:4,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},setex:{arity:4,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},setnx:{arity:3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},setrange:{arity:4,flags:["write","denyoom"],keyStart:1,keyStop:1,step:1},shutdown:{arity:-1,flags:["admin","noscript","loading","stale","no_multi","allow_busy"],keyStart:0,keyStop:0,step:0},sinter:{arity:-2,flags:["readonly"],keyStart:1,keyStop:-1,step:1},sintercard:{arity:-3,flags:["readonly","movablekeys"],keyStart:0,keyStop:0,step:0},sinterstore:{arity:-3,flags:["write","denyoom"],keyStart:1,keyStop:-1,step:1},sismember:{arity:3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},slaveof:{arity:3,flags:["admin","noscript","stale","no_async_loading"],keyStart:0,keyStop:0,step:0},slowlog:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},smembers:{arity:2,flags:["readonly"],keyStart:1,keyStop:1,step:1},smismember:{arity:-3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},smove:{arity:4,flags:["write","fast"],keyStart:1,keyStop:2,step:1},sort:{arity:-2,flags:["write","denyoom","movablekeys"],keyStart:1,keyStop:1,step:1},sort_ro:{arity:-2,flags:["readonly","movablekeys"],keyStart:1,keyStop:1,step:1},spop:{arity:-2,flags:["write","fast"],keyStart:1,keyStop:1,step:1},spublish:{arity:3,flags:["pubsub","loading","stale","fast"],keyStart:1,keyStop:1,step:1},srandmember:{arity:-2,flags:["readonly"],keyStart:1,keyStop:1,step:1},srem:{arity:-3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},sscan:{arity:-3,flags:["readonly"],keyStart:1,keyStop:1,step:1},ssubscribe:{arity:-2,flags:["pubsub","noscript","loading","stale"],keyStart:1,keyStop:-1,step:1},strlen:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},subscribe:{arity:-2,flags:["pubsub","noscript","loading","stale"],keyStart:0,keyStop:0,step:0},substr:{arity:4,flags:["readonly"],keyStart:1,keyStop:1,step:1},sunion:{arity:-2,flags:["readonly"],keyStart:1,keyStop:-1,step:1},sunionstore:{arity:-3,flags:["write","denyoom"],keyStart:1,keyStop:-1,step:1},sunsubscribe:{arity:-1,flags:["pubsub","noscript","loading","stale"],keyStart:1,keyStop:-1,step:1},swapdb:{arity:3,flags:["write","fast"],keyStart:0,keyStop:0,step:0},sync:{arity:1,flags:["admin","noscript","no_async_loading","no_multi"],keyStart:0,keyStop:0,step:0},time:{arity:1,flags:["loading","stale","fast"],keyStart:0,keyStop:0,step:0},touch:{arity:-2,flags:["readonly","fast"],keyStart:1,keyStop:-1,step:1},ttl:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},type:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},unlink:{arity:-2,flags:["write","fast"],keyStart:1,keyStop:-1,step:1},unsubscribe:{arity:-1,flags:["pubsub","noscript","loading","stale"],keyStart:0,keyStop:0,step:0},unwatch:{arity:1,flags:["noscript","loading","stale","fast","allow_busy"],keyStart:0,keyStop:0,step:0},wait:{arity:3,flags:["noscript"],keyStart:0,keyStop:0,step:0},watch:{arity:-2,flags:["noscript","loading","stale","fast","allow_busy"],keyStart:1,keyStop:-1,step:1},xack:{arity:-4,flags:["write","fast"],keyStart:1,keyStop:1,step:1},xadd:{arity:-5,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},xautoclaim:{arity:-6,flags:["write","fast"],keyStart:1,keyStop:1,step:1},xclaim:{arity:-6,flags:["write","fast"],keyStart:1,keyStop:1,step:1},xdel:{arity:-3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},xdelex:{arity:-5,flags:["write","fast"],keyStart:1,keyStop:1,step:1},xgroup:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},xinfo:{arity:-2,flags:[],keyStart:0,keyStop:0,step:0},xlen:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},xpending:{arity:-3,flags:["readonly"],keyStart:1,keyStop:1,step:1},xrange:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},xread:{arity:-4,flags:["readonly","blocking","movablekeys"],keyStart:0,keyStop:0,step:0},xreadgroup:{arity:-7,flags:["write","blocking","movablekeys"],keyStart:0,keyStop:0,step:0},xrevrange:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},xsetid:{arity:-3,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},xtrim:{arity:-4,flags:["write"],keyStart:1,keyStop:1,step:1},zadd:{arity:-4,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},zcard:{arity:2,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},zcount:{arity:4,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},zdiff:{arity:-3,flags:["readonly","movablekeys"],keyStart:0,keyStop:0,step:0},zdiffstore:{arity:-4,flags:["write","denyoom","movablekeys"],keyStart:1,keyStop:1,step:1},zincrby:{arity:4,flags:["write","denyoom","fast"],keyStart:1,keyStop:1,step:1},zinter:{arity:-3,flags:["readonly","movablekeys"],keyStart:0,keyStop:0,step:0},zintercard:{arity:-3,flags:["readonly","movablekeys"],keyStart:0,keyStop:0,step:0},zinterstore:{arity:-4,flags:["write","denyoom","movablekeys"],keyStart:1,keyStop:1,step:1},zlexcount:{arity:4,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},zmpop:{arity:-4,flags:["write","movablekeys"],keyStart:0,keyStop:0,step:0},zmscore:{arity:-3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},zpopmax:{arity:-2,flags:["write","fast"],keyStart:1,keyStop:1,step:1},zpopmin:{arity:-2,flags:["write","fast"],keyStart:1,keyStop:1,step:1},zrandmember:{arity:-2,flags:["readonly"],keyStart:1,keyStop:1,step:1},zrange:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},zrangebylex:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},zrangebyscore:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},zrangestore:{arity:-5,flags:["write","denyoom"],keyStart:1,keyStop:2,step:1},zrank:{arity:3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},zrem:{arity:-3,flags:["write","fast"],keyStart:1,keyStop:1,step:1},zremrangebylex:{arity:4,flags:["write"],keyStart:1,keyStop:1,step:1},zremrangebyrank:{arity:4,flags:["write"],keyStart:1,keyStop:1,step:1},zremrangebyscore:{arity:4,flags:["write"],keyStart:1,keyStop:1,step:1},zrevrange:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},zrevrangebylex:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},zrevrangebyscore:{arity:-4,flags:["readonly"],keyStart:1,keyStop:1,step:1},zrevrank:{arity:3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},zscan:{arity:-3,flags:["readonly"],keyStart:1,keyStop:1,step:1},zscore:{arity:3,flags:["readonly","fast"],keyStart:1,keyStop:1,step:1},zunion:{arity:-3,flags:["readonly","movablekeys"],keyStart:0,keyStop:0,step:0},zunionstore:{arity:-4,flags:["write","denyoom","movablekeys"],keyStart:1,keyStop:1,step:1}}});var pb=I(si=>{"use strict";b();var pne=si&&si.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(si,"__esModule",{value:!0});si.getKeyIndexes=si.hasFlag=si.exists=si.list=void 0;var um=pne(P8());si.list=Object.keys(um.default);var db={};si.list.forEach(e=>{db[e]=um.default[e].flags.reduce(function(t,r){return t[r]=!0,t},{})});function mne(e){return!!um.default[e]}si.exists=mne;function yne(e,t){if(!db[e])throw new Error("Unknown command "+e);return!!db[e][t]}si.hasFlag=yne;function gne(e,t,r){let n=um.default[e];if(!n)throw new Error("Unknown command "+e);if(!Array.isArray(t))throw new Error("Expect args to be an array");let i=[],o=!!(r&&r.parseExternalKey),h=(v,w)=>{let k=[],A=Number(v[w]);for(let R=0;R<A;R++)k.push(R+w+1);return k},g=(v,w,k)=>{for(let A=w;A<v.length-1;A+=1)if(String(v[A]).toLowerCase()===k.toLowerCase())return A+1;return null};switch(e){case"zunionstore":case"zinterstore":case"zdiffstore":i.push(0,...h(t,1));break;case"eval":case"evalsha":case"eval_ro":case"evalsha_ro":case"fcall":case"fcall_ro":case"blmpop":case"bzmpop":i.push(...h(t,1));break;case"sintercard":case"lmpop":case"zunion":case"zinter":case"zmpop":case"zintercard":case"zdiff":{i.push(...h(t,0));break}case"georadius":{i.push(0);let v=g(t,5,"STORE");v&&i.push(v);let w=g(t,5,"STOREDIST");w&&i.push(w);break}case"georadiusbymember":{i.push(0);let v=g(t,4,"STORE");v&&i.push(v);let w=g(t,4,"STOREDIST");w&&i.push(w);break}case"sort":case"sort_ro":i.push(0);for(let v=1;v<t.length-1;v++){let w=t[v];if(typeof w!="string")continue;let k=w.toUpperCase();k==="GET"?(v+=1,w=t[v],w!=="#"&&(o?i.push([v,F8(w)]):i.push(v))):k==="BY"?(v+=1,o?i.push([v,F8(t[v])]):i.push(v)):k==="STORE"&&(v+=1,i.push(v))}break;case"migrate":if(t[2]==="")for(let v=5;v<t.length-1;v++){let w=t[v];if(typeof w=="string"&&w.toUpperCase()==="KEYS"){for(let k=v+1;k<t.length;k++)i.push(k);break}}else i.push(2);break;case"xreadgroup":case"xread":for(let v=e==="xread"?0:3;v<t.length-1;v++)if(String(t[v]).toUpperCase()==="STREAMS"){for(let w=v+1;w<=v+(t.length-1-v)/2;w++)i.push(w);break}break;default:if(n.step>0){let v=n.keyStart-1,w=n.keyStop>0?n.keyStop:t.length+n.keyStop+1;for(let k=v;k<w;k+=n.step)i.push(k)}break}return i}si.getKeyIndexes=gne;function F8(e){typeof e!="string"&&(e=String(e));let t=e.indexOf("->");return t===-1?e.length:t}});var G8=I((kGe,mb)=>{b();var q8=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920],_ne=function(t){for(var r,n=0,i=0,o=[],h=t.length;n<h;n++)r=t.charCodeAt(n),r<128?o[i++]=r:r<2048?(o[i++]=r>>6|192,o[i++]=r&63|128):(r&64512)===55296&&n+1<t.length&&(t.charCodeAt(n+1)&64512)===56320?(r=65536+((r&1023)<<10)+(t.charCodeAt(++n)&1023),o[i++]=r>>18|240,o[i++]=r>>12&63|128,o[i++]=r>>6&63|128,o[i++]=r&63|128):(o[i++]=r>>12|224,o[i++]=r>>6&63|128,o[i++]=r&63|128);return o},L8=mb.exports=function(t){for(var r,n=0,i=-1,o=0,h=0,g=typeof t=="string"?_ne(t):t,v=g.length;n<v;){if(r=g[n++],i===-1)r===123&&(i=n);else if(r!==125)h=q8[(r^h>>8)&255]^h<<8;else if(n-1!==i)return h&16383;o=q8[(r^o>>8)&255]^o<<8}return o&16383};mb.exports.generateMulti=function(t){for(var r=1,n=t.length,i=L8(t[0]);r<n;)if(L8(t[r++])!==i)return-1;return i}});var K8=I(bo=>{"use strict";b();Object.defineProperty(bo,"__esModule",{value:!0});bo.tryCatch=bo.errorObj=void 0;bo.errorObj={e:{}};var yb;function vne(e,t){try{let r=yb;return yb=null,r.apply(this,arguments)}catch(r){return bo.errorObj.e=r,bo.errorObj}}function bne(e){return yb=e,vne}bo.tryCatch=bne});var z8=I(gb=>{"use strict";b();Object.defineProperty(gb,"__esModule",{value:!0});var Ou=K8();function H8(e){setTimeout(function(){throw e},0)}function xne(e,t,r){return typeof t=="function"&&e.then(n=>{let i;r!==void 0&&Object(r).spread&&Array.isArray(n)?i=Ou.tryCatch(t).apply(void 0,[null].concat(n)):i=n===void 0?Ou.tryCatch(t)(null):Ou.tryCatch(t)(null,n),i===Ou.errorObj&&H8(i.e)},n=>{if(!n){let o=new Error(n+"");Object.assign(o,{cause:n}),n=o}let i=Ou.tryCatch(t)(n);i===Ou.errorObj&&H8(i.e)}),e}gb.default=xne});var X8=I(vb=>{"use strict";b();Object.defineProperty(vb,"__esModule",{value:!0});var j8=pb(),wne=G8(),kne=z8(),Rl=fb(),ws=class e{constructor(t,r=[],n={},i){if(this.name=t,this.inTransaction=!1,this.isResolved=!1,this.transformed=!1,this.replyEncoding=n.replyEncoding,this.errorStack=n.errorStack,this.args=r.flat(),this.callback=i,this.initPromise(),n.keyPrefix){let o=n.keyPrefix instanceof Buffer,h=o?n.keyPrefix:null;this._iterateKeys(g=>g instanceof Buffer?(h===null&&(h=Buffer.from(n.keyPrefix)),Buffer.concat([h,g])):o?Buffer.concat([n.keyPrefix,Buffer.from(String(g))]):n.keyPrefix+g)}n.readOnly&&(this.isReadOnly=!0)}static checkFlag(t,r){return!!this.getFlagMap()[t][r]}static setArgumentTransformer(t,r){this._transformer.argument[t]=r}static setReplyTransformer(t,r){this._transformer.reply[t]=r}static getFlagMap(){return this.flagMap||(this.flagMap=Object.keys(e.FLAGS).reduce((t,r)=>(t[r]={},e.FLAGS[r].forEach(n=>{t[r][n]=!0}),t),{})),this.flagMap}getSlot(){if(typeof this.slot>"u"){let t=this.getKeys()[0];this.slot=t==null?null:wne(t)}return this.slot}getKeys(){return this._iterateKeys()}toWritable(t){let r,n="*"+(this.args.length+1)+`\r
147
+ $`+Buffer.byteLength(this.name)+`\r
148
+ `+this.name+`\r
149
+ `;if(this.bufferMode){let i=new _b;i.push(n);for(let o=0;o<this.args.length;++o){let h=this.args[o];h instanceof Buffer?h.length===0?i.push(`$0\r
150
+ \r
151
+ `):(i.push("$"+h.length+`\r
152
+ `),i.push(h),i.push(`\r
153
+ `)):i.push("$"+Buffer.byteLength(h)+`\r
154
+ `+h+`\r
155
+ `)}r=i.toBuffer()}else{r=n;for(let i=0;i<this.args.length;++i){let o=this.args[i];r+="$"+Buffer.byteLength(o)+`\r
156
+ `+o+`\r
157
+ `}}return r}stringifyArguments(){for(let t=0;t<this.args.length;++t){let r=this.args[t];typeof r=="string"||(r instanceof Buffer?this.bufferMode=!0:this.args[t]=(0,Rl.toArg)(r))}}transformReply(t){this.replyEncoding&&(t=(0,Rl.convertBufferToString)(t,this.replyEncoding));let r=e._transformer.reply[this.name];return r&&(t=r(t)),t}setTimeout(t){this._commandTimeoutTimer||(this._commandTimeoutTimer=setTimeout(()=>{this.isResolved||this.reject(new Error("Command timed out"))},t))}initPromise(){let t=new Promise((r,n)=>{if(!this.transformed){this.transformed=!0;let i=e._transformer.argument[this.name];i&&(this.args=i(this.args)),this.stringifyArguments()}this.resolve=this._convertValue(r),this.errorStack?this.reject=i=>{n((0,Rl.optimizeErrorStack)(i,this.errorStack.stack,__dirname))}:this.reject=n});this.promise=(0,kne.default)(t,this.callback)}_iterateKeys(t=r=>r){if(typeof this.keys>"u"&&(this.keys=[],(0,j8.exists)(this.name))){let r=(0,j8.getKeyIndexes)(this.name,this.args);for(let n of r)this.args[n]=t(this.args[n]),this.keys.push(this.args[n])}return this.keys}_convertValue(t){return r=>{try{let n=this._commandTimeoutTimer;n&&(clearTimeout(n),delete this._commandTimeoutTimer),t(this.transformReply(r)),this.isResolved=!0}catch(n){this.reject(n)}return this.promise}}};vb.default=ws;ws.FLAGS={VALID_IN_SUBSCRIBER_MODE:["subscribe","psubscribe","unsubscribe","punsubscribe","ssubscribe","sunsubscribe","ping","quit"],VALID_IN_MONITOR_MODE:["monitor","auth"],ENTER_SUBSCRIBER_MODE:["subscribe","psubscribe","ssubscribe"],EXIT_SUBSCRIBER_MODE:["unsubscribe","punsubscribe","sunsubscribe"],WILL_DISCONNECT:["quit"]};ws._transformer={argument:{},reply:{}};var V8=function(e){if(e.length===1){if(e[0]instanceof Map)return(0,Rl.convertMapToArray)(e[0]);if(typeof e[0]=="object"&&e[0]!==null)return(0,Rl.convertObjectToArray)(e[0])}return e},W8=function(e){if(e.length===2){if(e[1]instanceof Map)return[e[0]].concat((0,Rl.convertMapToArray)(e[1]));if(typeof e[1]=="object"&&e[1]!==null)return[e[0]].concat((0,Rl.convertObjectToArray)(e[1]))}return e};ws.setArgumentTransformer("mset",V8);ws.setArgumentTransformer("msetnx",V8);ws.setArgumentTransformer("hset",W8);ws.setArgumentTransformer("hmset",W8);ws.setReplyTransformer("hgetall",function(e){if(Array.isArray(e)){let t={};for(let r=0;r<e.length;r+=2){let n=e[r],i=e[r+1];n in t?Object.defineProperty(t,n,{value:i,configurable:!0,enumerable:!0,writable:!0}):t[n]=i}return t}return e});var _b=class{constructor(){this.length=0,this.items=[]}push(t){this.length+=Buffer.byteLength(t),this.items.push(t)}toBuffer(){let t=Buffer.allocUnsafe(this.length),r=0;for(let n of this.items){let i=Buffer.byteLength(n);Buffer.isBuffer(n)?n.copy(t,r):t.write(n,r,i),r+=i}return t}}});function Mne(e){return e.channels===void 0?!1:e.subscriberMode}function Ane(e){return e.connected===void 0?!1:!e.connected}function Ene(e,t){if(Mne(t)&&!(["subscribe","subscribeBuffer","psubscribe","psubscribeBuffer","unsubscribe","unsubscribeBuffer","pubsub","pubsubBuffer","punsubscribe","punsubscribeBuffer","ping","pingBuffer","quit","quitBuffer","disconnect"].indexOf(e)>-1))throw new Error("Connection in subscriber mode, only subscriber commands may be used")}function Sne(e,t){if(Ane(t)&&e!=="connect"&&e!=="defineCommand"&&!t.options.enableOfflineQueue)throw new Error("Stream isn't writeable and enableOfflineQueue options is false")}function Tne(e,t){Ene(e,t),Sne(e,t)}function bb(e,t){if(t==="defineCommand")return e;let r=e?[].concat(...e):[];return xo.transformers.argument[t]&&(r=xo.transformers.argument[t](e)),r=r.map(Rne),r}function One(e,t){if(xo.transformers.reply[t]){let r=e;return t==="hgetall"&&(r=[].concat(...Object.entries(e))),xo.transformers.reply[t](r)}return e}function cm(e,t,r,...n){Tne(t,r);let i=e(...n);return One(i,t.replace(/Buffer$/,""))}function ca(e,t,r){return(...n)=>{let i=n.length-1,o=n[i];typeof o!="function"?o=void 0:n.length=i;let h=bb(n,t.replace(/Buffer$/,""),r);return t==="defineCommand"?cm(e,t,r,...h):(0,$8.default)(new Promise(g=>g(cm(e,t,r,...h))),o)}}var $8,Y8,xo,Rne,Iu=K(()=>{b();$8=mt(hb()),Y8=mt(X8());xo={transformers:Y8.default._transformer,setArgumentTransformer:(e,t)=>{xo.transformers.argument[e]=t},setReplyTransformer:(e,t)=>{xo.transformers.reply[e]=t}},Rne=e=>e==null?"":e instanceof Buffer?e:e.toString()});function Z8(e,t){return this.data.has(e)||this.data.set(e,""),t instanceof Buffer?this.data.set(e,Buffer.concat([Buffer.from(this.data.get(e)),t])):this.data.set(e,this.data.get(e)+t),this.data.get(e).length}var Ine,J8=K(()=>{b();Ine=Z8});function Q8(e){return Object.prototype.toString.call(e)==="[object String]"}function z(e){if(Q8(e))return Buffer.from(e);if(Array.isArray(e)){let{length:t}=e,r=Array(t);for(let n=0;n<t;++n)r[n]=Q8(e[n])?Buffer.from(e[n]):z(e[n]);return r}return e}var Ne=K(()=>{b()});function e5(){throw new Error("ERR This instance has cluster support disabled")}function Nne(){let e=e5.call(this);return z(e)}var t5=K(()=>{b();Ne()});function r5(){return"OK"}function Bne(...e){let t=r5.apply(this,e);return z(t)}var n5=K(()=>{b();Ne()});function i5(){return"Background append only file rewriting started"}function Cne(){let e=i5.apply(this,[]);return z(e)}var s5=K(()=>{b();Ne()});function a5(){return"Background saving started"}function Une(){let e=a5.apply(this,[]);return z(e)}var o5=K(()=>{b();Ne()});function l5(e,t,r){if(!this.data.has(e))return 0;let n=this.data.get(e),i;Buffer.isBuffer(n)?i=n:i=Buffer.from(n);let o=i.length;if(t===void 0&&r===void 0){let w=0;for(let k=0;k<o;k++)w+=xb[i[k]];return w}let h=t!==void 0?parseInt(t,10):0,g=r!==void 0?parseInt(r,10):o-1;if(Number.isNaN(h)&&(h=0),Number.isNaN(g)&&(g=0),h<0&&(h=o+h),g<0&&(g=o+g),h<0&&(h=0),g<0&&(g=0),h>g||h>=o)return 0;g>=o&&(g=o-1);let v=0;for(let w=h;w<=g;w++)v+=xb[i[w]];return v}var xb,Dne,f5=K(()=>{b();xb=new Array(256);for(let e=0;e<256;e++){let t=0,r=e;for(;r;)t+=r&1,r>>=1;xb[e]=t}Dne=l5});function u5(e,t){return this.rpoplpush(e,t)}async function Pne(e,t){let r=await u5.call(this,e,t);return z(r)}var c5=K(()=>{b();Ne()});function h5(...e){throw e.length===0?new Error("ERR wrong number of arguments for 'cluster' command"):new Error("ERR This instance has cluster support disabled")}function Fne(...e){let t=h5.apply(this,e);return z(t)}var d5=K(()=>{b();Ne()});var wb=I((nKe,qne)=>{qne.exports=[["FT.ADD",-1,["write","denyoom","module"],0,0,0,["@write","@search"],[],[],[]],["FT.AGGREGATE",-1,["readonly","module"],0,0,0,["@read","@search"],[],[],[]],["FT.ALIASADD",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT.ALIASDEL",-1,["write","module"],0,0,0,["@search"],[],[],[]],["FT.ALIASUPDATE",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT.ALTER",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT.CONFIG",-1,["readonly","module"],0,0,0,["@admin","@search"],[],[],[]],["FT.CREATE",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT.CURSOR",-1,["readonly","module"],0,0,0,["@read","@search"],[],[],[]],["FT.DEL",-1,["write","module"],0,0,0,["@write","@search"],[],[],[]],["FT.DICTADD",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT.DICTDEL",-1,["write","module"],0,0,0,["@search"],[],[],[]],["FT.DICTDUMP",-1,["readonly","module"],0,0,0,["@search"],[],[],[]],["FT.DROP",-1,["write","module"],0,0,0,["@write","@slow","@dangerous","@search"],[],[],[]],["FT.DROPINDEX",-1,["write","module"],0,0,0,["@write","@slow","@dangerous","@search"],[],[],[]],["FT.EXPLAIN",-1,["readonly","module"],0,0,0,["@search"],[],[],[]],["FT.EXPLAINCLI",-1,["readonly","module"],0,0,0,["@search"],[],[],[]],["FT.GET",-1,["readonly","module"],0,0,0,["@read","@search"],[],[],[]],["FT.INFO",-1,["readonly","module"],0,0,0,["@search"],[],[],[]],["FT.MGET",-1,["readonly","module"],0,0,0,["@read","@search"],[],[],[]],["FT.PROFILE",-1,["readonly","module"],0,0,0,["@read","@search"],[],[],[]],["FT.SEARCH",-1,["readonly","module"],0,0,0,["@read","@search"],[],[],[]],["FT.SPELLCHECK",-1,["readonly","module"],0,0,0,["@search"],[],[],[]],["FT.SUGADD",-1,["write","denyoom","module"],1,1,1,["@write","@search"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["FT.SUGDEL",-1,["write","module"],1,1,1,["@write","@search"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["FT.SUGGET",-1,["readonly","module"],1,1,1,["@read","@search"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["FT.SUGLEN",-1,["readonly","module"],1,1,1,["@read","@search"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["FT.SYNADD",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT.SYNDUMP",-1,["readonly","module"],0,0,0,["@search"],[],[],[]],["FT.SYNUPDATE",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT.TAGVALS",-1,["readonly","module"],0,0,0,["@read","@slow","@dangerous","@search"],[],[],[]],["FT._ALIASADDIFNX",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT._ALIASDELIFX",-1,["write","module"],0,0,0,["@search"],[],[],[]],["FT._ALTERIFNX",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT._CREATEIFNX",-1,["write","denyoom","module"],0,0,0,["@search"],[],[],[]],["FT._DROPIFX",-1,["write","module"],0,0,0,["@write","@search"],[],[],[]],["FT._DROPINDEXIFX",-1,["write","module"],0,0,0,["@write","@slow","@dangerous","@search"],[],[],[]],["FT._LIST",-1,["readonly","module"],0,0,0,["@admin","@slow","@search"],[],[],[]],["VADD",-1,["write","denyoom","module"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VCARD",-1,["readonly","module","fast"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VDIM",-1,["readonly","module","fast"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VEMB",-1,["readonly","module","fast"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VGETATTR",-1,["readonly","module","fast"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VINFO",-1,["readonly","module","fast"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VISMEMBER",-1,["readonly","module"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VLINKS",-1,["readonly","module","fast"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VRANDMEMBER",-1,["readonly","module"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VREM",-1,["write","module"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VSETATTR",-1,["write","module","fast"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["VSIM",-1,["readonly","module"],1,1,1,[],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["_FT.CONFIG",-1,["readonly","module"],0,0,0,["@admin","@search"],[],[],[]],["_FT.DEBUG",-2,["readonly","module"],0,0,0,["@admin","@search"],[],[],[["_FT.DEBUG|BG_SCAN_CONTROLLER",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|CLEAR_PENDING_TOPOLOGY",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DELETE_LOCAL_CURSORS",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DOCIDTOID",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DOCINFO",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_GEOMIDX",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_HNSW",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_INVIDX",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_NUMIDX",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_NUMIDXTREE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_PHONETIC_HASH",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_PREFIX_TRIE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_SUFFIX_TRIE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_TAGIDX",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|DUMP_TERMS",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|FT.AGGREGATE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|FT.SEARCH",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|GC_CLEAN_NUMERIC",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|GC_CONTINUE_SCHEDULE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|GC_FORCEBGINVOKE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|GC_FORCEINVOKE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|GC_STOP_SCHEDULE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|GC_WAIT_FOR_JOBS",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|GET_HIDE_USER_DATA_FROM_LOGS",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|GIT_SHA",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|HELP",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|IDTODOCID",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|INDEXES",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|INFO",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|INFO_TAGIDX",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|INVIDX_SUMMARY",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|NUMIDX_SUMMARY",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|PAUSE_TOPOLOGY_UPDATER",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|RESUME_TOPOLOGY_UPDATER",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|SET_MONITOR_EXPIRATION",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|SHARD_CONNECTION_STATES",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|SPEC_INVIDXES_INFO",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|TTL",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|TTL_EXPIRE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|TTL_PAUSE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|VECSIM_INFO",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|WORKERS",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|YIELDS_ON_LOAD_COUNTER",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|_FT.AGGREGATE",-2,["readonly","module"],0,0,0,[],[],[],[]],["_FT.DEBUG|_FT.SEARCH",-2,["readonly","module"],0,0,0,[],[],[],[]]]],["_FT.SAFEADD",-1,["write","denyoom","module"],2,2,1,["@write","@search"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["acl",-2,[],0,0,0,["@slow"],[],[],[["acl|cat",-2,["noscript","loading","stale"],0,0,0,["@slow"],[],[],[]],["acl|deluser",-3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]],["acl|dryrun",-4,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["acl|genpass",-2,["noscript","loading","stale"],0,0,0,["@slow"],[],[],[]],["acl|getuser",3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["acl|help",2,["loading","stale"],0,0,0,["@slow"],[],[],[]],["acl|list",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["acl|load",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["acl|log",-2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["acl|save",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]],["acl|setuser",-3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]],["acl|users",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["acl|whoami",2,["noscript","loading","stale"],0,0,0,["@slow"],[],[],[]]]],["append",3,["write","denyoom","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["asking",1,["fast"],0,0,0,["@fast","@connection"],[],[],[]],["auth",-2,["noscript","loading","stale","fast","no_auth","allow_busy"],0,0,0,["@fast","@connection"],[],[],[]],["bf.add",-1,["write","denyoom","module"],1,1,1,["@write","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.card",-1,["readonly","module","fast"],1,1,1,["@read","@fast","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.debug",-1,["readonly","module","fast"],1,1,1,["@read","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.exists",-1,["readonly","module","fast"],1,1,1,["@read","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.info",-1,["readonly","module","fast"],1,1,1,["@read","@fast","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.insert",-1,["write","denyoom","module"],1,1,1,["@write","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.loadchunk",-1,["write","denyoom","module"],1,1,1,["@write","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.madd",-1,["write","denyoom","module"],1,1,1,["@write","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.mexists",-1,["readonly","module","fast"],1,1,1,["@read","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.reserve",-1,["write","denyoom","module"],1,1,1,["@write","@fast","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bf.scandump",-1,["readonly","module","fast"],1,1,1,["@read","@bloom"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bgrewriteaof",1,["admin","noscript","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["bgsave",-1,["admin","noscript","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["bitcount",-2,["readonly"],1,1,1,["@read","@bitmap","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bitfield",-2,["write","denyoom"],1,1,1,["@write","@bitmap","@slow"],[],[["notes","This command allows both access and modification of the key","flags",["RW","access","update","variable_flags"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bitfield_ro",-2,["readonly","fast"],1,1,1,["@read","@bitmap","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bitop",-4,["write","denyoom"],2,-1,1,["@write","@bitmap","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",3]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["bitpos",-3,["readonly"],1,1,1,["@read","@bitmap","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["blmove",6,["write","denyoom","blocking"],1,2,1,["@write","@list","@slow","@blocking"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RW","insert"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["blmpop",-5,["write","blocking","movablekeys"],0,0,0,["@write","@list","@slow","@blocking"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["blpop",-3,["write","blocking"],1,-2,1,["@write","@list","@slow","@blocking"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-2,"keystep",1,"limit",0]]]],[]],["brpop",-3,["write","blocking"],1,-2,1,["@write","@list","@slow","@blocking"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-2,"keystep",1,"limit",0]]]],[]],["brpoplpush",4,["write","denyoom","blocking"],1,2,1,["@write","@list","@slow","@blocking"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RW","insert"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["bzmpop",-5,["write","blocking","movablekeys"],0,0,0,["@write","@sortedset","@slow","@blocking"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["bzpopmax",-3,["write","blocking","fast"],1,-2,1,["@write","@sortedset","@fast","@blocking"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-2,"keystep",1,"limit",0]]]],[]],["bzpopmin",-3,["write","blocking","fast"],1,-2,1,["@write","@sortedset","@fast","@blocking"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-2,"keystep",1,"limit",0]]]],[]],["cf.add",-1,["write","denyoom","module"],1,1,1,["@write","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.addnx",-1,["write","denyoom","module"],1,1,1,["@write","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.compact",-1,["readonly","module","fast"],1,1,1,["@read","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.count",-1,["readonly","module","fast"],1,1,1,["@read","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.debug",-1,["readonly","module","fast"],1,1,1,["@read","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.del",-1,["write","module","fast"],1,1,1,["@write","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.exists",-1,["readonly","module","fast"],1,1,1,["@read","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.info",-1,["readonly","module","fast"],1,1,1,["@read","@fast","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.insert",-1,["write","denyoom","module"],1,1,1,["@write","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.insertnx",-1,["write","denyoom","module"],1,1,1,["@write","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.loadchunk",-1,["write","denyoom","module"],1,1,1,["@write","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.mexists",-1,["readonly","module","fast"],1,1,1,["@read","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.reserve",-1,["write","denyoom","module"],1,1,1,["@write","@fast","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cf.scandump",-1,["readonly","module","fast"],1,1,1,["@read","@cuckoo"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["client",-2,[],0,0,0,["@slow"],[],[],[["client|caching",3,["noscript","loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|getname",2,["noscript","loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|getredir",2,["noscript","loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|help",2,["loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|id",2,["noscript","loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|info",2,["noscript","loading","stale"],0,0,0,["@slow","@connection"],["nondeterministic_output"],[],[]],["client|kill",-3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous","@connection"],[],[],[]],["client|list",-2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous","@connection"],["nondeterministic_output"],[],[]],["client|no-evict",3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous","@connection"],[],[],[]],["client|no-touch",3,["noscript","loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|pause",-3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous","@connection"],[],[],[]],["client|reply",3,["noscript","loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|setinfo",4,["noscript","loading","stale"],0,0,0,["@slow","@connection"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]],["client|setname",3,["noscript","loading","stale"],0,0,0,["@slow","@connection"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]],["client|tracking",-3,["noscript","loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|trackinginfo",2,["noscript","loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["client|unblock",-3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous","@connection"],[],[],[]],["client|unpause",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous","@connection"],[],[],[]]]],["cluster",-2,[],0,0,0,["@slow"],[],[],[["cluster|addslots",-3,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|addslotsrange",-4,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|bumpepoch",2,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output"],[],[]],["cluster|count-failure-reports",3,["admin","stale"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output"],[],[]],["cluster|countkeysinslot",3,["stale"],0,0,0,["@slow"],[],[],[]],["cluster|delslots",-3,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|delslotsrange",-4,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|failover",-2,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|flushslots",2,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|forget",3,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|getkeysinslot",4,["stale"],0,0,0,["@slow"],["nondeterministic_output"],[],[]],["cluster|help",2,["loading","stale"],0,0,0,["@slow"],[],[],[]],["cluster|info",2,["stale"],0,0,0,["@slow"],["nondeterministic_output"],[],[]],["cluster|keyslot",3,["stale"],0,0,0,["@slow"],[],[],[]],["cluster|links",2,["stale"],0,0,0,["@slow"],["nondeterministic_output"],[],[]],["cluster|meet",-4,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|myid",2,["stale"],0,0,0,["@slow"],[],[],[]],["cluster|myshardid",2,["stale"],0,0,0,["@slow"],["nondeterministic_output"],[],[]],["cluster|nodes",2,["stale"],0,0,0,["@slow"],["nondeterministic_output"],[],[]],["cluster|replicas",3,["admin","stale"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output"],[],[]],["cluster|replicate",3,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|reset",-2,["admin","noscript","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|saveconfig",2,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|set-config-epoch",3,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|setslot",-4,["admin","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["cluster|shards",2,["loading","stale"],0,0,0,["@slow"],["nondeterministic_output"],[],[]],["cluster|slaves",3,["admin","stale"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output"],[],[]],["cluster|slot-stats",-4,["loading","stale"],0,0,0,["@slow"],["nondeterministic_output","request_policy:all_shards"],[],[]],["cluster|slots",2,["loading","stale"],0,0,0,["@slow"],["nondeterministic_output"],[],[]]]],["cms.incrby",-1,["write","denyoom","module"],1,1,1,["@write","@cms"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cms.info",-1,["readonly","module"],1,1,1,["@read","@fast","@cms"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cms.initbydim",-1,["write","denyoom","module"],1,1,1,["@write","@fast","@cms"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cms.initbyprob",-1,["write","denyoom","module"],1,1,1,["@write","@fast","@cms"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cms.merge",-1,["write","denyoom","module"],1,1,1,["@write","@cms"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["cms.query",-1,["readonly","module"],1,1,1,["@read","@cms"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["command",-1,["loading","stale"],0,0,0,["@slow","@connection"],["nondeterministic_output_order"],[],[["command|count",2,["loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["command|docs",-2,["loading","stale"],0,0,0,["@slow","@connection"],["nondeterministic_output_order"],[],[]],["command|getkeys",-3,["loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["command|getkeysandflags",-3,["loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["command|help",2,["loading","stale"],0,0,0,["@slow","@connection"],[],[],[]],["command|info",-2,["loading","stale"],0,0,0,["@slow","@connection"],["nondeterministic_output_order"],[],[]],["command|list",-2,["loading","stale"],0,0,0,["@slow","@connection"],["nondeterministic_output_order"],[],[]]]],["config",-2,[],0,0,0,["@slow"],[],[],[["config|get",-3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["config|help",2,["loading","stale"],0,0,0,["@slow"],[],[],[]],["config|resetstat",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]],["config|rewrite",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]],["config|set",-4,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]]]],["copy",-3,["write","denyoom"],1,2,1,["@keyspace","@write","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["OW","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["dbsize",1,["readonly","fast"],0,0,0,["@keyspace","@read","@fast"],["request_policy:all_shards","response_policy:agg_sum"],[],[]],["debug",-2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["decr",2,["write","denyoom","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["decrby",3,["write","denyoom","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["del",-2,["write"],1,-1,1,["@keyspace","@write","@slow"],["request_policy:multi_shard","response_policy:agg_sum"],[["flags",["RM","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["discard",1,["noscript","loading","stale","fast","allow_busy"],0,0,0,["@fast","@transaction"],[],[],[]],["dump",2,["readonly"],1,1,1,["@keyspace","@read","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["echo",2,["loading","stale","fast"],0,0,0,["@fast","@connection"],[],[],[]],["eval",-3,["noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],0,0,0,["@slow","@scripting"],[],[["notes","We cannot tell how the keys will be used so we assume the worst, RW and UPDATE","flags",["RW","access","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["eval_ro",-3,["readonly","noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],0,0,0,["@slow","@scripting"],[],[["notes","We cannot tell how the keys will be used so we assume the worst, RO and ACCESS","flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["evalsha",-3,["noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],0,0,0,["@slow","@scripting"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["evalsha_ro",-3,["readonly","noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],0,0,0,["@slow","@scripting"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["exec",1,["noscript","loading","stale","skip_slowlog"],0,0,0,["@slow","@transaction"],[],[],[]],["exists",-2,["readonly","fast"],1,-1,1,["@keyspace","@read","@fast"],["request_policy:multi_shard","response_policy:agg_sum"],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["expire",-3,["write","fast"],1,1,1,["@keyspace","@write","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["expireat",-3,["write","fast"],1,1,1,["@keyspace","@write","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["expiretime",2,["readonly","fast"],1,1,1,["@keyspace","@read","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["failover",-1,["admin","noscript","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["fcall",-3,["noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],0,0,0,["@slow","@scripting"],[],[["notes","We cannot tell how the keys will be used so we assume the worst, RW and UPDATE","flags",["RW","access","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["fcall_ro",-3,["readonly","noscript","stale","skip_monitor","no_mandatory_keys","movablekeys"],0,0,0,["@slow","@scripting"],[],[["notes","We cannot tell how the keys will be used so we assume the worst, RO and ACCESS","flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["flushall",-1,["write"],0,0,0,["@keyspace","@write","@slow","@dangerous"],["request_policy:all_shards","response_policy:all_succeeded"],[],[]],["flushdb",-1,["write"],0,0,0,["@keyspace","@write","@slow","@dangerous"],["request_policy:all_shards","response_policy:all_succeeded"],[],[]],["function",-2,[],0,0,0,["@slow"],[],[],[["function|delete",3,["write","noscript"],0,0,0,["@write","@slow","@scripting"],["request_policy:all_shards","response_policy:all_succeeded"],[],[]],["function|dump",2,["noscript"],0,0,0,["@slow","@scripting"],[],[],[]],["function|flush",-2,["write","noscript"],0,0,0,["@write","@slow","@scripting"],["request_policy:all_shards","response_policy:all_succeeded"],[],[]],["function|help",2,["loading","stale"],0,0,0,["@slow","@scripting"],[],[],[]],["function|kill",2,["noscript","allow_busy"],0,0,0,["@slow","@scripting"],["request_policy:all_shards","response_policy:one_succeeded"],[],[]],["function|list",-2,["noscript"],0,0,0,["@slow","@scripting"],["nondeterministic_output_order"],[],[]],["function|load",-3,["write","denyoom","noscript"],0,0,0,["@write","@slow","@scripting"],["request_policy:all_shards","response_policy:all_succeeded"],[],[]],["function|restore",-3,["write","denyoom","noscript"],0,0,0,["@write","@slow","@scripting"],["request_policy:all_shards","response_policy:all_succeeded"],[],[]],["function|stats",2,["noscript","allow_busy"],0,0,0,["@slow","@scripting"],["nondeterministic_output","request_policy:all_shards","response_policy:special"],[],[]]]],["geoadd",-5,["write","denyoom"],1,1,1,["@write","@geo","@slow"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["geodist",-4,["readonly"],1,1,1,["@read","@geo","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["geohash",-2,["readonly"],1,1,1,["@read","@geo","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["geopos",-2,["readonly"],1,1,1,["@read","@geo","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["georadius",-6,["write","denyoom","movablekeys"],1,1,1,["@write","@geo","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["OW","update"],"begin_search",["type","keyword","spec",["keyword","STORE","startfrom",6]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["OW","update"],"begin_search",["type","keyword","spec",["keyword","STOREDIST","startfrom",6]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["georadius_ro",-6,["readonly"],1,1,1,["@read","@geo","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["georadiusbymember",-5,["write","denyoom","movablekeys"],1,1,1,["@write","@geo","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["OW","update"],"begin_search",["type","keyword","spec",["keyword","STORE","startfrom",5]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["OW","update"],"begin_search",["type","keyword","spec",["keyword","STOREDIST","startfrom",5]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["georadiusbymember_ro",-5,["readonly"],1,1,1,["@read","@geo","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["geosearch",-7,["readonly"],1,1,1,["@read","@geo","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["geosearchstore",-8,["write","denyoom"],1,2,1,["@write","@geo","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["get",2,["readonly","fast"],1,1,1,["@read","@string","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["getbit",3,["readonly","fast"],1,1,1,["@read","@bitmap","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["getdel",2,["write","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["getex",-2,["write","fast"],1,1,1,["@write","@string","@fast"],[],[["notes","RW and UPDATE because it changes the TTL","flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["getrange",4,["readonly"],1,1,1,["@read","@string","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["getset",3,["write","denyoom","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hdel",-3,["write","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hello",-1,["noscript","loading","stale","fast","no_auth","allow_busy"],0,0,0,["@fast","@connection"],[],[],[]],["hexists",3,["readonly","fast"],1,1,1,["@read","@hash","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hexpire",-6,["write","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hexpireat",-6,["write","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hexpiretime",-5,["readonly","fast"],1,1,1,["@read","@hash","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hget",3,["readonly","fast"],1,1,1,["@read","@hash","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hgetall",2,["readonly"],1,1,1,["@read","@hash","@slow"],["nondeterministic_output_order"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hgetdel",-5,["write","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hgetex",-5,["write","fast"],1,1,1,["@write","@hash","@fast"],[],[["notes","RW and UPDATE because it changes the TTL","flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hincrby",4,["write","denyoom","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hincrbyfloat",4,["write","denyoom","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hkeys",2,["readonly"],1,1,1,["@read","@hash","@slow"],["nondeterministic_output_order"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hlen",2,["readonly","fast"],1,1,1,["@read","@hash","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hmget",-3,["readonly","fast"],1,1,1,["@read","@hash","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hmset",-4,["write","denyoom","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hpersist",-5,["write","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hpexpire",-6,["write","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hpexpireat",-6,["write","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hpexpiretime",-5,["readonly","fast"],1,1,1,["@read","@hash","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hpttl",-5,["readonly","fast"],1,1,1,["@read","@hash","@fast"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hrandfield",-2,["readonly"],1,1,1,["@read","@hash","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hscan",-3,["readonly"],1,1,1,["@read","@hash","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hset",-4,["write","denyoom","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hsetex",-6,["write","denyoom","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hsetnx",4,["write","denyoom","fast"],1,1,1,["@write","@hash","@fast"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hstrlen",3,["readonly","fast"],1,1,1,["@read","@hash","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["httl",-5,["readonly","fast"],1,1,1,["@read","@hash","@fast"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["hvals",2,["readonly"],1,1,1,["@read","@hash","@slow"],["nondeterministic_output_order"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["incr",2,["write","denyoom","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["incrby",3,["write","denyoom","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["incrbyfloat",3,["write","denyoom","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["info",-1,["loading","stale"],0,0,0,["@slow","@dangerous"],["nondeterministic_output","request_policy:all_shards","response_policy:special"],[],[]],["json.arrappend",-1,["write","denyoom","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.arrindex",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.arrinsert",-1,["write","denyoom","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.arrlen",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.arrpop",-1,["write","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.arrtrim",-1,["write","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.clear",-1,["write","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.debug",-1,["readonly","module"],2,2,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.del",-1,["write","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.forget",-1,["write","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.get",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.merge",-1,["write","denyoom","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.mget",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.mset",-1,["write","denyoom","module"],1,-1,3,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",3,"limit",0]]]],[]],["json.numincrby",-1,["write","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.nummultby",-1,["write","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.numpowby",-1,["write","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.objkeys",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.objlen",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.resp",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.set",-1,["write","denyoom","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.strappend",-1,["write","denyoom","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.strlen",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.toggle",-1,["write","denyoom","module"],1,1,1,["@write","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["json.type",-1,["readonly","module"],1,1,1,["@read","@json"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["keys",2,["readonly"],0,0,0,["@keyspace","@read","@slow","@dangerous"],["request_policy:all_shards","nondeterministic_output_order"],[],[]],["lastsave",1,["loading","stale","fast"],0,0,0,["@admin","@fast","@dangerous"],["nondeterministic_output"],[],[]],["latency",-2,[],0,0,0,["@slow"],[],[],[["latency|doctor",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output","request_policy:all_nodes","response_policy:special"],[],[]],["latency|graph",3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output","request_policy:all_nodes","response_policy:special"],[],[]],["latency|help",2,["loading","stale"],0,0,0,["@slow"],[],[],[]],["latency|histogram",-2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output","request_policy:all_nodes","response_policy:special"],[],[]],["latency|history",3,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output","request_policy:all_nodes","response_policy:special"],[],[]],["latency|latest",2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output","request_policy:all_nodes","response_policy:special"],[],[]],["latency|reset",-2,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:agg_sum"],[],[]]]],["lcs",-3,["readonly"],1,2,1,["@read","@string","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",1,"keystep",1,"limit",0]]]],[]],["lindex",3,["readonly"],1,1,1,["@read","@list","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["linsert",5,["write","denyoom"],1,1,1,["@write","@list","@slow"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["llen",2,["readonly","fast"],1,1,1,["@read","@list","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["lmove",5,["write","denyoom"],1,2,1,["@write","@list","@slow"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RW","insert"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["lmpop",-4,["write","movablekeys"],0,0,0,["@write","@list","@slow"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["lolwut",-1,["readonly","fast"],0,0,0,["@read","@fast"],[],[],[]],["lpop",-2,["write","fast"],1,1,1,["@write","@list","@fast"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["lpos",-3,["readonly"],1,1,1,["@read","@list","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["lpush",-3,["write","denyoom","fast"],1,1,1,["@write","@list","@fast"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["lpushx",-3,["write","denyoom","fast"],1,1,1,["@write","@list","@fast"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["lrange",4,["readonly"],1,1,1,["@read","@list","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["lrem",4,["write"],1,1,1,["@write","@list","@slow"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["lset",4,["write","denyoom"],1,1,1,["@write","@list","@slow"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ltrim",4,["write"],1,1,1,["@write","@list","@slow"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["memory",-2,[],0,0,0,["@slow"],[],[],[["memory|doctor",2,[],0,0,0,["@slow"],["nondeterministic_output","request_policy:all_shards","response_policy:special"],[],[]],["memory|help",2,["loading","stale"],0,0,0,["@slow"],[],[],[]],["memory|malloc-stats",2,[],0,0,0,["@slow"],["nondeterministic_output","request_policy:all_shards","response_policy:special"],[],[]],["memory|purge",2,[],0,0,0,["@slow"],["request_policy:all_shards","response_policy:all_succeeded"],[],[]],["memory|stats",2,[],0,0,0,["@slow"],["nondeterministic_output","request_policy:all_shards","response_policy:special"],[],[]],["memory|usage",-3,["readonly"],2,2,1,["@read","@slow"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]]]],["mget",-2,["readonly","fast"],1,-1,1,["@read","@string","@fast"],["request_policy:multi_shard"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["migrate",-6,["write","movablekeys"],3,3,1,["@keyspace","@write","@slow","@dangerous"],["nondeterministic_output"],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",3]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RW","access","delete","incomplete"],"begin_search",["type","keyword","spec",["keyword","KEYS","startfrom",-2]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["module",-2,[],0,0,0,["@slow"],[],[],[["module|help",2,["loading","stale"],0,0,0,["@slow"],[],[],[]],["module|list",2,["admin","noscript"],0,0,0,["@admin","@slow","@dangerous"],["nondeterministic_output_order"],[],[]],["module|load",-3,["admin","noscript","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["module|loadex",-3,["admin","noscript","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["module|unload",3,["admin","noscript","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]]]],["monitor",1,["admin","noscript","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["move",3,["write","fast"],1,1,1,["@keyspace","@write","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["mset",-3,["write","denyoom"],1,-1,2,["@write","@string","@slow"],["request_policy:multi_shard","response_policy:all_succeeded"],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",2,"limit",0]]]],[]],["msetnx",-3,["write","denyoom"],1,-1,2,["@write","@string","@slow"],[],[["flags",["OW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",2,"limit",0]]]],[]],["multi",1,["noscript","loading","stale","fast","allow_busy"],0,0,0,["@fast","@transaction"],[],[],[]],["object",-2,[],0,0,0,["@slow"],[],[],[["object|encoding",3,["readonly"],2,2,1,["@keyspace","@read","@slow"],["nondeterministic_output"],[["flags",["RO"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["object|freq",3,["readonly"],2,2,1,["@keyspace","@read","@slow"],["nondeterministic_output"],[["flags",["RO"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["object|help",2,["loading","stale"],0,0,0,["@keyspace","@slow"],[],[],[]],["object|idletime",3,["readonly"],2,2,1,["@keyspace","@read","@slow"],["nondeterministic_output"],[["flags",["RO"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["object|refcount",3,["readonly"],2,2,1,["@keyspace","@read","@slow"],["nondeterministic_output"],[["flags",["RO"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]]]],["persist",2,["write","fast"],1,1,1,["@keyspace","@write","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["pexpire",-3,["write","fast"],1,1,1,["@keyspace","@write","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["pexpireat",-3,["write","fast"],1,1,1,["@keyspace","@write","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["pexpiretime",2,["readonly","fast"],1,1,1,["@keyspace","@read","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["pfadd",-2,["write","denyoom","fast"],1,1,1,["@write","@hyperloglog","@fast"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["pfcount",-2,["readonly"],1,-1,1,["@read","@hyperloglog","@slow"],[],[["notes","RW because it may change the internal representation of the key, and propagate to replicas","flags",["RW","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["pfdebug",3,["write","denyoom","admin"],2,2,1,["@write","@hyperloglog","@admin","@slow","@dangerous"],[],[["flags",["RW","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["pfmerge",-2,["write","denyoom"],1,-1,1,["@write","@hyperloglog","@slow"],[],[["flags",["RW","access","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["pfselftest",1,["admin"],0,0,0,["@hyperloglog","@admin","@slow","@dangerous"],[],[],[]],["ping",-1,["fast"],0,0,0,["@fast","@connection"],["request_policy:all_shards","response_policy:all_succeeded"],[],[]],["psetex",4,["write","denyoom"],1,1,1,["@write","@string","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["psubscribe",-2,["pubsub","noscript","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]],["psync",-3,["admin","noscript","no_async_loading","no_multi"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["pttl",2,["readonly","fast"],1,1,1,["@keyspace","@read","@fast"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["publish",3,["pubsub","loading","stale","fast"],0,0,0,["@pubsub","@fast"],[],[],[]],["pubsub",-2,[],0,0,0,["@slow"],[],[],[["pubsub|channels",-2,["pubsub","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]],["pubsub|help",2,["loading","stale"],0,0,0,["@slow"],[],[],[]],["pubsub|numpat",2,["pubsub","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]],["pubsub|numsub",-2,["pubsub","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]],["pubsub|shardchannels",-2,["pubsub","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]],["pubsub|shardnumsub",-2,["pubsub","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]]]],["punsubscribe",-1,["pubsub","noscript","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]],["quit",-1,["noscript","loading","stale","fast","no_auth","allow_busy"],0,0,0,["@fast","@connection"],[],[],[]],["randomkey",1,["readonly"],0,0,0,["@keyspace","@read","@slow"],["request_policy:all_shards","response_policy:special","nondeterministic_output"],[],[]],["readonly",1,["loading","stale","fast"],0,0,0,["@fast","@connection"],[],[],[]],["readwrite",1,["loading","stale","fast"],0,0,0,["@fast","@connection"],[],[],[]],["rename",3,["write"],1,2,1,["@keyspace","@write","@slow"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["OW","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["renamenx",3,["write","fast"],1,2,1,["@keyspace","@write","@fast"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["OW","insert"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["replconf",-1,["admin","noscript","loading","stale","allow_busy"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["replicaof",3,["admin","noscript","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["reset",1,["noscript","loading","stale","fast","no_auth","allow_busy"],0,0,0,["@fast","@connection"],[],[],[]],["restore",-4,["write","denyoom"],1,1,1,["@keyspace","@write","@slow","@dangerous"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["restore-asking",-4,["write","denyoom","asking"],1,1,1,["@keyspace","@write","@slow","@dangerous"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["role",1,["noscript","loading","stale","fast"],0,0,0,["@admin","@fast","@dangerous"],[],[],[]],["rpop",-2,["write","fast"],1,1,1,["@write","@list","@fast"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["rpoplpush",3,["write","denyoom"],1,2,1,["@write","@list","@slow"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RW","insert"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["rpush",-3,["write","denyoom","fast"],1,1,1,["@write","@list","@fast"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["rpushx",-3,["write","denyoom","fast"],1,1,1,["@write","@list","@fast"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["sadd",-3,["write","denyoom","fast"],1,1,1,["@write","@set","@fast"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["save",1,["admin","noscript","no_async_loading","no_multi"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["scan",-2,["readonly"],0,0,0,["@keyspace","@read","@slow"],["nondeterministic_output","request_policy:special","response_policy:special"],[],[]],["scard",2,["readonly","fast"],1,1,1,["@read","@set","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["script",-2,[],0,0,0,["@slow"],[],[],[["script|debug",3,["noscript"],0,0,0,["@slow","@scripting"],[],[],[]],["script|exists",-3,["noscript"],0,0,0,["@slow","@scripting"],["request_policy:all_shards","response_policy:agg_logical_and"],[],[]],["script|flush",-2,["noscript"],0,0,0,["@slow","@scripting"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]],["script|help",2,["loading","stale"],0,0,0,["@slow","@scripting"],[],[],[]],["script|kill",2,["noscript","allow_busy"],0,0,0,["@slow","@scripting"],["request_policy:all_shards","response_policy:one_succeeded"],[],[]],["script|load",3,["noscript","stale"],0,0,0,["@slow","@scripting"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]]]],["sdiff",-2,["readonly"],1,-1,1,["@read","@set","@slow"],["nondeterministic_output_order"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["sdiffstore",-3,["write","denyoom"],1,-1,1,["@write","@set","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["search.CLUSTERINFO",-1,["readonly","module","noscript","loading"],0,0,0,["@search"],[],[],[]],["search.CLUSTERREFRESH",-1,["readonly","module","noscript"],0,0,0,["@search"],[],[],[]],["search.CLUSTERSET",-1,["readonly","module","noscript","loading"],0,0,0,["@search"],[],[],[]],["select",2,["loading","stale","fast"],0,0,0,["@fast","@connection"],[],[],[]],["set",-3,["write","denyoom"],1,1,1,["@write","@string","@slow"],[],[["notes","RW and ACCESS due to the optional `GET` argument","flags",["RW","access","update","variable_flags"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["setbit",4,["write","denyoom"],1,1,1,["@write","@bitmap","@slow"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["setex",4,["write","denyoom"],1,1,1,["@write","@string","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["setnx",3,["write","denyoom","fast"],1,1,1,["@write","@string","@fast"],[],[["flags",["OW","insert"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["setrange",4,["write","denyoom"],1,1,1,["@write","@string","@slow"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["shutdown",-1,["admin","noscript","loading","stale","no_multi","allow_busy"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["sinter",-2,["readonly"],1,-1,1,["@read","@set","@slow"],["nondeterministic_output_order"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["sintercard",-3,["readonly","movablekeys"],0,0,0,["@read","@set","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["sinterstore",-3,["write","denyoom"],1,-1,1,["@write","@set","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["sismember",3,["readonly","fast"],1,1,1,["@read","@set","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["slaveof",3,["admin","noscript","stale","no_async_loading"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["slowlog",-2,[],0,0,0,["@slow"],[],[],[["slowlog|get",-2,["admin","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","nondeterministic_output"],[],[]],["slowlog|help",2,["loading","stale"],0,0,0,["@slow"],[],[],[]],["slowlog|len",2,["admin","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:agg_sum","nondeterministic_output"],[],[]],["slowlog|reset",2,["admin","loading","stale"],0,0,0,["@admin","@slow","@dangerous"],["request_policy:all_nodes","response_policy:all_succeeded"],[],[]]]],["smembers",2,["readonly"],1,1,1,["@read","@set","@slow"],["nondeterministic_output_order"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["smismember",-3,["readonly","fast"],1,1,1,["@read","@set","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["smove",4,["write","fast"],1,2,1,["@write","@set","@fast"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RW","insert"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["sort",-2,["write","denyoom","movablekeys"],1,1,1,["@write","@set","@sortedset","@list","@slow","@dangerous"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["notes","For the optional BY/GET keyword. It is marked 'unknown' because the key names derive from the content of the key we sort","flags",["RO","access"],"begin_search",["type","unknown","spec",[]],"find_keys",["type","unknown","spec",[]]],["notes","For the optional STORE keyword. It is marked 'unknown' because the keyword can appear anywhere in the argument array","flags",["OW","update"],"begin_search",["type","unknown","spec",[]],"find_keys",["type","unknown","spec",[]]]],[]],["sort_ro",-2,["readonly","movablekeys"],1,1,1,["@read","@set","@sortedset","@list","@slow","@dangerous"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["notes","For the optional BY/GET keyword. It is marked 'unknown' because the key names derive from the content of the key we sort","flags",["RO","access"],"begin_search",["type","unknown","spec",[]],"find_keys",["type","unknown","spec",[]]]],[]],["spop",-2,["write","fast"],1,1,1,["@write","@set","@fast"],["nondeterministic_output"],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["spublish",3,["pubsub","loading","stale","fast"],1,1,1,["@pubsub","@fast"],[],[["flags",["not_key"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["srandmember",-2,["readonly"],1,1,1,["@read","@set","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["srem",-3,["write","fast"],1,1,1,["@write","@set","@fast"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["sscan",-3,["readonly"],1,1,1,["@read","@set","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ssubscribe",-2,["pubsub","noscript","loading","stale"],1,-1,1,["@pubsub","@slow"],[],[["flags",["not_key"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["strlen",2,["readonly","fast"],1,1,1,["@read","@string","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["subscribe",-2,["pubsub","noscript","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]],["substr",4,["readonly"],1,1,1,["@read","@string","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["sunion",-2,["readonly"],1,-1,1,["@read","@set","@slow"],["nondeterministic_output_order"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["sunionstore",-3,["write","denyoom"],1,-1,1,["@write","@set","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["sunsubscribe",-1,["pubsub","noscript","loading","stale"],1,-1,1,["@pubsub","@slow"],[],[["flags",["not_key"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["swapdb",3,["write","fast"],0,0,0,["@keyspace","@write","@fast","@dangerous"],[],[],[]],["sync",1,["admin","noscript","no_async_loading","no_multi"],0,0,0,["@admin","@slow","@dangerous"],[],[],[]],["tdigest.add",-1,["write","denyoom","module"],1,1,1,["@write","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.byrank",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.byrevrank",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.cdf",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.create",-1,["write","denyoom","module"],1,1,1,["@write","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.info",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.max",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.merge",-1,["write","denyoom","module"],1,1,1,["@write","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.min",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.quantile",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.rank",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.reset",-1,["write","denyoom","module"],1,1,1,["@write","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.revrank",-1,["readonly","module"],1,1,1,["@read","@fast","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["tdigest.trimmed_mean",-1,["readonly","module"],1,1,1,["@read","@tdigest"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["time",1,["loading","stale","fast"],0,0,0,["@fast"],["nondeterministic_output"],[],[]],["timeseries.CLUSTERSET",-1,["readonly","module","noscript"],0,0,0,[],[],[],[]],["timeseries.REFRESHCLUSTER",-1,["readonly","module","noscript"],0,0,0,[],[],[],[]],["topk.add",-1,["write","denyoom","module"],1,1,1,["@write","@topk"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["topk.count",-1,["readonly","module"],1,1,1,["@read","@topk"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["topk.incrby",-1,["write","denyoom","module"],1,1,1,["@write","@topk"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["topk.info",-1,["readonly","module"],1,1,1,["@read","@fast","@topk"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["topk.list",-1,["readonly","module"],1,1,1,["@read","@topk"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["topk.query",-1,["readonly","module"],1,1,1,["@read","@topk"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["topk.reserve",-1,["write","denyoom","module"],1,1,1,["@write","@fast","@topk"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["touch",-2,["readonly","fast"],1,-1,1,["@keyspace","@read","@fast"],["request_policy:multi_shard","response_policy:agg_sum"],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["ts.add",-1,["write","denyoom","module"],1,1,1,["@write","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.alter",-1,["write","denyoom","module"],1,1,1,["@write","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.create",-1,["write","denyoom","module"],1,1,1,["@write","@fast","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.createrule",-1,["write","module","fast"],1,1,1,["@write","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.decrby",-1,["write","denyoom","module"],1,1,1,["@write","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.del",-1,["write","module"],1,1,1,["@write","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.deleterule",-1,["write","module"],1,1,1,["@write","@fast","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.get",-1,["readonly","module"],1,1,1,["@read","@fast","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.incrby",-1,["write","denyoom","module"],1,1,1,["@write","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.info",-1,["readonly","module"],1,1,1,["@read","@fast","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.madd",-1,["write","denyoom","module"],1,-1,3,["@write","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",3,"limit",0]]]],[]],["ts.mget",-1,["readonly","module"],0,0,0,["@read","@timeseries"],[],[],[]],["ts.mrange",-1,["readonly","module"],0,0,0,["@read","@timeseries"],[],[],[]],["ts.mrevrange",-1,["readonly","module"],0,0,0,["@read","@timeseries"],[],[],[]],["ts.queryindex",-1,["readonly","module"],0,0,0,["@read","@timeseries"],[],[],[]],["ts.range",-1,["readonly","module"],1,1,1,["@read","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ts.revrange",-1,["readonly","module"],1,1,1,["@read","@timeseries"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["ttl",2,["readonly","fast"],1,1,1,["@keyspace","@read","@fast"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["type",2,["readonly","fast"],1,1,1,["@keyspace","@read","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["unlink",-2,["write","fast"],1,-1,1,["@keyspace","@write","@fast"],["request_policy:multi_shard","response_policy:agg_sum"],[["flags",["RM","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["unsubscribe",-1,["pubsub","noscript","loading","stale"],0,0,0,["@pubsub","@slow"],[],[],[]],["unwatch",1,["noscript","loading","stale","fast","allow_busy"],0,0,0,["@fast","@transaction"],[],[],[]],["wait",3,["blocking"],0,0,0,["@slow","@blocking","@connection"],["request_policy:all_shards","response_policy:agg_min"],[],[]],["waitaof",4,["blocking"],0,0,0,["@slow","@blocking","@connection"],["request_policy:all_shards","response_policy:agg_min"],[],[]],["watch",-2,["noscript","loading","stale","fast","allow_busy"],1,-1,1,["@fast","@transaction"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",0]]]],[]],["xack",-4,["write","fast"],1,1,1,["@write","@stream","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xackdel",-6,["write","fast"],1,1,1,["@write","@stream","@fast"],[],[["flags",["RW","update","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xadd",-5,["write","denyoom","fast"],1,1,1,["@write","@stream","@fast"],["nondeterministic_output"],[["notes","UPDATE instead of INSERT because of the optional trimming feature","flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xautoclaim",-6,["write","fast"],1,1,1,["@write","@stream","@fast"],["nondeterministic_output"],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xclaim",-6,["write","fast"],1,1,1,["@write","@stream","@fast"],["nondeterministic_output"],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xdel",-3,["write","fast"],1,1,1,["@write","@stream","@fast"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xdelex",-5,["write","fast"],1,1,1,["@write","@stream","@fast"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xgroup",-2,[],0,0,0,["@slow"],[],[],[["xgroup|create",-5,["write","denyoom"],2,2,1,["@write","@stream","@slow"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xgroup|createconsumer",5,["write","denyoom"],2,2,1,["@write","@stream","@slow"],[],[["flags",["RW","insert"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xgroup|delconsumer",5,["write"],2,2,1,["@write","@stream","@slow"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xgroup|destroy",4,["write"],2,2,1,["@write","@stream","@slow"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xgroup|help",2,["loading","stale"],0,0,0,["@stream","@slow"],[],[],[]],["xgroup|setid",-5,["write"],2,2,1,["@write","@stream","@slow"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]]]],["xinfo",-2,[],0,0,0,["@slow"],[],[],[["xinfo|consumers",4,["readonly"],2,2,1,["@read","@stream","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xinfo|groups",3,["readonly"],2,2,1,["@read","@stream","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xinfo|help",2,["loading","stale"],0,0,0,["@stream","@slow"],[],[],[]],["xinfo|stream",-3,["readonly"],2,2,1,["@read","@stream","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]]]],["xlen",2,["readonly","fast"],1,1,1,["@read","@stream","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xpending",-3,["readonly"],1,1,1,["@read","@stream","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xrange",-4,["readonly"],1,1,1,["@read","@stream","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xread",-4,["readonly","blocking","movablekeys"],0,0,0,["@read","@stream","@slow","@blocking"],[],[["flags",["RO","access"],"begin_search",["type","keyword","spec",["keyword","STREAMS","startfrom",1]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",2]]]],[]],["xreadgroup",-7,["write","blocking","movablekeys"],0,0,0,["@write","@stream","@slow","@blocking"],[],[["flags",["RO","access"],"begin_search",["type","keyword","spec",["keyword","STREAMS","startfrom",4]],"find_keys",["type","range","spec",["lastkey",-1,"keystep",1,"limit",2]]]],[]],["xrevrange",-4,["readonly"],1,1,1,["@read","@stream","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xsetid",-3,["write","denyoom","fast"],1,1,1,["@write","@stream","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["xtrim",-4,["write"],1,1,1,["@write","@stream","@slow"],["nondeterministic_output"],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zadd",-4,["write","denyoom","fast"],1,1,1,["@write","@sortedset","@fast"],[],[["flags",["RW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zcard",2,["readonly","fast"],1,1,1,["@read","@sortedset","@fast"],[],[["flags",["RO"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zcount",4,["readonly","fast"],1,1,1,["@read","@sortedset","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zdiff",-3,["readonly","movablekeys"],0,0,0,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["zdiffstore",-4,["write","denyoom","movablekeys"],1,1,1,["@write","@sortedset","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["zincrby",4,["write","denyoom","fast"],1,1,1,["@write","@sortedset","@fast"],[],[["flags",["RW","access","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zinter",-3,["readonly","movablekeys"],0,0,0,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["zintercard",-3,["readonly","movablekeys"],0,0,0,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["zinterstore",-4,["write","denyoom","movablekeys"],1,1,1,["@write","@sortedset","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["zlexcount",4,["readonly","fast"],1,1,1,["@read","@sortedset","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zmpop",-4,["write","movablekeys"],0,0,0,["@write","@sortedset","@slow"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["zmscore",-3,["readonly","fast"],1,1,1,["@read","@sortedset","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zpopmax",-2,["write","fast"],1,1,1,["@write","@sortedset","@fast"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zpopmin",-2,["write","fast"],1,1,1,["@write","@sortedset","@fast"],[],[["flags",["RW","access","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrandmember",-2,["readonly"],1,1,1,["@read","@sortedset","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrange",-4,["readonly"],1,1,1,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrangebylex",-4,["readonly"],1,1,1,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrangebyscore",-4,["readonly"],1,1,1,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrangestore",-5,["write","denyoom"],1,2,1,["@write","@sortedset","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrank",-3,["readonly","fast"],1,1,1,["@read","@sortedset","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrem",-3,["write","fast"],1,1,1,["@write","@sortedset","@fast"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zremrangebylex",4,["write"],1,1,1,["@write","@sortedset","@slow"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zremrangebyrank",4,["write"],1,1,1,["@write","@sortedset","@slow"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zremrangebyscore",4,["write"],1,1,1,["@write","@sortedset","@slow"],[],[["flags",["RW","delete"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrevrange",-4,["readonly"],1,1,1,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrevrangebylex",-4,["readonly"],1,1,1,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrevrangebyscore",-4,["readonly"],1,1,1,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zrevrank",-3,["readonly","fast"],1,1,1,["@read","@sortedset","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zscan",-3,["readonly"],1,1,1,["@read","@sortedset","@slow"],["nondeterministic_output"],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zscore",3,["readonly","fast"],1,1,1,["@read","@sortedset","@fast"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]]],[]],["zunion",-3,["readonly","movablekeys"],0,0,0,["@read","@sortedset","@slow"],[],[["flags",["RO","access"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]],["zunionstore",-4,["write","denyoom","movablekeys"],1,1,1,["@write","@sortedset","@slow"],[],[["flags",["OW","update"],"begin_search",["type","index","spec",["index",1]],"find_keys",["type","range","spec",["lastkey",0,"keystep",1,"limit",0]]],["flags",["RO","access"],"begin_search",["type","index","spec",["index",2]],"find_keys",["type","keynum","spec",["keynumidx",0,"firstkey",1,"keystep",1]]]],[]]]});var p5=I((iKe,Lne)=>{Lne.exports=["hello",["summary","Handshakes with the Redis server.","since","6.0.0","group","connection","complexity","O(1)","history",[["6.2.0","`protover` made optional; when called without arguments the command reports the current connection's context."]],"arguments",[["name","arguments","type","block","flags",["optional"],"arguments",[["name","protover","type","integer","display_text","protover"],["name","auth","type","block","token","AUTH","flags",["optional"],"arguments",[["name","username","type","string","display_text","username"],["name","password","type","string","display_text","password"]]],["name","clientname","type","string","display_text","clientname","token","SETNAME","flags",["optional"]]]]]],"bf.loadchunk",["group","module","module","bf"],"hincrbyfloat",["summary","Increments the floating point value of a field by a number. Uses 0 as initial value if the field doesn't exist.","since","2.6.0","group","hash","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","field","type","string","display_text","field"],["name","increment","type","double","display_text","increment"]]],"brpoplpush",["summary","Pops an element from a list, pushes it to another list and returns it. Block until an element is available otherwise. Deletes the list if the last element was popped.","since","2.2.0","group","list","complexity","O(1)","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`BLMOVE` with the `RIGHT` and `LEFT` arguments","history",[["6.0.0","`timeout` is interpreted as a double instead of an integer."]],"arguments",[["name","source","type","key","display_text","source","key_spec_index",0],["name","destination","type","key","display_text","destination","key_spec_index",1],["name","timeout","type","double","display_text","timeout"]]],"pexpireat",["summary","Sets the expiration time of a key to a Unix milliseconds timestamp.","since","2.6.0","group","generic","complexity","O(1)","history",[["7.0.0","Added options: `NX`, `XX`, `GT` and `LT`."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","unix-time-milliseconds","type","unix-time","display_text","unix-time-milliseconds"],["name","condition","type","oneof","since","7.0.0","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"],["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]]]],"hsetex",["summary","Set the value of one or more fields of a given hash key, and optionally set their expiration.","since","8.0.0","group","hash","complexity","O(N) where N is the number of fields being set.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","fnx","type","pure-token","display_text","fnx","token","FNX"],["name","fxx","type","pure-token","display_text","fxx","token","FXX"]]],["name","expiration","type","oneof","flags",["optional"],"arguments",[["name","seconds","type","integer","display_text","seconds","token","EX"],["name","milliseconds","type","integer","display_text","milliseconds","token","PX"],["name","unix-time-seconds","type","unix-time","display_text","unix-time-seconds","token","EXAT"],["name","unix-time-milliseconds","type","unix-time","display_text","unix-time-milliseconds","token","PXAT"],["name","keepttl","type","pure-token","display_text","keepttl","token","KEEPTTL"]]],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","data","type","block","flags",["multiple"],"arguments",[["name","field","type","string","display_text","field"],["name","value","type","string","display_text","value"]]]]]]],"function",["summary","A container for function commands.","since","7.0.0","group","scripting","complexity","Depends on subcommand.","subcommands",["function|delete",["summary","Deletes a library and its functions.","since","7.0.0","group","scripting","complexity","O(1)","arguments",[["name","library-name","type","string","display_text","library-name"]]],"function|flush",["summary","Deletes all libraries and functions.","since","7.0.0","group","scripting","complexity","O(N) where N is the number of functions deleted","arguments",[["name","flush-type","type","oneof","flags",["optional"],"arguments",[["name","async","type","pure-token","display_text","async","token","ASYNC"],["name","sync","type","pure-token","display_text","sync","token","SYNC"]]]]],"function|kill",["summary","Terminates a function during execution.","since","7.0.0","group","scripting","complexity","O(1)"],"function|load",["summary","Creates a library.","since","7.0.0","group","scripting","complexity","O(1) (considering compilation time is redundant)","arguments",[["name","replace","type","pure-token","display_text","replace","token","REPLACE","flags",["optional"]],["name","function-code","type","string","display_text","function-code"]]],"function|help",["summary","Returns helpful text about the different subcommands.","since","7.0.0","group","scripting","complexity","O(1)"],"function|dump",["summary","Dumps all libraries into a serialized binary payload.","since","7.0.0","group","scripting","complexity","O(N) where N is the number of functions"],"function|stats",["summary","Returns information about a function during execution.","since","7.0.0","group","scripting","complexity","O(1)"],"function|list",["summary","Returns information about all libraries.","since","7.0.0","group","scripting","complexity","O(N) where N is the number of functions","arguments",[["name","library-name-pattern","type","string","display_text","library-name-pattern","token","LIBRARYNAME","flags",["optional"]],["name","withcode","type","pure-token","display_text","withcode","token","WITHCODE","flags",["optional"]]]],"function|restore",["summary","Restores all libraries from a payload.","since","7.0.0","group","scripting","complexity","O(N) where N is the number of functions on the payload","arguments",[["name","serialized-value","type","string","display_text","serialized-value"],["name","policy","type","oneof","flags",["optional"],"arguments",[["name","flush","type","pure-token","display_text","flush","token","FLUSH"],["name","append","type","pure-token","display_text","append","token","APPEND"],["name","replace","type","pure-token","display_text","replace","token","REPLACE"]]]]]]],"lastsave",["summary","Returns the Unix timestamp of the last successful save to disk.","since","1.0.0","group","server","complexity","O(1)"],"topk.add",["group","module","module","bf"],"zremrangebyscore",["summary","Removes members in a sorted set within a range of scores. Deletes the sorted set if all members were removed.","since","1.2.0","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","min","type","double","display_text","min"],["name","max","type","double","display_text","max"]]],"json.get",["group","module","module","ReJSON"],"tdigest.quantile",["group","module","module","bf"],"hexpire",["summary","Set expiry for hash field using relative time to expire (seconds)","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","seconds","type","integer","display_text","seconds"],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"],["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"expiretime",["summary","Returns the expiration time of a key as a Unix timestamp.","since","7.0.0","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"acl",["summary","A container for Access List Control commands.","since","6.0.0","group","server","complexity","Depends on subcommand.","subcommands",["acl|log",["summary","Lists recent security events generated due to ACL rules.","since","6.0.0","group","server","complexity","O(N) with N being the number of entries shown.","history",[["7.2.0","Added entry ID, timestamp created, and timestamp last updated."]],"arguments",[["name","operation","type","oneof","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count"],["name","reset","type","pure-token","display_text","reset","token","RESET"]]]]],"acl|dryrun",["summary","Simulates the execution of a command by a user, without executing the command.","since","7.0.0","group","server","complexity","O(1).","arguments",[["name","username","type","string","display_text","username"],["name","command","type","string","display_text","command"],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"acl|load",["summary","Reloads the rules from the configured ACL file.","since","6.0.0","group","server","complexity","O(N). Where N is the number of configured users."],"acl|cat",["summary","Lists the ACL categories, or the commands inside a category.","since","6.0.0","group","server","complexity","O(1) since the categories and commands are a fixed set.","arguments",[["name","category","type","string","display_text","category","flags",["optional"]]]],"acl|help",["summary","Returns helpful text about the different subcommands.","since","6.0.0","group","server","complexity","O(1)"],"acl|save",["summary","Saves the effective ACL rules in the configured ACL file.","since","6.0.0","group","server","complexity","O(N). Where N is the number of configured users."],"acl|whoami",["summary","Returns the authenticated username of the current connection.","since","6.0.0","group","server","complexity","O(1)"],"acl|genpass",["summary","Generates a pseudorandom, secure password that can be used to identify ACL users.","since","6.0.0","group","server","complexity","O(1)","arguments",[["name","bits","type","integer","display_text","bits","flags",["optional"]]]],"acl|list",["summary","Dumps the effective rules in ACL file format.","since","6.0.0","group","server","complexity","O(N). Where N is the number of configured users."],"acl|setuser",["summary","Creates and modifies an ACL user and its rules.","since","6.0.0","group","server","complexity","O(N). Where N is the number of rules provided.","history",[["6.2.0","Added Pub/Sub channel patterns."],["7.0.0","Added selectors and key based permissions."]],"arguments",[["name","username","type","string","display_text","username"],["name","rule","type","string","display_text","rule","flags",["optional","multiple"]]]],"acl|deluser",["summary","Deletes ACL users, and terminates their connections.","since","6.0.0","group","server","complexity","O(1) amortized time considering the typical user.","arguments",[["name","username","type","string","display_text","username","flags",["multiple"]]]],"acl|getuser",["summary","Lists the ACL rules of a user.","since","6.0.0","group","server","complexity","O(N). Where N is the number of password, command and pattern rules that the user has.","history",[["6.2.0","Added Pub/Sub channel patterns."],["7.0.0","Added selectors and changed the format of key and channel patterns from a list to their rule representation."]],"arguments",[["name","username","type","string","display_text","username"]]],"acl|users",["summary","Lists all ACL users.","since","6.0.0","group","server","complexity","O(N). Where N is the number of configured users."]]],"smembers",["summary","Returns all members of a set.","since","1.0.0","group","set","complexity","O(N) where N is the set cardinality.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"zscore",["summary","Returns the score of a member in a sorted set.","since","1.2.0","group","sorted-set","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member"]]],"geosearchstore",["summary","Queries a geospatial index for members inside an area of a box or a circle, optionally stores the result.","since","6.2.0","group","geo","complexity","O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape","history",[["7.0.0","Added support for uppercase unit names."]],"arguments",[["name","destination","type","key","display_text","destination","key_spec_index",0],["name","source","type","key","display_text","source","key_spec_index",1],["name","from","type","oneof","arguments",[["name","member","type","string","display_text","member","token","FROMMEMBER"],["name","fromlonlat","type","block","token","FROMLONLAT","arguments",[["name","longitude","type","double","display_text","longitude"],["name","latitude","type","double","display_text","latitude"]]]]],["name","by","type","oneof","arguments",[["name","circle","type","block","arguments",[["name","radius","type","double","display_text","radius","token","BYRADIUS"],["name","unit","type","oneof","arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]]]],["name","box","type","block","arguments",[["name","width","type","double","display_text","width","token","BYBOX"],["name","height","type","double","display_text","height"],["name","unit","type","oneof","arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]]]]]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]],["name","count-block","type","block","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count","token","COUNT"],["name","any","type","pure-token","display_text","any","token","ANY","flags",["optional"]]]],["name","storedist","type","pure-token","display_text","storedist","token","STOREDIST","flags",["optional"]]]],"shutdown",["summary","Synchronously saves the database(s) to disk and shuts down the Redis server.","since","1.0.0","group","server","complexity","O(N) when saving, where N is the total number of keys in all databases when saving data, otherwise O(1)","history",[["7.0.0","Added the `NOW`, `FORCE` and `ABORT` modifiers."]],"arguments",[["name","save-selector","type","oneof","flags",["optional"],"arguments",[["name","nosave","type","pure-token","display_text","nosave","token","NOSAVE"],["name","save","type","pure-token","display_text","save","token","SAVE"]]],["name","now","type","pure-token","display_text","now","token","NOW","since","7.0.0","flags",["optional"]],["name","force","type","pure-token","display_text","force","token","FORCE","since","7.0.0","flags",["optional"]],["name","abort","type","pure-token","display_text","abort","token","ABORT","since","7.0.0","flags",["optional"]]]],"FT.EXPLAIN",["group","module","module","search"],"hrandfield",["summary","Returns one or more random fields from a hash.","since","6.2.0","group","hash","complexity","O(N) where N is the number of fields returned","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","options","type","block","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count"],["name","withvalues","type","pure-token","display_text","withvalues","token","WITHVALUES","flags",["optional"]]]]]],"pfdebug",["summary","Internal commands for debugging HyperLogLog values.","since","2.8.9","group","hyperloglog","complexity","N/A","doc_flags",["syscmd"],"arguments",[["name","subcommand","type","string","display_text","subcommand"],["name","key","type","key","display_text","key","key_spec_index",0]]],"sort",["summary","Sorts the elements in a list, a set, or a sorted set, optionally storing the result.","since","1.0.0","group","generic","complexity","O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N).","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","by-pattern","type","pattern","display_text","pattern","key_spec_index",1,"token","BY","flags",["optional"]],["name","limit","type","block","token","LIMIT","flags",["optional"],"arguments",[["name","offset","type","integer","display_text","offset"],["name","count","type","integer","display_text","count"]]],["name","get-pattern","type","pattern","display_text","pattern","key_spec_index",1,"token","GET","flags",["optional","multiple","multiple_token"]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]],["name","sorting","type","pure-token","display_text","sorting","token","ALPHA","flags",["optional"]],["name","destination","type","key","display_text","destination","key_spec_index",2,"token","STORE","flags",["optional"]]]],"echo",["summary","Returns the given string.","since","1.0.0","group","connection","complexity","O(1)","arguments",[["name","message","type","string","display_text","message"]]],"incr",["summary","Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.","since","1.0.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"_FT.CONFIG",["group","module","module","search"],"restore-asking",["summary","An internal command for migrating keys in a cluster.","since","3.0.0","group","server","complexity","O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).","doc_flags",["syscmd"],"history",[["3.0.0","Added the `REPLACE` modifier."],["5.0.0","Added the `ABSTTL` modifier."],["5.0.0","Added the `IDLETIME` and `FREQ` options."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","ttl","type","integer","display_text","ttl"],["name","serialized-value","type","string","display_text","serialized-value"],["name","replace","type","pure-token","display_text","replace","token","REPLACE","since","3.0.0","flags",["optional"]],["name","absttl","type","pure-token","display_text","absttl","token","ABSTTL","since","5.0.0","flags",["optional"]],["name","seconds","type","integer","display_text","seconds","token","IDLETIME","since","5.0.0","flags",["optional"]],["name","frequency","type","integer","display_text","frequency","token","FREQ","since","5.0.0","flags",["optional"]]]],"bf.info",["group","module","module","bf"],"georadius_ro",["summary","Returns members from a geospatial index that are within a distance from a coordinate.","since","3.2.10","group","geo","complexity","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`GEOSEARCH` with the `BYRADIUS` argument","history",[["6.2.0","Added the `ANY` option for `COUNT`."],["7.0.0","Added support for uppercase unit names."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","longitude","type","double","display_text","longitude"],["name","latitude","type","double","display_text","latitude"],["name","radius","type","double","display_text","radius"],["name","unit","type","oneof","arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]],["name","withcoord","type","pure-token","display_text","withcoord","token","WITHCOORD","flags",["optional"]],["name","withdist","type","pure-token","display_text","withdist","token","WITHDIST","flags",["optional"]],["name","withhash","type","pure-token","display_text","withhash","token","WITHHASH","flags",["optional"]],["name","count-block","type","block","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count","token","COUNT"],["name","any","type","pure-token","display_text","any","token","ANY","since","6.2.0","flags",["optional"]]]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]]]],"ts.mrevrange",["group","module","module","timeseries"],"dbsize",["summary","Returns the number of keys in the database.","since","1.0.0","group","server","complexity","O(1)"],"_FT.DEBUG",["group","module","module","search","subcommands",["_FT.DEBUG|GC_CONTINUE_SCHEDULE",["group","module","module","search"],"_FT.DEBUG|INDEXES",["group","module","module","search"],"_FT.DEBUG|DUMP_PHONETIC_HASH",["group","module","module","search"],"_FT.DEBUG|DUMP_NUMIDXTREE",["group","module","module","search"],"_FT.DEBUG|DUMP_TAGIDX",["group","module","module","search"],"_FT.DEBUG|TTL",["group","module","module","search"],"_FT.DEBUG|RESUME_TOPOLOGY_UPDATER",["group","module","module","search"],"_FT.DEBUG|GC_WAIT_FOR_JOBS",["group","module","module","search"],"_FT.DEBUG|TTL_EXPIRE",["group","module","module","search"],"_FT.DEBUG|SET_MONITOR_EXPIRATION",["group","module","module","search"],"_FT.DEBUG|IDTODOCID",["group","module","module","search"],"_FT.DEBUG|YIELDS_ON_LOAD_COUNTER",["group","module","module","search"],"_FT.DEBUG|HELP",["group","module","module","search"],"_FT.DEBUG|FT.AGGREGATE",["group","module","module","search"],"_FT.DEBUG|PAUSE_TOPOLOGY_UPDATER",["group","module","module","search"],"_FT.DEBUG|DUMP_SUFFIX_TRIE",["group","module","module","search"],"_FT.DEBUG|CLEAR_PENDING_TOPOLOGY",["group","module","module","search"],"_FT.DEBUG|DUMP_TERMS",["group","module","module","search"],"_FT.DEBUG|NUMIDX_SUMMARY",["group","module","module","search"],"_FT.DEBUG|DUMP_GEOMIDX",["group","module","module","search"],"_FT.DEBUG|GC_CLEAN_NUMERIC",["group","module","module","search"],"_FT.DEBUG|DUMP_PREFIX_TRIE",["group","module","module","search"],"_FT.DEBUG|FT.SEARCH",["group","module","module","search"],"_FT.DEBUG|GC_FORCEINVOKE",["group","module","module","search"],"_FT.DEBUG|VECSIM_INFO",["group","module","module","search"],"_FT.DEBUG|INFO",["group","module","module","search"],"_FT.DEBUG|WORKERS",["group","module","module","search"],"_FT.DEBUG|DOCINFO",["group","module","module","search"],"_FT.DEBUG|BG_SCAN_CONTROLLER",["group","module","module","search"],"_FT.DEBUG|GC_STOP_SCHEDULE",["group","module","module","search"],"_FT.DEBUG|GIT_SHA",["group","module","module","search"],"_FT.DEBUG|INVIDX_SUMMARY",["group","module","module","search"],"_FT.DEBUG|GC_FORCEBGINVOKE",["group","module","module","search"],"_FT.DEBUG|DUMP_NUMIDX",["group","module","module","search"],"_FT.DEBUG|SPEC_INVIDXES_INFO",["group","module","module","search"],"_FT.DEBUG|_FT.SEARCH",["group","module","module","search"],"_FT.DEBUG|DELETE_LOCAL_CURSORS",["group","module","module","search"],"_FT.DEBUG|TTL_PAUSE",["group","module","module","search"],"_FT.DEBUG|INFO_TAGIDX",["group","module","module","search"],"_FT.DEBUG|GET_HIDE_USER_DATA_FROM_LOGS",["group","module","module","search"],"_FT.DEBUG|DUMP_HNSW",["group","module","module","search"],"_FT.DEBUG|DOCIDTOID",["group","module","module","search"],"_FT.DEBUG|SHARD_CONNECTION_STATES",["group","module","module","search"],"_FT.DEBUG|_FT.AGGREGATE",["group","module","module","search"],"_FT.DEBUG|DUMP_INVIDX",["group","module","module","search"]]],"setex",["summary","Sets the string value and expiration time of a key. Creates the key if it doesn't exist.","since","2.0.0","group","string","complexity","O(1)","doc_flags",["deprecated"],"deprecated_since","2.6.12","replaced_by","`SET` with the `EX` argument","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","seconds","type","integer","display_text","seconds"],["name","value","type","string","display_text","value"]]],"zpopmax",["summary","Returns the highest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped.","since","5.0.0","group","sorted-set","complexity","O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","count","type","integer","display_text","count","flags",["optional"]]]],"mget",["summary","Atomically returns the string values of one or more keys.","since","1.0.0","group","string","complexity","O(N) where N is the number of keys to retrieve.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"json.numincrby",["group","module","module","ReJSON"],"geoadd",["summary","Adds one or more members to a geospatial index. The key is created if it doesn't exist.","since","3.2.0","group","geo","complexity","O(log(N)) for each item added, where N is the number of elements in the sorted set.","history",[["6.2.0","Added the `CH`, `NX` and `XX` options."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","condition","type","oneof","since","6.2.0","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"]]],["name","change","type","pure-token","display_text","change","token","CH","since","6.2.0","flags",["optional"]],["name","data","type","block","flags",["multiple"],"arguments",[["name","longitude","type","double","display_text","longitude"],["name","latitude","type","double","display_text","latitude"],["name","member","type","string","display_text","member"]]]]],"cms.incrby",["group","module","module","bf"],"bf.exists",["group","module","module","bf"],"linsert",["summary","Inserts an element before or after another element in a list.","since","2.2.0","group","list","complexity","O(N) where N is the number of elements to traverse before seeing the value pivot. This means that inserting somewhere on the left end on the list (head) can be considered O(1) and inserting somewhere on the right end (tail) is O(N).","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","where","type","oneof","arguments",[["name","before","type","pure-token","display_text","before","token","BEFORE"],["name","after","type","pure-token","display_text","after","token","AFTER"]]],["name","pivot","type","string","display_text","pivot"],["name","element","type","string","display_text","element"]]],"bzpopmin",["summary","Removes and returns the member with the lowest score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.","since","5.0.0","group","sorted-set","complexity","O(log(N)) with N being the number of elements in the sorted set.","history",[["6.0.0","`timeout` is interpreted as a double instead of an integer."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","timeout","type","double","display_text","timeout"]]],"sync",["summary","An internal command used in replication.","since","1.0.0","group","server"],"FT.DICTDEL",["group","module","module","search"],"randomkey",["summary","Returns a random key name from the database.","since","1.0.0","group","generic","complexity","O(1)"],"replconf",["summary","An internal command for configuring the replication stream.","since","3.0.0","group","server","complexity","O(1)","doc_flags",["syscmd"]],"ts.incrby",["group","module","module","timeseries"],"bgrewriteaof",["summary","Asynchronously rewrites the append-only file to disk.","since","1.0.0","group","server","complexity","O(1)"],"ts.del",["group","module","module","timeseries"],"monitor",["summary","Listens for all requests received by the server in real-time.","since","1.0.0","group","server"],"eval_ro",["summary","Executes a read-only server-side Lua script.","since","7.0.0","group","scripting","complexity","Depends on the script that is executed.","arguments",[["name","script","type","string","display_text","script"],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["optional","multiple"]],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"slaveof",["summary","Sets a Redis server as a replica of another, or promotes it to being a master.","since","1.0.0","group","server","complexity","O(1)","doc_flags",["deprecated"],"deprecated_since","5.0.0","replaced_by","`REPLICAOF`","arguments",[["name","args","type","oneof","arguments",[["name","host-port","type","block","arguments",[["name","host","type","string","display_text","host"],["name","port","type","integer","display_text","port"]]],["name","no-one","type","block","arguments",[["name","no","type","pure-token","display_text","no","token","NO"],["name","one","type","pure-token","display_text","one","token","ONE"]]]]]]],"lpush",["summary","Prepends one or more elements to a list. Creates the key if it doesn't exist.","since","1.0.0","group","list","complexity","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","history",[["2.4.0","Accepts multiple `element` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","element","type","string","display_text","element","flags",["multiple"]]]],"touch",["summary","Returns the number of existing keys out of those specified after updating the time they were last accessed.","since","3.2.1","group","generic","complexity","O(N) where N is the number of keys that will be touched.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"hgetdel",["summary","Returns the value of a field and deletes it from the hash.","since","8.0.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"json.objlen",["group","module","module","ReJSON"],"ts.queryindex",["group","module","module","timeseries"],"hgetall",["summary","Returns all fields and values in a hash.","since","2.0.0","group","hash","complexity","O(N) where N is the size of the hash.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"append",["summary","Appends a string to the value of a key. Creates the key if it doesn't exist.","since","2.0.0","group","string","complexity","O(1). The amortized time complexity is O(1) assuming the appended value is small and the already present value is of any size, since the dynamic string library used by Redis will double the free space available on every reallocation.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","value","type","string","display_text","value"]]],"readwrite",["summary","Enables read-write queries for a connection to a Reids Cluster replica node.","since","3.0.0","group","cluster","complexity","O(1)"],"save",["summary","Synchronously saves the database(s) to disk.","since","1.0.0","group","server","complexity","O(N) where N is the total number of keys in all databases"],"ts.create",["group","module","module","timeseries"],"hscan",["summary","Iterates over fields and values of a hash.","since","2.8.0","group","hash","complexity","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","cursor","type","integer","display_text","cursor"],["name","pattern","type","pattern","display_text","pattern","token","MATCH","flags",["optional"]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]],["name","novalues","type","pure-token","display_text","novalues","token","NOVALUES","flags",["optional"]]]],"zadd",["summary","Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist.","since","1.2.0","group","sorted-set","complexity","O(log(N)) for each item added, where N is the number of elements in the sorted set.","history",[["2.4.0","Accepts multiple elements."],["3.0.2","Added the `XX`, `NX`, `CH` and `INCR` options."],["6.2.0","Added the `GT` and `LT` options."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","condition","type","oneof","since","3.0.2","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"]]],["name","comparison","type","oneof","since","6.2.0","flags",["optional"],"arguments",[["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]],["name","change","type","pure-token","display_text","change","token","CH","since","3.0.2","flags",["optional"]],["name","increment","type","pure-token","display_text","increment","token","INCR","since","3.0.2","flags",["optional"]],["name","data","type","block","flags",["multiple"],"arguments",[["name","score","type","double","display_text","score"],["name","member","type","string","display_text","member"]]]]],"bitfield",["summary","Performs arbitrary bitfield integer operations on strings.","since","3.2.0","group","bitmap","complexity","O(1) for each subcommand specified","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","operation","type","oneof","flags",["optional","multiple"],"arguments",[["name","get-block","type","block","token","GET","arguments",[["name","encoding","type","string","display_text","encoding"],["name","offset","type","integer","display_text","offset"]]],["name","write","type","block","arguments",[["name","overflow-block","type","oneof","token","OVERFLOW","flags",["optional"],"arguments",[["name","wrap","type","pure-token","display_text","wrap","token","WRAP"],["name","sat","type","pure-token","display_text","sat","token","SAT"],["name","fail","type","pure-token","display_text","fail","token","FAIL"]]],["name","write-operation","type","oneof","arguments",[["name","set-block","type","block","token","SET","arguments",[["name","encoding","type","string","display_text","encoding"],["name","offset","type","integer","display_text","offset"],["name","value","type","integer","display_text","value"]]],["name","incrby-block","type","block","token","INCRBY","arguments",[["name","encoding","type","string","display_text","encoding"],["name","offset","type","integer","display_text","offset"],["name","increment","type","integer","display_text","increment"]]]]]]]]]]],"ltrim",["summary","Removes elements from both ends a list. Deletes the list if all elements were trimmed.","since","1.0.0","group","list","complexity","O(N) where N is the number of elements to be removed by the operation.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","start","type","integer","display_text","start"],["name","stop","type","integer","display_text","stop"]]],"ttl",["summary","Returns the expiration time in seconds of a key.","since","1.0.0","group","generic","complexity","O(1)","history",[["2.8.0","Added the -2 reply."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"search.CLUSTERREFRESH",["group","module","module","search"],"getex",["summary","Returns the string value of a key after setting its expiration time.","since","6.2.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","expiration","type","oneof","flags",["optional"],"arguments",[["name","seconds","type","integer","display_text","seconds","token","EX"],["name","milliseconds","type","integer","display_text","milliseconds","token","PX"],["name","unix-time-seconds","type","unix-time","display_text","unix-time-seconds","token","EXAT"],["name","unix-time-milliseconds","type","unix-time","display_text","unix-time-milliseconds","token","PXAT"],["name","persist","type","pure-token","display_text","persist","token","PERSIST"]]]]],"ts.alter",["group","module","module","timeseries"],"timeseries.CLUSTERSET",["group","module","module","timeseries"],"tdigest.merge",["group","module","module","bf"],"evalsha",["summary","Executes a server-side Lua script by SHA1 digest.","since","2.6.0","group","scripting","complexity","Depends on the script that is executed.","arguments",[["name","sha1","type","string","display_text","sha1"],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["optional","multiple"]],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"pexpire",["summary","Sets the expiration time of a key in milliseconds.","since","2.6.0","group","generic","complexity","O(1)","history",[["7.0.0","Added options: `NX`, `XX`, `GT` and `LT`."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","milliseconds","type","integer","display_text","milliseconds"],["name","condition","type","oneof","since","7.0.0","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"],["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]]]],"json.numpowby",["group","module","module","ReJSON"],"json.del",["group","module","module","ReJSON"],"bf.debug",["group","module","module","bf"],"zrangestore",["summary","Stores a range of members from sorted set in a key.","since","6.2.0","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements stored into the destination key.","arguments",[["name","dst","type","key","display_text","dst","key_spec_index",0],["name","src","type","key","display_text","src","key_spec_index",1],["name","min","type","string","display_text","min"],["name","max","type","string","display_text","max"],["name","sortby","type","oneof","flags",["optional"],"arguments",[["name","byscore","type","pure-token","display_text","byscore","token","BYSCORE"],["name","bylex","type","pure-token","display_text","bylex","token","BYLEX"]]],["name","rev","type","pure-token","display_text","rev","token","REV","flags",["optional"]],["name","limit","type","block","token","LIMIT","flags",["optional"],"arguments",[["name","offset","type","integer","display_text","offset"],["name","count","type","integer","display_text","count"]]]]],"tdigest.trimmed_mean",["group","module","module","bf"],"lmpop",["summary","Returns multiple elements from a list after removing them. Deletes the list if the last element was popped.","since","7.0.0","group","list","complexity","O(N+M) where N is the number of provided keys and M is the number of elements returned.","arguments",[["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","where","type","oneof","arguments",[["name","left","type","pure-token","display_text","left","token","LEFT"],["name","right","type","pure-token","display_text","right","token","RIGHT"]]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]],"ts.add",["group","module","module","timeseries"],"FT.CURSOR",["group","module","module","search"],"set",["summary","Sets the string value of a key, ignoring its type. The key is created if it doesn't exist.","since","1.0.0","group","string","complexity","O(1)","history",[["2.6.12","Added the `EX`, `PX`, `NX` and `XX` options."],["6.0.0","Added the `KEEPTTL` option."],["6.2.0","Added the `GET`, `EXAT` and `PXAT` option."],["7.0.0","Allowed the `NX` and `GET` options to be used together."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","value","type","string","display_text","value"],["name","condition","type","oneof","since","2.6.12","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"]]],["name","get","type","pure-token","display_text","get","token","GET","since","6.2.0","flags",["optional"]],["name","expiration","type","oneof","flags",["optional"],"arguments",[["name","seconds","type","integer","display_text","seconds","token","EX","since","2.6.12"],["name","milliseconds","type","integer","display_text","milliseconds","token","PX","since","2.6.12"],["name","unix-time-seconds","type","unix-time","display_text","unix-time-seconds","token","EXAT","since","6.2.0"],["name","unix-time-milliseconds","type","unix-time","display_text","unix-time-milliseconds","token","PXAT","since","6.2.0"],["name","keepttl","type","pure-token","display_text","keepttl","token","KEEPTTL","since","6.0.0"]]]]],"spublish",["summary","Post a message to a shard channel","since","7.0.0","group","pubsub","complexity","O(N) where N is the number of clients subscribed to the receiving shard channel.","arguments",[["name","shardchannel","type","string","display_text","shardchannel"],["name","message","type","string","display_text","message"]]],"client",["summary","A container for client connection commands.","since","2.4.0","group","connection","complexity","Depends on subcommand.","subcommands",["client|unpause",["summary","Resumes processing commands from paused clients.","since","6.2.0","group","connection","complexity","O(N) Where N is the number of paused clients"],"client|id",["summary","Returns the unique client ID of the connection.","since","5.0.0","group","connection","complexity","O(1)"],"client|info",["summary","Returns information about the connection.","since","6.2.0","group","connection","complexity","O(1)"],"client|reply",["summary","Instructs the server whether to reply to commands.","since","3.2.0","group","connection","complexity","O(1)","arguments",[["name","action","type","oneof","arguments",[["name","on","type","pure-token","display_text","on","token","ON"],["name","off","type","pure-token","display_text","off","token","OFF"],["name","skip","type","pure-token","display_text","skip","token","SKIP"]]]]],"client|setinfo",["summary","Sets information specific to the client or connection.","since","7.2.0","group","connection","complexity","O(1)","arguments",[["name","attr","type","oneof","arguments",[["name","libname","type","string","display_text","libname","token","LIB-NAME"],["name","libver","type","string","display_text","libver","token","LIB-VER"]]]]],"client|caching",["summary","Instructs the server whether to track the keys in the next request.","since","6.0.0","group","connection","complexity","O(1)","arguments",[["name","mode","type","oneof","arguments",[["name","yes","type","pure-token","display_text","yes","token","YES"],["name","no","type","pure-token","display_text","no","token","NO"]]]]],"client|getredir",["summary","Returns the client ID to which the connection's tracking notifications are redirected.","since","6.0.0","group","connection","complexity","O(1)"],"client|trackinginfo",["summary","Returns information about server-assisted client-side caching for the connection.","since","6.2.0","group","connection","complexity","O(1)"],"client|kill",["summary","Terminates open connections.","since","2.4.0","group","connection","complexity","O(N) where N is the number of client connections","history",[["2.8.12","Added new filter format."],["2.8.12","`ID` option."],["3.2.0","Added `master` type in for `TYPE` option."],["5.0.0","Replaced `slave` `TYPE` with `replica`. `slave` still supported for backward compatibility."],["6.2.0","`LADDR` option."],["7.4.0","`MAXAGE` option."]],"arguments",[["name","filter","type","oneof","arguments",[["name","old-format","type","string","display_text","ip:port","deprecated_since","2.8.12"],["name","new-format","type","oneof","flags",["multiple"],"arguments",[["name","client-id","type","integer","display_text","client-id","token","ID","since","2.8.12","flags",["optional"]],["name","client-type","type","oneof","token","TYPE","since","2.8.12","flags",["optional"],"arguments",[["name","normal","type","pure-token","display_text","normal","token","NORMAL"],["name","master","type","pure-token","display_text","master","token","MASTER","since","3.2.0"],["name","slave","type","pure-token","display_text","slave","token","SLAVE"],["name","replica","type","pure-token","display_text","replica","token","REPLICA","since","5.0.0"],["name","pubsub","type","pure-token","display_text","pubsub","token","PUBSUB"]]],["name","username","type","string","display_text","username","token","USER","flags",["optional"]],["name","addr","type","string","display_text","ip:port","token","ADDR","flags",["optional"]],["name","laddr","type","string","display_text","ip:port","token","LADDR","since","6.2.0","flags",["optional"]],["name","skipme","type","oneof","token","SKIPME","flags",["optional"],"arguments",[["name","yes","type","pure-token","display_text","yes","token","YES"],["name","no","type","pure-token","display_text","no","token","NO"]]],["name","maxage","type","integer","display_text","maxage","token","MAXAGE","since","7.4.0","flags",["optional"]]]]]]]],"client|no-evict",["summary","Sets the client eviction mode of the connection.","since","7.0.0","group","connection","complexity","O(1)","arguments",[["name","enabled","type","oneof","arguments",[["name","on","type","pure-token","display_text","on","token","ON"],["name","off","type","pure-token","display_text","off","token","OFF"]]]]],"client|help",["summary","Returns helpful text about the different subcommands.","since","5.0.0","group","connection","complexity","O(1)"],"client|tracking",["summary","Controls server-assisted client-side caching for the connection.","since","6.0.0","group","connection","complexity","O(1). Some options may introduce additional complexity.","arguments",[["name","status","type","oneof","arguments",[["name","on","type","pure-token","display_text","on","token","ON"],["name","off","type","pure-token","display_text","off","token","OFF"]]],["name","client-id","type","integer","display_text","client-id","token","REDIRECT","flags",["optional"]],["name","prefix","type","string","display_text","prefix","token","PREFIX","flags",["optional","multiple","multiple_token"]],["name","bcast","type","pure-token","display_text","bcast","token","BCAST","flags",["optional"]],["name","optin","type","pure-token","display_text","optin","token","OPTIN","flags",["optional"]],["name","optout","type","pure-token","display_text","optout","token","OPTOUT","flags",["optional"]],["name","noloop","type","pure-token","display_text","noloop","token","NOLOOP","flags",["optional"]]]],"client|unblock",["summary","Unblocks a client blocked by a blocking command from a different connection.","since","5.0.0","group","connection","complexity","O(log N) where N is the number of client connections","arguments",[["name","client-id","type","integer","display_text","client-id"],["name","unblock-type","type","oneof","flags",["optional"],"arguments",[["name","timeout","type","pure-token","display_text","timeout","token","TIMEOUT"],["name","error","type","pure-token","display_text","error","token","ERROR"]]]]],"client|getname",["summary","Returns the name of the connection.","since","2.6.9","group","connection","complexity","O(1)"],"client|list",["summary","Lists open connections.","since","2.4.0","group","connection","complexity","O(N) where N is the number of client connections","history",[["2.8.12","Added unique client `id` field."],["5.0.0","Added optional `TYPE` filter."],["6.0.0","Added `user` field."],["6.2.0","Added `argv-mem`, `tot-mem`, `laddr` and `redir` fields and the optional `ID` filter."],["7.0.0","Added `resp`, `multi-mem`, `rbs` and `rbp` fields."],["7.0.3","Added `ssub` field."],["7.2.0","Added `lib-name` and `lib-ver` fields."],["7.4.0","Added `watch` field."],["8.0.0","Added `io-thread` field."]],"arguments",[["name","client-type","type","oneof","token","TYPE","since","5.0.0","flags",["optional"],"arguments",[["name","normal","type","pure-token","display_text","normal","token","NORMAL"],["name","master","type","pure-token","display_text","master","token","MASTER"],["name","replica","type","pure-token","display_text","replica","token","REPLICA"],["name","pubsub","type","pure-token","display_text","pubsub","token","PUBSUB"]]],["name","client-id","type","integer","display_text","client-id","token","ID","since","6.2.0","flags",["optional","multiple"]]]],"client|pause",["summary","Suspends commands processing.","since","3.0.0","group","connection","complexity","O(1)","history",[["6.2.0","`CLIENT PAUSE WRITE` mode added along with the `mode` option."]],"arguments",[["name","timeout","type","integer","display_text","timeout"],["name","mode","type","oneof","since","6.2.0","flags",["optional"],"arguments",[["name","write","type","pure-token","display_text","write","token","WRITE"],["name","all","type","pure-token","display_text","all","token","ALL"]]]]],"client|no-touch",["summary","Controls whether commands sent by the client affect the LRU/LFU of accessed keys.","since","7.2.0","group","connection","complexity","O(1)","arguments",[["name","enabled","type","oneof","arguments",[["name","on","type","pure-token","display_text","on","token","ON"],["name","off","type","pure-token","display_text","off","token","OFF"]]]]],"client|setname",["summary","Sets the connection name.","since","2.6.9","group","connection","complexity","O(1)","arguments",[["name","connection-name","type","string","display_text","connection-name"]]]]],"FT._DROPINDEXIFX",["group","module","module","search"],"VREM",["group","module","module","vectorset"],"hset",["summary","Creates or modifies the value of a field in a hash.","since","2.0.0","group","hash","complexity","O(1) for each field/value pair added, so O(N) to add N field/value pairs when the command is called with multiple field/value pairs.","history",[["4.0.0","Accepts multiple `field` and `value` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","data","type","block","flags",["multiple"],"arguments",[["name","field","type","string","display_text","field"],["name","value","type","string","display_text","value"]]]]],"zcard",["summary","Returns the number of members in a sorted set.","since","1.2.0","group","sorted-set","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"publish",["summary","Posts a message to a channel.","since","2.0.0","group","pubsub","complexity","O(N+M) where N is the number of clients subscribed to the receiving channel and M is the total number of subscribed patterns (by any client).","arguments",[["name","channel","type","string","display_text","channel"],["name","message","type","string","display_text","message"]]],"xsetid",["summary","An internal command for replicating stream values.","since","5.0.0","group","stream","complexity","O(1)","history",[["7.0.0","Added the `entries_added` and `max_deleted_entry_id` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","last-id","type","string","display_text","last-id"],["name","entries-added","type","integer","display_text","entries-added","token","ENTRIESADDED","since","7.0.0","flags",["optional"]],["name","max-deleted-id","type","string","display_text","max-deleted-id","token","MAXDELETEDID","since","7.0.0","flags",["optional"]]]],"lrem",["summary","Removes elements from a list. Deletes the list if the last element was removed.","since","1.0.0","group","list","complexity","O(N+M) where N is the length of the list and M is the number of elements removed.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","count","type","integer","display_text","count"],["name","element","type","string","display_text","element"]]],"zremrangebylex",["summary","Removes members in a sorted set within a lexicographical range. Deletes the sorted set if all members were removed.","since","2.8.9","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","min","type","string","display_text","min"],["name","max","type","string","display_text","max"]]],"tdigest.byrank",["group","module","module","bf"],"search.CLUSTERINFO",["group","module","module","search"],"sscan",["summary","Iterates over members of a set.","since","2.8.0","group","set","complexity","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","cursor","type","integer","display_text","cursor"],["name","pattern","type","pattern","display_text","pattern","token","MATCH","flags",["optional"]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]],"strlen",["summary","Returns the length of a string value.","since","2.2.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"bf.insert",["group","module","module","bf"],"spop",["summary","Returns one or more random members from a set after removing them. Deletes the set if the last member was popped.","since","1.0.0","group","set","complexity","Without the count argument O(1), otherwise O(N) where N is the value of the passed count.","history",[["3.2.0","Added the `count` argument."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","count","type","integer","display_text","count","since","3.2.0","flags",["optional"]]]],"cf.exists",["group","module","module","bf"],"topk.query",["group","module","module","bf"],"psubscribe",["summary","Listens for messages published to channels that match one or more patterns.","since","2.0.0","group","pubsub","complexity","O(N) where N is the number of patterns to subscribe to.","arguments",[["name","pattern","type","pattern","display_text","pattern","flags",["multiple"]]]],"FT.DROP",["group","module","module","search"],"readonly",["summary","Enables read-only queries for a connection to a Redis Cluster replica node.","since","3.0.0","group","cluster","complexity","O(1)"],"restore",["summary","Creates a key from the serialized representation of a value.","since","2.6.0","group","generic","complexity","O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).","history",[["3.0.0","Added the `REPLACE` modifier."],["5.0.0","Added the `ABSTTL` modifier."],["5.0.0","Added the `IDLETIME` and `FREQ` options."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","ttl","type","integer","display_text","ttl"],["name","serialized-value","type","string","display_text","serialized-value"],["name","replace","type","pure-token","display_text","replace","token","REPLACE","since","3.0.0","flags",["optional"]],["name","absttl","type","pure-token","display_text","absttl","token","ABSTTL","since","5.0.0","flags",["optional"]],["name","seconds","type","integer","display_text","seconds","token","IDLETIME","since","5.0.0","flags",["optional"]],["name","frequency","type","integer","display_text","frequency","token","FREQ","since","5.0.0","flags",["optional"]]]],"FT.ADD",["group","module","module","search"],"sinter",["summary","Returns the intersect of multiple sets.","since","1.0.0","group","set","complexity","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"srandmember",["summary","Get one or multiple random members from a set","since","1.0.0","group","set","complexity","Without the count argument O(1), otherwise O(N) where N is the absolute value of the passed count.","history",[["2.6.0","Added the optional `count` argument."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","count","type","integer","display_text","count","since","2.6.0","flags",["optional"]]]],"pfadd",["summary","Adds elements to a HyperLogLog key. Creates the key if it doesn't exist.","since","2.8.9","group","hyperloglog","complexity","O(1) to add every element.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","element","type","string","display_text","element","flags",["optional","multiple"]]]],"fcall_ro",["summary","Invokes a read-only function.","since","7.0.0","group","scripting","complexity","Depends on the function that is executed.","arguments",[["name","function","type","string","display_text","function"],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["optional","multiple"]],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"ts.mrange",["group","module","module","timeseries"],"hmget",["summary","Returns the values of all fields in a hash.","since","2.0.0","group","hash","complexity","O(N) where N is the number of fields being requested.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","field","type","string","display_text","field","flags",["multiple"]]]],"VCARD",["group","module","module","vectorset"],"expire",["summary","Sets the expiration time of a key in seconds.","since","1.0.0","group","generic","complexity","O(1)","history",[["7.0.0","Added options: `NX`, `XX`, `GT` and `LT`."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","seconds","type","integer","display_text","seconds"],["name","condition","type","oneof","since","7.0.0","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"],["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]]]],"setrange",["summary","Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist.","since","2.2.0","group","string","complexity","O(1), not counting the time taken to copy the new string in place. Usually, this string is very small so the amortized complexity is O(1). Otherwise, complexity is O(M) with M being the length of the value argument.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","offset","type","integer","display_text","offset"],["name","value","type","string","display_text","value"]]],"FT.SYNDUMP",["group","module","module","search"],"unsubscribe",["summary","Stops listening to messages posted to channels.","since","2.0.0","group","pubsub","complexity","O(N) where N is the number of channels to unsubscribe.","arguments",[["name","channel","type","string","display_text","channel","flags",["optional","multiple"]]]],"brpop",["summary","Removes and returns the last element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.","since","2.0.0","group","list","complexity","O(N) where N is the number of provided keys.","history",[["6.0.0","`timeout` is interpreted as a double instead of an integer."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","timeout","type","double","display_text","timeout"]]],"georadiusbymember",["summary","Queries a geospatial index for members within a distance from a member, optionally stores the result.","since","3.2.0","group","geo","complexity","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`GEOSEARCH` and `GEOSEARCHSTORE` with the `BYRADIUS` and `FROMMEMBER` arguments","history",[["6.2.0","Added the `ANY` option for `COUNT`."],["7.0.0","Added support for uppercase unit names."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member"],["name","radius","type","double","display_text","radius"],["name","unit","type","oneof","arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]],["name","withcoord","type","pure-token","display_text","withcoord","token","WITHCOORD","flags",["optional"]],["name","withdist","type","pure-token","display_text","withdist","token","WITHDIST","flags",["optional"]],["name","withhash","type","pure-token","display_text","withhash","token","WITHHASH","flags",["optional"]],["name","count-block","type","block","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count","token","COUNT"],["name","any","type","pure-token","display_text","any","token","ANY","flags",["optional"]]]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]],["name","store","type","oneof","flags",["optional"],"arguments",[["name","storekey","type","key","display_text","key","key_spec_index",1,"token","STORE"],["name","storedistkey","type","key","display_text","key","key_spec_index",2,"token","STOREDIST"]]]]],"lindex",["summary","Returns an element from a list by its index.","since","1.0.0","group","list","complexity","O(N) where N is the number of elements to traverse to get to the element at index. This makes asking for the first or the last element of the list O(1).","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","index","type","integer","display_text","index"]]],"psetex",["summary","Sets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist.","since","2.6.0","group","string","complexity","O(1)","doc_flags",["deprecated"],"deprecated_since","2.6.12","replaced_by","`SET` with the `PX` argument","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","milliseconds","type","integer","display_text","milliseconds"],["name","value","type","string","display_text","value"]]],"pfcount",["summary","Returns the approximated cardinality of the set(s) observed by the HyperLogLog key(s).","since","2.8.9","group","hyperloglog","complexity","O(1) with a very small average constant time when called with a single key. O(N) with N being the number of keys, and much bigger constant times, when called with multiple keys.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"memory",["summary","A container for memory diagnostics commands.","since","4.0.0","group","server","complexity","Depends on subcommand.","subcommands",["memory|doctor",["summary","Outputs a memory problems report.","since","4.0.0","group","server","complexity","O(1)"],"memory|stats",["summary","Returns details about memory usage.","since","4.0.0","group","server","complexity","O(1)"],"memory|usage",["summary","Estimates the memory usage of a key.","since","4.0.0","group","server","complexity","O(N) where N is the number of samples.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","count","type","integer","display_text","count","token","SAMPLES","flags",["optional"]]]],"memory|malloc-stats",["summary","Returns the allocator statistics.","since","4.0.0","group","server","complexity","Depends on how much memory is allocated, could be slow"],"memory|help",["summary","Returns helpful text about the different subcommands.","since","4.0.0","group","server","complexity","O(1)"],"memory|purge",["summary","Asks the allocator to release memory.","since","4.0.0","group","server","complexity","Depends on how much memory is allocated, could be slow"]]],"rpoplpush",["summary","Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped.","since","1.2.0","group","list","complexity","O(1)","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`LMOVE` with the `RIGHT` and `LEFT` arguments","arguments",[["name","source","type","key","display_text","source","key_spec_index",0],["name","destination","type","key","display_text","destination","key_spec_index",1]]],"xrevrange",["summary","Returns the messages from a stream within a range of IDs in reverse order.","since","5.0.0","group","stream","complexity","O(N) with N being the number of elements returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).","history",[["6.2.0","Added exclusive ranges."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","end","type","string","display_text","end"],["name","start","type","string","display_text","start"],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]],"topk.count",["group","module","module","bf"],"cf.del",["group","module","module","bf"],"lcs",["summary","Finds the longest common substring.","since","7.0.0","group","string","complexity","O(N*M) where N and M are the lengths of s1 and s2, respectively","arguments",[["name","key1","type","key","display_text","key1","key_spec_index",0],["name","key2","type","key","display_text","key2","key_spec_index",0],["name","len","type","pure-token","display_text","len","token","LEN","flags",["optional"]],["name","idx","type","pure-token","display_text","idx","token","IDX","flags",["optional"]],["name","min-match-len","type","integer","display_text","min-match-len","token","MINMATCHLEN","flags",["optional"]],["name","withmatchlen","type","pure-token","display_text","withmatchlen","token","WITHMATCHLEN","flags",["optional"]]]],"xdelex",["summary","Deletes one or multiple entries from the stream.","since","8.2.0","group","stream","complexity","O(1) for each single item to delete in the stream, regardless of the stream size.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","keepref","type","pure-token","display_text","keepref","token","KEEPREF"],["name","delref","type","pure-token","display_text","delref","token","DELREF"],["name","acked","type","pure-token","display_text","acked","token","ACKED"]]],["name","ids","type","block","token","IDS","arguments",[["name","numids","type","integer","display_text","numids"],["name","id","type","string","display_text","id","flags",["multiple"]]]]]],"FT.ALTER",["group","module","module","search"],"json.strlen",["group","module","module","ReJSON"],"json.mget",["group","module","module","ReJSON"],"ping",["summary","Returns the server's liveliness response.","since","1.0.0","group","connection","complexity","O(1)","arguments",[["name","message","type","string","display_text","message","flags",["optional"]]]],"search.CLUSTERSET",["group","module","module","search"],"role",["summary","Returns the replication role.","since","2.8.12","group","server","complexity","O(1)"],"setnx",["summary","Set the string value of a key only when the key doesn't exist.","since","1.0.0","group","string","complexity","O(1)","doc_flags",["deprecated"],"deprecated_since","2.6.12","replaced_by","`SET` with the `NX` argument","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","value","type","string","display_text","value"]]],"rename",["summary","Renames a key and overwrites the destination.","since","1.0.0","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","newkey","type","key","display_text","newkey","key_spec_index",1]]],"zinterstore",["summary","Stores the intersect of multiple sorted sets in a key.","since","2.0.0","group","sorted-set","complexity","O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.","arguments",[["name","destination","type","key","display_text","destination","key_spec_index",0],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",1,"flags",["multiple"]],["name","weight","type","integer","display_text","weight","token","WEIGHTS","flags",["optional","multiple"]],["name","aggregate","type","oneof","token","AGGREGATE","flags",["optional"],"arguments",[["name","sum","type","pure-token","display_text","sum","token","SUM"],["name","min","type","pure-token","display_text","min","token","MIN"],["name","max","type","pure-token","display_text","max","token","MAX"]]]]],"ts.revrange",["group","module","module","timeseries"],"subscribe",["summary","Listens for messages published to channels.","since","2.0.0","group","pubsub","complexity","O(N) where N is the number of channels to subscribe to.","arguments",[["name","channel","type","string","display_text","channel","flags",["multiple"]]]],"json.nummultby",["group","module","module","ReJSON"],"FT.ALIASUPDATE",["group","module","module","search"],"lolwut",["summary","Displays computer art and the Redis version","since","5.0.0","group","server","arguments",[["name","version","type","integer","display_text","version","token","VERSION","flags",["optional"]]]],"VLINKS",["group","module","module","vectorset"],"cf.count",["group","module","module","bf"],"info",["summary","Returns information and statistics about the server.","since","1.0.0","group","server","complexity","O(1)","history",[["7.0.0","Added support for taking multiple section arguments."]],"arguments",[["name","section","type","string","display_text","section","flags",["optional","multiple"]]]],"FT.ALIASADD",["group","module","module","search"],"json.arrinsert",["group","module","module","ReJSON"],"bf.scandump",["group","module","module","bf"],"dump",["summary","Returns a serialized representation of the value stored at a key.","since","2.6.0","group","generic","complexity","O(1) to access the key and additional O(N*M) to serialize it, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1).","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"zunionstore",["summary","Stores the union of multiple sorted sets in a key.","since","2.0.0","group","sorted-set","complexity","O(N)+O(M log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.","arguments",[["name","destination","type","key","display_text","destination","key_spec_index",0],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",1,"flags",["multiple"]],["name","weight","type","integer","display_text","weight","token","WEIGHTS","flags",["optional","multiple"]],["name","aggregate","type","oneof","token","AGGREGATE","flags",["optional"],"arguments",[["name","sum","type","pure-token","display_text","sum","token","SUM"],["name","min","type","pure-token","display_text","min","token","MIN"],["name","max","type","pure-token","display_text","max","token","MAX"]]]]],"FT._DROPIFX",["group","module","module","search"],"decr",["summary","Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.","since","1.0.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"asking",["summary","Signals that a cluster client is following an -ASK redirect.","since","3.0.0","group","cluster","complexity","O(1)"],"json.arrappend",["group","module","module","ReJSON"],"pttl",["summary","Returns the expiration time in milliseconds of a key.","since","2.6.0","group","generic","complexity","O(1)","history",[["2.8.0","Added the -2 reply."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"tdigest.add",["group","module","module","bf"],"debug",["summary","A container for debugging commands.","since","1.0.0","group","server","complexity","Depends on subcommand.","doc_flags",["syscmd"]],"hgetex",["summary","Get the value of one or more fields of a given hash key, and optionally set their expiration.","since","8.0.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","expiration","type","oneof","flags",["optional"],"arguments",[["name","seconds","type","integer","display_text","seconds","token","EX"],["name","milliseconds","type","integer","display_text","milliseconds","token","PX"],["name","unix-time-seconds","type","unix-time","display_text","unix-time-seconds","token","EXAT"],["name","unix-time-milliseconds","type","unix-time","display_text","unix-time-milliseconds","token","PXAT"],["name","persist","type","pure-token","display_text","persist","token","PERSIST"]]],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"zrevrangebylex",["summary","Returns members in a sorted set within a lexicographical range in reverse order.","since","2.8.9","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`ZRANGE` with the `REV` and `BYLEX` arguments","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","max","type","string","display_text","max"],["name","min","type","string","display_text","min"],["name","limit","type","block","token","LIMIT","flags",["optional"],"arguments",[["name","offset","type","integer","display_text","offset"],["name","count","type","integer","display_text","count"]]]]],"VEMB",["group","module","module","vectorset"],"xread",["summary","Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise.","since","5.0.0","group","stream","arguments",[["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]],["name","milliseconds","type","integer","display_text","milliseconds","token","BLOCK","flags",["optional"]],["name","streams","type","block","token","STREAMS","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","id","type","string","display_text","id","flags",["multiple"]]]]]],"zrange",["summary","Returns members in a sorted set within a range of indexes.","since","1.2.0","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.","history",[["6.2.0","Added the `REV`, `BYSCORE`, `BYLEX` and `LIMIT` options."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","start","type","string","display_text","start"],["name","stop","type","string","display_text","stop"],["name","sortby","type","oneof","since","6.2.0","flags",["optional"],"arguments",[["name","byscore","type","pure-token","display_text","byscore","token","BYSCORE"],["name","bylex","type","pure-token","display_text","bylex","token","BYLEX"]]],["name","rev","type","pure-token","display_text","rev","token","REV","since","6.2.0","flags",["optional"]],["name","limit","type","block","token","LIMIT","since","6.2.0","flags",["optional"],"arguments",[["name","offset","type","integer","display_text","offset"],["name","count","type","integer","display_text","count"]]],["name","withscores","type","pure-token","display_text","withscores","token","WITHSCORES","flags",["optional"]]]],"zrangebyscore",["summary","Returns members in a sorted set within a range of scores.","since","1.0.5","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`ZRANGE` with the `BYSCORE` argument","history",[["2.0.0","Added the `WITHSCORES` modifier."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","min","type","double","display_text","min"],["name","max","type","double","display_text","max"],["name","withscores","type","pure-token","display_text","withscores","token","WITHSCORES","since","2.0.0","flags",["optional"]],["name","limit","type","block","token","LIMIT","flags",["optional"],"arguments",[["name","offset","type","integer","display_text","offset"],["name","count","type","integer","display_text","count"]]]]],"cms.query",["group","module","module","bf"],"zmscore",["summary","Returns the score of one or more members in a sorted set.","since","6.2.0","group","sorted-set","complexity","O(N) where N is the number of members being requested.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member","flags",["multiple"]]]],"VINFO",["group","module","module","vectorset"],"ssubscribe",["summary","Listens for messages published to shard channels.","since","7.0.0","group","pubsub","complexity","O(N) where N is the number of shard channels to subscribe to.","arguments",[["name","shardchannel","type","string","display_text","shardchannel","flags",["multiple"]]]],"tdigest.cdf",["group","module","module","bf"],"FT.PROFILE",["group","module","module","search"],"bgsave",["summary","Asynchronously saves the database(s) to disk.","since","1.0.0","group","server","complexity","O(1)","history",[["3.2.2","Added the `SCHEDULE` option."]],"arguments",[["name","schedule","type","pure-token","display_text","schedule","token","SCHEDULE","since","3.2.2","flags",["optional"]]]],"FT.TAGVALS",["group","module","module","search"],"FT.CREATE",["group","module","module","search"],"rpop",["summary","Returns and removes the last elements of a list. Deletes the list if the last element was popped.","since","1.0.0","group","list","complexity","O(N) where N is the number of elements returned","history",[["6.2.0","Added the `count` argument."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","count","type","integer","display_text","count","since","6.2.0","flags",["optional"]]]],"cf.debug",["group","module","module","bf"],"eval",["summary","Executes a server-side Lua script.","since","2.6.0","group","scripting","complexity","Depends on the script that is executed.","arguments",[["name","script","type","string","display_text","script"],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["optional","multiple"]],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"bzmpop",["summary","Removes and returns a member by score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.","since","7.0.0","group","sorted-set","complexity","O(K) + O(M*log(N)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.","arguments",[["name","timeout","type","double","display_text","timeout"],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","where","type","oneof","arguments",[["name","min","type","pure-token","display_text","min","token","MIN"],["name","max","type","pure-token","display_text","max","token","MAX"]]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]],"FT.DEL",["group","module","module","search"],"FT.AGGREGATE",["group","module","module","search"],"FT.DICTDUMP",["group","module","module","search"],"exists",["summary","Determines whether one or more keys exist.","since","1.0.0","group","generic","complexity","O(N) where N is the number of keys to check.","history",[["3.0.3","Accepts multiple `key` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"pexpiretime",["summary","Returns the expiration time of a key as a Unix milliseconds timestamp.","since","7.0.0","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"psync",["summary","An internal command used in replication.","since","2.8.0","group","server","arguments",[["name","replicationid","type","string","display_text","replicationid"],["name","offset","type","integer","display_text","offset"]]],"tdigest.revrank",["group","module","module","bf"],"bitfield_ro",["summary","Performs arbitrary read-only bitfield integer operations on strings.","since","6.0.0","group","bitmap","complexity","O(1) for each subcommand specified","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","get-block","type","block","token","GET","flags",["optional","multiple","multiple_token"],"arguments",[["name","encoding","type","string","display_text","encoding"],["name","offset","type","integer","display_text","offset"]]]]],"exec",["summary","Executes all commands in a transaction.","since","1.2.0","group","transactions","complexity","Depends on commands in the transaction"],"incrbyfloat",["summary","Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist.","since","2.6.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","increment","type","double","display_text","increment"]]],"decrby",["summary","Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn't exist.","since","1.0.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","decrement","type","integer","display_text","decrement"]]],"replicaof",["summary","Configures a server as replica of another, or promotes it to a master.","since","5.0.0","group","server","complexity","O(1)","arguments",[["name","args","type","oneof","arguments",[["name","host-port","type","block","arguments",[["name","host","type","string","display_text","host"],["name","port","type","integer","display_text","port"]]],["name","no-one","type","block","arguments",[["name","no","type","pure-token","display_text","no","token","NO"],["name","one","type","pure-token","display_text","one","token","ONE"]]]]]]],"expireat",["summary","Sets the expiration time of a key to a Unix timestamp.","since","1.2.0","group","generic","complexity","O(1)","history",[["7.0.0","Added options: `NX`, `XX`, `GT` and `LT`."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","unix-time-seconds","type","unix-time","display_text","unix-time-seconds"],["name","condition","type","oneof","since","7.0.0","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"],["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]]]],"lpushx",["summary","Prepends one or more elements to a list only when the list exists.","since","2.2.0","group","list","complexity","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","history",[["4.0.0","Accepts multiple `element` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","element","type","string","display_text","element","flags",["multiple"]]]],"getdel",["summary","Returns the string value of a key after deleting the key.","since","6.2.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"json.clear",["group","module","module","ReJSON"],"FT.SUGGET",["group","module","module","search"],"ts.info",["group","module","module","timeseries"],"json.strappend",["group","module","module","ReJSON"],"reset",["summary","Resets the connection.","since","6.2.0","group","connection","complexity","O(1)"],"FT.ALIASDEL",["group","module","module","search"],"lpop",["summary","Returns the first elements in a list after removing it. Deletes the list if the last element was popped.","since","1.0.0","group","list","complexity","O(N) where N is the number of elements returned","history",[["6.2.0","Added the `count` argument."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","count","type","integer","display_text","count","since","6.2.0","flags",["optional"]]]],"hsetnx",["summary","Sets the value of a field in a hash only when the field doesn't exist.","since","2.0.0","group","hash","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","field","type","string","display_text","field"],["name","value","type","string","display_text","value"]]],"waitaof",["summary","Blocks until all of the preceding write commands sent by the connection are written to the append-only file of the master and/or replicas.","since","7.2.0","group","generic","complexity","O(1)","arguments",[["name","numlocal","type","integer","display_text","numlocal"],["name","numreplicas","type","integer","display_text","numreplicas"],["name","timeout","type","integer","display_text","timeout"]]],"zrank",["summary","Returns the index of a member in a sorted set ordered by ascending scores.","since","2.0.0","group","sorted-set","complexity","O(log(N))","history",[["7.2.0","Added the optional `WITHSCORE` argument."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member"],["name","withscore","type","pure-token","display_text","withscore","token","WITHSCORE","flags",["optional"]]]],"auth",["summary","Authenticates the connection.","since","1.0.0","group","connection","complexity","O(N) where N is the number of passwords defined for the user","history",[["6.0.0","Added ACL style (username and password)."]],"arguments",[["name","username","type","string","display_text","username","since","6.0.0","flags",["optional"]],["name","password","type","string","display_text","password"]]],"FT.SUGADD",["group","module","module","search"],"evalsha_ro",["summary","Executes a read-only server-side Lua script by SHA1 digest.","since","7.0.0","group","scripting","complexity","Depends on the script that is executed.","arguments",[["name","sha1","type","string","display_text","sha1"],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["optional","multiple"]],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"flushall",["summary","Removes all keys from all databases.","since","1.0.0","group","server","complexity","O(N) where N is the total number of keys in all databases","history",[["4.0.0","Added the `ASYNC` flushing mode modifier."],["6.2.0","Added the `SYNC` flushing mode modifier."]],"arguments",[["name","flush-type","type","oneof","flags",["optional"],"arguments",[["name","async","type","pure-token","display_text","async","token","ASYNC","since","4.0.0"],["name","sync","type","pure-token","display_text","sync","token","SYNC","since","6.2.0"]]]]],"substr",["summary","Returns a substring from a string value.","since","1.0.0","group","string","complexity","O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings.","doc_flags",["deprecated"],"deprecated_since","2.0.0","replaced_by","`GETRANGE`","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","start","type","integer","display_text","start"],["name","end","type","integer","display_text","end"]]],"cf.scandump",["group","module","module","bf"],"cf.compact",["group","module","module","bf"],"sintercard",["summary","Returns the number of members of the intersect of multiple sets.","since","7.0.0","group","set","complexity","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","arguments",[["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","limit","type","integer","display_text","limit","token","LIMIT","flags",["optional"]]]],"zintercard",["summary","Returns the number of members of the intersect of multiple sorted sets.","since","7.0.0","group","sorted-set","complexity","O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets.","arguments",[["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","limit","type","integer","display_text","limit","token","LIMIT","flags",["optional"]]]],"discard",["summary","Discards a transaction.","since","2.0.0","group","transactions","complexity","O(N), when N is the number of queued commands"],"cf.add",["group","module","module","bf"],"zpopmin",["summary","Returns the lowest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped.","since","5.0.0","group","sorted-set","complexity","O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","count","type","integer","display_text","count","flags",["optional"]]]],"zrangebylex",["summary","Returns members in a sorted set within a lexicographical range.","since","2.8.9","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`ZRANGE` with the `BYLEX` argument","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","min","type","string","display_text","min"],["name","max","type","string","display_text","max"],["name","limit","type","block","token","LIMIT","flags",["optional"],"arguments",[["name","offset","type","integer","display_text","offset"],["name","count","type","integer","display_text","count"]]]]],"zscan",["summary","Iterates over members and scores of a sorted set.","since","2.8.0","group","sorted-set","complexity","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","cursor","type","integer","display_text","cursor"],["name","pattern","type","pattern","display_text","pattern","token","MATCH","flags",["optional"]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]],"sismember",["summary","Determines whether a member belongs to a set.","since","1.0.0","group","set","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member"]]],"copy",["summary","Copies the value of a key to a new key.","since","6.2.0","group","generic","complexity","O(N) worst case for collections, where N is the number of nested items. O(1) for string values.","arguments",[["name","source","type","key","display_text","source","key_spec_index",0],["name","destination","type","key","display_text","destination","key_spec_index",1],["name","destination-db","type","integer","display_text","destination-db","token","DB","flags",["optional"]],["name","replace","type","pure-token","display_text","replace","token","REPLACE","flags",["optional"]]]],"smove",["summary","Moves a member from one set to another.","since","1.0.0","group","set","complexity","O(1)","arguments",[["name","source","type","key","display_text","source","key_spec_index",0],["name","destination","type","key","display_text","destination","key_spec_index",1],["name","member","type","string","display_text","member"]]],"zremrangebyrank",["summary","Removes members in a sorted set within a range of indexes. Deletes the sorted set if all members were removed.","since","2.0.0","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","start","type","integer","display_text","start"],["name","stop","type","integer","display_text","stop"]]],"zinter",["summary","Returns the intersect of multiple sorted sets.","since","6.2.0","group","sorted-set","complexity","O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.","arguments",[["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","weight","type","integer","display_text","weight","token","WEIGHTS","flags",["optional","multiple"]],["name","aggregate","type","oneof","token","AGGREGATE","flags",["optional"],"arguments",[["name","sum","type","pure-token","display_text","sum","token","SUM"],["name","min","type","pure-token","display_text","min","token","MIN"],["name","max","type","pure-token","display_text","max","token","MAX"]]],["name","withscores","type","pure-token","display_text","withscores","token","WITHSCORES","flags",["optional"]]]],"hget",["summary","Returns the value of a field in a hash.","since","2.0.0","group","hash","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","field","type","string","display_text","field"]]],"rpushx",["summary","Appends an element to a list only when the list exists.","since","2.2.0","group","list","complexity","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","history",[["4.0.0","Accepts multiple `element` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","element","type","string","display_text","element","flags",["multiple"]]]],"lmove",["summary","Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved.","since","6.2.0","group","list","complexity","O(1)","arguments",[["name","source","type","key","display_text","source","key_spec_index",0],["name","destination","type","key","display_text","destination","key_spec_index",1],["name","wherefrom","type","oneof","arguments",[["name","left","type","pure-token","display_text","left","token","LEFT"],["name","right","type","pure-token","display_text","right","token","RIGHT"]]],["name","whereto","type","oneof","arguments",[["name","left","type","pure-token","display_text","left","token","LEFT"],["name","right","type","pure-token","display_text","right","token","RIGHT"]]]]],"geodist",["summary","Returns the distance between two members of a geospatial index.","since","3.2.0","group","geo","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member1","type","string","display_text","member1"],["name","member2","type","string","display_text","member2"],["name","unit","type","oneof","flags",["optional"],"arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]]]],"select",["summary","Changes the selected database.","since","1.0.0","group","connection","complexity","O(1)","arguments",[["name","index","type","integer","display_text","index"]]],"xpending",["summary","Returns the information and entries from a stream consumer group's pending entries list.","since","5.0.0","group","stream","complexity","O(N) with N being the number of elements returned, so asking for a small fixed number of entries per call is O(1). O(M), where M is the total number of entries scanned when used with the IDLE filter. When the command returns just the summary and the list of consumers is small, it runs in O(1) time; otherwise, an additional O(N) time for iterating every consumer.","history",[["6.2.0","Added the `IDLE` option and exclusive range intervals."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","filters","type","block","flags",["optional"],"arguments",[["name","min-idle-time","type","integer","display_text","min-idle-time","token","IDLE","since","6.2.0","flags",["optional"]],["name","start","type","string","display_text","start"],["name","end","type","string","display_text","end"],["name","count","type","integer","display_text","count"],["name","consumer","type","string","display_text","consumer","flags",["optional"]]]]]],"ts.mget",["group","module","module","timeseries"],"command",["summary","Returns detailed information about all commands.","since","2.8.13","group","server","complexity","O(N) where N is the total number of Redis commands","subcommands",["command|list",["summary","Returns a list of command names.","since","7.0.0","group","server","complexity","O(N) where N is the total number of Redis commands","arguments",[["name","filterby","type","oneof","token","FILTERBY","flags",["optional"],"arguments",[["name","module-name","type","string","display_text","module-name","token","MODULE"],["name","category","type","string","display_text","category","token","ACLCAT"],["name","pattern","type","pattern","display_text","pattern","token","PATTERN"]]]]],"command|getkeys",["summary","Extracts the key names from an arbitrary command.","since","2.8.13","group","server","complexity","O(N) where N is the number of arguments to the command","arguments",[["name","command","type","string","display_text","command"],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"command|getkeysandflags",["summary","Extracts the key names and access flags for an arbitrary command.","since","7.0.0","group","server","complexity","O(N) where N is the number of arguments to the command","arguments",[["name","command","type","string","display_text","command"],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"command|info",["summary","Returns information about one, multiple or all commands.","since","2.8.13","group","server","complexity","O(N) where N is the number of commands to look up","history",[["7.0.0","Allowed to be called with no argument to get info on all commands."]],"arguments",[["name","command-name","type","string","display_text","command-name","flags",["optional","multiple"]]]],"command|help",["summary","Returns helpful text about the different subcommands.","since","5.0.0","group","server","complexity","O(1)"],"command|count",["summary","Returns a count of commands.","since","2.8.13","group","server","complexity","O(1)"],"command|docs",["summary","Returns documentary information about one, multiple or all commands.","since","7.0.0","group","server","complexity","O(N) where N is the number of commands to look up","arguments",[["name","command-name","type","string","display_text","command-name","flags",["optional","multiple"]]]]]],"zrem",["summary","Removes one or more members from a sorted set. Deletes the sorted set if all members were removed.","since","1.2.0","group","sorted-set","complexity","O(M*log(N)) with N being the number of elements in the sorted set and M the number of elements to be removed.","history",[["2.4.0","Accepts multiple elements."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member","flags",["multiple"]]]],"fcall",["summary","Invokes a function.","since","7.0.0","group","scripting","complexity","Depends on the function that is executed.","arguments",[["name","function","type","string","display_text","function"],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["optional","multiple"]],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"geohash",["summary","Returns members from a geospatial index as geohash strings.","since","3.2.0","group","geo","complexity","O(1) for each member requested.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member","flags",["optional","multiple"]]]],"sdiffstore",["summary","Stores the difference of multiple sets in a key.","since","1.0.0","group","set","complexity","O(N) where N is the total number of elements in all given sets.","arguments",[["name","destination","type","key","display_text","destination","key_spec_index",0],["name","key","type","key","display_text","key","key_spec_index",1,"flags",["multiple"]]]],"setbit",["summary","Sets or clears the bit at offset of the string value. Creates the key if it doesn't exist.","since","2.2.0","group","bitmap","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","offset","type","integer","display_text","offset"],["name","value","type","integer","display_text","value"]]],"bf.mexists",["group","module","module","bf"],"ts.deleterule",["group","module","module","timeseries"],"FT.SUGDEL",["group","module","module","search"],"zdiff",["summary","Returns the difference between multiple sorted sets.","since","6.2.0","group","sorted-set","complexity","O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.","arguments",[["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","withscores","type","pure-token","display_text","withscores","token","WITHSCORES","flags",["optional"]]]],"FT.GET",["group","module","module","search"],"ts.madd",["group","module","module","timeseries"],"getbit",["summary","Returns a bit value by offset.","since","2.2.0","group","bitmap","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","offset","type","integer","display_text","offset"]]],"cf.insert",["group","module","module","bf"],"bf.card",["group","module","module","bf"],"pubsub",["summary","A container for Pub/Sub commands.","since","2.8.0","group","pubsub","complexity","Depends on subcommand.","subcommands",["pubsub|shardnumsub",["summary","Returns the count of subscribers of shard channels.","since","7.0.0","group","pubsub","complexity","O(N) for the SHARDNUMSUB subcommand, where N is the number of requested shard channels","arguments",[["name","shardchannel","type","string","display_text","shardchannel","flags",["optional","multiple"]]]],"pubsub|numsub",["summary","Returns a count of subscribers to channels.","since","2.8.0","group","pubsub","complexity","O(N) for the NUMSUB subcommand, where N is the number of requested channels","arguments",[["name","channel","type","string","display_text","channel","flags",["optional","multiple"]]]],"pubsub|numpat",["summary","Returns a count of unique pattern subscriptions.","since","2.8.0","group","pubsub","complexity","O(1)"],"pubsub|channels",["summary","Returns the active channels.","since","2.8.0","group","pubsub","complexity","O(N) where N is the number of active channels, and assuming constant time pattern matching (relatively short channels and patterns)","arguments",[["name","pattern","type","pattern","display_text","pattern","flags",["optional"]]]],"pubsub|help",["summary","Returns helpful text about the different subcommands.","since","6.2.0","group","pubsub","complexity","O(1)"],"pubsub|shardchannels",["summary","Returns the active shard channels.","since","7.0.0","group","pubsub","complexity","O(N) where N is the number of active shard channels, and assuming constant time pattern matching (relatively short shard channels).","arguments",[["name","pattern","type","pattern","display_text","pattern","flags",["optional"]]]]]],"xlen",["summary","Return the number of messages in a stream.","since","5.0.0","group","stream","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"xtrim",["summary","Deletes messages from the beginning of a stream.","since","5.0.0","group","stream","complexity","O(N), with N being the number of evicted entries. Constant times are very small however, since entries are organized in macro nodes containing multiple entries that can be released with a single deallocation.","history",[["6.2.0","Added the `MINID` trimming strategy and the `LIMIT` option."],["8.2.0","Added the `KEEPREF`, `DELREF` and `ACKED` options."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","trim","type","block","arguments",[["name","strategy","type","oneof","arguments",[["name","maxlen","type","pure-token","display_text","maxlen","token","MAXLEN"],["name","minid","type","pure-token","display_text","minid","token","MINID","since","6.2.0"]]],["name","operator","type","oneof","flags",["optional"],"arguments",[["name","equal","type","pure-token","display_text","equal","token","="],["name","approximately","type","pure-token","display_text","approximately","token","~"]]],["name","threshold","type","string","display_text","threshold"],["name","count","type","integer","display_text","count","token","LIMIT","since","6.2.0","flags",["optional"]],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","keepref","type","pure-token","display_text","keepref","token","KEEPREF"],["name","delref","type","pure-token","display_text","delref","token","DELREF"],["name","acked","type","pure-token","display_text","acked","token","ACKED"]]]]]]],"cms.merge",["group","module","module","bf"],"script",["summary","A container for Lua scripts management commands.","since","2.6.0","group","scripting","complexity","Depends on subcommand.","subcommands",["script|kill",["summary","Terminates a server-side Lua script during execution.","since","2.6.0","group","scripting","complexity","O(1)"],"script|flush",["summary","Removes all server-side Lua scripts from the script cache.","since","2.6.0","group","scripting","complexity","O(N) with N being the number of scripts in cache","history",[["6.2.0","Added the `ASYNC` and `SYNC` flushing mode modifiers."]],"arguments",[["name","flush-type","type","oneof","since","6.2.0","flags",["optional"],"arguments",[["name","async","type","pure-token","display_text","async","token","ASYNC"],["name","sync","type","pure-token","display_text","sync","token","SYNC"]]]]],"script|load",["summary","Loads a server-side Lua script to the script cache.","since","2.6.0","group","scripting","complexity","O(N) with N being the length in bytes of the script body.","arguments",[["name","script","type","string","display_text","script"]]],"script|debug",["summary","Sets the debug mode of server-side Lua scripts.","since","3.2.0","group","scripting","complexity","O(1)","arguments",[["name","mode","type","oneof","arguments",[["name","yes","type","pure-token","display_text","yes","token","YES"],["name","sync","type","pure-token","display_text","sync","token","SYNC"],["name","no","type","pure-token","display_text","no","token","NO"]]]]],"script|help",["summary","Returns helpful text about the different subcommands.","since","5.0.0","group","scripting","complexity","O(1)"],"script|exists",["summary","Determines whether server-side Lua scripts exist in the script cache.","since","2.6.0","group","scripting","complexity","O(N) with N being the number of scripts to check (so checking a single script is an O(1) operation).","arguments",[["name","sha1","type","string","display_text","sha1","flags",["multiple"]]]]]],"tdigest.create",["group","module","module","bf"],"zrevrange",["summary","Returns members in a sorted set within a range of indexes in reverse order.","since","1.2.0","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`ZRANGE` with the `REV` argument","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","start","type","integer","display_text","start"],["name","stop","type","integer","display_text","stop"],["name","withscores","type","pure-token","display_text","withscores","token","WITHSCORES","flags",["optional"]]]],"json.objkeys",["group","module","module","ReJSON"],"json.forget",["group","module","module","ReJSON"],"VDIM",["group","module","module","vectorset"],"move",["summary","Moves a key to another database.","since","1.0.0","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","db","type","integer","display_text","db"]]],"config",["summary","A container for server configuration commands.","since","2.0.0","group","server","complexity","Depends on subcommand.","subcommands",["config|set",["summary","Sets configuration parameters in-flight.","since","2.0.0","group","server","complexity","O(N) when N is the number of configuration parameters provided","history",[["7.0.0","Added the ability to set multiple parameters in one call."]],"arguments",[["name","data","type","block","flags",["multiple"],"arguments",[["name","parameter","type","string","display_text","parameter"],["name","value","type","string","display_text","value"]]]]],"config|resetstat",["summary","Resets the server's statistics.","since","2.0.0","group","server","complexity","O(1)"],"config|help",["summary","Returns helpful text about the different subcommands.","since","5.0.0","group","server","complexity","O(1)"],"config|get",["summary","Returns the effective values of configuration parameters.","since","2.0.0","group","server","complexity","O(N) when N is the number of configuration parameters provided","history",[["7.0.0","Added the ability to pass multiple pattern parameters in one call"]],"arguments",[["name","parameter","type","string","display_text","parameter","flags",["multiple"]]]],"config|rewrite",["summary","Persists the effective configuration to file.","since","2.8.0","group","server","complexity","O(1)"]]],"persist",["summary","Removes the expiration time of a key.","since","2.2.0","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"FT.SYNADD",["group","module","module","search"],"sinterstore",["summary","Stores the intersect of multiple sets in a key.","since","1.0.0","group","set","complexity","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","arguments",[["name","destination","type","key","display_text","destination","key_spec_index",0],["name","key","type","key","display_text","key","key_spec_index",1,"flags",["multiple"]]]],"get",["summary","Returns the string value of a key.","since","1.0.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"FT._ALIASDELIFX",["group","module","module","search"],"tdigest.info",["group","module","module","bf"],"zrevrangebyscore",["summary","Returns members in a sorted set within a range of scores in reverse order.","since","2.2.0","group","sorted-set","complexity","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`ZRANGE` with the `REV` and `BYSCORE` arguments","history",[["2.1.6","`min` and `max` can be exclusive."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","max","type","double","display_text","max"],["name","min","type","double","display_text","min"],["name","withscores","type","pure-token","display_text","withscores","token","WITHSCORES","flags",["optional"]],["name","limit","type","block","token","LIMIT","flags",["optional"],"arguments",[["name","offset","type","integer","display_text","offset"],["name","count","type","integer","display_text","count"]]]]],"xclaim",["summary","Changes, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member.","since","5.0.0","group","stream","complexity","O(log N) with N being the number of messages in the PEL of the consumer group.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","consumer","type","string","display_text","consumer"],["name","min-idle-time","type","string","display_text","min-idle-time"],["name","id","type","string","display_text","id","flags",["multiple"]],["name","ms","type","integer","display_text","ms","token","IDLE","flags",["optional"]],["name","unix-time-milliseconds","type","unix-time","display_text","unix-time-milliseconds","token","TIME","flags",["optional"]],["name","count","type","integer","display_text","count","token","RETRYCOUNT","flags",["optional"]],["name","force","type","pure-token","display_text","force","token","FORCE","flags",["optional"]],["name","justid","type","pure-token","display_text","justid","token","JUSTID","flags",["optional"]],["name","lastid","type","string","display_text","lastid","token","LASTID","flags",["optional"]]]],"hstrlen",["summary","Returns the length of the value of a field.","since","3.2.0","group","hash","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","field","type","string","display_text","field"]]],"wait",["summary","Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed.","since","3.0.0","group","generic","complexity","O(1)","arguments",[["name","numreplicas","type","integer","display_text","numreplicas"],["name","timeout","type","integer","display_text","timeout"]]],"latency",["summary","A container for latency diagnostics commands.","since","2.8.13","group","server","complexity","Depends on subcommand.","subcommands",["latency|history",["summary","Returns timestamp-latency samples for an event.","since","2.8.13","group","server","complexity","O(1)","arguments",[["name","event","type","string","display_text","event"]]],"latency|doctor",["summary","Returns a human-readable latency analysis report.","since","2.8.13","group","server","complexity","O(1)"],"latency|latest",["summary","Returns the latest latency samples for all events.","since","2.8.13","group","server","complexity","O(1)"],"latency|graph",["summary","Returns a latency graph for an event.","since","2.8.13","group","server","complexity","O(1)","arguments",[["name","event","type","string","display_text","event"]]],"latency|help",["summary","Returns helpful text about the different subcommands.","since","2.8.13","group","server","complexity","O(1)"],"latency|histogram",["summary","Returns the cumulative distribution of latencies of a subset or all commands.","since","7.0.0","group","server","complexity","O(N) where N is the number of commands with latency information being retrieved.","arguments",[["name","command","type","string","display_text","command","flags",["optional","multiple"]]]],"latency|reset",["summary","Resets the latency data for one or more events.","since","2.8.13","group","server","complexity","O(1)","arguments",[["name","event","type","string","display_text","event","flags",["optional","multiple"]]]]]],"json.arrtrim",["group","module","module","ReJSON"],"hpersist",["summary","Removes the expiration time for each specified field","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"zmpop",["summary","Returns the highest- or lowest-scoring members from one or more sorted sets after removing them. Deletes the sorted set if the last member was popped.","since","7.0.0","group","sorted-set","complexity","O(K) + O(M*log(N)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.","arguments",[["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","where","type","oneof","arguments",[["name","min","type","pure-token","display_text","min","token","MIN"],["name","max","type","pure-token","display_text","max","token","MAX"]]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]],"zdiffstore",["summary","Stores the difference of multiple sorted sets in a key.","since","6.2.0","group","sorted-set","complexity","O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.","arguments",[["name","destination","type","key","display_text","destination","key_spec_index",0],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",1,"flags",["multiple"]]]],"FT.SUGLEN",["group","module","module","search"],"cf.reserve",["group","module","module","bf"],"bitop",["summary","Performs bitwise operations on multiple strings, and stores the result.","since","2.6.0","group","bitmap","complexity","O(N)","arguments",[["name","operation","type","oneof","arguments",[["name","and","type","pure-token","display_text","and","token","AND"],["name","or","type","pure-token","display_text","or","token","OR"],["name","xor","type","pure-token","display_text","xor","token","XOR"],["name","not","type","pure-token","display_text","not","token","NOT"],["name","diff","type","pure-token","display_text","diff","token","DIFF"],["name","diff1","type","pure-token","display_text","diff1","token","DIFF1"],["name","andor","type","pure-token","display_text","andor","token","ANDOR"],["name","one","type","pure-token","display_text","one","token","ONE"]]],["name","destkey","type","key","display_text","destkey","key_spec_index",0],["name","key","type","key","display_text","key","key_spec_index",1,"flags",["multiple"]]]],"tdigest.rank",["group","module","module","bf"],"getrange",["summary","Returns a substring of the string stored at a key.","since","2.4.0","group","string","complexity","O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","start","type","integer","display_text","start"],["name","end","type","integer","display_text","end"]]],"sunion",["summary","Returns the union of multiple sets.","since","1.0.0","group","set","complexity","O(N) where N is the total number of elements in all given sets.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"cf.mexists",["group","module","module","bf"],"mset",["summary","Atomically creates or modifies the string values of one or more keys.","since","1.0.1","group","string","complexity","O(N) where N is the number of keys to set.","arguments",[["name","data","type","block","flags",["multiple"],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","value","type","string","display_text","value"]]]]],"type",["summary","Determines the type of value stored at a key.","since","1.0.0","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"swapdb",["summary","Swaps two Redis databases.","since","4.0.0","group","server","complexity","O(N) where N is the count of clients watching or blocking on keys from both databases.","arguments",[["name","index1","type","integer","display_text","index1"],["name","index2","type","integer","display_text","index2"]]],"sort_ro",["summary","Returns the sorted elements of a list, a set, or a sorted set.","since","7.0.0","group","generic","complexity","O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N).","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","by-pattern","type","pattern","display_text","pattern","key_spec_index",1,"token","BY","flags",["optional"]],["name","limit","type","block","token","LIMIT","flags",["optional"],"arguments",[["name","offset","type","integer","display_text","offset"],["name","count","type","integer","display_text","count"]]],["name","get-pattern","type","pattern","display_text","pattern","key_spec_index",1,"token","GET","flags",["optional","multiple","multiple_token"]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]],["name","sorting","type","pure-token","display_text","sorting","token","ALPHA","flags",["optional"]]]],"srem",["summary","Removes one or more members from a set. Deletes the set if the last member was removed.","since","1.0.0","group","set","complexity","O(N) where N is the number of members to be removed.","history",[["2.4.0","Accepts multiple `member` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member","flags",["multiple"]]]],"timeseries.REFRESHCLUSTER",["group","module","module","timeseries"],"FT.INFO",["group","module","module","search"],"renamenx",["summary","Renames a key only when the target key name doesn't exist.","since","1.0.0","group","generic","complexity","O(1)","history",[["3.2.0","The command no longer returns an error when source and destination names are the same."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","newkey","type","key","display_text","newkey","key_spec_index",1]]],"json.merge",["group","module","module","ReJSON"],"json.arrindex",["group","module","module","ReJSON"],"sadd",["summary","Adds one or more members to a set. Creates the key if it doesn't exist.","since","1.0.0","group","set","complexity","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","history",[["2.4.0","Accepts multiple `member` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member","flags",["multiple"]]]],"hlen",["summary","Returns the number of fields in a hash.","since","2.0.0","group","hash","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"xinfo",["summary","A container for stream introspection commands.","since","5.0.0","group","stream","complexity","Depends on subcommand.","subcommands",["xinfo|consumers",["summary","Returns a list of the consumers in a consumer group.","since","5.0.0","group","stream","complexity","O(1)","history",[["7.2.0","Added the `inactive` field, and changed the meaning of `idle`."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"]]],"xinfo|stream",["summary","Returns information about a stream.","since","5.0.0","group","stream","complexity","O(1)","history",[["6.0.0","Added the `FULL` modifier."],["7.0.0","Added the `max-deleted-entry-id`, `entries-added`, `recorded-first-entry-id`, `entries-read` and `lag` fields"],["7.2.0","Added the `active-time` field, and changed the meaning of `seen-time`."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","full-block","type","block","flags",["optional"],"arguments",[["name","full","type","pure-token","display_text","full","token","FULL"],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]]]],"xinfo|help",["summary","Returns helpful text about the different subcommands.","since","5.0.0","group","stream","complexity","O(1)"],"xinfo|groups",["summary","Returns a list of the consumer groups of a stream.","since","5.0.0","group","stream","complexity","O(1)","history",[["7.0.0","Added the `entries-read` and `lag` fields"]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]]]],"xackdel",["summary","Acknowledges and deletes one or multiple messages for a stream consumer group.","since","8.2.0","group","stream","complexity","O(1) for each message ID processed.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","keepref","type","pure-token","display_text","keepref","token","KEEPREF"],["name","delref","type","pure-token","display_text","delref","token","DELREF"],["name","acked","type","pure-token","display_text","acked","token","ACKED"]]],["name","ids","type","block","token","IDS","arguments",[["name","numids","type","integer","display_text","numids"],["name","id","type","string","display_text","id","flags",["multiple"]]]]]],"ts.get",["group","module","module","timeseries"],"xdel",["summary","Returns the number of messages after removing them from a stream.","since","5.0.0","group","stream","complexity","O(1) for each single item to delete in the stream, regardless of the stream size.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","id","type","string","display_text","id","flags",["multiple"]]]],"georadius",["summary","Queries a geospatial index for members within a distance from a coordinate, optionally stores the result.","since","3.2.0","group","geo","complexity","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`GEOSEARCH` and `GEOSEARCHSTORE` with the `BYRADIUS` argument","history",[["6.2.0","Added the `ANY` option for `COUNT`."],["7.0.0","Added support for uppercase unit names."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","longitude","type","double","display_text","longitude"],["name","latitude","type","double","display_text","latitude"],["name","radius","type","double","display_text","radius"],["name","unit","type","oneof","arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]],["name","withcoord","type","pure-token","display_text","withcoord","token","WITHCOORD","flags",["optional"]],["name","withdist","type","pure-token","display_text","withdist","token","WITHDIST","flags",["optional"]],["name","withhash","type","pure-token","display_text","withhash","token","WITHHASH","flags",["optional"]],["name","count-block","type","block","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count","token","COUNT"],["name","any","type","pure-token","display_text","any","token","ANY","since","6.2.0","flags",["optional"]]]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]],["name","store","type","oneof","flags",["optional"],"arguments",[["name","storekey","type","key","display_text","key","key_spec_index",1,"token","STORE"],["name","storedistkey","type","key","display_text","key","key_spec_index",2,"token","STOREDIST"]]]]],"geopos",["summary","Returns the longitude and latitude of members from a geospatial index.","since","3.2.0","group","geo","complexity","O(1) for each member requested.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member","flags",["optional","multiple"]]]],"xautoclaim",["summary","Changes, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member.","since","6.2.0","group","stream","complexity","O(1) if COUNT is small.","history",[["7.0.0","Added an element to the reply array, containing deleted entries the command cleared from the PEL"]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","consumer","type","string","display_text","consumer"],["name","min-idle-time","type","string","display_text","min-idle-time"],["name","start","type","string","display_text","start"],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]],["name","justid","type","pure-token","display_text","justid","token","JUSTID","flags",["optional"]]]],"llen",["summary","Returns the length of a list.","since","1.0.0","group","list","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"FT._ALIASADDIFNX",["group","module","module","search"],"hpexpireat",["summary","Set expiry for hash field using an absolute Unix timestamp (milliseconds)","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","unix-time-milliseconds","type","unix-time","display_text","unix-time-milliseconds"],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"],["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"zrevrank",["summary","Returns the index of a member in a sorted set ordered by descending scores.","since","2.0.0","group","sorted-set","complexity","O(log(N))","history",[["7.2.0","Added the optional `WITHSCORE` argument."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member"],["name","withscore","type","pure-token","display_text","withscore","token","WITHSCORE","flags",["optional"]]]],"zunion",["summary","Returns the union of multiple sorted sets.","since","6.2.0","group","sorted-set","complexity","O(N)+O(M*log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.","arguments",[["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","weight","type","integer","display_text","weight","token","WEIGHTS","flags",["optional","multiple"]],["name","aggregate","type","oneof","token","AGGREGATE","flags",["optional"],"arguments",[["name","sum","type","pure-token","display_text","sum","token","SUM"],["name","min","type","pure-token","display_text","min","token","MIN"],["name","max","type","pure-token","display_text","max","token","MAX"]]],["name","withscores","type","pure-token","display_text","withscores","token","WITHSCORES","flags",["optional"]]]],"FT.EXPLAINCLI",["group","module","module","search"],"hexists",["summary","Determines whether a field exists in a hash.","since","2.0.0","group","hash","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","field","type","string","display_text","field"]]],"pfmerge",["summary","Merges one or more HyperLogLog values into a single key.","since","2.8.9","group","hyperloglog","complexity","O(N) to merge N HyperLogLogs, but with high constant times.","arguments",[["name","destkey","type","key","display_text","destkey","key_spec_index",0],["name","sourcekey","type","key","display_text","sourcekey","key_spec_index",1,"flags",["optional","multiple"]]]],"migrate",["summary","Atomically transfers a key from one Redis instance to another.","since","2.6.0","group","generic","complexity","This command actually executes a DUMP+DEL in the source instance, and a RESTORE in the target instance. See the pages of these commands for time complexity. Also an O(N) data transfer between the two instances is performed.","history",[["3.0.0","Added the `COPY` and `REPLACE` options."],["3.0.6","Added the `KEYS` option."],["4.0.7","Added the `AUTH` option."],["6.0.0","Added the `AUTH2` option."]],"arguments",[["name","host","type","string","display_text","host"],["name","port","type","integer","display_text","port"],["name","key-selector","type","oneof","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","empty-string","type","pure-token","display_text","empty-string","token",""]]],["name","destination-db","type","integer","display_text","destination-db"],["name","timeout","type","integer","display_text","timeout"],["name","copy","type","pure-token","display_text","copy","token","COPY","since","3.0.0","flags",["optional"]],["name","replace","type","pure-token","display_text","replace","token","REPLACE","since","3.0.0","flags",["optional"]],["name","authentication","type","oneof","flags",["optional"],"arguments",[["name","auth","type","string","display_text","password","token","AUTH","since","4.0.7"],["name","auth2","type","block","token","AUTH2","since","6.0.0","arguments",[["name","username","type","string","display_text","username"],["name","password","type","string","display_text","password"]]]]],["name","keys","type","key","display_text","key","key_spec_index",1,"token","KEYS","since","3.0.6","flags",["optional","multiple"]]]],"VRANDMEMBER",["group","module","module","vectorset"],"hvals",["summary","Returns all values in a hash.","since","2.0.0","group","hash","complexity","O(N) where N is the size of the hash.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"blmove",["summary","Pops an element from a list, pushes it to another list and returns it. Blocks until an element is available otherwise. Deletes the list if the last element was moved.","since","6.2.0","group","list","complexity","O(1)","arguments",[["name","source","type","key","display_text","source","key_spec_index",0],["name","destination","type","key","display_text","destination","key_spec_index",1],["name","wherefrom","type","oneof","arguments",[["name","left","type","pure-token","display_text","left","token","LEFT"],["name","right","type","pure-token","display_text","right","token","RIGHT"]]],["name","whereto","type","oneof","arguments",[["name","left","type","pure-token","display_text","left","token","LEFT"],["name","right","type","pure-token","display_text","right","token","RIGHT"]]],["name","timeout","type","double","display_text","timeout"]]],"json.arrpop",["group","module","module","ReJSON"],"bf.madd",["group","module","module","bf"],"cf.insertnx",["group","module","module","bf"],"flushdb",["summary","Remove all keys from the current database.","since","1.0.0","group","server","complexity","O(N) where N is the number of keys in the selected database","history",[["4.0.0","Added the `ASYNC` flushing mode modifier."],["6.2.0","Added the `SYNC` flushing mode modifier."]],"arguments",[["name","flush-type","type","oneof","flags",["optional"],"arguments",[["name","async","type","pure-token","display_text","async","token","ASYNC","since","4.0.0"],["name","sync","type","pure-token","display_text","sync","token","SYNC","since","6.2.0"]]]]],"FT.DICTADD",["group","module","module","search"],"VADD",["group","module","module","vectorset"],"cf.info",["group","module","module","bf"],"bitcount",["summary","Counts the number of set bits (population counting) in a string.","since","2.6.0","group","bitmap","complexity","O(N)","history",[["7.0.0","Added the `BYTE|BIT` option."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","range","type","block","flags",["optional"],"arguments",[["name","start","type","integer","display_text","start"],["name","end","type","integer","display_text","end"],["name","unit","type","oneof","since","7.0.0","flags",["optional"],"arguments",[["name","byte","type","pure-token","display_text","byte","token","BYTE"],["name","bit","type","pure-token","display_text","bit","token","BIT"]]]]]]],"unwatch",["summary","Forgets about watched keys of a transaction.","since","2.2.0","group","transactions","complexity","O(1)"],"tdigest.reset",["group","module","module","bf"],"VGETATTR",["group","module","module","vectorset"],"hexpireat",["summary","Set expiry for hash field using an absolute Unix timestamp (seconds)","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","unix-time-seconds","type","unix-time","display_text","unix-time-seconds"],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"],["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"hpttl",["summary","Returns the TTL in milliseconds of a hash field.","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"zincrby",["summary","Increments the score of a member in a sorted set.","since","1.2.0","group","sorted-set","complexity","O(log(N)) where N is the number of elements in the sorted set.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","increment","type","integer","display_text","increment"],["name","member","type","string","display_text","member"]]],"bf.reserve",["group","module","module","bf"],"json.type",["group","module","module","ReJSON"],"lrange",["summary","Returns a range of elements from a list.","since","1.0.0","group","list","complexity","O(S+N) where S is the distance of start offset from HEAD for small lists, from nearest end (HEAD or TAIL) for large lists; and N is the number of elements in the specified range.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","start","type","integer","display_text","start"],["name","stop","type","integer","display_text","stop"]]],"hmset",["summary","Sets the values of multiple fields.","since","2.0.0","group","hash","complexity","O(N) where N is the number of fields being set.","doc_flags",["deprecated"],"deprecated_since","4.0.0","replaced_by","`HSET` with multiple field-value pairs","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","data","type","block","flags",["multiple"],"arguments",[["name","field","type","string","display_text","field"],["name","value","type","string","display_text","value"]]]]],"cms.initbyprob",["group","module","module","bf"],"topk.info",["group","module","module","bf"],"FT._CREATEIFNX",["group","module","module","search"],"time",["summary","Returns the server time.","since","2.6.0","group","server","complexity","O(1)"],"_FT.SAFEADD",["group","module","module","search"],"json.mset",["group","module","module","ReJSON"],"del",["summary","Deletes one or more keys.","since","1.0.0","group","generic","complexity","O(N) where N is the number of keys that will be removed. When a key to remove holds a value other than a string, the individual complexity for this key is O(M) where M is the number of elements in the list, set, sorted set or hash. Removing a single key that holds a string value is O(1).","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"ts.range",["group","module","module","timeseries"],"FT.CONFIG",["group","module","module","search"],"module",["summary","A container for module commands.","since","4.0.0","group","server","complexity","Depends on subcommand.","subcommands",["module|list",["summary","Returns all loaded modules.","since","4.0.0","group","server","complexity","O(N) where N is the number of loaded modules."],"module|load",["summary","Loads a module.","since","4.0.0","group","server","complexity","O(1)","arguments",[["name","path","type","string","display_text","path"],["name","arg","type","string","display_text","arg","flags",["optional","multiple"]]]],"module|loadex",["summary","Loads a module using extended parameters.","since","7.0.0","group","server","complexity","O(1)","arguments",[["name","path","type","string","display_text","path"],["name","configs","type","block","token","CONFIG","flags",["optional","multiple","multiple_token"],"arguments",[["name","name","type","string","display_text","name"],["name","value","type","string","display_text","value"]]],["name","args","type","string","display_text","args","token","ARGS","flags",["optional","multiple"]]]],"module|help",["summary","Returns helpful text about the different subcommands.","since","5.0.0","group","server","complexity","O(1)"],"module|unload",["summary","Unloads a module.","since","4.0.0","group","server","complexity","O(1)","arguments",[["name","name","type","string","display_text","name"]]]]],"quit",["summary","Closes the connection.","since","1.0.0","group","connection","complexity","O(1)","doc_flags",["deprecated"],"deprecated_since","7.2.0","replaced_by","just closing the connection"],"keys",["summary","Returns all key names that match a pattern.","since","1.0.0","group","generic","complexity","O(N) with N being the number of keys in the database, under the assumption that the key names in the database and the given pattern have limited length.","arguments",[["name","pattern","type","pattern","display_text","pattern"]]],"xack",["summary","Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.","since","5.0.0","group","stream","complexity","O(1) for each message ID processed.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","id","type","string","display_text","id","flags",["multiple"]]]],"ts.createrule",["group","module","module","timeseries"],"FT.SEARCH",["group","module","module","search"],"FT._LIST",["group","module","module","search"],"tdigest.max",["group","module","module","bf"],"cf.loadchunk",["group","module","module","bf"],"json.arrlen",["group","module","module","ReJSON"],"httl",["summary","Returns the TTL in seconds of a hash field.","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"VISMEMBER",["group","module","module","vectorset"],"punsubscribe",["summary","Stops listening to messages published to channels that match one or more patterns.","since","2.0.0","group","pubsub","complexity","O(N) where N is the number of patterns to unsubscribe.","arguments",[["name","pattern","type","pattern","display_text","pattern","flags",["optional","multiple"]]]],"FT.MGET",["group","module","module","search"],"tdigest.byrevrank",["group","module","module","bf"],"geosearch",["summary","Queries a geospatial index for members inside an area of a box or a circle.","since","6.2.0","group","geo","complexity","O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape","history",[["7.0.0","Added support for uppercase unit names."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","from","type","oneof","arguments",[["name","member","type","string","display_text","member","token","FROMMEMBER"],["name","fromlonlat","type","block","token","FROMLONLAT","arguments",[["name","longitude","type","double","display_text","longitude"],["name","latitude","type","double","display_text","latitude"]]]]],["name","by","type","oneof","arguments",[["name","circle","type","block","arguments",[["name","radius","type","double","display_text","radius","token","BYRADIUS"],["name","unit","type","oneof","arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]]]],["name","box","type","block","arguments",[["name","width","type","double","display_text","width","token","BYBOX"],["name","height","type","double","display_text","height"],["name","unit","type","oneof","arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]]]]]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]],["name","count-block","type","block","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count","token","COUNT"],["name","any","type","pure-token","display_text","any","token","ANY","flags",["optional"]]]],["name","withcoord","type","pure-token","display_text","withcoord","token","WITHCOORD","flags",["optional"]],["name","withdist","type","pure-token","display_text","withdist","token","WITHDIST","flags",["optional"]],["name","withhash","type","pure-token","display_text","withhash","token","WITHHASH","flags",["optional"]]]],"watch",["summary","Monitors changes to keys to determine the execution of a transaction.","since","2.2.0","group","transactions","complexity","O(1) for every key.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"zlexcount",["summary","Returns the number of members in a sorted set within a lexicographical range.","since","2.8.9","group","sorted-set","complexity","O(log(N)) with N being the number of elements in the sorted set.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","min","type","string","display_text","min"],["name","max","type","string","display_text","max"]]],"VSETATTR",["group","module","module","vectorset"],"georadiusbymember_ro",["summary","Returns members from a geospatial index that are within a distance from a member.","since","3.2.10","group","geo","complexity","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`GEOSEARCH` with the `BYRADIUS` and `FROMMEMBER` arguments","history",[["6.2.0","Added the `ANY` option for `COUNT`."],["7.0.0","Added support for uppercase unit names."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member"],["name","radius","type","double","display_text","radius"],["name","unit","type","oneof","arguments",[["name","m","type","pure-token","display_text","m","token","M"],["name","km","type","pure-token","display_text","km","token","KM"],["name","ft","type","pure-token","display_text","ft","token","FT"],["name","mi","type","pure-token","display_text","mi","token","MI"]]],["name","withcoord","type","pure-token","display_text","withcoord","token","WITHCOORD","flags",["optional"]],["name","withdist","type","pure-token","display_text","withdist","token","WITHDIST","flags",["optional"]],["name","withhash","type","pure-token","display_text","withhash","token","WITHHASH","flags",["optional"]],["name","count-block","type","block","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count","token","COUNT"],["name","any","type","pure-token","display_text","any","token","ANY","flags",["optional"]]]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]]]],"scard",["summary","Returns the number of members in a set.","since","1.0.0","group","set","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"FT.DROPINDEX",["group","module","module","search"],"json.toggle",["group","module","module","ReJSON"],"topk.list",["group","module","module","bf"],"FT.SPELLCHECK",["group","module","module","search"],"json.set",["group","module","module","ReJSON"],"lset",["summary","Sets the value of an element in a list by its index.","since","1.0.0","group","list","complexity","O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1).","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","index","type","integer","display_text","index"],["name","element","type","string","display_text","element"]]],"zcount",["summary","Returns the count of members in a sorted set that have scores within a range.","since","2.0.0","group","sorted-set","complexity","O(log(N)) with N being the number of elements in the sorted set.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","min","type","double","display_text","min"],["name","max","type","double","display_text","max"]]],"blpop",["summary","Removes and returns the first element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.","since","2.0.0","group","list","complexity","O(N) where N is the number of provided keys.","history",[["6.0.0","`timeout` is interpreted as a double instead of an integer."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","timeout","type","double","display_text","timeout"]]],"blmpop",["summary","Pops the first element from one of multiple lists. Blocks until an element is available otherwise. Deletes the list if the last element was popped.","since","7.0.0","group","list","complexity","O(N+M) where N is the number of provided keys and M is the number of elements returned.","arguments",[["name","timeout","type","double","display_text","timeout"],["name","numkeys","type","integer","display_text","numkeys"],["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","where","type","oneof","arguments",[["name","left","type","pure-token","display_text","left","token","LEFT"],["name","right","type","pure-token","display_text","right","token","RIGHT"]]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]],"hpexpire",["summary","Set expiry for hash field using relative time to expire (milliseconds)","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","milliseconds","type","integer","display_text","milliseconds"],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","nx","type","pure-token","display_text","nx","token","NX"],["name","xx","type","pure-token","display_text","xx","token","XX"],["name","gt","type","pure-token","display_text","gt","token","GT"],["name","lt","type","pure-token","display_text","lt","token","LT"]]],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"topk.reserve",["group","module","module","bf"],"cms.initbydim",["group","module","module","bf"],"smismember",["summary","Determines whether multiple members belong to a set.","since","6.2.0","group","set","complexity","O(N) where N is the number of elements being checked for membership","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","member","type","string","display_text","member","flags",["multiple"]]]],"sunionstore",["summary","Stores the union of multiple sets in a key.","since","1.0.0","group","set","complexity","O(N) where N is the total number of elements in all given sets.","arguments",[["name","destination","type","key","display_text","destination","key_spec_index",0],["name","key","type","key","display_text","key","key_spec_index",1,"flags",["multiple"]]]],"hdel",["summary","Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain.","since","2.0.0","group","hash","complexity","O(N) where N is the number of fields to be removed.","history",[["2.4.0","Accepts multiple `field` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","field","type","string","display_text","field","flags",["multiple"]]]],"xreadgroup",["summary","Returns new or historical messages from a stream for a consumer in a group. Blocks until a message is available otherwise.","since","5.0.0","group","stream","complexity","For each stream mentioned: O(M) with M being the number of elements returned. If M is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1). On the other side when XREADGROUP blocks, XADD will pay the O(N) time in order to serve the N clients blocked on the stream getting new data.","arguments",[["name","group-block","type","block","token","GROUP","arguments",[["name","group","type","string","display_text","group"],["name","consumer","type","string","display_text","consumer"]]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]],["name","milliseconds","type","integer","display_text","milliseconds","token","BLOCK","flags",["optional"]],["name","noack","type","pure-token","display_text","noack","token","NOACK","flags",["optional"]],["name","streams","type","block","token","STREAMS","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","id","type","string","display_text","id","flags",["multiple"]]]]]],"FT._ALTERIFNX",["group","module","module","search"],"sunsubscribe",["summary","Stops listening to messages posted to shard channels.","since","7.0.0","group","pubsub","complexity","O(N) where N is the number of shard channels to unsubscribe.","arguments",[["name","shardchannel","type","string","display_text","shardchannel","flags",["optional","multiple"]]]],"msetnx",["summary","Atomically modifies the string values of one or more keys only when all keys don't exist.","since","1.0.1","group","string","complexity","O(N) where N is the number of keys to set.","arguments",[["name","data","type","block","flags",["multiple"],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","value","type","string","display_text","value"]]]]],"json.resp",["group","module","module","ReJSON"],"hkeys",["summary","Returns all fields in a hash.","since","2.0.0","group","hash","complexity","O(N) where N is the size of the hash.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"failover",["summary","Starts a coordinated failover from a server to one of its replicas.","since","6.2.0","group","server","complexity","O(1)","arguments",[["name","target","type","block","token","TO","flags",["optional"],"arguments",[["name","host","type","string","display_text","host"],["name","port","type","integer","display_text","port"],["name","force","type","pure-token","display_text","force","token","FORCE","flags",["optional"]]]],["name","abort","type","pure-token","display_text","abort","token","ABORT","flags",["optional"]],["name","milliseconds","type","integer","display_text","milliseconds","token","TIMEOUT","flags",["optional"]]]],"pfselftest",["summary","An internal command for testing HyperLogLog values.","since","2.8.9","group","hyperloglog","complexity","N/A","doc_flags",["syscmd"]],"sdiff",["summary","Returns the difference of multiple sets.","since","1.0.0","group","set","complexity","O(N) where N is the total number of elements in all given sets.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"rpush",["summary","Appends one or more elements to a list. Creates the key if it doesn't exist.","since","1.0.0","group","list","complexity","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","history",[["2.4.0","Accepts multiple `element` arguments."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","element","type","string","display_text","element","flags",["multiple"]]]],"cluster",["summary","A container for Redis Cluster commands.","since","3.0.0","group","cluster","complexity","Depends on subcommand.","subcommands",["cluster|replicate",["summary","Configure a node as replica of a master node.","since","3.0.0","group","cluster","complexity","O(1)","arguments",[["name","node-id","type","string","display_text","node-id"]]],"cluster|addslotsrange",["summary","Assigns new hash slot ranges to a node.","since","7.0.0","group","cluster","complexity","O(N) where N is the total number of the slots between the start slot and end slot arguments.","arguments",[["name","range","type","block","flags",["multiple"],"arguments",[["name","start-slot","type","integer","display_text","start-slot"],["name","end-slot","type","integer","display_text","end-slot"]]]]],"cluster|myshardid",["summary","Returns the shard ID of a node.","since","7.2.0","group","cluster","complexity","O(1)"],"cluster|delslotsrange",["summary","Sets hash slot ranges as unbound for a node.","since","7.0.0","group","cluster","complexity","O(N) where N is the total number of the slots between the start slot and end slot arguments.","arguments",[["name","range","type","block","flags",["multiple"],"arguments",[["name","start-slot","type","integer","display_text","start-slot"],["name","end-slot","type","integer","display_text","end-slot"]]]]],"cluster|bumpepoch",["summary","Advances the cluster config epoch.","since","3.0.0","group","cluster","complexity","O(1)"],"cluster|info",["summary","Returns information about the state of a node.","since","3.0.0","group","cluster","complexity","O(1)"],"cluster|set-config-epoch",["summary","Sets the configuration epoch for a new node.","since","3.0.0","group","cluster","complexity","O(1)","arguments",[["name","config-epoch","type","integer","display_text","config-epoch"]]],"cluster|shards",["summary","Returns the mapping of cluster slots to shards.","since","7.0.0","group","cluster","complexity","O(N) where N is the total number of cluster nodes"],"cluster|countkeysinslot",["summary","Returns the number of keys in a hash slot.","since","3.0.0","group","cluster","complexity","O(1)","arguments",[["name","slot","type","integer","display_text","slot"]]],"cluster|flushslots",["summary","Deletes all slots information from a node.","since","3.0.0","group","cluster","complexity","O(1)"],"cluster|meet",["summary","Forces a node to handshake with another node.","since","3.0.0","group","cluster","complexity","O(1)","history",[["4.0.0","Added the optional `cluster_bus_port` argument."]],"arguments",[["name","ip","type","string","display_text","ip"],["name","port","type","integer","display_text","port"],["name","cluster-bus-port","type","integer","display_text","cluster-bus-port","since","4.0.0","flags",["optional"]]]],"cluster|saveconfig",["summary","Forces a node to save the cluster configuration to disk.","since","3.0.0","group","cluster","complexity","O(1)"],"cluster|addslots",["summary","Assigns new hash slots to a node.","since","3.0.0","group","cluster","complexity","O(N) where N is the total number of hash slot arguments","arguments",[["name","slot","type","integer","display_text","slot","flags",["multiple"]]]],"cluster|myid",["summary","Returns the ID of a node.","since","3.0.0","group","cluster","complexity","O(1)"],"cluster|nodes",["summary","Returns the cluster configuration for a node.","since","3.0.0","group","cluster","complexity","O(N) where N is the total number of Cluster nodes"],"cluster|reset",["summary","Resets a node.","since","3.0.0","group","cluster","complexity","O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect.","arguments",[["name","reset-type","type","oneof","flags",["optional"],"arguments",[["name","hard","type","pure-token","display_text","hard","token","HARD"],["name","soft","type","pure-token","display_text","soft","token","SOFT"]]]]],"cluster|keyslot",["summary","Returns the hash slot for a key.","since","3.0.0","group","cluster","complexity","O(N) where N is the number of bytes in the key","arguments",[["name","key","type","string","display_text","key"]]],"cluster|failover",["summary","Forces a replica to perform a manual failover of its master.","since","3.0.0","group","cluster","complexity","O(1)","arguments",[["name","options","type","oneof","flags",["optional"],"arguments",[["name","force","type","pure-token","display_text","force","token","FORCE"],["name","takeover","type","pure-token","display_text","takeover","token","TAKEOVER"]]]]],"cluster|delslots",["summary","Sets hash slots as unbound for a node.","since","3.0.0","group","cluster","complexity","O(N) where N is the total number of hash slot arguments","arguments",[["name","slot","type","integer","display_text","slot","flags",["multiple"]]]],"cluster|forget",["summary","Removes a node from the nodes table.","since","3.0.0","group","cluster","complexity","O(1)","arguments",[["name","node-id","type","string","display_text","node-id"]]],"cluster|replicas",["summary","Lists the replica nodes of a master node.","since","5.0.0","group","cluster","complexity","O(N) where N is the number of replicas.","arguments",[["name","node-id","type","string","display_text","node-id"]]],"cluster|slaves",["summary","Lists the replica nodes of a master node.","since","3.0.0","group","cluster","complexity","O(N) where N is the number of replicas.","doc_flags",["deprecated"],"deprecated_since","5.0.0","replaced_by","`CLUSTER REPLICAS`","arguments",[["name","node-id","type","string","display_text","node-id"]]],"cluster|getkeysinslot",["summary","Returns the key names in a hash slot.","since","3.0.0","group","cluster","complexity","O(N) where N is the number of requested keys","arguments",[["name","slot","type","integer","display_text","slot"],["name","count","type","integer","display_text","count"]]],"cluster|help",["summary","Returns helpful text about the different subcommands.","since","5.0.0","group","cluster","complexity","O(1)"],"cluster|slots",["summary","Returns the mapping of cluster slots to nodes.","since","3.0.0","group","cluster","complexity","O(N) where N is the total number of Cluster nodes","doc_flags",["deprecated"],"deprecated_since","7.0.0","replaced_by","`CLUSTER SHARDS`","history",[["4.0.0","Added node IDs."],["7.0.0","Added additional networking metadata field."]]],"cluster|links",["summary","Returns a list of all TCP links to and from peer nodes.","since","7.0.0","group","cluster","complexity","O(N) where N is the total number of Cluster nodes"],"cluster|count-failure-reports",["summary","Returns the number of active failure reports active for a node.","since","3.0.0","group","cluster","complexity","O(N) where N is the number of failure reports","arguments",[["name","node-id","type","string","display_text","node-id"]]],"cluster|setslot",["summary","Binds a hash slot to a node.","since","3.0.0","group","cluster","complexity","O(1)","arguments",[["name","slot","type","integer","display_text","slot"],["name","subcommand","type","oneof","arguments",[["name","importing","type","string","display_text","node-id","token","IMPORTING"],["name","migrating","type","string","display_text","node-id","token","MIGRATING"],["name","node","type","string","display_text","node-id","token","NODE"],["name","stable","type","pure-token","display_text","stable","token","STABLE"]]]]],"cluster|slot-stats",["summary","Return an array of slot usage statistics for slots assigned to the current node.","since","8.2.0","group","cluster","complexity","O(N) where N is the total number of slots based on arguments. O(N*log(N)) with ORDERBY subcommand.","arguments",[["name","filter","type","oneof","arguments",[["name","slotsrange","type","block","token","SLOTSRANGE","arguments",[["name","start-slot","type","integer","display_text","start-slot"],["name","end-slot","type","integer","display_text","end-slot"]]],["name","orderby","type","block","token","ORDERBY","arguments",[["name","metric","type","string","display_text","metric"],["name","limit","type","integer","display_text","limit","token","LIMIT","flags",["optional"]],["name","order","type","oneof","flags",["optional"],"arguments",[["name","asc","type","pure-token","display_text","asc","token","ASC"],["name","desc","type","pure-token","display_text","desc","token","DESC"]]]]]]]]]]],"hincrby",["summary","Increments the integer value of a field in a hash by a number. Uses 0 as initial value if the field doesn't exist.","since","2.0.0","group","hash","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","field","type","string","display_text","field"],["name","increment","type","integer","display_text","increment"]]],"bitpos",["summary","Finds the first set (1) or clear (0) bit in a string.","since","2.8.7","group","bitmap","complexity","O(N)","history",[["7.0.0","Added the `BYTE|BIT` option."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","bit","type","integer","display_text","bit"],["name","range","type","block","flags",["optional"],"arguments",[["name","start","type","integer","display_text","start"],["name","end-unit-block","type","block","flags",["optional"],"arguments",[["name","end","type","integer","display_text","end"],["name","unit","type","oneof","since","7.0.0","flags",["optional"],"arguments",[["name","byte","type","pure-token","display_text","byte","token","BYTE"],["name","bit","type","pure-token","display_text","bit","token","BIT"]]]]]]]]],"hexpiretime",["summary","Returns the expiration time of a hash field as a Unix timestamp, in seconds.","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]],"bzpopmax",["summary","Removes and returns the member with the highest score from one or more sorted sets. Blocks until a member available otherwise. Deletes the sorted set if the last element was popped.","since","5.0.0","group","sorted-set","complexity","O(log(N)) with N being the number of elements in the sorted set.","history",[["6.0.0","`timeout` is interpreted as a double instead of an integer."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]],["name","timeout","type","double","display_text","timeout"]]],"tdigest.min",["group","module","module","bf"],"cf.addnx",["group","module","module","bf"],"json.debug",["group","module","module","ReJSON"],"xrange",["summary","Returns the messages from a stream within a range of IDs.","since","5.0.0","group","stream","complexity","O(N) with N being the number of elements being returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).","history",[["6.2.0","Added exclusive ranges."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","start","type","string","display_text","start"],["name","end","type","string","display_text","end"],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]]]],"unlink",["summary","Asynchronously deletes one or more keys.","since","4.0.0","group","generic","complexity","O(1) for each key removed regardless of its size. Then the command does O(N) work in a different thread in order to reclaim memory, where N is the number of allocations the deleted objects where composed of.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0,"flags",["multiple"]]]],"getset",["summary","Returns the previous string value of a key after setting it to a new value.","since","1.0.0","group","string","complexity","O(1)","doc_flags",["deprecated"],"deprecated_since","6.2.0","replaced_by","`SET` with the `!GET` argument","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","value","type","string","display_text","value"]]],"topk.incrby",["group","module","module","bf"],"VSIM",["group","module","module","vectorset"],"xgroup",["summary","A container for consumer groups commands.","since","5.0.0","group","stream","complexity","Depends on subcommand.","subcommands",["xgroup|setid",["summary","Sets the last-delivered ID of a consumer group.","since","5.0.0","group","stream","complexity","O(1)","history",[["7.0.0","Added the optional `entries_read` argument."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","id-selector","type","oneof","arguments",[["name","id","type","string","display_text","id"],["name","new-id","type","pure-token","display_text","new-id","token","$"]]],["name","entriesread","type","integer","display_text","entries-read","token","ENTRIESREAD","flags",["optional"]]]],"xgroup|create",["summary","Creates a consumer group.","since","5.0.0","group","stream","complexity","O(1)","history",[["7.0.0","Added the `entries_read` named argument."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","id-selector","type","oneof","arguments",[["name","id","type","string","display_text","id"],["name","new-id","type","pure-token","display_text","new-id","token","$"]]],["name","mkstream","type","pure-token","display_text","mkstream","token","MKSTREAM","flags",["optional"]],["name","entriesread","type","integer","display_text","entries-read","token","ENTRIESREAD","flags",["optional"]]]],"xgroup|destroy",["summary","Destroys a consumer group.","since","5.0.0","group","stream","complexity","O(N) where N is the number of entries in the group's pending entries list (PEL).","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"]]],"xgroup|help",["summary","Returns helpful text about the different subcommands.","since","5.0.0","group","stream","complexity","O(1)"],"xgroup|delconsumer",["summary","Deletes a consumer from a consumer group.","since","5.0.0","group","stream","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","consumer","type","string","display_text","consumer"]]],"xgroup|createconsumer",["summary","Creates a consumer in a consumer group.","since","6.2.0","group","stream","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","group","type","string","display_text","group"],["name","consumer","type","string","display_text","consumer"]]]]],"cms.info",["group","module","module","bf"],"incrby",["summary","Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist.","since","1.0.0","group","string","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","increment","type","integer","display_text","increment"]]],"lpos",["summary","Returns the index of matching elements in a list.","since","6.0.6","group","list","complexity","O(N) where N is the number of elements in the list, for the average case. When searching for elements near the head or the tail of the list, or when the MAXLEN option is provided, the command may run in constant time.","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","element","type","string","display_text","element"],["name","rank","type","integer","display_text","rank","token","RANK","flags",["optional"]],["name","num-matches","type","integer","display_text","num-matches","token","COUNT","flags",["optional"]],["name","len","type","integer","display_text","len","token","MAXLEN","flags",["optional"]]]],"zrandmember",["summary","Returns one or more random members from a sorted set.","since","6.2.0","group","sorted-set","complexity","O(N) where N is the number of members returned","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","options","type","block","flags",["optional"],"arguments",[["name","count","type","integer","display_text","count"],["name","withscores","type","pure-token","display_text","withscores","token","WITHSCORES","flags",["optional"]]]]]],"xadd",["summary","Appends a new message to a stream. Creates the key if it doesn't exist.","since","5.0.0","group","stream","complexity","O(1) when adding a new entry, O(N) when trimming where N being the number of entries evicted.","history",[["6.2.0","Added the `NOMKSTREAM` option, `MINID` trimming strategy and the `LIMIT` option."],["7.0.0","Added support for the `<ms>-*` explicit ID form."],["8.2.0","Added the `KEEPREF`, `DELREF` and `ACKED` options."]],"arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","nomkstream","type","pure-token","display_text","nomkstream","token","NOMKSTREAM","since","6.2.0","flags",["optional"]],["name","condition","type","oneof","flags",["optional"],"arguments",[["name","keepref","type","pure-token","display_text","keepref","token","KEEPREF"],["name","delref","type","pure-token","display_text","delref","token","DELREF"],["name","acked","type","pure-token","display_text","acked","token","ACKED"]]],["name","trim","type","block","flags",["optional"],"arguments",[["name","strategy","type","oneof","arguments",[["name","maxlen","type","pure-token","display_text","maxlen","token","MAXLEN"],["name","minid","type","pure-token","display_text","minid","token","MINID","since","6.2.0"]]],["name","operator","type","oneof","flags",["optional"],"arguments",[["name","equal","type","pure-token","display_text","equal","token","="],["name","approximately","type","pure-token","display_text","approximately","token","~"]]],["name","threshold","type","string","display_text","threshold"],["name","count","type","integer","display_text","count","token","LIMIT","since","6.2.0","flags",["optional"]]]],["name","id-selector","type","oneof","arguments",[["name","auto-id","type","pure-token","display_text","auto-id","token","*"],["name","id","type","string","display_text","id"]]],["name","data","type","block","flags",["multiple"],"arguments",[["name","field","type","string","display_text","field"],["name","value","type","string","display_text","value"]]]]],"FT.SYNUPDATE",["group","module","module","search"],"scan",["summary","Iterates over the key names in the database.","since","2.8.0","group","generic","complexity","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.","history",[["6.0.0","Added the `TYPE` subcommand."]],"arguments",[["name","cursor","type","integer","display_text","cursor"],["name","pattern","type","pattern","display_text","pattern","token","MATCH","flags",["optional"]],["name","count","type","integer","display_text","count","token","COUNT","flags",["optional"]],["name","type","type","string","display_text","type","token","TYPE","since","6.0.0","flags",["optional"]]]],"ts.decrby",["group","module","module","timeseries"],"bf.add",["group","module","module","bf"],"object",["summary","A container for object introspection commands.","since","2.2.3","group","generic","complexity","Depends on subcommand.","subcommands",["object|encoding",["summary","Returns the internal encoding of a Redis object.","since","2.2.3","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"object|help",["summary","Returns helpful text about the different subcommands.","since","6.2.0","group","generic","complexity","O(1)"],"object|freq",["summary","Returns the logarithmic access frequency counter of a Redis object.","since","4.0.0","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"object|idletime",["summary","Returns the time since the last access to a Redis object.","since","2.2.3","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]],"object|refcount",["summary","Returns the reference count of a value of a key.","since","2.2.3","group","generic","complexity","O(1)","arguments",[["name","key","type","key","display_text","key","key_spec_index",0]]]]],"slowlog",["summary","A container for slow log commands.","since","2.2.12","group","server","complexity","Depends on subcommand.","subcommands",["slowlog|help",["summary","Show helpful text about the different subcommands","since","6.2.0","group","server","complexity","O(1)"],"slowlog|reset",["summary","Clears all entries from the slow log.","since","2.2.12","group","server","complexity","O(N) where N is the number of entries in the slowlog"],"slowlog|get",["summary","Returns the slow log's entries.","since","2.2.12","group","server","complexity","O(N) where N is the number of entries returned","history",[["4.0.0","Added client IP address, port and name to the reply."]],"arguments",[["name","count","type","integer","display_text","count","flags",["optional"]]]],"slowlog|len",["summary","Returns the number of entries in the slow log.","since","2.2.12","group","server","complexity","O(1)"]]],"multi",["summary","Starts a transaction.","since","1.2.0","group","transactions","complexity","O(1)"],"hpexpiretime",["summary","Returns the expiration time of a hash field as a Unix timestamp, in msec.","since","7.4.0","group","hash","complexity","O(N) where N is the number of specified fields","arguments",[["name","key","type","key","display_text","key","key_spec_index",0],["name","fields","type","block","token","FIELDS","arguments",[["name","numfields","type","integer","display_text","numfields"],["name","field","type","string","display_text","field","flags",["multiple"]]]]]]]});async function m5(e,...t){if(!e){let n=await Promise.resolve().then(()=>mt(wb()));return n.default||n}let r=e.toUpperCase();if(r==="HELP"&&t.length===0)return["COMMAND <subcommand> [<arg> [value] [opt] ...]. Subcommands are:","(no subcommand)"," Return details about all Redis commands.","COUNT"," Return the total number of commands in this Redis server.","LIST"," Return a list of all commands in this Redis server.","INFO [<command-name> ...]"," Return details about multiple Redis commands."," If no command names are given, documentation details for all"," commands are returned.","DOCS [<command-name> ...]"," Return documentation details about multiple Redis commands."," If no command names are given, documentation details for all"," commands are returned.","GETKEYS <full-command>"," Return the keys from a full Redis command.","GETKEYSANDFLAGS <full-command>"," Return the keys and the access flags from a full Redis command.","HELP"," Print this help."];if(r==="COUNT"&&t.length===0){let{count:n}=await Promise.resolve().then(()=>mt(fm()));return n}if(r==="LIST"){if(t.length>0)throw new Error("ERR syntax error");let{list:n}=await Promise.resolve().then(()=>mt(fm()));return n}if(r==="INFO"){let n=await Promise.resolve().then(()=>mt(wb())),i=n.default||n,o=t.length>0?i.filter(h=>t.includes(h[0])):i;return o.length===0?[null]:o}if(r==="DOCS"){let n=await Promise.resolve().then(()=>mt(p5())),i=n.default||n;if(t.length===0)return i;let o=[];for(let h of t){let g=i.indexOf(h);g!==-1&&o.push(h,i[g+1])}return o}if(r==="GETKEYS"&&t.length>=2){let{getKeyIndexes:n,exists:i}=await Promise.resolve().then(()=>mt(pb())),[o,...h]=t;if(!i(o))throw new Error("ERR wrong number of arguments for 'command|getkeys' command");return n(o,h).map(g=>h[g])}throw t.length>0?new Error(`ERR wrong number of arguments for 'command|${e.toLowerCase()}' command`):new Error(`ERR unknown subcommand '${e}'. Try COMMAND HELP.`)}async function Gne(...e){let t=await m5.apply(this,e);return z(t)}var y5=K(()=>{b();Ne()});function g5(e,...t){if(!e)throw new Error("ERR wrong number of arguments for 'config' command");let r=e.toUpperCase();if(r==="HELP"&&t.length===0)return["CONFIG <subcommand> [<arg> [value] [opt] ...]. Subcommands are:","GET <pattern>"," Return parameters matching the glob-like <pattern> and their values.","SET <directive> <value>"," Set the configuration <directive> to <value>.","RESETSTAT"," Reset statistics reported by the INFO command.","REWRITE"," Rewrite the configuration file.","HELP"," Print this help."];if(r==="GET"&&t.length>0)return[];if(r==="SET"&&t.length>1)throw new Error(`ERR Unknown option or number of arguments for CONFIG SET - '${t[0]}'`);if(r==="RESETSTAT"&&t.length===0)return"OK";if(r==="REWRITE"&&t.length===0)throw new Error("ERR The server is running without a config file");switch(r){case"HELP":case"GET":case"SET":case"RESETSTAT":case"REWRITE":throw new Error(`ERR wrong number of arguments for 'config|${e.toLowerCase()}' command`);default:throw new Error(`ERR unknown subcommand '${e.toLowerCase()}'. Try CONFIG HELP.`)}}function Kne(...e){let t=g5.apply(this,e);return z(t)}var _5=K(()=>{b();Ne()});function Q0(e){S(()=>{e.emit("connect"),e.emit("ready")})}var kb=K(()=>{b()});function Hne(){if(this.connected)throw new Error("Redis is already connecting/connected");this.connected=!0,Q0(this)}var v5=K(()=>{b();kb()});function b5(){return this.data.keys().length}var zne,x5=K(()=>{b();zne=b5});function w5(e){this.data.has(e)||this.data.set(e,"0");let r=Number(this.data.get(e))-1;return this.data.set(e,r.toString()),r}var jne,k5=K(()=>{b();jne=w5});function M5(e,t){if(t===void 0)throw new Error("ERR wrong number of arguments for 'decrby' command");this.data.has(e)||this.data.set(e,"0");let n=Number(this.data.get(e))-parseInt(t,10);return this.data.set(e,n.toString()),n}var Vne,A5=K(()=>{b();Vne=M5});var Vn=I((wKe,Ht)=>{"use strict";b();var hm={},{LUA_VERSION_MAJOR:Wne,LUA_VERSION_MINOR:Xne,to_luastring:E5}=Pr(),$ne=";";Ht.exports.LUA_PATH_SEP=$ne;var Yne="?";Ht.exports.LUA_PATH_MARK=Yne;var Zne="!";Ht.exports.LUA_EXEC_DIR=Zne;var S5=Wne+"."+Xne;Ht.exports.LUA_VDIR=S5;{Ht.exports.LUA_DIRSEP="/";let t="./lua/"+S5+"/";Ht.exports.LUA_LDIR=t;let r=t;Ht.exports.LUA_JSDIR=r;let n=E5(t+"?.lua;"+t+"?/init.lua;./?.lua;./?/init.lua");Ht.exports.LUA_PATH_DEFAULT=n;let i=E5(r+"?.js;"+r+"loadall.js;./?.js");Ht.exports.LUA_JSPATH_DEFAULT=i}var Jne=hm.LUA_COMPAT_FLOATSTRING||!1,Qne=2147483647,Mb=-2147483648,eie=hm.LUAI_MAXSTACK||1e6,tie=hm.LUA_IDSIZE||59,rie=function(e){return String(e)},nie=function(e){return String(Number(e.toPrecision(14)))},iie=function(e){return e>=Mb&&e<-Mb?e:!1},T5="",sie="",aie=`%${T5}d`,oie="%.14g",lie=function(){return 46},fie=function(e,t){if(!t)throw Error(t)},uie=hm.LUAL_BUFFERSIZE||8192,cie=function(e){if(e===0)return[e,0];var t=new DataView(new ArrayBuffer(8));t.setFloat64(0,e);var r=t.getUint32(0)>>>20&2047;r===0&&(t.setFloat64(0,e*Math.pow(2,64)),r=(t.getUint32(0)>>>20&2047)-64);var n=r-1022,i=R5(e,-n);return[i,n]},R5=function(e,t){for(var r=Math.min(3,Math.ceil(Math.abs(t)/1023)),n=e,i=0;i<r;i++)n*=Math.pow(2,Math.floor((t+i)/r));return n};Ht.exports.LUAI_MAXSTACK=eie;Ht.exports.LUA_COMPAT_FLOATSTRING=Jne;Ht.exports.LUA_IDSIZE=tie;Ht.exports.LUA_INTEGER_FMT=aie;Ht.exports.LUA_INTEGER_FRMLEN=T5;Ht.exports.LUA_MAXINTEGER=Qne;Ht.exports.LUA_MININTEGER=Mb;Ht.exports.LUA_NUMBER_FMT=oie;Ht.exports.LUA_NUMBER_FRMLEN=sie;Ht.exports.LUAL_BUFFERSIZE=uie;Ht.exports.frexp=cie;Ht.exports.ldexp=R5;Ht.exports.lua_getlocaledecpoint=lie;Ht.exports.lua_integer2str=rie;Ht.exports.lua_number2str=nie;Ht.exports.lua_numbertointeger=iie;Ht.exports.luai_apicheck=fie});var Pr=I((MKe,ze)=>{"use strict";b();var eh;typeof Uint8Array.from=="function"?eh=Uint8Array.from.bind(Uint8Array):eh=function(e){let t=0,r=e.length,n=new Uint8Array(r);for(;r>t;)n[t]=e[t++];return n};var Ab;if(typeof new Uint8Array().indexOf=="function")Ab=function(e,t,r){return e.indexOf(t,r)};else{let e=[].indexOf;if(e.call(new Uint8Array(1),0)!==0)throw Error("missing .indexOf");Ab=function(t,r,n){return e.call(t,r,n)}}var Eb;typeof Uint8Array.of=="function"?Eb=Uint8Array.of.bind(Uint8Array):Eb=function(){return eh(arguments)};var th=function(e){return e instanceof Uint8Array},hie=function(e,t){if(e!==t){let r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1}return!0},ks="cannot convert invalid utf8 to javascript string",die=function(e,t,r,n){if(!th(e))throw new TypeError("to_jsstring expects a Uint8Array");r===void 0?r=e.length:r=Math.min(e.length,r);let i="";for(let o=t!==void 0?t:0;o<r;){let h=e[o++];if(h<128)i+=String.fromCharCode(h);else if(h<194||h>244){if(!n)throw RangeError(ks);i+="\uFFFD"}else if(h<=223){if(o>=r){if(!n)throw RangeError(ks);i+="\uFFFD";continue}let g=e[o++];if((g&192)!==128){if(!n)throw RangeError(ks);i+="\uFFFD";continue}i+=String.fromCharCode(((h&31)<<6)+(g&63))}else if(h<=239){if(o+1>=r){if(!n)throw RangeError(ks);i+="\uFFFD";continue}let g=e[o++];if((g&192)!==128){if(!n)throw RangeError(ks);i+="\uFFFD";continue}let v=e[o++];if((v&192)!==128){if(!n)throw RangeError(ks);i+="\uFFFD";continue}let w=((h&15)<<12)+((g&63)<<6)+(v&63);if(w<=65535)i+=String.fromCharCode(w);else{w-=65536;let k=(w>>10)+55296,A=w%1024+56320;i+=String.fromCharCode(k,A)}}else{if(o+2>=r){if(!n)throw RangeError(ks);i+="\uFFFD";continue}let g=e[o++];if((g&192)!==128){if(!n)throw RangeError(ks);i+="\uFFFD";continue}let v=e[o++];if((v&192)!==128){if(!n)throw RangeError(ks);i+="\uFFFD";continue}let w=e[o++];if((w&192)!==128){if(!n)throw RangeError(ks);i+="\uFFFD";continue}let k=((h&7)<<18)+((g&63)<<12)+((v&63)<<6)+(w&63);k-=65536;let A=(k>>10)+55296,R=k%1024+56320;i+=String.fromCharCode(A,R)}}return i},pie=";,/?:@&=+$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,-_.!~*'()#".split("").reduce(function(e,t){return e[t.charCodeAt(0)]=!0,e},{}),mie=function(e){if(!th(e))throw new TypeError("to_uristring expects a Uint8Array");let t="";for(let r=0;r<e.length;r++){let n=e[r];pie[n]?t+=String.fromCharCode(n):t+="%"+(n<16?"0":"")+n.toString(16)}return t},O5={},Tb=function(e,t){if(typeof e!="string")throw new TypeError("to_luastring expects a javascript string");if(t){let o=O5[e];if(th(o))return o}let r=e.length,n=Array(r),i=0;for(let o=0;o<r;++o){let h=e.charCodeAt(o);if(h<=127)n[i++]=h;else if(h<=2047)n[i++]=192|h>>6,n[i++]=128|h&63;else{if(h>=55296&&h<=56319&&o+1<r){let g=e.charCodeAt(o+1);g>=56320&&g<=57343&&(o++,h=(h-55296)*1024+g+9216)}h<=65535?(n[i++]=224|h>>12,n[i++]=128|h>>6&63,n[i++]=128|h&63):(n[i++]=240|h>>18,n[i++]=128|h>>12&63,n[i++]=128|h>>6&63,n[i++]=128|h&63)}}return n=eh(n),t&&(O5[e]=n),n},yie=function(e){if(!th(e))if(typeof e=="string")e=Tb(e);else throw new TypeError("expects an array of bytes or javascript string");return e};ze.exports.luastring_from=eh;ze.exports.luastring_indexOf=Ab;ze.exports.luastring_of=Eb;ze.exports.is_luastring=th;ze.exports.luastring_eq=hie;ze.exports.to_jsstring=die;ze.exports.to_uristring=mie;ze.exports.to_luastring=Tb;ze.exports.from_userstring=yie;var gie=Tb("\x1BLua"),I5="5",N5="3",_ie=503,B5="4",C5="Lua "+I5+"."+N5,U5=C5+"."+B5,vie=U5+" Copyright (C) 1994-2017 Lua.org, PUC-Rio",bie="R. Ierusalimschy, L. H. de Figueiredo, W. Celes";ze.exports.LUA_SIGNATURE=gie;ze.exports.LUA_VERSION_MAJOR=I5;ze.exports.LUA_VERSION_MINOR=N5;ze.exports.LUA_VERSION_NUM=_ie;ze.exports.LUA_VERSION_RELEASE=B5;ze.exports.LUA_VERSION=C5;ze.exports.LUA_RELEASE=U5;ze.exports.LUA_COPYRIGHT=vie;ze.exports.LUA_AUTHORS=bie;var xie={LUA_OK:0,LUA_YIELD:1,LUA_ERRRUN:2,LUA_ERRSYNTAX:3,LUA_ERRMEM:4,LUA_ERRGCMM:5,LUA_ERRERR:6},Bn={LUA_TNONE:-1,LUA_TNIL:0,LUA_TBOOLEAN:1,LUA_TLIGHTUSERDATA:2,LUA_TNUMBER:3,LUA_TSTRING:4,LUA_TTABLE:5,LUA_TFUNCTION:6,LUA_TUSERDATA:7,LUA_TTHREAD:8,LUA_NUMTAGS:9};Bn.LUA_TSHRSTR=Bn.LUA_TSTRING|0;Bn.LUA_TLNGSTR=Bn.LUA_TSTRING|16;Bn.LUA_TNUMFLT=Bn.LUA_TNUMBER|0;Bn.LUA_TNUMINT=Bn.LUA_TNUMBER|16;Bn.LUA_TLCL=Bn.LUA_TFUNCTION|0;Bn.LUA_TLCF=Bn.LUA_TFUNCTION|16;Bn.LUA_TCCL=Bn.LUA_TFUNCTION|32;var wie=0,kie=1,Mie=2,Aie=3,Eie=4,Sie=5,Tie=6,Rie=7,Oie=8,Iie=9,Nie=10,Bie=11,Cie=12,Uie=13,Die=0,Pie=1,Fie=2,qie=20,{LUAI_MAXSTACK:Lie}=Vn(),D5=-Lie-1e3,Gie=function(e){return D5-e},Kie=1,P5=2,Hie=P5,Sb=class{constructor(){this.event=NaN,this.name=null,this.namewhat=null,this.what=null,this.source=null,this.currentline=NaN,this.linedefined=NaN,this.lastlinedefined=NaN,this.nups=NaN,this.nparams=NaN,this.isvararg=NaN,this.istailcall=NaN,this.short_src=null,this.i_ci=null}},F5=0,q5=1,L5=2,G5=3,zie=4,jie=1<<F5,Vie=1<<q5,Wie=1<<L5,Xie=1<<G5;ze.exports.LUA_HOOKCALL=F5;ze.exports.LUA_HOOKCOUNT=G5;ze.exports.LUA_HOOKLINE=L5;ze.exports.LUA_HOOKRET=q5;ze.exports.LUA_HOOKTAILCALL=zie;ze.exports.LUA_MASKCALL=jie;ze.exports.LUA_MASKCOUNT=Xie;ze.exports.LUA_MASKLINE=Wie;ze.exports.LUA_MASKRET=Vie;ze.exports.LUA_MINSTACK=qie;ze.exports.LUA_MULTRET=-1;ze.exports.LUA_OPADD=wie;ze.exports.LUA_OPBAND=Rie;ze.exports.LUA_OPBNOT=Uie;ze.exports.LUA_OPBOR=Oie;ze.exports.LUA_OPBXOR=Iie;ze.exports.LUA_OPDIV=Sie;ze.exports.LUA_OPEQ=Die;ze.exports.LUA_OPIDIV=Tie;ze.exports.LUA_OPLE=Fie;ze.exports.LUA_OPLT=Pie;ze.exports.LUA_OPMOD=Aie;ze.exports.LUA_OPMUL=Mie;ze.exports.LUA_OPPOW=Eie;ze.exports.LUA_OPSHL=Nie;ze.exports.LUA_OPSHR=Bie;ze.exports.LUA_OPSUB=kie;ze.exports.LUA_OPUNM=Cie;ze.exports.LUA_REGISTRYINDEX=D5;ze.exports.LUA_RIDX_GLOBALS=P5;ze.exports.LUA_RIDX_LAST=Hie;ze.exports.LUA_RIDX_MAINTHREAD=Kie;ze.exports.constant_types=Bn;ze.exports.lua_Debug=Sb;ze.exports.lua_upvalueindex=Gie;ze.exports.thread_status=xie});var ai=I((EKe,rn)=>{b();var Ms=Pr(),K5="0",H5="1",$ie=1,z5="4",j5="Fengari "+K5+"."+H5,V5=j5+"."+z5,W5="B. Giannangeli, Daurnimator",Yie=V5+" Copyright (C) 2017-2018 "+W5+`
158
+ Based on: `+Ms.LUA_COPYRIGHT;rn.exports.FENGARI_AUTHORS=W5;rn.exports.FENGARI_COPYRIGHT=Yie;rn.exports.FENGARI_RELEASE=V5;rn.exports.FENGARI_VERSION=j5;rn.exports.FENGARI_VERSION_MAJOR=K5;rn.exports.FENGARI_VERSION_MINOR=H5;rn.exports.FENGARI_VERSION_NUM=$ie;rn.exports.FENGARI_VERSION_RELEASE=z5;rn.exports.is_luastring=Ms.is_luastring;rn.exports.luastring_eq=Ms.luastring_eq;rn.exports.luastring_from=Ms.luastring_from;rn.exports.luastring_indexOf=Ms.luastring_indexOf;rn.exports.luastring_of=Ms.luastring_of;rn.exports.to_jsstring=Ms.to_jsstring;rn.exports.to_luastring=Ms.to_luastring;rn.exports.to_uristring=Ms.to_uristring;rn.exports.from_userstring=Ms.from_userstring});var Wn=I((TKe,ha)=>{"use strict";b();var{luai_apicheck:X5}=Vn(),$5=function(e){if(!e)throw Error("assertion failed")};ha.exports.lua_assert=$5;ha.exports.luai_apicheck=X5||function(e,t){return $5(t)};var Zie=function(e,t,r){return X5(e,t&&r)};ha.exports.api_check=Zie;var Jie=200;ha.exports.LUAI_MAXCCALLS=Jie;var Qie=32;ha.exports.LUA_MINBUFFER=Qie;var ese=function(e,t,r){let n=t%r;return n*r<0&&(n+=r),n};ha.exports.luai_nummod=ese;var tse=2147483647;ha.exports.MAX_INT=tse;var rse=-2147483648;ha.exports.MIN_INT=rse});var Rb=I((OKe,Ol)=>{"use strict";b();var{luastring_of:nse}=Pr(),Nu=nse(0,0,0,0,0,0,0,0,0,0,8,8,8,8,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,22,22,22,22,22,22,22,22,22,22,4,4,4,4,4,4,4,21,21,21,21,21,21,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,5,4,21,21,21,21,21,21,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),Y5=0,Z5=1,ise=2,sse=3,ase=4,ose=function(e){return(Nu[e+1]&1<<Z5)!==0},lse=function(e){return(Nu[e+1]&1<<ase)!==0},fse=function(e){return(Nu[e+1]&1<<ise)!==0},use=function(e){return(Nu[e+1]&1<<sse)!==0},cse=function(e){return(Nu[e+1]&1<<Y5)!==0},hse=function(e){return(Nu[e+1]&(1<<Y5|1<<Z5))!==0};Ol.exports.lisdigit=ose;Ol.exports.lislalnum=hse;Ol.exports.lislalpha=cse;Ol.exports.lisprint=fse;Ol.exports.lisspace=use;Ol.exports.lisxdigit=lse});var As=I((NKe,wo)=>{"use strict";b();var{is_luastring:dse,luastring_eq:pse,luastring_from:mse,to_luastring:yse}=Pr(),{lua_assert:rh}=Wn(),Il=class{constructor(t,r){this.hash=null,this.realstring=r}getstr(){return this.realstring}tsslen(){return this.realstring.length}},gse=function(e,t){return rh(e instanceof Il),rh(t instanceof Il),e==t||pse(e.realstring,t.realstring)},J5=function(e){rh(dse(e));let t=e.length,r="|";for(let n=0;n<t;n++)r+=e[n].toString(16);return r},_se=function(e){return rh(e instanceof Il),e.hash===null&&(e.hash=J5(e.getstr())),e.hash},Ob=function(e,t){return rh(t instanceof Uint8Array),new Il(e,t)},vse=function(e,t){return Ob(e,mse(t))},bse=function(e,t){return Ob(e,yse(t))};wo.exports.luaS_eqlngstr=gse;wo.exports.luaS_hash=J5;wo.exports.luaS_hashlongstr=_se;wo.exports.luaS_bless=Ob;wo.exports.luaS_new=vse;wo.exports.luaS_newliteral=bse;wo.exports.TString=Il});var Es=I((CKe,ji)=>{"use strict";b();var{constant_types:{LUA_TBOOLEAN:xse,LUA_TCCL:wse,LUA_TLCF:kse,LUA_TLCL:Mse,LUA_TLIGHTUSERDATA:Ase,LUA_TLNGSTR:Ese,LUA_TNIL:tT,LUA_TNUMFLT:Sse,LUA_TNUMINT:Bb,LUA_TSHRSTR:Tse,LUA_TTABLE:Rse,LUA_TTHREAD:Ose,LUA_TUSERDATA:Ise},to_luastring:Ib}=Pr(),{lua_assert:ih}=Wn(),Nb=pa(),Cn=oi(),{luaS_hashlongstr:rT,TString:Nse}=As(),Bse=da(),Q5=new WeakMap,eT=function(e){let t=Q5.get(e);return t||(t={},Q5.set(e,t)),t},Cb=function(e,t){switch(t.type){case tT:return Nb.luaG_runerror(e,Ib("table index is nil",!0));case Sse:if(isNaN(t.value))return Nb.luaG_runerror(e,Ib("table index is NaN",!0));case Bb:case xse:case Rse:case Mse:case kse:case wse:case Ise:case Ose:return t.value;case Tse:case Ese:return rT(t.tsvalue());case Ase:{let r=t.value;switch(typeof r){case"string":return"*"+r;case"number":return"#"+r;case"boolean":return r?"?true":"?false";case"function":return eT(r);case"object":if(r instanceof Bse.lua_State&&r.l_G===e.l_G||r instanceof nh||r instanceof Cn.Udata||r instanceof Cn.LClosure||r instanceof Cn.CClosure)return eT(r);default:return r}}default:throw new Error("unknown key type: "+t.type)}},nh=class{constructor(t){this.id=t.l_G.id_counter++,this.strong=new Map,this.dead_strong=new Map,this.dead_weak=void 0,this.f=void 0,this.l=void 0,this.metatable=null,this.flags=-1}},Cse=function(e){e.flags=0},nT=function(e,t,r,n){e.dead_strong.clear(),e.dead_weak=void 0;let i=null,o={key:r,value:n,p:i=e.l,n:void 0};e.f||(e.f=o),i&&(i.n=o),e.strong.set(t,o),e.l=o},Use=function(e){return typeof e=="object"?e!==null:typeof e=="function"},iT=function(e,t){let r=e.strong.get(t);if(r){r.key.setdeadvalue(),r.value=void 0;let n=r.n,i=r.p;r.p=void 0,i&&(i.n=n),n&&(n.p=i),e.f===r&&(e.f=n),e.l===r&&(e.l=i),e.strong.delete(t),Use(t)?(e.dead_weak||(e.dead_weak=new WeakMap),e.dead_weak.set(t,r)):e.dead_strong.set(t,r)}},Dse=function(e){return new nh(e)},Ub=function(e,t){let r=e.strong.get(t);return r?r.value:Cn.luaO_nilobject},sT=function(e,t){return ih(typeof t=="number"&&(t|0)===t),Ub(e,t)},Pse=function(e,t){return ih(t instanceof Nse),Ub(e,rT(t))},Fse=function(e,t,r){return ih(r instanceof Cn.TValue),r.ttisnil()||r.ttisfloat()&&isNaN(r.value)?Cn.luaO_nilobject:Ub(t,Cb(e,r))},qse=function(e,t,r){ih(typeof t=="number"&&(t|0)===t&&r instanceof Cn.TValue);let n=t;if(r.ttisnil()){iT(e,n);return}let i=e.strong.get(n);if(i)i.value.setfrom(r);else{let o=new Cn.TValue(Bb,t),h=new Cn.TValue(r.type,r.value);nT(e,n,o,h)}},Lse=function(e,t,r,n){ih(r instanceof Cn.TValue);let i=Cb(e,r);if(n.ttisnil()){iT(t,i);return}let o=t.strong.get(i);if(o)o.value.setfrom(n);else{let h,g=r.value;r.ttisfloat()&&(g|0)===g?h=new Cn.TValue(Bb,g):h=new Cn.TValue(r.type,g);let v=new Cn.TValue(n.type,n.value);nT(t,i,h,v)}},Gse=function(e){let t=0,r=e.strong.size+1;for(;r-t>1;){let n=Math.floor((t+r)/2);sT(e,n).ttisnil()?r=n:t=n}return t},Kse=function(e,t,r){let n=e.stack[r],i;if(n.type===tT){if(i=t.f,!i)return!1}else{let o=Cb(e,n);if(i=t.strong.get(o),i){if(i=i.n,!i)return!1}else{if(i=t.dead_weak&&t.dead_weak.get(o)||t.dead_strong.get(o),!i)return Nb.luaG_runerror(e,Ib("invalid key to 'next'"));do if(i=i.n,!i)return!1;while(i.key.ttisdeadkey())}}return Cn.setobj2s(e,r,i.key),Cn.setobj2s(e,r+1,i.value),!0};ji.exports.invalidateTMcache=Cse;ji.exports.luaH_get=Fse;ji.exports.luaH_getint=sT;ji.exports.luaH_getn=Gse;ji.exports.luaH_getstr=Pse;ji.exports.luaH_setfrom=Lse;ji.exports.luaH_setint=qse;ji.exports.luaH_new=Dse;ji.exports.luaH_next=Kse;ji.exports.Table=nh});var Dl=I((DKe,Ge)=>{"use strict";b();var Hse=["MOVE","LOADK","LOADKX","LOADBOOL","LOADNIL","GETUPVAL","GETTABUP","GETTABLE","SETTABUP","SETUPVAL","SETTABLE","NEWTABLE","SELF","ADD","SUB","MUL","MOD","POW","DIV","IDIV","BAND","BOR","BXOR","SHL","SHR","UNM","BNOT","NOT","LEN","CONCAT","JMP","EQ","LT","LE","TEST","TESTSET","CALL","TAILCALL","RETURN","FORLOOP","FORPREP","TFORCALL","TFORLOOP","SETLIST","CLOSURE","VARARG","EXTRAARG"],zse={OP_MOVE:0,OP_LOADK:1,OP_LOADKX:2,OP_LOADBOOL:3,OP_LOADNIL:4,OP_GETUPVAL:5,OP_GETTABUP:6,OP_GETTABLE:7,OP_SETTABUP:8,OP_SETUPVAL:9,OP_SETTABLE:10,OP_NEWTABLE:11,OP_SELF:12,OP_ADD:13,OP_SUB:14,OP_MUL:15,OP_MOD:16,OP_POW:17,OP_DIV:18,OP_IDIV:19,OP_BAND:20,OP_BOR:21,OP_BXOR:22,OP_SHL:23,OP_SHR:24,OP_UNM:25,OP_BNOT:26,OP_NOT:27,OP_LEN:28,OP_CONCAT:29,OP_JMP:30,OP_EQ:31,OP_LT:32,OP_LE:33,OP_TEST:34,OP_TESTSET:35,OP_CALL:36,OP_TAILCALL:37,OP_RETURN:38,OP_FORLOOP:39,OP_FORPREP:40,OP_TFORCALL:41,OP_TFORLOOP:42,OP_SETLIST:43,OP_CLOSURE:44,OP_VARARG:45,OP_EXTRAARG:46},gr=0,or=1,Un=2,ut=3,ot=0,dm=1,sh=2,aT=3,fh=[64|Un<<4|gr<<2|ot,64|ut<<4|gr<<2|dm,64|gr<<4|gr<<2|dm,64|or<<4|or<<2|ot,64|or<<4|gr<<2|ot,64|or<<4|gr<<2|ot,64|or<<4|ut<<2|ot,64|Un<<4|ut<<2|ot,0|ut<<4|ut<<2|ot,0|or<<4|gr<<2|ot,0|ut<<4|ut<<2|ot,64|or<<4|or<<2|ot,64|Un<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|ut<<4|ut<<2|ot,64|Un<<4|gr<<2|ot,64|Un<<4|gr<<2|ot,64|Un<<4|gr<<2|ot,64|Un<<4|gr<<2|ot,64|Un<<4|Un<<2|ot,0|Un<<4|gr<<2|sh,128|ut<<4|ut<<2|ot,128|ut<<4|ut<<2|ot,128|ut<<4|ut<<2|ot,128|gr<<4|or<<2|ot,192|Un<<4|or<<2|ot,64|or<<4|or<<2|ot,64|or<<4|or<<2|ot,0|or<<4|gr<<2|ot,64|Un<<4|gr<<2|sh,64|Un<<4|gr<<2|sh,0|gr<<4|or<<2|ot,64|Un<<4|gr<<2|sh,0|or<<4|or<<2|ot,64|or<<4|gr<<2|dm,64|or<<4|gr<<2|ot,0|or<<4|or<<2|aT],jse=function(e){return fh[e]&3},Vse=function(e){return fh[e]>>4&3},Wse=function(e){return fh[e]>>2&3},Xse=function(e){return fh[e]&64},$se=function(e){return fh[e]&128},ko=9,Mo=9,Nl=ko+Mo,Cl=8,ah=ko+Mo+Cl,Bu=6,Ss=0,Ao=Ss+Bu,Ul=Ao+Cl,oh=Ul+ko,Bl=Ul,lh=Ao,oT=(1<<Nl)-1,pm=oT>>1,Yse=(1<<ah)-1,lT=(1<<Cl)-1,Zse=(1<<Mo)-1,Jse=(1<<ko)-1,uh=1<<Mo-1,Qse=uh-1,eae=lT,tae=function(e){return e&uh},rae=function(e){return e&~uh},nae=function(e){return e|uh},dn=function(e,t){return~(-1<<e)<<t},fT=function(e,t){return~dn(e,t)},iae=function(e){return e.opcode},sae=function(e,t){return e.code=e.code&fT(Bu,Ss)|t<<Ss&dn(Bu,Ss),Cu(e)},ch=function(e,t,r,n){return e.code=e.code&fT(n,r)|t<<r&dn(n,r),Cu(e)},aae=function(e){return e.A},oae=function(e,t){return ch(e,t,Ao,Cl)},lae=function(e){return e.B},fae=function(e,t){return ch(e,t,oh,Mo)},uae=function(e){return e.C},cae=function(e,t){return ch(e,t,Ul,ko)},hae=function(e){return e.Bx},uT=function(e,t){return ch(e,t,Bl,Nl)},dae=function(e){return e.Ax},pae=function(e,t){return ch(e,t,lh,ah)},mae=function(e){return e.sBx},yae=function(e,t){return uT(e,t+pm)},Cu=function(e){if(typeof e=="number")return{code:e,opcode:e>>Ss&dn(Bu,0),A:e>>Ao&dn(Cl,0),B:e>>oh&dn(Mo,0),C:e>>Ul&dn(ko,0),Bx:e>>Bl&dn(Nl,0),Ax:e>>lh&dn(ah,0),sBx:(e>>Bl&dn(Nl,0))-pm};{let t=e.code;return e.opcode=t>>Ss&dn(Bu,0),e.A=t>>Ao&dn(Cl,0),e.B=t>>oh&dn(Mo,0),e.C=t>>Ul&dn(ko,0),e.Bx=t>>Bl&dn(Nl,0),e.Ax=t>>lh&dn(ah,0),e.sBx=(t>>Bl&dn(Nl,0))-pm,e}},gae=function(e,t,r,n){return Cu(e<<Ss|t<<Ao|r<<oh|n<<Ul)},_ae=function(e,t,r){return Cu(e<<Ss|t<<Ao|r<<Bl)},vae=function(e,t){return Cu(e<<Ss|t<<lh)},bae=50;Ge.exports.BITRK=uh;Ge.exports.CREATE_ABC=gae;Ge.exports.CREATE_ABx=_ae;Ge.exports.CREATE_Ax=vae;Ge.exports.GET_OPCODE=iae;Ge.exports.GETARG_A=aae;Ge.exports.GETARG_B=lae;Ge.exports.GETARG_C=uae;Ge.exports.GETARG_Bx=hae;Ge.exports.GETARG_Ax=dae;Ge.exports.GETARG_sBx=mae;Ge.exports.INDEXK=rae;Ge.exports.ISK=tae;Ge.exports.LFIELDS_PER_FLUSH=bae;Ge.exports.MAXARG_A=lT;Ge.exports.MAXARG_Ax=Yse;Ge.exports.MAXARG_B=Zse;Ge.exports.MAXARG_Bx=oT;Ge.exports.MAXARG_C=Jse;Ge.exports.MAXARG_sBx=pm;Ge.exports.MAXINDEXRK=Qse;Ge.exports.NO_REG=eae;Ge.exports.OpArgK=ut;Ge.exports.OpArgN=gr;Ge.exports.OpArgR=Un;Ge.exports.OpArgU=or;Ge.exports.OpCodes=Hse;Ge.exports.OpCodesI=zse;Ge.exports.POS_A=Ao;Ge.exports.POS_Ax=lh;Ge.exports.POS_B=oh;Ge.exports.POS_Bx=Bl;Ge.exports.POS_C=Ul;Ge.exports.POS_OP=Ss;Ge.exports.RKASK=nae;Ge.exports.SETARG_A=oae;Ge.exports.SETARG_Ax=pae;Ge.exports.SETARG_B=fae;Ge.exports.SETARG_Bx=uT;Ge.exports.SETARG_C=cae;Ge.exports.SETARG_sBx=yae;Ge.exports.SET_OPCODE=sae;Ge.exports.SIZE_A=Cl;Ge.exports.SIZE_Ax=ah;Ge.exports.SIZE_B=Mo;Ge.exports.SIZE_Bx=Nl;Ge.exports.SIZE_C=ko;Ge.exports.SIZE_OP=Bu;Ge.exports.fullins=Cu;Ge.exports.getBMode=Vse;Ge.exports.getCMode=Wse;Ge.exports.getOpMode=jse;Ge.exports.iABC=ot;Ge.exports.iABx=dm;Ge.exports.iAsBx=sh;Ge.exports.iAx=aT;Ge.exports.testAMode=Xse;Ge.exports.testTMode=$se});var Fl=I((FKe,Lr)=>{"use strict";b();var{LUA_MASKLINE:xae,LUA_MASKCOUNT:wae,LUA_MULTRET:kae,constant_types:{LUA_TBOOLEAN:Mae,LUA_TLCF:Aae,LUA_TLIGHTUSERDATA:Eae,LUA_TLNGSTR:mT,LUA_TNIL:Sae,LUA_TNUMBER:yT,LUA_TNUMFLT:Tae,LUA_TNUMINT:Rae,LUA_TSHRSTR:gT,LUA_TTABLE:_T,LUA_TUSERDATA:Oae},to_luastring:Ts}=Pr(),{INDEXK:vT,ISK:bT,LFIELDS_PER_FLUSH:Iae,OpCodesI:{OP_ADD:xT,OP_BAND:wT,OP_BNOT:kT,OP_BOR:MT,OP_BXOR:AT,OP_CALL:Fb,OP_CLOSURE:Nae,OP_CONCAT:ET,OP_DIV:ST,OP_EQ:TT,OP_EXTRAARG:Db,OP_FORLOOP:Bae,OP_FORPREP:Cae,OP_GETTABLE:RT,OP_GETTABUP:OT,OP_GETUPVAL:Uae,OP_IDIV:IT,OP_JMP:NT,OP_LE:qb,OP_LEN:BT,OP_LOADBOOL:Dae,OP_LOADK:Pae,OP_LOADKX:Fae,OP_LOADNIL:qae,OP_LT:CT,OP_MOD:UT,OP_MOVE:Lae,OP_MUL:DT,OP_NEWTABLE:Gae,OP_NOT:Kae,OP_POW:PT,OP_RETURN:Hae,OP_SELF:FT,OP_SETLIST:zae,OP_SETTABLE:jae,OP_SETTABUP:Vae,OP_SETUPVAL:Wae,OP_SHL:qT,OP_SHR:LT,OP_SUB:GT,OP_TAILCALL:Xae,OP_TEST:$ae,OP_TESTSET:Yae,OP_TFORCALL:KT,OP_TFORLOOP:Lb,OP_UNM:HT,OP_VARARG:Zae}}=Dl(),{LUA_MAXINTEGER:Jae,LUA_MININTEGER:Qae,lua_numbertointeger:eoe}=Vn(),{lua_assert:Wi,luai_nummod:toe}=Wn(),Vt=oi(),ym=Ll(),So=da(),{luaS_bless:roe,luaS_eqlngstr:noe,luaS_hashlongstr:cT}=As(),nn=Xi(),He=ql(),Pl=Es(),li=pa(),ioe=function(e){let t=e.ci,r=t.l_base,n=t.l_code[t.l_savedpc-1],i=n.opcode;switch(i){case xT:case GT:case DT:case ST:case IT:case wT:case MT:case AT:case qT:case LT:case UT:case PT:case HT:case kT:case BT:case OT:case RT:case FT:{Vt.setobjs2s(e,r+n.A,e.top-1),delete e.stack[--e.top];break}case qb:case CT:case TT:{let o=!e.stack[e.top-1].l_isfalse();delete e.stack[--e.top],t.callstatus&So.CIST_LEQ&&(Wi(i===qb),t.callstatus^=So.CIST_LEQ,o=!o),Wi(t.l_code[t.l_savedpc].opcode===NT),o!==!!n.A&&t.l_savedpc++;break}case ET:{let o=e.top-1,h=n.B,g=o-1-(r+h);Vt.setobjs2s(e,o-2,o),g>1&&(e.top=o-1,Vb(e,g)),Vt.setobjs2s(e,t.l_base+n.A,e.top-1),nn.adjust_top(e,t.top);break}case KT:{Wi(t.l_code[t.l_savedpc].opcode===Lb),nn.adjust_top(e,t.top);break}case Fb:{n.C-1>=0&&nn.adjust_top(e,t.top);break}}},hT=function(e,t,r){return t+r.A},Eo=function(e,t,r){return t+r.B},pn=function(e,t,r,n){return bT(n.B)?r[vT(n.B)]:e.stack[t+n.B]},Fr=function(e,t,r,n){return bT(n.C)?r[vT(n.C)]:e.stack[t+n.C]},soe=function(e){let t=e.ci;t.callstatus|=So.CIST_FRESH;e:for(;;){Wi(t===e.ci);let r=t.func.value,n=r.p.k,i=t.l_base,o=t.l_code[t.l_savedpc++];e.hookmask&(xae|wae)&&li.luaG_traceexec(e);let h=hT(e,i,o);switch(o.opcode){case Lae:{Vt.setobjs2s(e,h,Eo(e,i,o));break}case Pae:{let v=n[o.Bx];Vt.setobj2s(e,h,v);break}case Fae:{Wi(t.l_code[t.l_savedpc].opcode===Db);let v=n[t.l_code[t.l_savedpc++].Ax];Vt.setobj2s(e,h,v);break}case Dae:{e.stack[h].setbvalue(o.B!==0),o.C!==0&&t.l_savedpc++;break}case qae:{for(let v=0;v<=o.B;v++)e.stack[h+v].setnilvalue();break}case Uae:{let v=o.B;Vt.setobj2s(e,h,r.upvals[v]);break}case OT:{let v=r.upvals[o.B],w=Fr(e,i,n,o);mm(e,v,w,h);break}case RT:{let v=e.stack[Eo(e,i,o)],w=Fr(e,i,n,o);mm(e,v,w,h);break}case Vae:{let v=r.upvals[o.A],w=pn(e,i,n,o),k=Fr(e,i,n,o);Kb(e,v,w,k);break}case Wae:{r.upvals[o.B].setfrom(e.stack[h]);break}case jae:{let v=e.stack[h],w=pn(e,i,n,o),k=Fr(e,i,n,o);Kb(e,v,w,k);break}case Gae:{e.stack[h].sethvalue(Pl.luaH_new(e));break}case FT:{let v=Eo(e,i,o),w=Fr(e,i,n,o);Vt.setobjs2s(e,h+1,v),mm(e,e.stack[v],w,h);break}case xT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;v.ttisinteger()&&w.ttisinteger()?e.stack[h].setivalue(v.value+w.value|0):(k=qr(v))!==!1&&(A=qr(w))!==!1?e.stack[h].setfltvalue(k+A):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_ADD);break}case GT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;v.ttisinteger()&&w.ttisinteger()?e.stack[h].setivalue(v.value-w.value|0):(k=qr(v))!==!1&&(A=qr(w))!==!1?e.stack[h].setfltvalue(k-A):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_SUB);break}case DT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;v.ttisinteger()&&w.ttisinteger()?e.stack[h].setivalue($T(v.value,w.value)):(k=qr(v))!==!1&&(A=qr(w))!==!1?e.stack[h].setfltvalue(k*A):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_MUL);break}case UT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;v.ttisinteger()&&w.ttisinteger()?e.stack[h].setivalue(ZT(e,v.value,w.value)):(k=qr(v))!==!1&&(A=qr(w))!==!1?e.stack[h].setfltvalue(toe(e,k,A)):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_MOD);break}case PT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;(k=qr(v))!==!1&&(A=qr(w))!==!1?e.stack[h].setfltvalue(Math.pow(k,A)):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_POW);break}case ST:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;(k=qr(v))!==!1&&(A=qr(w))!==!1?e.stack[h].setfltvalue(k/A):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_DIV);break}case IT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;v.ttisinteger()&&w.ttisinteger()?e.stack[h].setivalue(YT(e,v.value,w.value)):(k=qr(v))!==!1&&(A=qr(w))!==!1?e.stack[h].setfltvalue(Math.floor(k/A)):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_IDIV);break}case wT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;(k=Vi(v))!==!1&&(A=Vi(w))!==!1?e.stack[h].setivalue(k&A):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_BAND);break}case MT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;(k=Vi(v))!==!1&&(A=Vi(w))!==!1?e.stack[h].setivalue(k|A):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_BOR);break}case AT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;(k=Vi(v))!==!1&&(A=Vi(w))!==!1?e.stack[h].setivalue(k^A):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_BXOR);break}case qT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;(k=Vi(v))!==!1&&(A=Vi(w))!==!1?e.stack[h].setivalue(Gb(k,A)):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_SHL);break}case LT:{let v=pn(e,i,n,o),w=Fr(e,i,n,o),k,A;(k=Vi(v))!==!1&&(A=Vi(w))!==!1?e.stack[h].setivalue(Gb(k,-A)):He.luaT_trybinTM(e,v,w,e.stack[h],He.TMS.TM_SHR);break}case HT:{let v=e.stack[Eo(e,i,o)],w;v.ttisinteger()?e.stack[h].setivalue(-v.value|0):(w=qr(v))!==!1?e.stack[h].setfltvalue(-w):He.luaT_trybinTM(e,v,v,e.stack[h],He.TMS.TM_UNM);break}case kT:{let v=e.stack[Eo(e,i,o)];v.ttisinteger()?e.stack[h].setivalue(~v.value):He.luaT_trybinTM(e,v,v,e.stack[h],He.TMS.TM_BNOT);break}case Kae:{let v=e.stack[Eo(e,i,o)];e.stack[h].setbvalue(v.l_isfalse());break}case BT:{XT(e,e.stack[h],e.stack[Eo(e,i,o)]);break}case ET:{let v=o.B,w=o.C;e.top=i+w+1,Vb(e,w-v+1);let k=i+v;Vt.setobjs2s(e,h,k),nn.adjust_top(e,t.top);break}case NT:{zT(e,t,o,0);break}case TT:{Hb(e,pn(e,i,n,o),Fr(e,i,n,o))!==o.A?t.l_savedpc++:hh(e,t);break}case CT:{jT(e,pn(e,i,n,o),Fr(e,i,n,o))!==o.A?t.l_savedpc++:hh(e,t);break}case qb:{VT(e,pn(e,i,n,o),Fr(e,i,n,o))!==o.A?t.l_savedpc++:hh(e,t);break}case $ae:{(o.C?e.stack[h].l_isfalse():!e.stack[h].l_isfalse())?t.l_savedpc++:hh(e,t);break}case Yae:{let v=Eo(e,i,o),w=e.stack[v];(o.C?w.l_isfalse():!w.l_isfalse())?t.l_savedpc++:(Vt.setobjs2s(e,h,v),hh(e,t));break}case Fb:{let v=o.B,w=o.C-1;if(v!==0&&nn.adjust_top(e,h+v),nn.luaD_precall(e,h,w))w>=0&&nn.adjust_top(e,t.top);else{t=e.ci;continue e}break}case Xae:{let v=o.B;if(v!==0&&nn.adjust_top(e,h+v),!nn.luaD_precall(e,h,kae)){let w=e.ci,k=w.previous,A=w.func,R=w.funcOff,O=k.funcOff,B=w.l_base+A.value.p.numparams;r.p.p.length>0&&ym.luaF_close(e,k.l_base);for(let L=0;R+L<B;L++)Vt.setobjs2s(e,O+L,R+L);k.l_base=O+(w.l_base-R),k.top=O+(e.top-R),nn.adjust_top(e,k.top),k.l_code=w.l_code,k.l_savedpc=w.l_savedpc,k.callstatus|=So.CIST_TAIL,k.next=null,t=e.ci=k,Wi(e.top===k.l_base+e.stack[O].value.p.maxstacksize);continue e}break}case Hae:{r.p.p.length>0&&ym.luaF_close(e,i);let v=nn.luaD_poscall(e,t,h,o.B!==0?o.B-1:e.top-h);if(t.callstatus&So.CIST_FRESH)return;t=e.ci,v&&nn.adjust_top(e,t.top),Wi(t.callstatus&So.CIST_LUA),Wi(t.l_code[t.l_savedpc-1].opcode===Fb);continue e}case Bae:{if(e.stack[h].ttisinteger()){let v=e.stack[h+2].value,w=e.stack[h].value+v|0,k=e.stack[h+1].value;(0<v?w<=k:k<=w)&&(t.l_savedpc+=o.sBx,e.stack[h].chgivalue(w),e.stack[h+3].setivalue(w))}else{let v=e.stack[h+2].value,w=e.stack[h].value+v,k=e.stack[h+1].value;(0<v?w<=k:k<=w)&&(t.l_savedpc+=o.sBx,e.stack[h].chgfltvalue(w),e.stack[h+3].setfltvalue(w))}break}case Cae:{let v=e.stack[h],w=e.stack[h+1],k=e.stack[h+2],A;if(v.ttisinteger()&&k.ttisinteger()&&(A=ooe(w,k.value))){let R=A.stopnow?0:v.value;w.value=A.ilimit,v.value=R-k.value|0}else{let R,O,B;(R=qr(w))===!1&&li.luaG_runerror(e,Ts("'for' limit must be a number",!0)),e.stack[h+1].setfltvalue(R),(O=qr(k))===!1&&li.luaG_runerror(e,Ts("'for' step must be a number",!0)),e.stack[h+2].setfltvalue(O),(B=qr(v))===!1&&li.luaG_runerror(e,Ts("'for' initial value must be a number",!0)),e.stack[h].setfltvalue(B-O)}t.l_savedpc+=o.sBx;break}case KT:{let v=h+3;Vt.setobjs2s(e,v+2,h+2),Vt.setobjs2s(e,v+1,h+1),Vt.setobjs2s(e,v,h),nn.adjust_top(e,v+3),nn.luaD_call(e,v,o.C),nn.adjust_top(e,t.top),o=t.l_code[t.l_savedpc++],h=hT(e,i,o),Wi(o.opcode===Lb)}case Lb:{e.stack[h+1].ttisnil()||(Vt.setobjs2s(e,h,h+1),t.l_savedpc+=o.sBx);break}case zae:{let v=o.B,w=o.C;v===0&&(v=e.top-h-1),w===0&&(Wi(t.l_code[t.l_savedpc].opcode===Db),w=t.l_code[t.l_savedpc++].Ax);let k=e.stack[h].value,A=(w-1)*Iae+v;for(;v>0;v--)Pl.luaH_setint(k,A--,e.stack[h+v]);nn.adjust_top(e,t.top);break}case Nae:{let v=r.p.p[o.Bx],w=uoe(v,r.upvals,e.stack,i);w===null?coe(e,v,r.upvals,i,h):e.stack[h].setclLvalue(w);break}case Zae:{let v=o.B-1,w=i-t.funcOff-r.p.numparams-1,k;for(w<0&&(w=0),v<0&&(v=w,nn.luaD_checkstack(e,w),nn.adjust_top(e,h+w)),k=0;k<v&&k<w;k++)Vt.setobjs2s(e,h+k,i-w+k);for(;k<v;k++)e.stack[h+k].setnilvalue();break}case Db:throw Error("invalid opcode")}}},zT=function(e,t,r,n){let i=r.A;i!==0&&ym.luaF_close(e,t.l_base+i-1),t.l_savedpc+=r.sBx+n},hh=function(e,t){zT(e,t,t.l_code[t.l_savedpc],1)},jT=function(e,t,r){if(t.ttisnumber()&&r.ttisnumber())return loe(t,r)?1:0;if(t.ttisstring()&&r.ttisstring())return WT(t.tsvalue(),r.tsvalue())<0?1:0;{let n=He.luaT_callorderTM(e,t,r,He.TMS.TM_LT);return n===null&&li.luaG_ordererror(e,t,r),n?1:0}},VT=function(e,t,r){let n;return t.ttisnumber()&&r.ttisnumber()?foe(t,r)?1:0:t.ttisstring()&&r.ttisstring()?WT(t.tsvalue(),r.tsvalue())<=0?1:0:(n=He.luaT_callorderTM(e,t,r,He.TMS.TM_LE),n!==null?n?1:0:(e.ci.callstatus|=So.CIST_LEQ,n=He.luaT_callorderTM(e,r,t,He.TMS.TM_LT),e.ci.callstatus^=So.CIST_LEQ,n===null&&li.luaG_ordererror(e,t,r),n?0:1))},Hb=function(e,t,r){if(t.ttype()!==r.ttype())return t.ttnov()!==r.ttnov()||t.ttnov()!==yT?0:t.value===r.value?1:0;let n;switch(t.ttype()){case Sae:return 1;case Mae:return t.value==r.value?1:0;case Eae:case Rae:case Tae:case Aae:return t.value===r.value?1:0;case gT:case mT:return noe(t.tsvalue(),r.tsvalue())?1:0;case Oae:case _T:if(t.value===r.value)return 1;if(e===null)return 0;n=He.fasttm(e,t.value.metatable,He.TMS.TM_EQ),n===null&&(n=He.fasttm(e,r.value.metatable,He.TMS.TM_EQ));break;default:return t.value===r.value?1:0}if(n===null)return 0;let i=new Vt.TValue;return He.luaT_callTM(e,n,t,r,i,1),i.l_isfalse()?0:1},aoe=function(e,t){return Hb(null,e,t)},ooe=function(e,t){let r=!1,n=gm(e,t<0?2:1);if(n===!1){let i=qr(e);if(i===!1)return!1;0<i?(n=Jae,t<0&&(r=!0)):(n=Qae,t>=0&&(r=!0))}return{stopnow:r,ilimit:n}},gm=function(e,t){if(e.ttisfloat()){let r=e.value,n=Math.floor(r);if(r!==n){if(t===0)return!1;t>1&&(n+=1)}return eoe(n)}else{if(e.ttisinteger())return e.value;if(jb(e)){let r=new Vt.TValue;if(Vt.luaO_str2num(e.svalue(),r)===e.vslen()+1)return gm(r,t)}}return!1},Vi=function(e){return e.ttisinteger()?e.value:gm(e,0)},qr=function(e){if(e.ttnov()===yT)return e.value;if(jb(e)){let t=new Vt.TValue;if(Vt.luaO_str2num(e.svalue(),t)===e.vslen()+1)return t.value}return!1},loe=function(e,t){return e.value<t.value},foe=function(e,t){return e.value<=t.value},WT=function(e,t){let r=cT(e),n=cT(t);return r===n?0:r<n?-1:1},XT=function(e,t,r){let n;switch(r.ttype()){case _T:{let i=r.value;if(n=He.fasttm(e,i.metatable,He.TMS.TM_LEN),n!==null)break;t.setivalue(Pl.luaH_getn(i));return}case gT:case mT:t.setivalue(r.vslen());return;default:{n=He.luaT_gettmbyobj(e,r,He.TMS.TM_LEN),n.ttisnil()&&li.luaG_typeerror(e,r,Ts("get length of",!0));break}}He.luaT_callTM(e,n,r,r,t,1)},$T=Math.imul||function(e,t){let r=e>>>16&65535,n=e&65535,i=t>>>16&65535,o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0},YT=function(e,t,r){return r===0&&li.luaG_runerror(e,Ts("attempt to divide by zero")),Math.floor(t/r)|0},ZT=function(e,t,r){return r===0&&li.luaG_runerror(e,Ts("attempt to perform 'n%%0'")),t-Math.floor(t/r)*r|0},dT=32,Gb=function(e,t){return t<0?t<=-dT?0:e>>>-t:t>=dT?0:e<<t},uoe=function(e,t,r,n){let i=e.cache;if(i!==null){let o=e.upvalues,h=o.length;for(let g=0;g<h;g++){let v=o[g].instack?r[n+o[g].idx]:t[o[g].idx];if(i.upvals[g]!==v)return null}}return i},coe=function(e,t,r,n,i){let o=t.upvalues.length,h=t.upvalues,g=new Vt.LClosure(e,o);g.p=t,e.stack[i].setclLvalue(g);for(let v=0;v<o;v++)h[v].instack?g.upvals[v]=ym.luaF_findupval(e,n+h[v].idx):g.upvals[v]=r[h[v].idx];t.cache=g},zb=function(e){return e.ttisnumber()},jb=function(e){return e.ttisstring()},Pb=function(e,t){let r=e.stack[t];return r.ttisstring()?!0:zb(r)?(Vt.luaO_tostring(e,r),!0):!1},pT=function(e){return e.ttisstring()&&e.vslen()===0},hoe=function(e,t,r,n){let i=0;do{let o=e.stack[t-r],h=o.vslen(),g=o.svalue();n.set(g,i),i+=h}while(--r>0)},Vb=function(e,t){Wi(t>=2);do{let r=e.top,n=2;if(!(e.stack[r-2].ttisstring()||zb(e.stack[r-2]))||!Pb(e,r-1))He.luaT_trybinTM(e,e.stack[r-2],e.stack[r-1],e.stack[r-2],He.TMS.TM_CONCAT);else if(pT(e.stack[r-1]))Pb(e,r-2);else if(pT(e.stack[r-2]))Vt.setobjs2s(e,r-2,r-1);else{let i=e.stack[r-1].vslen();for(n=1;n<t&&Pb(e,r-n-1);n++){let g=e.stack[r-n-1].vslen();i+=g}let o=new Uint8Array(i);hoe(e,r,n,o);let h=roe(e,o);Vt.setsvalue2s(e,r-n,h)}for(t-=n-1;e.top>r-(n-1);)delete e.stack[--e.top]}while(t>1)},JT=2e3,mm=function(e,t,r,n){for(let i=0;i<JT;i++){let o;if(!t.ttistable())o=He.luaT_gettmbyobj(e,t,He.TMS.TM_INDEX),o.ttisnil()&&li.luaG_typeerror(e,t,Ts("index",!0));else{let h=Pl.luaH_get(e,t.value,r);if(h.ttisnil()){if(o=He.fasttm(e,t.value.metatable,He.TMS.TM_INDEX),o===null){e.stack[n].setnilvalue();return}}else{Vt.setobj2s(e,n,h);return}}if(o.ttisfunction()){He.luaT_callTM(e,o,t,r,e.stack[n],1);return}t=o}li.luaG_runerror(e,Ts("'__index' chain too long; possible loop",!0))},Kb=function(e,t,r,n){for(let i=0;i<JT;i++){let o;if(t.ttistable()){let h=t.value;if(!Pl.luaH_get(e,h,r).ttisnil()||(o=He.fasttm(e,h.metatable,He.TMS.TM_NEWINDEX))===null){Pl.luaH_setfrom(e,h,r,n),Pl.invalidateTMcache(h);return}}else(o=He.luaT_gettmbyobj(e,t,He.TMS.TM_NEWINDEX)).ttisnil()&&li.luaG_typeerror(e,t,Ts("index",!0));if(o.ttisfunction()){He.luaT_callTM(e,o,t,r,n,0);return}t=o}li.luaG_runerror(e,Ts("'__newindex' chain too long; possible loop",!0))};Lr.exports.cvt2str=zb;Lr.exports.cvt2num=jb;Lr.exports.luaV_gettable=mm;Lr.exports.luaV_concat=Vb;Lr.exports.luaV_div=YT;Lr.exports.luaV_equalobj=Hb;Lr.exports.luaV_execute=soe;Lr.exports.luaV_finishOp=ioe;Lr.exports.luaV_imul=$T;Lr.exports.luaV_lessequal=VT;Lr.exports.luaV_lessthan=jT;Lr.exports.luaV_mod=ZT;Lr.exports.luaV_objlen=XT;Lr.exports.luaV_rawequalobj=aoe;Lr.exports.luaV_shiftl=Gb;Lr.exports.luaV_tointeger=gm;Lr.exports.settable=Kb;Lr.exports.tointeger=Vi;Lr.exports.tonumber=qr});var ql=I((LKe,Mi)=>{"use strict";b();var{constant_types:{LUA_TTABLE:doe,LUA_TUSERDATA:poe},to_luastring:Mt}=Pr(),{lua_assert:moe}=Wn(),Uu=oi(),QT=Xi(),yoe=da(),{luaS_bless:goe,luaS_new:ir}=As(),Xb=Es(),_m=pa(),e7=Fl(),_oe=["no value","nil","boolean","userdata","number","string","table","function","userdata","thread","proto"].map(e=>Mt(e)),t7=function(e){return _oe[e+1]},yt={TM_INDEX:0,TM_NEWINDEX:1,TM_GC:2,TM_MODE:3,TM_LEN:4,TM_EQ:5,TM_ADD:6,TM_SUB:7,TM_MUL:8,TM_MOD:9,TM_POW:10,TM_DIV:11,TM_IDIV:12,TM_BAND:13,TM_BOR:14,TM_BXOR:15,TM_SHL:16,TM_SHR:17,TM_UNM:18,TM_BNOT:19,TM_LT:20,TM_LE:21,TM_CONCAT:22,TM_CALL:23,TM_N:24},voe=function(e){e.l_G.tmname[yt.TM_INDEX]=new ir(e,Mt("__index",!0)),e.l_G.tmname[yt.TM_NEWINDEX]=new ir(e,Mt("__newindex",!0)),e.l_G.tmname[yt.TM_GC]=new ir(e,Mt("__gc",!0)),e.l_G.tmname[yt.TM_MODE]=new ir(e,Mt("__mode",!0)),e.l_G.tmname[yt.TM_LEN]=new ir(e,Mt("__len",!0)),e.l_G.tmname[yt.TM_EQ]=new ir(e,Mt("__eq",!0)),e.l_G.tmname[yt.TM_ADD]=new ir(e,Mt("__add",!0)),e.l_G.tmname[yt.TM_SUB]=new ir(e,Mt("__sub",!0)),e.l_G.tmname[yt.TM_MUL]=new ir(e,Mt("__mul",!0)),e.l_G.tmname[yt.TM_MOD]=new ir(e,Mt("__mod",!0)),e.l_G.tmname[yt.TM_POW]=new ir(e,Mt("__pow",!0)),e.l_G.tmname[yt.TM_DIV]=new ir(e,Mt("__div",!0)),e.l_G.tmname[yt.TM_IDIV]=new ir(e,Mt("__idiv",!0)),e.l_G.tmname[yt.TM_BAND]=new ir(e,Mt("__band",!0)),e.l_G.tmname[yt.TM_BOR]=new ir(e,Mt("__bor",!0)),e.l_G.tmname[yt.TM_BXOR]=new ir(e,Mt("__bxor",!0)),e.l_G.tmname[yt.TM_SHL]=new ir(e,Mt("__shl",!0)),e.l_G.tmname[yt.TM_SHR]=new ir(e,Mt("__shr",!0)),e.l_G.tmname[yt.TM_UNM]=new ir(e,Mt("__unm",!0)),e.l_G.tmname[yt.TM_BNOT]=new ir(e,Mt("__bnot",!0)),e.l_G.tmname[yt.TM_LT]=new ir(e,Mt("__lt",!0)),e.l_G.tmname[yt.TM_LE]=new ir(e,Mt("__le",!0)),e.l_G.tmname[yt.TM_CONCAT]=new ir(e,Mt("__concat",!0)),e.l_G.tmname[yt.TM_CALL]=new ir(e,Mt("__call",!0))},boe=Mt("__name",!0),xoe=function(e,t){let r;if(t.ttistable()&&(r=t.value.metatable)!==null||t.ttisfulluserdata()&&(r=t.value.metatable)!==null){let n=Xb.luaH_getstr(r,goe(e,boe));if(n.ttisstring())return n.svalue()}return t7(t.ttnov())},r7=function(e,t,r,n,i,o){let h=e.top;if(Uu.pushobj2s(e,t),Uu.pushobj2s(e,r),Uu.pushobj2s(e,n),o||Uu.pushobj2s(e,i),e.ci.callstatus&yoe.CIST_LUA?QT.luaD_call(e,h,o):QT.luaD_callnoyield(e,h,o),o){let g=e.stack[e.top-1];delete e.stack[--e.top],i.setfrom(g)}},$b=function(e,t,r,n,i){let o=Wb(e,t,i);return o.ttisnil()&&(o=Wb(e,r,i)),o.ttisnil()?!1:(r7(e,o,t,r,n,1),!0)},woe=function(e,t,r,n,i){if(!$b(e,t,r,n,i))switch(i){case yt.TM_CONCAT:return _m.luaG_concaterror(e,t,r);case yt.TM_BAND:case yt.TM_BOR:case yt.TM_BXOR:case yt.TM_SHL:case yt.TM_SHR:case yt.TM_BNOT:{let o=e7.tonumber(t),h=e7.tonumber(r);return o!==!1&&h!==!1?_m.luaG_tointerror(e,t,r):_m.luaG_opinterror(e,t,r,Mt("perform bitwise operation on",!0))}default:return _m.luaG_opinterror(e,t,r,Mt("perform arithmetic on",!0))}},koe=function(e,t,r,n){let i=new Uu.TValue;return $b(e,t,r,i,n)?!i.l_isfalse():null},Moe=function(e,t,r){return t===null||t.flags&1<<r?null:n7(t,r,e.l_G.tmname[r])},n7=function(e,t,r){let n=Xb.luaH_getstr(e,r);return moe(t<=yt.TM_EQ),n.ttisnil()?(e.flags|=1<<t,null):n},Wb=function(e,t,r){let n;switch(t.ttnov()){case doe:case poe:n=t.value.metatable;break;default:n=e.l_G.mt[t.ttnov()]}return n?Xb.luaH_getstr(n,e.l_G.tmname[r]):Uu.luaO_nilobject};Mi.exports.fasttm=Moe;Mi.exports.TMS=yt;Mi.exports.luaT_callTM=r7;Mi.exports.luaT_callbinTM=$b;Mi.exports.luaT_trybinTM=woe;Mi.exports.luaT_callorderTM=koe;Mi.exports.luaT_gettm=n7;Mi.exports.luaT_gettmbyobj=Wb;Mi.exports.luaT_init=voe;Mi.exports.luaT_objtypename=xoe;Mi.exports.ttypename=t7});var da=I((KKe,Vr)=>{"use strict";b();var{LUA_MINSTACK:s7,LUA_RIDX_GLOBALS:Aoe,LUA_RIDX_MAINTHREAD:Eoe,constant_types:{LUA_NUMTAGS:Soe,LUA_TNIL:a7,LUA_TTABLE:Toe,LUA_TTHREAD:o7},thread_status:{LUA_OK:l7}}=Pr(),dh=oi(),Roe=Xi(),f7=yh(),vm=Es(),u7=ql(),c7=5,i7=2*s7,ph=class{constructor(){this.func=null,this.funcOff=NaN,this.top=NaN,this.previous=null,this.next=null,this.l_base=NaN,this.l_code=null,this.l_savedpc=NaN,this.c_k=null,this.c_old_errfunc=null,this.c_ctx=null,this.nresults=NaN,this.callstatus=NaN}},mh=class{constructor(t){this.id=t.id_counter++,this.base_ci=new ph,this.top=NaN,this.stack_last=NaN,this.oldpc=NaN,this.l_G=t,this.stack=null,this.ci=null,this.errorJmp=null,this.nCcalls=0,this.hook=null,this.hookmask=0,this.basehookcount=0,this.allowhook=1,this.hookcount=this.basehookcount,this.nny=1,this.status=l7,this.errfunc=0}},Yb=class{constructor(){this.id_counter=1,this.ids=new WeakMap,this.mainthread=null,this.l_registry=new dh.TValue(a7,null),this.panic=null,this.atnativeerror=null,this.version=null,this.tmname=new Array(u7.TMS.TM_N),this.mt=new Array(Soe)}},Ooe=function(e){let t=new ph;return e.ci.next=t,t.previous=e.ci,t.next=null,e.ci=t,t},h7=function(e){let t=e.ci;t.next=null},d7=function(e,t){e.stack=new Array(i7),e.top=0,e.stack_last=i7-c7;let r=e.base_ci;r.next=r.previous=null,r.callstatus=0,r.funcOff=e.top,r.func=e.stack[e.top],e.stack[e.top++]=new dh.TValue(a7,null),r.top=e.top+s7,e.ci=r},p7=function(e){e.ci=e.base_ci,h7(e),e.stack=null},Ioe=function(e,t){let r=vm.luaH_new(e);t.l_registry.sethvalue(r),vm.luaH_setint(r,Eoe,new dh.TValue(o7,e)),vm.luaH_setint(r,Aoe,new dh.TValue(Toe,vm.luaH_new(e)))},Noe=function(e){let t=e.l_G;d7(e,e),Ioe(e,t),u7.luaT_init(e),t.version=f7.lua_version(null)},Boe=function(e){let t=e.l_G,r=new mh(t);return e.stack[e.top]=new dh.TValue(o7,r),f7.api_incr_top(e),r.hookmask=e.hookmask,r.basehookcount=e.basehookcount,r.hook=e.hook,r.hookcount=r.basehookcount,d7(r,e),r},Coe=function(e,t){p7(t)},Uoe=function(){let e=new Yb,t=new mh(e);return e.mainthread=t,Roe.luaD_rawrunprotected(t,Noe,null)!==l7&&(t=null),t},Doe=function(e){p7(e)},Poe=function(e){e=e.l_G.mainthread,Doe(e)};Vr.exports.lua_State=mh;Vr.exports.CallInfo=ph;Vr.exports.CIST_OAH=1;Vr.exports.CIST_LUA=2;Vr.exports.CIST_HOOKED=4;Vr.exports.CIST_FRESH=8;Vr.exports.CIST_YPCALL=16;Vr.exports.CIST_TAIL=32;Vr.exports.CIST_HOOKYIELD=64;Vr.exports.CIST_LEQ=128;Vr.exports.CIST_FIN=256;Vr.exports.EXTRA_STACK=c7;Vr.exports.lua_close=Poe;Vr.exports.lua_newstate=Uoe;Vr.exports.lua_newthread=Boe;Vr.exports.luaE_extendCI=Ooe;Vr.exports.luaE_freeCI=h7;Vr.exports.luaE_freethread=Coe});var oi=I((zKe,Yt)=>{"use strict";b();var{LUA_OPADD:ox,LUA_OPBAND:S7,LUA_OPBNOT:T7,LUA_OPBOR:R7,LUA_OPBXOR:O7,LUA_OPDIV:I7,LUA_OPIDIV:N7,LUA_OPMOD:B7,LUA_OPMUL:C7,LUA_OPPOW:U7,LUA_OPSHL:D7,LUA_OPSHR:P7,LUA_OPSUB:F7,LUA_OPUNM:q7,constant_types:{LUA_NUMTAGS:L7,LUA_TBOOLEAN:m7,LUA_TCCL:y7,LUA_TFUNCTION:g7,LUA_TLCF:_7,LUA_TLCL:v7,LUA_TLIGHTUSERDATA:b7,LUA_TLNGSTR:tx,LUA_TNIL:gh,LUA_TNUMBER:Foe,LUA_TNUMFLT:Zb,LUA_TNUMINT:Jb,LUA_TSHRSTR:qoe,LUA_TSTRING:Loe,LUA_TTABLE:x7,LUA_TTHREAD:w7,LUA_TUSERDATA:k7},from_userstring:Goe,luastring_indexOf:rx,luastring_of:Koe,to_jsstring:G7,to_luastring:mn}=Pr(),{lisdigit:xm,lisprint:Hoe,lisspace:wm,lisxdigit:K7}=Rb(),zoe=pa(),bm=Xi(),joe=da(),{luaS_bless:Voe,luaS_new:Woe}=As(),Xoe=Es(),{LUA_COMPAT_FLOATSTRING:$oe,ldexp:Yoe,lua_integer2str:Zoe,lua_number2str:Joe}=Vn(),Ai=Fl(),{MAX_INT:H7,luai_nummod:Qoe,lua_assert:Gl}=Wn(),M7=ql(),ele=L7,nx=L7+1,To=class{constructor(t,r){this.type=t,this.value=r}ttype(){return this.type&63}ttnov(){return this.type&15}checktag(t){return this.type===t}checktype(t){return this.ttnov()===t}ttisnumber(){return this.checktype(Foe)}ttisfloat(){return this.checktag(Zb)}ttisinteger(){return this.checktag(Jb)}ttisnil(){return this.checktag(gh)}ttisboolean(){return this.checktag(m7)}ttislightuserdata(){return this.checktag(b7)}ttisstring(){return this.checktype(Loe)}ttisshrstring(){return this.checktag(qoe)}ttislngstring(){return this.checktag(tx)}ttistable(){return this.checktag(x7)}ttisfunction(){return this.checktype(g7)}ttisclosure(){return(this.type&31)===g7}ttisCclosure(){return this.checktag(y7)}ttisLclosure(){return this.checktag(v7)}ttislcf(){return this.checktag(_7)}ttisfulluserdata(){return this.checktag(k7)}ttisthread(){return this.checktag(w7)}ttisdeadkey(){return this.checktag(nx)}l_isfalse(){return this.ttisnil()||this.ttisboolean()&&this.value===!1}setfltvalue(t){this.type=Zb,this.value=t}chgfltvalue(t){Gl(this.type==Zb),this.value=t}setivalue(t){this.type=Jb,this.value=t}chgivalue(t){Gl(this.type==Jb),this.value=t}setnilvalue(){this.type=gh,this.value=null}setfvalue(t){this.type=_7,this.value=t}setpvalue(t){this.type=b7,this.value=t}setbvalue(t){this.type=m7,this.value=t}setsvalue(t){this.type=tx,this.value=t}setuvalue(t){this.type=k7,this.value=t}setthvalue(t){this.type=w7,this.value=t}setclLvalue(t){this.type=v7,this.value=t}setclCvalue(t){this.type=y7,this.value=t}sethvalue(t){this.type=x7,this.value=t}setdeadvalue(){this.type=nx,this.value=null}setfrom(t){this.type=t.type,this.value=t.value}tsvalue(){return Gl(this.ttisstring()),this.value}svalue(){return this.tsvalue().getstr()}vslen(){return this.tsvalue().tsslen()}jsstring(t,r){return G7(this.svalue(),t,r,!0)}},tle=function(e,t){e.stack[e.top++]=new To(t.type,t.value)},rle=function(e,t){e.stack[e.top++]=new To(tx,t)},nle=function(e,t,r){e.stack[t].setfrom(e.stack[r])},ile=function(e,t,r){e.stack[t].setfrom(r)},z7=function(e,t,r){e.stack[t].setsvalue(r)},j7=new To(gh,null);Object.freeze(j7);Yt.exports.luaO_nilobject=j7;var km=class{constructor(t,r){this.id=t.l_G.id_counter++,this.p=null,this.nupvalues=r,this.upvals=new Array(r)}},Mm=class{constructor(t,r,n){for(this.id=t.l_G.id_counter++,this.f=r,this.nupvalues=n,this.upvalue=new Array(n);n--;)this.upvalue[n]=new To(gh,null)}},Am=class{constructor(t,r){this.id=t.l_G.id_counter++,this.metatable=null,this.uservalue=new To(gh,null),this.len=r,this.data=Object.create(null)}},ix=class{constructor(){this.varname=null,this.startpc=NaN,this.endpc=NaN}},Du=mn("..."),Qb=mn('[string "'),ex=mn('"]'),sle=function(e,t){let r=e.length,n;if(e[0]===61)r<t?(n=new Uint8Array(r-1),n.set(e.subarray(1))):(n=new Uint8Array(t),n.set(e.subarray(1,t+1)));else if(e[0]===64)r<=t?(n=new Uint8Array(r-1),n.set(e.subarray(1))):(n=new Uint8Array(t),n.set(Du),t-=Du.length,n.set(e.subarray(r-t),Du.length));else{n=new Uint8Array(t);let i=rx(e,10);n.set(Qb);let o=Qb.length;t-=Qb.length+Du.length+ex.length,r<t&&i===-1?(n.set(e,o),o+=e.length):(i!==-1&&(r=i),r>t&&(r=t),n.set(e.subarray(0,r),o),o+=r,n.set(Du,o),o+=Du.length),n.set(ex,o),o+=ex.length,n=n.subarray(0,o)}return n},lx=function(e){return xm(e)?e-48:(e&223)-55},Pu=8,V7=function(e,t){let r=1;if(Gl(t<=1114111),t<128)e[Pu-1]=t;else{let n=63;do e[Pu-r++]=128|t&63,t>>=6,n>>=1;while(t>n);e[Pu-r]=~n<<1|t}return r},ale=30,ole=function(e){let t=0,r=0,n=0,i=0,o=0,h,g=!1;for(;wm(e[t]);)t++;if(((h=e[t]===45)||e[t]===43)&&t++,!(e[t]===48&&(e[t+1]===120||e[t+1]===88)))return null;for(t+=2;;t++)if(e[t]===46){if(g)break;g=!0}else if(K7(e[t]))n===0&&e[t]===48?i++:++n<=ale?r=r*16+lx(e[t]):o++,g&&o--;else break;if(i+n===0)return null;if(o*=4,e[t]===112||e[t]===80){let v=0,w;if(t++,((w=e[t]===45)||e[t]===43)&&t++,!xm(e[t]))return null;for(;xm(e[t]);)v=v*10+e[t++]-48;w&&(v=-v),o+=v}return h&&(r=-r),{n:Yoe(r,o),i:t}},lle=function(e){try{e=G7(e)}catch{return null}let t=/^[\t\v\f \n\r]*[+-]?(?:[0-9]+\.?[0-9]*|\.[0-9]*)(?:[eE][+-]?[0-9]+)?/.exec(e);if(!t)return null;let r=parseFloat(t[0]);return isNaN(r)?null:{n:r,i:t[0].length}},fle=function(e,t){let r=t==="x"?ole(e):lle(e);if(r===null)return null;for(;wm(e[r.i]);)r.i++;return r.i===e.length||e[r.i]===0?r:null},ule=[46,120,88,110,78],cle={46:".",120:"x",88:"x",110:"n",78:"n"},hle=function(e){let t=e.length,r=0;for(let o=0;o<t;o++){let h=e[o];if(ule.indexOf(h)!==-1){r=h;break}}let n=cle[r];return n==="n"?null:fle(e,n)},A7=Math.floor(H7/10),dle=H7%10,ple=function(e){let t=0,r=0,n=!0,i;for(;wm(e[t]);)t++;if(((i=e[t]===45)||e[t]===43)&&t++,e[t]===48&&(e[t+1]===120||e[t+1]===88))for(t+=2;t<e.length&&K7(e[t]);t++)r=r*16+lx(e[t])|0,n=!1;else for(;t<e.length&&xm(e[t]);t++){let o=e[t]-48;if(r>=A7&&(r>A7||o>dle+i))return null;r=r*10+o|0,n=!1}for(;t<e.length&&wm(e[t]);)t++;return n||t!==e.length&&e[t]!==0?null:{n:(i?-r:r)|0,i:t}},mle=function(e,t){let r=ple(e);return r!==null?(t.setivalue(r.n),r.i+1):(r=hle(e),r!==null?(t.setfltvalue(r.n),r.i+1):0)},sx=function(e,t){let r;if(t.ttisinteger())r=mn(Zoe(t.value));else{let n=Joe(t.value);!$oe&&/^[-0123456789]+$/.test(n)&&(n+=".0"),r=mn(n)}t.setsvalue(Voe(e,r))},Xn=function(e,t){bm.luaD_inctop(e),z7(e,e.top-1,Woe(e,t))},W7=function(e,t,r){let n=0,i=0,o=0,h;for(;h=rx(t,37,i),h!=-1;){switch(Xn(e,t.subarray(i,h)),t[h+1]){case 115:{let g=r[o++];if(g===null)g=mn("(null)",!0);else{g=Goe(g);let v=rx(g,0);v!==-1&&(g=g.subarray(0,v))}Xn(e,g);break}case 99:{let g=r[o++];Hoe(g)?Xn(e,Koe(g)):X7(e,mn("<\\%d>",!0),g);break}case 100:case 73:bm.luaD_inctop(e),e.stack[e.top-1].setivalue(r[o++]),sx(e,e.stack[e.top-1]);break;case 102:bm.luaD_inctop(e),e.stack[e.top-1].setfltvalue(r[o++]),sx(e,e.stack[e.top-1]);break;case 112:{let g=r[o++];if(g instanceof joe.lua_State||g instanceof Xoe.Table||g instanceof Am||g instanceof km||g instanceof Mm)Xn(e,mn("0x"+g.id.toString(16)));else switch(typeof g){case"undefined":Xn(e,mn("undefined"));break;case"number":Xn(e,mn("Number("+g+")"));break;case"string":Xn(e,mn("String("+JSON.stringify(g)+")"));break;case"boolean":Xn(e,mn(g?"Boolean(true)":"Boolean(false)"));break;case"object":if(g===null){Xn(e,mn("null"));break}case"function":{let v=e.l_G.ids.get(g);v||(v=e.l_G.id_counter++,e.l_G.ids.set(g,v)),Xn(e,mn("0x"+v.toString(16)));break}default:Xn(e,mn("<id NYI>"))}break}case 85:{let g=new Uint8Array(Pu),v=V7(g,r[o++]);Xn(e,g.subarray(Pu-v));break}case 37:Xn(e,mn("%",!0));break;default:zoe.luaG_runerror(e,mn("invalid option '%%%c' to 'lua_pushfstring'"),t[h+1])}n+=2,i=h+2}return bm.luaD_checkstack(e,1),Xn(e,t.subarray(i)),n>0&&Ai.luaV_concat(e,n+1),e.stack[e.top-1].svalue()},X7=function(e,t,...r){return W7(e,t,r)},yle=function(e){let t=0;if(e<8)return e;for(;e>=128;)e=e+15>>4,t+=4;for(;e>=16;)e=e+1>>1,t++;return t+1<<3|e-8},E7=function(e,t,r,n){switch(t){case ox:return r+n|0;case F7:return r-n|0;case C7:return Ai.luaV_imul(r,n);case B7:return Ai.luaV_mod(e,r,n);case N7:return Ai.luaV_div(e,r,n);case S7:return r&n;case R7:return r|n;case O7:return r^n;case D7:return Ai.luaV_shiftl(r,n);case P7:return Ai.luaV_shiftl(r,-n);case q7:return 0-r|0;case T7:return-1^r;default:Gl(0)}},ax=function(e,t,r,n){switch(t){case ox:return r+n;case F7:return r-n;case C7:return r*n;case I7:return r/n;case U7:return Math.pow(r,n);case N7:return Math.floor(r/n);case q7:return-r;case B7:return Qoe(e,r,n);default:Gl(0)}},gle=function(e,t,r,n,i){let o=typeof i=="number"?e.stack[i]:i;switch(t){case S7:case R7:case O7:case D7:case P7:case T7:{let h,g;if((h=Ai.tointeger(r))!==!1&&(g=Ai.tointeger(n))!==!1){o.setivalue(E7(e,t,h,g));return}else break}case I7:case U7:{let h,g;if((h=Ai.tonumber(r))!==!1&&(g=Ai.tonumber(n))!==!1){o.setfltvalue(ax(e,t,h,g));return}else break}default:{let h,g;if(r.ttisinteger()&&n.ttisinteger()){o.setivalue(E7(e,t,r.value,n.value));return}else if((h=Ai.tonumber(r))!==!1&&(g=Ai.tonumber(n))!==!1){o.setfltvalue(ax(e,t,h,g));return}else break}}Gl(e!==null),M7.luaT_trybinTM(e,r,n,i,t-ox+M7.TMS.TM_ADD)};Yt.exports.CClosure=Mm;Yt.exports.LClosure=km;Yt.exports.LUA_TDEADKEY=nx;Yt.exports.LUA_TPROTO=ele;Yt.exports.LocVar=ix;Yt.exports.TValue=To;Yt.exports.Udata=Am;Yt.exports.UTF8BUFFSZ=Pu;Yt.exports.luaO_arith=gle;Yt.exports.luaO_chunkid=sle;Yt.exports.luaO_hexavalue=lx;Yt.exports.luaO_int2fb=yle;Yt.exports.luaO_pushfstring=X7;Yt.exports.luaO_pushvfstring=W7;Yt.exports.luaO_str2num=mle;Yt.exports.luaO_tostring=sx;Yt.exports.luaO_utf8esc=V7;Yt.exports.numarith=ax;Yt.exports.pushobj2s=tle;Yt.exports.pushsvalue2s=rle;Yt.exports.setobjs2s=nle;Yt.exports.setobj2s=ile;Yt.exports.setsvalue2s=z7});var Ll=I((VKe,Ro)=>{"use strict";b();var{constant_types:{LUA_TNIL:_le}}=Pr(),ux=oi(),fx=class{constructor(t){this.id=t.l_G.id_counter++,this.k=[],this.p=[],this.code=[],this.cache=null,this.lineinfo=[],this.upvalues=[],this.numparams=0,this.is_vararg=!1,this.maxstacksize=0,this.locvars=[],this.linedefined=0,this.lastlinedefined=0,this.source=null}},vle=function(e,t){return new ux.LClosure(e,t)},ble=function(e,t){return e.stack[t]},xle=function(e,t){for(let r=t;r<e.top;r++){let n=e.stack[r];e.stack[r]=new ux.TValue(n.type,n.value)}},wle=function(e,t){for(let r=0;r<t.nupvalues;r++)t.upvals[r]=new ux.TValue(_le,null)},kle=function(e,t,r){for(let n=0;n<e.locvars.length&&e.locvars[n].startpc<=r;n++)if(r<e.locvars[n].endpc&&(t--,t===0))return e.locvars[n].varname.getstr();return null};Ro.exports.MAXUPVAL=255;Ro.exports.Proto=fx;Ro.exports.luaF_findupval=ble;Ro.exports.luaF_close=xle;Ro.exports.luaF_getlocalname=kle;Ro.exports.luaF_initupvals=wle;Ro.exports.luaF_newLclosure=vle});var _h=I((XKe,Rs)=>{"use strict";b();var{lua_assert:$7}=Wn(),cx=class{constructor(){this.buffer=null,this.n=0}},Mle=function(e){return e.buffer.subarray(0,e.n)},Ale=function(e,t){e.n-=t},Ele=function(e){e.n=0},Sle=function(e,t,r){let n=new Uint8Array(r);t.buffer&&n.set(t.buffer),t.buffer=n},hx=class{constructor(t,r,n){this.L=t,$7(typeof r=="function","ZIO requires a reader"),this.reader=r,this.data=n,this.n=0,this.buffer=null,this.off=0}zgetc(){return this.n-- >0?this.buffer[this.off++]:dx(this)}},Em=-1,dx=function(e){let t=e.reader(e.L,e.data);if(t===null)return Em;$7(t instanceof Uint8Array,"Should only load binary of array of bytes");let r=t.length;return r===0?Em:(e.buffer=t,e.off=0,e.n=r-1,e.buffer[e.off++])},Tle=function(e,t,r,n){for(;n;){if(e.n===0){if(dx(e)===Em)return n;e.n++,e.off--}let i=n<=e.n?n:e.n;for(let o=0;o<i;o++)t[r++]=e.buffer[e.off++];e.n-=i,e.n===0&&(e.buffer=null),n-=i}return 0};Rs.exports.EOZ=Em;Rs.exports.luaZ_buffer=Mle;Rs.exports.luaZ_buffremove=Ale;Rs.exports.luaZ_fill=dx;Rs.exports.luaZ_read=Tle;Rs.exports.luaZ_resetbuffer=Ele;Rs.exports.luaZ_resizebuffer=Sle;Rs.exports.MBuffer=cx;Rs.exports.ZIO=hx});var Bm=I((YKe,ui)=>{"use strict";b();var{constant_types:{LUA_TBOOLEAN:Rle,LUA_TLNGSTR:Ole},thread_status:{LUA_ERRSYNTAX:Ile},to_luastring:Wr}=Pr(),{LUA_MINBUFFER:Nle,MAX_INT:J7,lua_assert:qu}=Wn(),Ble=pa(),Cle=Xi(),{lisdigit:Om,lislalnum:Ule,lislalpha:Dle,lisspace:Ple,lisxdigit:_x}=Rb(),fi=oi(),{luaS_bless:Fle,luaS_hash:qle,luaS_hashlongstr:vx,luaS_new:Lle}=As(),Gle=Es(),{EOZ:Lu,luaZ_buffer:bx,luaZ_buffremove:vh,luaZ_resetbuffer:Sm,luaZ_resizebuffer:Q7}=_h(),st=257,eR=Wr("_ENV",!0),Kle=st,Hle=st+1,zle=st+2,jle=st+3,Vle=st+4,Wle=st+5,Xle=st+6,$le=st+7,Yle=st+8,Zle=st+9,Jle=st+10,Qle=st+11,efe=st+12,tfe=st+13,rfe=st+14,nfe=st+15,ife=st+16,sfe=st+17,afe=st+18,ofe=st+19,lfe=st+20,ffe=st+21,tR=st+22,rR=st+23,nR=st+24,iR=st+25,sR=st+26,aR=st+27,oR=st+28,lR=st+29,fR=st+30,uR=st+31,ma=st+32,Tm=st+33,xx=st+34,wx=st+35,Kl=st+36,ufe={TK_AND:Kle,TK_BREAK:Hle,TK_DO:zle,TK_ELSE:jle,TK_ELSEIF:Vle,TK_END:Wle,TK_FALSE:Xle,TK_FOR:$le,TK_FUNCTION:Yle,TK_GOTO:Zle,TK_IF:Jle,TK_IN:Qle,TK_LOCAL:efe,TK_NIL:tfe,TK_NOT:rfe,TK_OR:nfe,TK_REPEAT:ife,TK_RETURN:sfe,TK_THEN:afe,TK_TRUE:ofe,TK_UNTIL:lfe,TK_WHILE:ffe,TK_IDIV:tR,TK_CONCAT:rR,TK_DOTS:nR,TK_EQ:iR,TK_GE:sR,TK_LE:aR,TK_NE:oR,TK_SHL:lR,TK_SHR:fR,TK_DBCOLON:uR,TK_EOS:ma,TK_FLT:Tm,TK_INT:xx,TK_NAME:wx,TK_STRING:Kl},kx=["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while","//","..","...","==",">=","<=","~=","<<",">>","::","<eof>","<number>","<integer>","<name>","<string>"].map((e,t)=>Wr(e)),bh=class{constructor(){this.r=NaN,this.i=NaN,this.ts=null}},Rm=class{constructor(){this.token=NaN,this.seminfo=new bh}},mx=class{constructor(){this.current=NaN,this.linenumber=NaN,this.lastline=NaN,this.t=new Rm,this.lookahead=new Rm,this.fs=null,this.L=null,this.z=null,this.buff=null,this.h=null,this.dyd=null,this.source=null,this.envn=null}},Im=function(e,t){let r=e.buff;if(r.n+1>r.buffer.length){r.buffer.length>=J7/2&&ya(e,Wr("lexical element too long",!0),0);let n=r.buffer.length*2;Q7(e.L,r,n)}r.buffer[r.n++]=t<0?255+t+1:t},cR=function(e,t){if(t<st)return fi.luaO_pushfstring(e.L,Wr("'%c'",!0),t);{let r=kx[t-st];return t<ma?fi.luaO_pushfstring(e.L,Wr("'%s'",!0),r):r}},xh=function(e){return e.current===10||e.current===13},Gr=function(e){e.current=e.z.zgetc()},_r=function(e){Im(e,e.current),Gr(e)},cfe=new fi.TValue(Rle,!0),Nm=function(e,t){let r=e.L,n=Lle(r,t),i=e.h.strong.get(vx(n));if(i)n=i.key.tsvalue();else{let o=new fi.TValue(Ole,n);Gle.luaH_setfrom(r,e.h,o,cfe)}return n},wh=function(e){let t=e.current;qu(xh(e)),Gr(e),xh(e)&&e.current!==t&&Gr(e),++e.linenumber>=J7&&ya(e,Wr("chunk has too many lines",!0),0)},hfe=function(e,t,r,n,i){t.t={token:0,seminfo:new bh},t.L=e,t.current=i,t.lookahead={token:ma,seminfo:new bh},t.z=r,t.fs=null,t.linenumber=1,t.lastline=1,t.source=n,t.envn=Fle(e,eR),Q7(e,t.buff,Nle)},Os=function(e,t){return e.current===t?(Gr(e),!0):!1},px=function(e,t){return e.current===t[0].charCodeAt(0)||e.current===t[1].charCodeAt(0)?(_r(e),!0):!1},Y7=function(e,t){let r="Ee",n=e.current;for(qu(Om(e.current)),_r(e),n===48&&px(e,"xX")&&(r="Pp");;)if(px(e,r)&&px(e,"-+"),_x(e.current))_r(e);else if(e.current===46)_r(e);else break;let i=new fi.TValue;return fi.luaO_str2num(bx(e.buff),i)===0&&ya(e,Wr("malformed number",!0),Tm),i.ttisinteger()?(t.i=i.value,xx):(qu(i.ttisfloat()),t.r=i.value,Tm)},dfe=function(e,t){switch(t){case wx:case Kl:case Tm:case xx:return fi.luaO_pushfstring(e.L,Wr("'%s'",!0),bx(e.buff));default:return cR(e,t)}},ya=function(e,t,r){t=Ble.luaG_addinfo(e.L,t,e.source,e.linenumber),r&&fi.luaO_pushfstring(e.L,Wr("%s near %s"),t,dfe(e,r)),Cle.luaD_throw(e.L,Ile)},pfe=function(e,t){ya(e,t,e.t.token)},yx=function(e){let t=0,r=e.current;for(qu(r===91||r===93),_r(e);e.current===61;)_r(e),t++;return e.current===r?t:-t-1},Z7=function(e,t,r){let n=e.linenumber;_r(e),xh(e)&&wh(e);let i=!1;for(;!i;)switch(e.current){case Lu:{let h=`unfinished long ${t?"string":"comment"} (starting at line ${n})`;ya(e,Wr(h),ma);break}case 93:{yx(e)===r&&(_r(e),i=!0);break}case 10:case 13:{Im(e,10),wh(e),t||Sm(e.buff);break}default:t?_r(e):Gr(e)}t&&(t.ts=Nm(e,e.buff.buffer.subarray(2+r,e.buff.n-(2+r))))},Fu=function(e,t,r){t||(e.current!==Lu&&_r(e),ya(e,r,Kl))},gx=function(e){return _r(e),Fu(e,_x(e.current),Wr("hexadecimal digit expected",!0)),fi.luaO_hexavalue(e.current)},mfe=function(e){let t=gx(e);return t=(t<<4)+gx(e),vh(e.buff,2),t},yfe=function(e){let t=4;_r(e),Fu(e,e.current===123,Wr("missing '{'",!0));let r=gx(e);for(_r(e);_x(e.current);)t++,r=(r<<4)+fi.luaO_hexavalue(e.current),Fu(e,r<=1114111,Wr("UTF-8 value too large",!0)),_r(e);return Fu(e,e.current===125,Wr("missing '}'",!0)),Gr(e),vh(e.buff,t),r},gfe=function(e){let t=new Uint8Array(fi.UTF8BUFFSZ),r=fi.luaO_utf8esc(t,yfe(e));for(;r>0;r--)Im(e,t[fi.UTF8BUFFSZ-r])},_fe=function(e){let t=0,r;for(r=0;r<3&&Om(e.current);r++)t=10*t+e.current-48,_r(e);return Fu(e,t<=255,Wr("decimal escape too large",!0)),vh(e.buff,r),t},vfe=function(e,t,r){for(_r(e);e.current!==t;)switch(e.current){case Lu:ya(e,Wr("unfinished string",!0),ma);break;case 10:case 13:ya(e,Wr("unfinished string",!0),Kl);break;case 92:{_r(e);let n,i;switch(e.current){case 97:i=7,n="read_save";break;case 98:i=8,n="read_save";break;case 102:i=12,n="read_save";break;case 110:i=10,n="read_save";break;case 114:i=13,n="read_save";break;case 116:i=9,n="read_save";break;case 118:i=11,n="read_save";break;case 120:i=mfe(e),n="read_save";break;case 117:gfe(e),n="no_save";break;case 10:case 13:wh(e),i=10,n="only_save";break;case 92:case 34:case 39:i=e.current,n="read_save";break;case Lu:n="no_save";break;case 122:{for(vh(e.buff,1),Gr(e);Ple(e.current);)xh(e)?wh(e):Gr(e);n="no_save";break}default:{Fu(e,Om(e.current),Wr("invalid escape sequence",!0)),i=_fe(e),n="only_save";break}}n==="read_save"&&Gr(e),(n==="read_save"||n==="only_save")&&(vh(e.buff,1),Im(e,i));break}default:_r(e)}_r(e),r.ts=Nm(e,e.buff.buffer.subarray(1,e.buff.n-1))},Mx=Object.create(null);kx.forEach((e,t)=>Mx[qle(e)]=t);var bfe=function(e){let t=Mx[vx(e)];return t!==void 0&&t<=22},hR=function(e,t){for(Sm(e.buff);;)switch(qu(typeof e.current=="number"),e.current){case 10:case 13:{wh(e);break}case 32:case 12:case 9:case 11:{Gr(e);break}case 45:{if(Gr(e),e.current!==45)return 45;if(Gr(e),e.current===91){let r=yx(e);if(Sm(e.buff),r>=0){Z7(e,null,r),Sm(e.buff);break}}for(;!xh(e)&&e.current!==Lu;)Gr(e);break}case 91:{let r=yx(e);return r>=0?(Z7(e,t,r),Kl):(r!==-1&&ya(e,Wr("invalid long string delimiter",!0),Kl),91)}case 61:return Gr(e),Os(e,61)?iR:61;case 60:return Gr(e),Os(e,61)?aR:Os(e,60)?lR:60;case 62:return Gr(e),Os(e,61)?sR:Os(e,62)?fR:62;case 47:return Gr(e),Os(e,47)?tR:47;case 126:return Gr(e),Os(e,61)?oR:126;case 58:return Gr(e),Os(e,58)?uR:58;case 34:case 39:return vfe(e,e.current,t),Kl;case 46:return _r(e),Os(e,46)?Os(e,46)?nR:rR:Om(e.current)?Y7(e,t):46;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Y7(e,t);case Lu:return ma;default:if(Dle(e.current)){do _r(e);while(Ule(e.current));let r=Nm(e,bx(e.buff));t.ts=r;let n=Mx[vx(r)];return n!==void 0&&n<=22?n+st:wx}else{let r=e.current;return Gr(e),r}}},xfe=function(e){e.lastline=e.linenumber,e.lookahead.token!==ma?(e.t.token=e.lookahead.token,e.t.seminfo.i=e.lookahead.seminfo.i,e.t.seminfo.r=e.lookahead.seminfo.r,e.t.seminfo.ts=e.lookahead.seminfo.ts,e.lookahead.token=ma):e.t.token=hR(e,e.t.seminfo)},wfe=function(e){return qu(e.lookahead.token===ma),e.lookahead.token=hR(e,e.lookahead.seminfo),e.lookahead.token};ui.exports.FIRST_RESERVED=st;ui.exports.LUA_ENV=eR;ui.exports.LexState=mx;ui.exports.RESERVED=ufe;ui.exports.isreserved=bfe;ui.exports.luaX_lookahead=wfe;ui.exports.luaX_newstring=Nm;ui.exports.luaX_next=xfe;ui.exports.luaX_setinput=hfe;ui.exports.luaX_syntaxerror=pfe;ui.exports.luaX_token2str=cR;ui.exports.luaX_tokens=kx});var qR=I((JKe,tt)=>{"use strict";b();var{LUA_MULTRET:Sx,LUA_OPADD:kfe,LUA_OPBAND:Mfe,LUA_OPBNOT:Afe,LUA_OPBOR:Efe,LUA_OPBXOR:Sfe,LUA_OPDIV:Tfe,LUA_OPIDIV:Rfe,LUA_OPMOD:Ofe,LUA_OPSHL:Ife,LUA_OPSHR:Nfe,LUA_OPUNM:Bfe,constant_types:{LUA_TBOOLEAN:Cfe,LUA_TLIGHTUSERDATA:Ufe,LUA_TLNGSTR:Dfe,LUA_TNIL:Pfe,LUA_TNUMFLT:bR,LUA_TNUMINT:Tx,LUA_TTABLE:Ffe},to_luastring:Rx}=Pr(),{lua_assert:lr}=Wn(),Ox=Bm(),Ix=oi(),je=Dl(),At=Px(),dR=Es(),pR=Fl(),pt=je.OpCodesI,Is=Ix.TValue,qfe=255,Wt=-1,it={OPR_ADD:0,OPR_SUB:1,OPR_MUL:2,OPR_MOD:3,OPR_POW:4,OPR_DIV:5,OPR_IDIV:6,OPR_BAND:7,OPR_BOR:8,OPR_BXOR:9,OPR_SHL:10,OPR_SHR:11,OPR_CONCAT:12,OPR_EQ:13,OPR_LT:14,OPR_LE:15,OPR_NE:16,OPR_GT:17,OPR_GE:18,OPR_AND:19,OPR_OR:20,OPR_NOBINOPR:21},kh={OPR_MINUS:0,OPR_BNOT:1,OPR_NOT:2,OPR_LEN:3,OPR_NOUNOPR:4},Ku=function(e){return e.t!==e.f},Ax=function(e,t){let r=At.expkind;if(Ku(e))return!1;switch(e.k){case r.VKINT:return t?new Is(Tx,e.u.ival):!0;case r.VKFLT:return t?new Is(bR,e.u.nval):!0;default:return!1}},xR=function(e,t,r){let n,i=t+r-1;if(e.pc>e.lasttarget&&(n=e.f.code[e.pc-1],n.opcode===pt.OP_LOADNIL)){let o=n.A,h=o+n.B;if(o<=t&&t<=h+1||t<=o&&o<=i+1){o<t&&(t=o),h>i&&(i=h),je.SETARG_A(n,t),je.SETARG_B(n,i-t);return}}yn(e,pt.OP_LOADNIL,t,r-1,0)},ga=function(e,t){return e.f.code[t.u.info]},Gu=function(e,t){let r=e.f.code[t].sBx;return r===Wt?Wt:t+1+r},Ex=function(e,t,r){let n=e.f.code[t],i=r-(t+1);lr(r!==Wt),Math.abs(i)>je.MAXARG_sBx&&Ox.luaX_syntaxerror(e.ls,Rx("control structure too long",!0)),je.SETARG_sBx(n,i)},Oo=function(e,t,r){if(r===Wt)return t;if(t===Wt)t=r;else{let n=t,i=Gu(e,n);for(;i!==Wt;)n=i,i=Gu(e,n);Ex(e,n,r)}return t},Pm=function(e){let t=e.jpc;e.jpc=Wt;let r=ER(e,pt.OP_JMP,0,Wt);return r=Oo(e,r,t),r},Lfe=function(e,t){return AR(e,Pm(e),t)},Gfe=function(e,t,r){yn(e,pt.OP_RETURN,t,r+1,0)},Mh=function(e,t,r,n,i){return yn(e,t,r,n,i),Pm(e)},Fm=function(e){return e.lasttarget=e.pc,e.pc},wR=function(e,t){return t>=1&&je.testTMode(e.f.code[t-1].opcode)?t-1:t},kR=function(e,t){return e.f.code[wR(e,t)]},MR=function(e,t,r){let n=wR(e,t),i=e.f.code[n];return i.opcode!==pt.OP_TESTSET?!1:(r!==je.NO_REG&&r!==i.B?je.SETARG_A(i,r):e.f.code[n]=je.CREATE_ABC(pt.OP_TEST,i.B,0,i.C),!0)},mR=function(e,t){for(;t!==Wt;t=Gu(e,t))MR(e,t,je.NO_REG)},Um=function(e,t,r,n,i){for(;t!==Wt;){let o=Gu(e,t);MR(e,t,n)?Ex(e,t,r):Ex(e,t,i),t=o}},Kfe=function(e){Um(e,e.jpc,e.pc,je.NO_REG,e.pc),e.jpc=Wt},Ah=function(e,t){Fm(e),e.jpc=Oo(e,e.jpc,t)},AR=function(e,t,r){r===e.pc?Ah(e,t):(lr(r<e.pc),Um(e,t,r,je.NO_REG,r))},Hfe=function(e,t,r){for(r++;t!==Wt;t=Gu(e,t)){let n=e.f.code[t];lr(n.opcode===pt.OP_JMP&&(n.A===0||n.A>=r)),je.SETARG_A(n,r)}},qm=function(e,t){let r=e.f;return Kfe(e),r.code[e.pc]=t,r.lineinfo[e.pc]=e.ls.lastline,e.pc++},yn=function(e,t,r,n,i){return lr(je.getOpMode(t)===je.iABC),lr(je.getBMode(t)!==je.OpArgN||n===0),lr(je.getCMode(t)!==je.OpArgN||i===0),lr(r<=je.MAXARG_A&&n<=je.MAXARG_B&&i<=je.MAXARG_C),qm(e,je.CREATE_ABC(t,r,n,i))},Dm=function(e,t,r,n){return lr(je.getOpMode(t)===je.iABx||je.getOpMode(t)===je.iAsBx),lr(je.getCMode(t)===je.OpArgN),lr(r<=je.MAXARG_A&&n<=je.MAXARG_Bx),qm(e,je.CREATE_ABx(t,r,n))},ER=function(e,t,r,n){return Dm(e,t,r,n+je.MAXARG_sBx)},SR=function(e,t){return lr(t<=je.MAXARG_Ax),qm(e,je.CREATE_Ax(pt.OP_EXTRAARG,t))},Cm=function(e,t,r){if(r<=je.MAXARG_Bx)return Dm(e,pt.OP_LOADK,t,r);{let n=Dm(e,pt.OP_LOADKX,t,0);return SR(e,r),n}},TR=function(e,t){let r=e.freereg+t;r>e.f.maxstacksize&&(r>=qfe&&Ox.luaX_syntaxerror(e.ls,Rx("function or expression needs too many registers",!0)),e.f.maxstacksize=r)},Eh=function(e,t){TR(e,t),e.freereg+=t},Hl=function(e,t){!je.ISK(t)&&t>=e.nactvar&&(e.freereg--,lr(t===e.freereg))},_a=function(e,t){t.k===At.expkind.VNONRELOC&&Hl(e,t.u.info)},RR=function(e,t,r){let n=t.k===At.expkind.VNONRELOC?t.u.info:-1,i=r.k===At.expkind.VNONRELOC?r.u.info:-1;n>i?(Hl(e,n),Hl(e,i)):(Hl(e,i),Hl(e,n))},Sh=function(e,t,r){let n=e.f,i=dR.luaH_get(e.L,e.ls.h,t);if(i.ttisinteger()){let h=i.value;if(h<e.nk&&n.k[h].ttype()===r.ttype()&&n.k[h].value===r.value)return h}let o=e.nk;return dR.luaH_setfrom(e.L,e.ls.h,t,new Ix.TValue(Tx,o)),n.k[o]=r,e.nk++,o},zfe=function(e,t){let r=new Is(Dfe,t);return Sh(e,r,r)},Nx=function(e,t){let r=new Is(Ufe,t),n=new Is(Tx,t);return Sh(e,r,n)},Bx=function(e,t){let r=new Is(bR,t);return Sh(e,r,r)},yR=function(e,t){let r=new Is(Cfe,t);return Sh(e,r,r)},jfe=function(e){let t=new Is(Pfe,null),r=new Is(Ffe,e.ls.h);return Sh(e,r,t)},OR=function(e,t,r){let n=At.expkind;if(t.k===n.VCALL)je.SETARG_C(ga(e,t),r+1);else if(t.k===n.VVARARG){let i=ga(e,t);je.SETARG_B(i,r+1),je.SETARG_A(i,e.freereg),Eh(e,1)}else lr(r===Sx)},Vfe=function(e,t){OR(e,t,Sx)},IR=function(e,t){let r=At.expkind;t.k===r.VCALL?(lr(ga(e,t).C===2),t.k=r.VNONRELOC,t.u.info=ga(e,t).A):t.k===r.VVARARG&&(je.SETARG_B(ga(e,t),2),t.k=r.VRELOCABLE)},Ns=function(e,t){let r=At.expkind;switch(t.k){case r.VLOCAL:{t.k=r.VNONRELOC;break}case r.VUPVAL:{t.u.info=yn(e,pt.OP_GETUPVAL,0,t.u.info,0),t.k=r.VRELOCABLE;break}case r.VINDEXED:{let n;Hl(e,t.u.ind.idx),t.u.ind.vt===r.VLOCAL?(Hl(e,t.u.ind.t),n=pt.OP_GETTABLE):(lr(t.u.ind.vt===r.VUPVAL),n=pt.OP_GETTABUP),t.u.info=yn(e,n,0,t.u.ind.t,t.u.ind.idx),t.k=r.VRELOCABLE;break}case r.VVARARG:case r.VCALL:{IR(e,t);break}default:break}},gR=function(e,t,r,n){return Fm(e),yn(e,pt.OP_LOADBOOL,t,r,n)},NR=function(e,t,r){let n=At.expkind;switch(Ns(e,t),t.k){case n.VNIL:{xR(e,r,1);break}case n.VFALSE:case n.VTRUE:{yn(e,pt.OP_LOADBOOL,r,t.k===n.VTRUE,0);break}case n.VK:{Cm(e,r,t.u.info);break}case n.VKFLT:{Cm(e,r,Bx(e,t.u.nval));break}case n.VKINT:{Cm(e,r,Nx(e,t.u.ival));break}case n.VRELOCABLE:{let i=ga(e,t);je.SETARG_A(i,r);break}case n.VNONRELOC:{r!==t.u.info&&yn(e,pt.OP_MOVE,r,t.u.info,0);break}default:{lr(t.k===n.VJMP);return}}t.u.info=r,t.k=n.VNONRELOC},BR=function(e,t){t.k!==At.expkind.VNONRELOC&&(Eh(e,1),NR(e,t,e.freereg-1))},_R=function(e,t){for(;t!==Wt;t=Gu(e,t))if(kR(e,t).opcode!==pt.OP_TESTSET)return!0;return!1},Cx=function(e,t,r){let n=At.expkind;if(NR(e,t,r),t.k===n.VJMP&&(t.t=Oo(e,t.t,t.u.info)),Ku(t)){let i,o=Wt,h=Wt;if(_R(e,t.t)||_R(e,t.f)){let g=t.k===n.VJMP?Wt:Pm(e);o=gR(e,r,0,1),h=gR(e,r,1,0),Ah(e,g)}i=Fm(e),Um(e,t.f,i,r,o),Um(e,t.t,i,r,h)}t.f=t.t=Wt,t.u.info=r,t.k=n.VNONRELOC},Lm=function(e,t){Ns(e,t),_a(e,t),Eh(e,1),Cx(e,t,e.freereg-1)},zl=function(e,t){if(Ns(e,t),t.k===At.expkind.VNONRELOC){if(!Ku(t))return t.u.info;if(t.u.info>=e.nactvar)return Cx(e,t,t.u.info),t.u.info}return Lm(e,t),t.u.info},Wfe=function(e,t){(t.k!==At.expkind.VUPVAL||Ku(t))&&zl(e,t)},Ux=function(e,t){Ku(t)?zl(e,t):Ns(e,t)},va=function(e,t){let r=At.expkind,n=!1;switch(Ux(e,t),t.k){case r.VTRUE:t.u.info=yR(e,!0),n=!0;break;case r.VFALSE:t.u.info=yR(e,!1),n=!0;break;case r.VNIL:t.u.info=jfe(e),n=!0;break;case r.VKINT:t.u.info=Nx(e,t.u.ival),n=!0;break;case r.VKFLT:t.u.info=Bx(e,t.u.nval),n=!0;break;case r.VK:n=!0;break;default:break}return n&&(t.k=r.VK,t.u.info<=je.MAXINDEXRK)?je.RKASK(t.u.info):zl(e,t)},Xfe=function(e,t,r){let n=At.expkind;switch(t.k){case n.VLOCAL:{_a(e,r),Cx(e,r,t.u.info);return}case n.VUPVAL:{let i=zl(e,r);yn(e,pt.OP_SETUPVAL,i,t.u.info,0);break}case n.VINDEXED:{let i=t.u.ind.vt===n.VLOCAL?pt.OP_SETTABLE:pt.OP_SETTABUP,o=va(e,r);yn(e,i,t.u.ind.t,t.u.ind.idx,o);break}}_a(e,r)},$fe=function(e,t,r){zl(e,t);let n=t.u.info;_a(e,t),t.u.info=e.freereg,t.k=At.expkind.VNONRELOC,Eh(e,2),yn(e,pt.OP_SELF,t.u.info,n,va(e,r)),_a(e,r)},CR=function(e,t){let r=kR(e,t.u.info);lr(je.testTMode(r.opcode)&&r.opcode!==pt.OP_TESTSET&&r.opcode!==pt.OP_TEST),je.SETARG_A(r,!r.A)},UR=function(e,t,r){if(t.k===At.expkind.VRELOCABLE){let n=ga(e,t);if(n.opcode===pt.OP_NOT)return e.pc--,Mh(e,pt.OP_TEST,n.B,0,!r)}return BR(e,t),_a(e,t),Mh(e,pt.OP_TESTSET,je.NO_REG,t.u.info,r)},DR=function(e,t){let r=At.expkind,n;switch(Ns(e,t),t.k){case r.VJMP:{CR(e,t),n=t.u.info;break}case r.VK:case r.VKFLT:case r.VKINT:case r.VTRUE:{n=Wt;break}default:{n=UR(e,t,0);break}}t.f=Oo(e,t.f,n),Ah(e,t.t),t.t=Wt},PR=function(e,t){let r=At.expkind,n;switch(Ns(e,t),t.k){case r.VJMP:{n=t.u.info;break}case r.VNIL:case r.VFALSE:{n=Wt;break}default:{n=UR(e,t,1);break}}t.t=Oo(e,t.t,n),Ah(e,t.f),t.f=Wt},Yfe=function(e,t){let r=At.expkind;switch(Ns(e,t),t.k){case r.VNIL:case r.VFALSE:{t.k=r.VTRUE;break}case r.VK:case r.VKFLT:case r.VKINT:case r.VTRUE:{t.k=r.VFALSE;break}case r.VJMP:{CR(e,t);break}case r.VRELOCABLE:case r.VNONRELOC:{BR(e,t),_a(e,t),t.u.info=yn(e,pt.OP_NOT,0,t.u.info,0),t.k=r.VRELOCABLE;break}}{let n=t.f;t.f=t.t,t.t=n}mR(e,t.f),mR(e,t.t)},Zfe=function(e,t,r){let n=At.expkind;lr(!Ku(t)&&(At.vkisinreg(t.k)||t.k===n.VUPVAL)),t.u.ind.t=t.u.info,t.u.ind.idx=va(e,r),t.u.ind.vt=t.k===n.VUPVAL?n.VUPVAL:n.VLOCAL,t.k=n.VINDEXED},Jfe=function(e,t,r){switch(e){case Mfe:case Efe:case Sfe:case Ife:case Nfe:case Afe:return pR.tointeger(t)!==!1&&pR.tointeger(r)!==!1;case Tfe:case Rfe:case Ofe:return r.value!==0;default:return 1}},FR=function(e,t,r){let n=At.expkind,i,o;if(!(i=Ax(t,!0))||!(o=Ax(r,!0))||!Jfe(e,i,o))return 0;let h=new Is;if(Ix.luaO_arith(null,e,i,o,h),h.ttisinteger())t.k=n.VKINT,t.u.ival=h.value;else{let g=h.value;if(isNaN(g)||g===0)return!1;t.k=n.VKFLT,t.u.nval=g}return!0},Qfe=function(e,t,r,n){let i=zl(e,r);_a(e,r),r.u.info=yn(e,t,0,i,0),r.k=At.expkind.VRELOCABLE,Dx(e,n)},vR=function(e,t,r,n,i){let o=va(e,n),h=va(e,r);RR(e,r,n),r.u.info=yn(e,t,0,h,o),r.k=At.expkind.VRELOCABLE,Dx(e,i)},eue=function(e,t,r,n){let i=At.expkind,o;r.k===i.VK?o=je.RKASK(r.u.info):(lr(r.k===i.VNONRELOC),o=r.u.info);let h=va(e,n);switch(RR(e,r,n),t){case it.OPR_NE:{r.u.info=Mh(e,pt.OP_EQ,0,o,h);break}case it.OPR_GT:case it.OPR_GE:{let g=t-it.OPR_NE+pt.OP_EQ;r.u.info=Mh(e,g,1,h,o);break}default:{let g=t-it.OPR_EQ+pt.OP_EQ;r.u.info=Mh(e,g,1,o,h);break}}r.k=i.VJMP},tue=function(e,t,r,n){let i=new At.expdesc;switch(i.k=At.expkind.VKINT,i.u.ival=i.u.nval=i.u.info=0,i.t=Wt,i.f=Wt,t){case kh.OPR_MINUS:case kh.OPR_BNOT:if(FR(t+Bfe,r,i))break;case kh.OPR_LEN:Qfe(e,t+pt.OP_UNM,r,n);break;case kh.OPR_NOT:Yfe(e,r);break}},rue=function(e,t,r){switch(t){case it.OPR_AND:{DR(e,r);break}case it.OPR_OR:{PR(e,r);break}case it.OPR_CONCAT:{Lm(e,r);break}case it.OPR_ADD:case it.OPR_SUB:case it.OPR_MUL:case it.OPR_DIV:case it.OPR_IDIV:case it.OPR_MOD:case it.OPR_POW:case it.OPR_BAND:case it.OPR_BOR:case it.OPR_BXOR:case it.OPR_SHL:case it.OPR_SHR:{Ax(r,!1)||va(e,r);break}default:{va(e,r);break}}},nue=function(e,t,r,n,i){let o=At.expkind;switch(t){case it.OPR_AND:{lr(r.t===Wt),Ns(e,n),n.f=Oo(e,n.f,r.f),r.to(n);break}case it.OPR_OR:{lr(r.f===Wt),Ns(e,n),n.t=Oo(e,n.t,r.t),r.to(n);break}case it.OPR_CONCAT:{Ux(e,n);let h=ga(e,n);n.k===o.VRELOCABLE&&h.opcode===pt.OP_CONCAT?(lr(r.u.info===h.B-1),_a(e,r),je.SETARG_B(h,r.u.info),r.k=o.VRELOCABLE,r.u.info=n.u.info):(Lm(e,n),vR(e,pt.OP_CONCAT,r,n,i));break}case it.OPR_ADD:case it.OPR_SUB:case it.OPR_MUL:case it.OPR_DIV:case it.OPR_IDIV:case it.OPR_MOD:case it.OPR_POW:case it.OPR_BAND:case it.OPR_BOR:case it.OPR_BXOR:case it.OPR_SHL:case it.OPR_SHR:{FR(t+kfe,r,n)||vR(e,t+pt.OP_ADD,r,n,i);break}case it.OPR_EQ:case it.OPR_LT:case it.OPR_LE:case it.OPR_NE:case it.OPR_GT:case it.OPR_GE:{eue(e,t,r,n);break}}return r},Dx=function(e,t){e.f.lineinfo[e.pc-1]=t},iue=function(e,t,r,n){let i=(r-1)/je.LFIELDS_PER_FLUSH+1,o=n===Sx?0:n;lr(n!==0&&n<=je.LFIELDS_PER_FLUSH),i<=je.MAXARG_C?yn(e,pt.OP_SETLIST,t,o,i):i<=je.MAXARG_Ax?(yn(e,pt.OP_SETLIST,t,o,0),SR(e,i)):Ox.luaX_syntaxerror(e.ls,Rx("constructor too long",!0)),e.freereg=t+1};tt.exports.BinOpr=it;tt.exports.NO_JUMP=Wt;tt.exports.UnOpr=kh;tt.exports.getinstruction=ga;tt.exports.luaK_checkstack=TR;tt.exports.luaK_code=qm;tt.exports.luaK_codeABC=yn;tt.exports.luaK_codeABx=Dm;tt.exports.luaK_codeAsBx=ER;tt.exports.luaK_codek=Cm;tt.exports.luaK_concat=Oo;tt.exports.luaK_dischargevars=Ns;tt.exports.luaK_exp2RK=va;tt.exports.luaK_exp2anyreg=zl;tt.exports.luaK_exp2anyregup=Wfe;tt.exports.luaK_exp2nextreg=Lm;tt.exports.luaK_exp2val=Ux;tt.exports.luaK_fixline=Dx;tt.exports.luaK_getlabel=Fm;tt.exports.luaK_goiffalse=PR;tt.exports.luaK_goiftrue=DR;tt.exports.luaK_indexed=Zfe;tt.exports.luaK_infix=rue;tt.exports.luaK_intK=Nx;tt.exports.luaK_jump=Pm;tt.exports.luaK_jumpto=Lfe;tt.exports.luaK_nil=xR;tt.exports.luaK_numberK=Bx;tt.exports.luaK_patchclose=Hfe;tt.exports.luaK_patchlist=AR;tt.exports.luaK_patchtohere=Ah;tt.exports.luaK_posfix=nue;tt.exports.luaK_prefix=tue;tt.exports.luaK_reserveregs=Eh;tt.exports.luaK_ret=Gfe;tt.exports.luaK_self=$fe;tt.exports.luaK_setlist=iue;tt.exports.luaK_setmultret=Vfe;tt.exports.luaK_setoneret=IR;tt.exports.luaK_setreturns=OR;tt.exports.luaK_storevar=Xfe;tt.exports.luaK_stringK=zfe});var Px=I((eHe,$u)=>{"use strict";b();var{LUA_MULTRET:Zx,to_luastring:cr}=Pr(),{BinOpr:{OPR_ADD:sue,OPR_AND:aue,OPR_BAND:oue,OPR_BOR:lue,OPR_BXOR:fue,OPR_CONCAT:uue,OPR_DIV:cue,OPR_EQ:hue,OPR_GE:due,OPR_GT:pue,OPR_IDIV:mue,OPR_LE:yue,OPR_LT:gue,OPR_MOD:_ue,OPR_MUL:vue,OPR_NE:bue,OPR_NOBINOPR:WR,OPR_OR:xue,OPR_POW:wue,OPR_SHL:kue,OPR_SHR:Mue,OPR_SUB:Aue},UnOpr:{OPR_BNOT:Eue,OPR_LEN:Sue,OPR_MINUS:Tue,OPR_NOT:Rue,OPR_NOUNOPR:XR},NO_JUMP:Hu,getinstruction:Lx,luaK_checkstack:Oue,luaK_codeABC:Vu,luaK_codeABx:Iue,luaK_codeAsBx:Fx,luaK_codek:Nue,luaK_concat:Bue,luaK_dischargevars:Cue,luaK_exp2RK:LR,luaK_exp2anyreg:Uue,luaK_exp2anyregup:$R,luaK_exp2nextreg:Cs,luaK_exp2val:Due,luaK_fixline:Gm,luaK_getlabel:Jx,luaK_goiffalse:Pue,luaK_goiftrue:YR,luaK_indexed:Qx,luaK_infix:Fue,luaK_intK:que,luaK_jump:Th,luaK_jumpto:Lue,luaK_nil:Gue,luaK_patchclose:jm,luaK_patchlist:ew,luaK_patchtohere:Rh,luaK_posfix:Kue,luaK_prefix:Hue,luaK_reserveregs:zu,luaK_ret:ZR,luaK_self:zue,luaK_setlist:Gx,luaK_setmultret:tw,luaK_setoneret:jue,luaK_setreturns:Vue,luaK_storevar:Kx,luaK_stringK:Wue}=qR(),GR=Xi(),rw=Ll(),et=Bm(),{LUAI_MAXCCALLS:JR,MAX_INT:QR,lua_assert:$n}=Wn(),Bs=oi(),{OpCodesI:{OP_CALL:Xue,OP_CLOSURE:$ue,OP_FORLOOP:Yue,OP_FORPREP:Zue,OP_GETUPVAL:Jue,OP_MOVE:Que,OP_NEWTABLE:ece,OP_SETTABLE:tce,OP_TAILCALL:rce,OP_TFORCALL:nce,OP_TFORLOOP:ice,OP_VARARG:sce},LFIELDS_PER_FLUSH:ace,SETARG_B:oce,SETARG_C:eO,SET_OPCODE:lce}=Dl(),{luaS_eqlngstr:fce,luaS_new:uce,luaS_newliteral:tO}=As(),cce=Es(),rO=rw.Proto,Ue=et.RESERVED,hce=200,Vm=function(e){return e===Xe.VCALL||e===Xe.VVARARG},Wu=function(e,t){return fce(e,t)},$i=class{constructor(){this.previous=null,this.firstlabel=NaN,this.firstgoto=NaN,this.nactvar=NaN,this.upval=NaN,this.isloop=NaN}},Xe={VVOID:0,VNIL:1,VTRUE:2,VFALSE:3,VK:4,VKFLT:5,VKINT:6,VNONRELOC:7,VLOCAL:8,VUPVAL:9,VINDEXED:10,VJMP:11,VRELOCABLE:12,VCALL:13,VVARARG:14},dce=function(e){return Xe.VLOCAL<=e&&e<=Xe.VINDEXED},pce=function(e){return e===Xe.VNONRELOC||e===Xe.VLOCAL},Zt=class{constructor(){this.k=NaN,this.u={ival:NaN,nval:NaN,info:NaN,ind:{idx:NaN,t:NaN,vt:NaN}},this.t=NaN,this.f=NaN}to(t){this.k=t.k,this.u=t.u,this.t=t.t,this.f=t.f}},Km=class{constructor(){this.f=null,this.prev=null,this.ls=null,this.bl=null,this.pc=NaN,this.lasttarget=NaN,this.jpc=NaN,this.nk=NaN,this.np=NaN,this.firstlocal=NaN,this.nlocvars=NaN,this.nactvar=NaN,this.nups=NaN,this.freereg=NaN}},Hx=class{constructor(){this.idx=NaN}},zx=class{constructor(){this.name=null,this.pc=NaN,this.line=NaN,this.nactvar=NaN}},Hm=class{constructor(){this.arr=[],this.n=NaN,this.size=NaN}},jx=class{constructor(){this.actvar={arr:[],n:NaN,size:NaN},this.gt=new Hm,this.label=new Hm}},nw=function(e,t){e.t.token=0,et.luaX_syntaxerror(e,t)},nO=function(e,t){et.luaX_syntaxerror(e,Bs.luaO_pushfstring(e.L,cr("%s expected",!0),et.luaX_token2str(e,t)))},mce=function(e,t,r){let n=e.ls.L,i=e.f.linedefined,o=i===0?cr("main function",!0):Bs.luaO_pushfstring(n,cr("function at line %d",!0),i),h=Bs.luaO_pushfstring(n,cr("too many %s (limit is %d) in %s",!0),r,t,o);et.luaX_syntaxerror(e.ls,h)},Xu=function(e,t,r,n){t>r&&mce(e,r,n)},Dn=function(e,t){return e.t.token===t?(et.luaX_next(e),!0):!1},iw=function(e,t){e.t.token!==t&&nO(e,t)},ci=function(e,t){iw(e,t),et.luaX_next(e)},sw=function(e,t,r){t||et.luaX_syntaxerror(e,r)},ka=function(e,t,r,n){Dn(e,t)||(n===e.linenumber?nO(e,t):et.luaX_syntaxerror(e,Bs.luaO_pushfstring(e.L,cr("%s expected (to close %s at line %d)"),et.luaX_token2str(e,t),et.luaX_token2str(e,r),n)))},Ma=function(e){iw(e,Ue.TK_NAME);let t=e.t.seminfo.ts;return et.luaX_next(e),t},xn=function(e,t,r){e.f=e.t=Hu,e.k=t,e.u.info=r},Wm=function(e,t,r){xn(t,Xe.VK,Wue(e.fs,r))},aw=function(e,t){Wm(e,t,Ma(e))},yce=function(e,t){let r=e.fs,n=r.f;return n.locvars[r.nlocvars]=new Bs.LocVar,n.locvars[r.nlocvars].varname=t,r.nlocvars++},Vl=function(e,t){let r=e.fs,n=e.dyd,i=yce(e,t);Xu(r,n.actvar.n+1-r.firstlocal,hce,cr("local variables",!0)),n.actvar.arr[n.actvar.n]=new Hx,n.actvar.arr[n.actvar.n].idx=i,n.actvar.n++},jl=function(e,t){Vl(e,et.luaX_newstring(e,cr(t,!0)))},Oh=function(e,t){let r=e.ls.dyd.actvar.arr[e.firstlocal+t].idx;return $n(r<e.nlocvars),e.f.locvars[r]},ju=function(e,t){let r=e.fs;for(r.nactvar=r.nactvar+t;t;t--)Oh(r,r.nactvar-t).startpc=r.pc},gce=function(e,t){for(e.ls.dyd.actvar.n-=e.nactvar-t;e.nactvar>t;)Oh(e,--e.nactvar).endpc=e.pc},_ce=function(e,t){let r=e.f.upvalues;for(let n=0;n<e.nups;n++)if(Wu(r[n].name,t))return n;return-1},iO=function(e,t,r){let n=e.f;return Xu(e,e.nups+1,rw.MAXUPVAL,cr("upvalues",!0)),n.upvalues[e.nups]={instack:r.k===Xe.VLOCAL,idx:r.u.info,name:t},e.nups++},vce=function(e,t){for(let r=e.nactvar-1;r>=0;r--)if(Wu(t,Oh(e,r).varname))return r;return-1},bce=function(e,t){let r=e.bl;for(;r.nactvar>t;)r=r.previous;r.upval=1},Vx=function(e,t,r,n){if(e===null)xn(r,Xe.VVOID,0);else{let i=vce(e,t);if(i>=0)xn(r,Xe.VLOCAL,i),n||bce(e,i);else{let o=_ce(e,t);if(o<0){if(Vx(e.prev,t,r,0),r.k===Xe.VVOID)return;o=iO(e,t,r)}xn(r,Xe.VUPVAL,o)}}},sO=function(e,t){let r=Ma(e),n=e.fs;if(Vx(n,r,t,1),t.k===Xe.VVOID){let i=new Zt;Vx(n,e.envn,t,1),$n(t.k!==Xe.VVOID),Wm(e,i,r),Qx(n,t,i)}},ow=function(e,t,r,n){let i=e.fs,o=t-r;if(Vm(n.k))o++,o<0&&(o=0),Vue(i,n,o),o>1&&zu(i,o-1);else if(n.k!==Xe.VVOID&&Cs(i,n),o>0){let h=i.freereg;zu(i,o),Gue(i,h,o)}r>t&&(e.fs.freereg-=r-t)},aO=function(e){let t=e.L;++t.nCcalls,Xu(e.fs,t.nCcalls,JR,cr("JS levels",!0))},oO=function(e){return e.L.nCcalls--},lO=function(e,t,r){let n=e.fs,i=e.dyd.gt,o=i.arr[t];if($n(Wu(o.name,r.name)),o.nactvar<r.nactvar){let h=Oh(n,o.nactvar).varname,g=Bs.luaO_pushfstring(e.L,cr("<goto %s> at line %d jumps into the scope of local '%s'"),o.name.getstr(),o.line,h.getstr());nw(e,g)}ew(n,o.pc,r.pc);for(let h=t;h<i.n-1;h++)i.arr[h]=i.arr[h+1];i.n--},fO=function(e,t){let r=e.fs.bl,n=e.dyd,i=n.gt.arr[t];for(let o=r.firstlabel;o<n.label.n;o++){let h=n.label.arr[o];if(Wu(h.name,i.name))return i.nactvar>h.nactvar&&(r.upval||n.label.n>r.firstlabel)&&jm(e.fs,i.pc,h.nactvar),lO(e,t,h),!0}return!1},lw=function(e,t,r,n,i){let o=t.n;return t.arr[o]=new zx,t.arr[o].name=r,t.arr[o].line=n,t.arr[o].nactvar=e.fs.nactvar,t.arr[o].pc=i,t.n=o+1,o},uO=function(e,t){let r=e.dyd.gt,n=e.fs.bl.firstgoto;for(;n<r.n;)Wu(r.arr[n].name,t.name)?lO(e,n,t):n++},xce=function(e,t){let r=t.firstgoto,n=e.ls.dyd.gt;for(;r<n.n;){let i=n.arr[r];i.nactvar>t.nactvar&&(t.upval&&jm(e,i.pc,t.nactvar),i.nactvar=t.nactvar),fO(e.ls,r)||r++}},ba=function(e,t,r){t.isloop=r,t.nactvar=e.nactvar,t.firstlabel=e.ls.dyd.label.n,t.firstgoto=e.ls.dyd.gt.n,t.upval=0,t.previous=e.bl,e.bl=t,$n(e.freereg===e.nactvar)},wce=function(e){let t=tO(e.L,"break"),r=lw(e,e.dyd.label,t,0,e.fs.pc);uO(e,e.dyd.label.arr[r])},kce=function(e,t){let r=et.isreserved(t.name)?"<%s> at line %d not inside a loop":"no visible label '%s' for <goto> at line %d";r=Bs.luaO_pushfstring(e.L,cr(r),t.name.getstr(),t.line),nw(e,r)},Mce=function(e){let t=e.L,r=new rO(t),n=e.fs,i=n.f;return i.p[n.np++]=r,r},Ace=function(e,t){let r=e.fs.prev;xn(t,Xe.VRELOCABLE,Iue(r,$ue,0,r.np-1)),Cs(r,t)},cO=function(e,t,r){t.prev=e.fs,t.ls=e,e.fs=t,t.pc=0,t.lasttarget=0,t.jpc=Hu,t.freereg=0,t.nk=0,t.np=0,t.nups=0,t.nlocvars=0,t.nactvar=0,t.firstlocal=e.dyd.actvar.n,t.bl=null;let n=t.f;n.source=e.source,n.maxstacksize=2,ba(t,r,!1)},xa=function(e){let t=e.bl,r=e.ls;if(t.previous&&t.upval){let n=Th(e);jm(e,n,t.nactvar),Rh(e,n)}t.isloop&&wce(r),e.bl=t.previous,gce(e,t.nactvar),$n(t.nactvar===e.nactvar),e.freereg=e.nactvar,r.dyd.label.n=t.firstlabel,t.previous?xce(e,t):t.firstgoto<r.dyd.gt.n&&kce(r,r.dyd.gt.arr[t.firstgoto])},hO=function(e){let t=e.fs;ZR(t,0,0),xa(t),$n(t.bl===null),e.fs=t.prev},Xm=function(e,t){switch(e.t.token){case Ue.TK_ELSE:case Ue.TK_ELSEIF:case Ue.TK_END:case Ue.TK_EOS:return!0;case Ue.TK_UNTIL:return t;default:return!1}},Ih=function(e){for(;!Xm(e,1);){if(e.t.token===Ue.TK_RETURN){Yx(e);return}Yx(e)}},Wx=function(e,t){let r=e.fs,n=new Zt;$R(r,t),et.luaX_next(e),aw(e,n),Qx(r,t,n)},dO=function(e,t){et.luaX_next(e),wa(e,t),Due(e.fs,t),ci(e,93)},Xx=class{constructor(){this.v=new Zt,this.t=new Zt,this.nh=NaN,this.na=NaN,this.tostore=NaN}},KR=function(e,t){let r=e.fs,n=e.fs.freereg,i=new Zt,o=new Zt;e.t.token===Ue.TK_NAME?(Xu(r,t.nh,QR,cr("items in a constructor",!0)),aw(e,i)):dO(e,i),t.nh++,ci(e,61);let h=LR(r,i);wa(e,o),Vu(r,tce,t.t.u.info,h,LR(r,o)),r.freereg=n},Ece=function(e,t){t.v.k!==Xe.VVOID&&(Cs(e,t.v),t.v.k=Xe.VVOID,t.tostore===ace&&(Gx(e,t.t.u.info,t.na,t.tostore),t.tostore=0))},Sce=function(e,t){t.tostore!==0&&(Vm(t.v.k)?(tw(e,t.v),Gx(e,t.t.u.info,t.na,Zx),t.na--):(t.v.k!==Xe.VVOID&&Cs(e,t.v),Gx(e,t.t.u.info,t.na,t.tostore)))},HR=function(e,t){wa(e,t.v),Xu(e.fs,t.na,QR,cr("items in a constructor",!0)),t.na++,t.tostore++},Tce=function(e,t){switch(e.t.token){case Ue.TK_NAME:{et.luaX_lookahead(e)!==61?HR(e,t):KR(e,t);break}case 91:{KR(e,t);break}default:{HR(e,t);break}}},pO=function(e,t){let r=e.fs,n=e.linenumber,i=Vu(r,ece,0,0,0),o=new Xx;o.na=o.nh=o.tostore=0,o.t=t,xn(t,Xe.VRELOCABLE,i),xn(o.v,Xe.VVOID,0),Cs(e.fs,t),ci(e,123);do{if($n(o.v.k===Xe.VVOID||o.tostore>0),e.t.token===125)break;Ece(r,o),Tce(e,o)}while(Dn(e,44)||Dn(e,59));ka(e,125,123,n),Sce(r,o),oce(r.f.code[i],Bs.luaO_int2fb(o.na)),eO(r.f.code[i],Bs.luaO_int2fb(o.nh))},Rce=function(e){let t=e.fs,r=t.f,n=0;if(r.is_vararg=!1,e.t.token!==41)do switch(e.t.token){case Ue.TK_NAME:{Vl(e,Ma(e)),n++;break}case Ue.TK_DOTS:{et.luaX_next(e),r.is_vararg=!0;break}default:et.luaX_syntaxerror(e,cr("<name> or '...' expected",!0))}while(!r.is_vararg&&Dn(e,44));ju(e,n),r.numparams=t.nactvar,zu(t,t.nactvar)},fw=function(e,t,r,n){let i=new Km,o=new $i;i.f=Mce(e),i.f.linedefined=n,cO(e,i,o),ci(e,40),r&&(jl(e,"self"),ju(e,1)),Rce(e),ci(e,41),Ih(e),i.f.lastlinedefined=e.linenumber,ka(e,Ue.TK_END,Ue.TK_FUNCTION,n),Ace(e,t),hO(e)},Nh=function(e,t){let r=1;for(wa(e,t);Dn(e,44);)Cs(e.fs,t),wa(e,t),r++;return r},zR=function(e,t,r){let n=e.fs,i=new Zt;switch(e.t.token){case 40:{et.luaX_next(e),e.t.token===41?i.k=Xe.VVOID:(Nh(e,i),tw(n,i)),ka(e,41,40,r);break}case 123:{pO(e,i);break}case Ue.TK_STRING:{Wm(e,i,e.t.seminfo.ts),et.luaX_next(e);break}default:et.luaX_syntaxerror(e,cr("function arguments expected",!0))}$n(t.k===Xe.VNONRELOC);let o,h=t.u.info;Vm(i.k)?o=Zx:(i.k!==Xe.VVOID&&Cs(n,i),o=n.freereg-(h+1)),xn(t,Xe.VCALL,Vu(n,Xue,h,o+1,2)),Gm(n,r),n.freereg=h+1},Oce=function(e,t){switch(e.t.token){case 40:{let r=e.linenumber;et.luaX_next(e),wa(e,t),ka(e,41,40,r),Cue(e.fs,t);return}case Ue.TK_NAME:{sO(e,t);return}default:et.luaX_syntaxerror(e,cr("unexpected symbol",!0))}},uw=function(e,t){let r=e.fs,n=e.linenumber;for(Oce(e,t);;)switch(e.t.token){case 46:{Wx(e,t);break}case 91:{let i=new Zt;$R(r,t),dO(e,i),Qx(r,t,i);break}case 58:{let i=new Zt;et.luaX_next(e),aw(e,i),zue(r,t,i),zR(e,t,n);break}case 40:case Ue.TK_STRING:case 123:{Cs(r,t),zR(e,t,n);break}default:return}},Ice=function(e,t){switch(e.t.token){case Ue.TK_FLT:{xn(t,Xe.VKFLT,0),t.u.nval=e.t.seminfo.r;break}case Ue.TK_INT:{xn(t,Xe.VKINT,0),t.u.ival=e.t.seminfo.i;break}case Ue.TK_STRING:{Wm(e,t,e.t.seminfo.ts);break}case Ue.TK_NIL:{xn(t,Xe.VNIL,0);break}case Ue.TK_TRUE:{xn(t,Xe.VTRUE,0);break}case Ue.TK_FALSE:{xn(t,Xe.VFALSE,0);break}case Ue.TK_DOTS:{let r=e.fs;sw(e,r.f.is_vararg,cr("cannot use '...' outside a vararg function",!0)),xn(t,Xe.VVARARG,Vu(r,sce,0,1,0));break}case 123:{pO(e,t);return}case Ue.TK_FUNCTION:{et.luaX_next(e),fw(e,t,0,e.linenumber);return}default:{uw(e,t);return}}et.luaX_next(e)},Nce=function(e){switch(e){case Ue.TK_NOT:return Rue;case 45:return Tue;case 126:return Eue;case 35:return Sue;default:return XR}},Bce=function(e){switch(e){case 43:return sue;case 45:return Aue;case 42:return vue;case 37:return _ue;case 94:return wue;case 47:return cue;case Ue.TK_IDIV:return mue;case 38:return oue;case 124:return lue;case 126:return fue;case Ue.TK_SHL:return kue;case Ue.TK_SHR:return Mue;case Ue.TK_CONCAT:return uue;case Ue.TK_NE:return bue;case Ue.TK_EQ:return hue;case 60:return gue;case Ue.TK_LE:return yue;case 62:return pue;case Ue.TK_GE:return due;case Ue.TK_AND:return aue;case Ue.TK_OR:return xue;default:return WR}},jR=[{left:10,right:10},{left:10,right:10},{left:11,right:11},{left:11,right:11},{left:14,right:13},{left:11,right:11},{left:11,right:11},{left:6,right:6},{left:4,right:4},{left:5,right:5},{left:7,right:7},{left:7,right:7},{left:9,right:8},{left:3,right:3},{left:3,right:3},{left:3,right:3},{left:3,right:3},{left:3,right:3},{left:3,right:3},{left:2,right:2},{left:1,right:1}],Cce=12,$x=function(e,t,r){aO(e);let n=Nce(e.t.token);if(n!==XR){let o=e.linenumber;et.luaX_next(e),$x(e,t,Cce),Hue(e.fs,n,t,o)}else Ice(e,t);let i=Bce(e.t.token);for(;i!==WR&&jR[i].left>r;){let o=new Zt,h=e.linenumber;et.luaX_next(e),Fue(e.fs,i,t);let g=$x(e,o,jR[i].right);Kue(e.fs,i,t,o,h),i=g}return oO(e),i},wa=function(e,t){$x(e,t,0)},$m=function(e){let t=e.fs,r=new $i;ba(t,r,0),Ih(e),xa(t)},zm=class{constructor(){this.prev=null,this.v=new Zt}},Uce=function(e,t,r){let n=e.fs,i=n.freereg,o=!1;for(;t;t=t.prev)t.v.k===Xe.VINDEXED&&(t.v.u.ind.vt===r.k&&t.v.u.ind.t===r.u.info&&(o=!0,t.v.u.ind.vt=Xe.VLOCAL,t.v.u.ind.t=i),r.k===Xe.VLOCAL&&t.v.u.ind.idx===r.u.info&&(o=!0,t.v.u.ind.idx=i));if(o){let h=r.k===Xe.VLOCAL?Que:Jue;Vu(n,h,i,r.u.info,0),zu(n,1)}},mO=function(e,t,r){let n=new Zt;if(sw(e,dce(t.v.k),cr("syntax error",!0)),Dn(e,44)){let i=new zm;i.prev=t,uw(e,i.v),i.v.k!==Xe.VINDEXED&&Uce(e,t,i.v),Xu(e.fs,r+e.L.nCcalls,JR,cr("JS levels",!0)),mO(e,i,r+1)}else{ci(e,61);let i=Nh(e,n);if(i!==r)ow(e,r,i,n);else{jue(e.fs,n),Kx(e.fs,t.v,n);return}}xn(n,Xe.VNONRELOC,e.fs.freereg-1),Kx(e.fs,t.v,n)},yO=function(e){let t=new Zt;return wa(e,t),t.k===Xe.VNIL&&(t.k=Xe.VFALSE),YR(e.fs,t),t.f},gO=function(e,t){let r=e.linenumber,n;Dn(e,Ue.TK_GOTO)?n=Ma(e):(et.luaX_next(e),n=tO(e.L,"break"));let i=lw(e,e.dyd.gt,n,r,t);fO(e,i)},Dce=function(e,t,r){for(let n=e.bl.firstlabel;n<t.n;n++)if(Wu(r,t.arr[n].name)){let i=Bs.luaO_pushfstring(e.ls.L,cr("label '%s' already defined on line %d",!0),r.getstr(),t.arr[n].line);nw(e.ls,i)}},Pce=function(e){for(;e.t.token===59||e.t.token===Ue.TK_DBCOLON;)Yx(e)},Fce=function(e,t,r){let n=e.fs,i=e.dyd.label,o;Dce(n,i,t),ci(e,Ue.TK_DBCOLON),o=lw(e,i,t,r,Jx(n)),Pce(e),Xm(e,0)&&(i.arr[o].nactvar=n.bl.nactvar),uO(e,i.arr[o])},qce=function(e,t){let r=e.fs,n=new $i;et.luaX_next(e);let i=Jx(r),o=yO(e);ba(r,n,1),ci(e,Ue.TK_DO),$m(e),Lue(r,i),ka(e,Ue.TK_END,Ue.TK_WHILE,t),xa(r),Rh(r,o)},Lce=function(e,t){let r=e.fs,n=Jx(r),i=new $i,o=new $i;ba(r,i,1),ba(r,o,0),et.luaX_next(e),Ih(e),ka(e,Ue.TK_UNTIL,Ue.TK_REPEAT,t);let h=yO(e);o.upval&&jm(r,h,o.nactvar),xa(r),ew(r,h,n),xa(r)},qx=function(e){let t=new Zt;return wa(e,t),Cs(e.fs,t),$n(t.k===Xe.VNONRELOC),t.u.info},_O=function(e,t,r,n,i){let o=new $i,h=e.fs,g;ju(e,3),ci(e,Ue.TK_DO);let v=i?Fx(h,Zue,t,Hu):Th(h);ba(h,o,0),ju(e,n),zu(h,n),$m(e),xa(h),Rh(h,v),i?g=Fx(h,Yue,t,Hu):(Vu(h,nce,t,0,n),Gm(h,r),g=Fx(h,ice,t+2,Hu)),ew(h,g,v+1),Gm(h,r)},Gce=function(e,t,r){let n=e.fs,i=n.freereg;jl(e,"(for index)"),jl(e,"(for limit)"),jl(e,"(for step)"),Vl(e,t),ci(e,61),qx(e),ci(e,44),qx(e),Dn(e,44)?qx(e):(Nue(n,n.freereg,que(n,1)),zu(n,1)),_O(e,i,r,1,1)},Kce=function(e,t){let r=e.fs,n=new Zt,i=4,o=r.freereg;for(jl(e,"(for generator)"),jl(e,"(for state)"),jl(e,"(for control)"),Vl(e,t);Dn(e,44);)Vl(e,Ma(e)),i++;ci(e,Ue.TK_IN);let h=e.linenumber;ow(e,3,Nh(e,n),n),Oue(r,3),_O(e,o,h,i-3,0)},Hce=function(e,t){let r=e.fs,n=new $i;ba(r,n,1),et.luaX_next(e);let i=Ma(e);switch(e.t.token){case 61:Gce(e,i,t);break;case 44:case Ue.TK_IN:Kce(e,i);break;default:et.luaX_syntaxerror(e,cr("'=' or 'in' expected",!0))}ka(e,Ue.TK_END,Ue.TK_FOR,t),xa(r)},VR=function(e,t){let r=new $i,n=e.fs,i=new Zt,o;if(et.luaX_next(e),wa(e,i),ci(e,Ue.TK_THEN),e.t.token===Ue.TK_GOTO||e.t.token===Ue.TK_BREAK){for(Pue(e.fs,i),ba(n,r,!1),gO(e,i.t);Dn(e,59););if(Xm(e,0))return xa(n),t;o=Th(n)}else YR(e.fs,i),ba(n,r,!1),o=i.f;return Ih(e),xa(n),(e.t.token===Ue.TK_ELSE||e.t.token===Ue.TK_ELSEIF)&&(t=Bue(n,t,Th(n))),Rh(n,o),t},zce=function(e,t){let r=e.fs,n=Hu;for(n=VR(e,n);e.t.token===Ue.TK_ELSEIF;)n=VR(e,n);Dn(e,Ue.TK_ELSE)&&$m(e),ka(e,Ue.TK_END,Ue.TK_IF,t),Rh(r,n)},jce=function(e){let t=new Zt,r=e.fs;Vl(e,Ma(e)),ju(e,1),fw(e,t,0,e.linenumber),Oh(r,t.u.info).startpc=r.pc},Vce=function(e){let t=0,r,n=new Zt;do Vl(e,Ma(e)),t++;while(Dn(e,44));Dn(e,61)?r=Nh(e,n):(n.k=Xe.VVOID,r=0),ow(e,t,r,n),ju(e,t)},Wce=function(e,t){let r=0;for(sO(e,t);e.t.token===46;)Wx(e,t);return e.t.token===58&&(r=1,Wx(e,t)),r},Xce=function(e,t){let r=new Zt,n=new Zt;et.luaX_next(e);let i=Wce(e,r);fw(e,n,i,t),Kx(e.fs,r,n),Gm(e.fs,t)},$ce=function(e){let t=e.fs,r=new zm;uw(e,r.v),e.t.token===61||e.t.token===44?(r.prev=null,mO(e,r,1)):(sw(e,r.v.k===Xe.VCALL,cr("syntax error",!0)),eO(Lx(t,r.v),1))},Yce=function(e){let t=e.fs,r=new Zt,n,i;Xm(e,1)||e.t.token===59?n=i=0:(i=Nh(e,r),Vm(r.k)?(tw(t,r),r.k===Xe.VCALL&&i===1&&(lce(Lx(t,r),rce),$n(Lx(t,r).A===t.nactvar)),n=t.nactvar,i=Zx):i===1?n=Uue(t,r):(Cs(t,r),n=t.nactvar,$n(i===t.freereg-n))),ZR(t,n,i),Dn(e,59)},Yx=function(e){let t=e.linenumber;switch(aO(e),e.t.token){case 59:{et.luaX_next(e);break}case Ue.TK_IF:{zce(e,t);break}case Ue.TK_WHILE:{qce(e,t);break}case Ue.TK_DO:{et.luaX_next(e),$m(e),ka(e,Ue.TK_END,Ue.TK_DO,t);break}case Ue.TK_FOR:{Hce(e,t);break}case Ue.TK_REPEAT:{Lce(e,t);break}case Ue.TK_FUNCTION:{Xce(e,t);break}case Ue.TK_LOCAL:{et.luaX_next(e),Dn(e,Ue.TK_FUNCTION)?jce(e):Vce(e);break}case Ue.TK_DBCOLON:{et.luaX_next(e),Fce(e,Ma(e),t);break}case Ue.TK_RETURN:{et.luaX_next(e),Yce(e);break}case Ue.TK_BREAK:case Ue.TK_GOTO:{gO(e,Th(e.fs));break}default:{$ce(e);break}}$n(e.fs.f.maxstacksize>=e.fs.freereg&&e.fs.freereg>=e.fs.nactvar),e.fs.freereg=e.fs.nactvar,oO(e)},Zce=function(e,t){let r=new $i,n=new Zt;cO(e,t,r),t.f.is_vararg=!0,xn(n,Xe.VLOCAL,0),iO(t,e.envn,n),et.luaX_next(e),Ih(e),iw(e,Ue.TK_EOS),hO(e)},Jce=function(e,t,r,n,i,o){let h=new et.LexState,g=new Km,v=rw.luaF_newLclosure(e,1);return GR.luaD_inctop(e),e.stack[e.top-1].setclLvalue(v),h.h=cce.luaH_new(e),GR.luaD_inctop(e),e.stack[e.top-1].sethvalue(h.h),g.f=v.p=new rO(e),g.f.source=uce(e,i),h.buff=r,h.dyd=n,n.actvar.n=n.gt.n=n.label.n=0,et.luaX_setinput(e,h,t,g.f.source,o),Zce(h,g),$n(!g.prev&&g.nups===1&&!h.fs),$n(n.actvar.n===0&&n.gt.n===0&&n.label.n===0),delete e.stack[--e.top],v};$u.exports.Dyndata=jx;$u.exports.expkind=Xe;$u.exports.expdesc=Zt;$u.exports.luaY_parser=Jce;$u.exports.vkisinreg=pce});var RO=I((rHe,TO)=>{"use strict";b();var{LUA_SIGNATURE:vO,constant_types:{LUA_TBOOLEAN:bO,LUA_TLNGSTR:xO,LUA_TNIL:wO,LUA_TNUMFLT:kO,LUA_TNUMINT:MO,LUA_TSHRSTR:Qce},thread_status:{LUA_ERRSYNTAX:e0e},is_luastring:t0e,luastring_eq:r0e,to_luastring:cw}=Pr(),SO=Xi(),hw=Ll(),Yu=oi(),{MAXARG_sBx:n0e,POS_A:i0e,POS_Ax:s0e,POS_B:a0e,POS_Bx:AO,POS_C:o0e,POS_OP:l0e,SIZE_A:f0e,SIZE_Ax:u0e,SIZE_B:c0e,SIZE_Bx:EO,SIZE_C:h0e,SIZE_OP:d0e}=Dl(),{lua_assert:dw}=Wn(),{luaS_bless:p0e}=As(),{luaZ_read:Zu,ZIO:m0e}=_h(),y0e=[25,147,13,10,26,10],pw=class e{constructor(t,r,n){this.intSize=4,this.size_tSize=4,this.instructionSize=4,this.integerSize=4,this.numberSize=8,dw(r instanceof m0e,"BytecodeParser only operates on a ZIO"),dw(t0e(n)),n[0]===64||n[0]===61?this.name=n.subarray(1):n[0]==vO[0]?this.name=cw("binary string",!0):this.name=n,this.L=t,this.Z=r,this.arraybuffer=new ArrayBuffer(Math.max(this.intSize,this.size_tSize,this.instructionSize,this.integerSize,this.numberSize)),this.dv=new DataView(this.arraybuffer),this.u8=new Uint8Array(this.arraybuffer)}read(t){let r=new Uint8Array(t);return Zu(this.Z,r,0,t)!==0&&this.error("truncated"),r}LoadByte(){return Zu(this.Z,this.u8,0,1)!==0&&this.error("truncated"),this.u8[0]}LoadInt(){return Zu(this.Z,this.u8,0,this.intSize)!==0&&this.error("truncated"),this.dv.getInt32(0,!0)}LoadNumber(){return Zu(this.Z,this.u8,0,this.numberSize)!==0&&this.error("truncated"),this.dv.getFloat64(0,!0)}LoadInteger(){return Zu(this.Z,this.u8,0,this.integerSize)!==0&&this.error("truncated"),this.dv.getInt32(0,!0)}LoadSize_t(){return this.LoadInteger()}LoadString(){let t=this.LoadByte();return t===255&&(t=this.LoadSize_t()),t===0?null:p0e(this.L,this.read(t-1))}static MASK1(t,r){return~(-1<<t)<<r}LoadCode(t){let r=this.LoadInt(),n=e;for(let i=0;i<r;i++){Zu(this.Z,this.u8,0,this.instructionSize)!==0&&this.error("truncated");let o=this.dv.getUint32(0,!0);t.code[i]={code:o,opcode:o>>l0e&n.MASK1(d0e,0),A:o>>i0e&n.MASK1(f0e,0),B:o>>a0e&n.MASK1(c0e,0),C:o>>o0e&n.MASK1(h0e,0),Bx:o>>AO&n.MASK1(EO,0),Ax:o>>s0e&n.MASK1(u0e,0),sBx:(o>>AO&n.MASK1(EO,0))-n0e}}}LoadConstants(t){let r=this.LoadInt();for(let n=0;n<r;n++){let i=this.LoadByte();switch(i){case wO:t.k.push(new Yu.TValue(wO,null));break;case bO:t.k.push(new Yu.TValue(bO,this.LoadByte()!==0));break;case kO:t.k.push(new Yu.TValue(kO,this.LoadNumber()));break;case MO:t.k.push(new Yu.TValue(MO,this.LoadInteger()));break;case Qce:case xO:t.k.push(new Yu.TValue(xO,this.LoadString()));break;default:this.error(`unrecognized constant '${i}'`)}}}LoadProtos(t){let r=this.LoadInt();for(let n=0;n<r;n++)t.p[n]=new hw.Proto(this.L),this.LoadFunction(t.p[n],t.source)}LoadUpvalues(t){let r=this.LoadInt();for(let n=0;n<r;n++)t.upvalues[n]={name:null,instack:this.LoadByte(),idx:this.LoadByte()}}LoadDebug(t){let r=this.LoadInt();for(let n=0;n<r;n++)t.lineinfo[n]=this.LoadInt();r=this.LoadInt();for(let n=0;n<r;n++)t.locvars[n]={varname:this.LoadString(),startpc:this.LoadInt(),endpc:this.LoadInt()};r=this.LoadInt();for(let n=0;n<r;n++)t.upvalues[n].name=this.LoadString()}LoadFunction(t,r){t.source=this.LoadString(),t.source===null&&(t.source=r),t.linedefined=this.LoadInt(),t.lastlinedefined=this.LoadInt(),t.numparams=this.LoadByte(),t.is_vararg=this.LoadByte()!==0,t.maxstacksize=this.LoadByte(),this.LoadCode(t),this.LoadConstants(t),this.LoadUpvalues(t),this.LoadProtos(t),this.LoadDebug(t)}checkliteral(t,r){let n=this.read(t.length);r0e(n,t)||this.error(r)}checkHeader(){this.checkliteral(vO.subarray(1),"not a"),this.LoadByte()!==83&&this.error("version mismatch in"),this.LoadByte()!==0&&this.error("format mismatch in"),this.checkliteral(y0e,"corrupted"),this.intSize=this.LoadByte(),this.size_tSize=this.LoadByte(),this.instructionSize=this.LoadByte(),this.integerSize=this.LoadByte(),this.numberSize=this.LoadByte(),this.checksize(this.intSize,4,"int"),this.checksize(this.size_tSize,4,"size_t"),this.checksize(this.instructionSize,4,"instruction"),this.checksize(this.integerSize,4,"integer"),this.checksize(this.numberSize,8,"number"),this.LoadInteger()!==22136&&this.error("endianness mismatch in"),this.LoadNumber()!==370.5&&this.error("float format mismatch in")}error(t){Yu.luaO_pushfstring(this.L,cw("%s: %s precompiled chunk"),this.name,cw(t)),SO.luaD_throw(this.L,e0e)}checksize(t,r,n){t!==r&&this.error(`${n} size mismatch in`)}},g0e=function(e,t,r){let n=new pw(e,t,r);n.checkHeader();let i=hw.luaF_newLclosure(e,n.LoadByte());return SO.luaD_inctop(e),e.stack[e.top-1].setclLvalue(i),i.p=new hw.Proto(e),n.LoadFunction(i.p,null),dw(i.nupvalues===i.p.upvalues.length),i};TO.exports.luaU_undump=g0e});var Xi=I((iHe,Xr)=>{"use strict";b();var{LUA_HOOKCALL:DO,LUA_HOOKRET:_0e,LUA_HOOKTAILCALL:v0e,LUA_MASKCALL:OO,LUA_MASKLINE:b0e,LUA_MASKRET:IO,LUA_MINSTACK:Ym,LUA_MULTRET:vw,LUA_SIGNATURE:x0e,constant_types:{LUA_TCCL:NO,LUA_TLCF:w0e,LUA_TLCL:k0e,LUA_TNIL:Qu},thread_status:{LUA_ERRMEM:M0e,LUA_ERRERR:bw,LUA_ERRRUN:xw,LUA_ERRSYNTAX:A0e,LUA_OK:Aa,LUA_YIELD:Ea},lua_Debug:E0e,luastring_indexOf:S0e,to_luastring:Io}=Pr(),Wl=yh(),Ch=pa(),ww=Ll(),{api_check:PO,lua_assert:hi,LUAI_MAXCCALLS:Bh}=Wn(),hr=oi(),T0e=Dl(),FO=Px(),dr=da(),{luaS_newliteral:yw}=As(),BO=ql(),{LUAI_MAXSTACK:Us}=Vn(),R0e=RO(),Uh=Fl(),{MBuffer:O0e}=_h(),kw=function(e,t){if(e.top<t)for(;e.top<t;)e.stack[e.top++]=new hr.TValue(Qu,null);else for(;e.top>t;)delete e.stack[--e.top]},Qm=function(e,t,r){let n=e.top;for(;e.top<r+1;)e.stack[e.top++]=new hr.TValue(Qu,null);switch(t){case M0e:{hr.setsvalue2s(e,r,yw(e,"not enough memory"));break}case bw:{hr.setsvalue2s(e,r,yw(e,"error in error handling"));break}default:hr.setobjs2s(e,r,n-1)}for(;e.top>r+1;)delete e.stack[--e.top]},qO=Us+200,Zm=function(e,t){hi(t<=Us||t==qO),hi(e.stack_last==e.stack.length-dr.EXTRA_STACK),e.stack.length=t,e.stack_last=t-dr.EXTRA_STACK},LO=function(e,t){let r=e.stack.length;if(r>Us)ec(e,bw);else{let n=e.top+t+dr.EXTRA_STACK,i=2*r;i>Us&&(i=Us),i<n&&(i=n),i>Us?(Zm(e,qO),Ch.luaG_runerror(e,Io("stack overflow",!0))):Zm(e,i)}},Ju=function(e,t){e.stack_last-e.top<=t&&LO(e,t)},I0e=function(e){let t=e.top;for(let r=e.ci;r!==null;r=r.previous)t<r.top&&(t=r.top);return hi(t<=e.stack_last),t+1},GO=function(e){let t=I0e(e),r=t+Math.floor(t/8)+2*dr.EXTRA_STACK;r>Us&&(r=Us),e.stack.length>Us&&dr.luaE_freeCI(e),t<=Us-dr.EXTRA_STACK&&r<e.stack.length&&Zm(e,r)},N0e=function(e){Ju(e,1),e.stack[e.top++]=new hr.TValue(Qu,null)},ey=function(e,t,r){let n=e.stack[t];switch(n.type){case NO:case w0e:{let i=n.type===NO?n.value.f:n.value;Ju(e,Ym);let o=dr.luaE_extendCI(e);o.funcOff=t,o.nresults=r,o.func=n,o.top=e.top+Ym,hi(o.top<=e.stack_last),o.callstatus=0,e.hookmask&OO&&ry(e,DO,-1);let h=i(e);if(typeof h!="number"||h<0||(h|0)!==h)throw Error("invalid return value from JS function (expected integer)");return Wl.api_checknelems(e,h),ty(e,o,e.top-h,h),!0}case k0e:{let i,o=n.value.p,h=e.top-t-1,g=o.maxstacksize;if(Ju(e,g),o.is_vararg)i=U0e(e,o,h);else{for(;h<o.numparams;h++)e.stack[e.top++]=new hr.TValue(Qu,null);i=t+1}let v=dr.luaE_extendCI(e);return v.funcOff=t,v.nresults=r,v.func=n,v.l_base=i,v.top=i+g,kw(e,v.top),v.l_code=o.code,v.l_savedpc=0,v.callstatus=dr.CIST_LUA,e.hookmask&OO&&C0e(e,v),!1}default:return Ju(e,1),D0e(e,t,n),ey(e,t,r)}},ty=function(e,t,r,n){let i=t.nresults;e.hookmask&(IO|b0e)&&(e.hookmask&IO&&ry(e,_0e,-1),e.oldpc=t.previous.l_savedpc);let o=t.funcOff;return e.ci=t.previous,e.ci.next=null,B0e(e,r,o,n,i)},B0e=function(e,t,r,n,i){switch(i){case 0:break;case 1:{n===0?e.stack[r].setnilvalue():hr.setobjs2s(e,r,t);break}case vw:{for(let h=0;h<n;h++)hr.setobjs2s(e,r+h,t+h);for(let h=e.top;h>=r+n;h--)delete e.stack[h];return e.top=r+n,!1}default:{let h;if(i<=n)for(h=0;h<i;h++)hr.setobjs2s(e,r+h,t+h);else{for(h=0;h<n;h++)hr.setobjs2s(e,r+h,t+h);for(;h<i;h++)r+h>=e.top?e.stack[r+h]=new hr.TValue(Qu,null):e.stack[r+h].setnilvalue()}break}}let o=r+i;for(let h=e.top;h>=o;h--)delete e.stack[h];return e.top=o,!0},ry=function(e,t,r){let n=e.hook;if(n&&e.allowhook){let i=e.ci,o=e.top,h=i.top,g=new E0e;g.event=t,g.currentline=r,g.i_ci=i,Ju(e,Ym),i.top=e.top+Ym,hi(i.top<=e.stack_last),e.allowhook=0,i.callstatus|=dr.CIST_HOOKED,n(e,g),hi(!e.allowhook),e.allowhook=1,i.top=h,kw(e,o),i.callstatus&=~dr.CIST_HOOKED}},C0e=function(e,t){let r=DO;t.l_savedpc++,t.previous.callstatus&dr.CIST_LUA&&t.previous.l_code[t.previous.l_savedpc-1].opcode==T0e.OpCodesI.OP_TAILCALL&&(t.callstatus|=dr.CIST_TAIL,r=v0e),ry(e,r,-1),t.l_savedpc--},U0e=function(e,t,r){let n=t.numparams,i=e.top-r,o=e.top,h;for(h=0;h<n&&h<r;h++)hr.pushobj2s(e,e.stack[i+h]),e.stack[i+h].setnilvalue();for(;h<n;h++)e.stack[e.top++]=new hr.TValue(Qu,null);return o},D0e=function(e,t,r){let n=BO.luaT_gettmbyobj(e,r,BO.TMS.TM_CALL);n.ttisfunction(n)||Ch.luaG_typeerror(e,r,Io("call",!0)),hr.pushobj2s(e,e.stack[e.top-1]);for(let i=e.top-2;i>t;i--)hr.setobjs2s(e,i,i-1);hr.setobj2s(e,t,n)},P0e=function(e){e.nCcalls===Bh?Ch.luaG_runerror(e,Io("JS stack overflow",!0)):e.nCcalls>=Bh+(Bh>>3)&&ec(e,bw)},KO=function(e,t,r){++e.nCcalls>=Bh&&P0e(e),ey(e,t,r)||Uh.luaV_execute(e),e.nCcalls--},ec=function(e,t){if(e.errorJmp)throw e.errorJmp.status=t,e.errorJmp;{let r=e.l_G;if(e.status=t,r.mainthread.errorJmp)r.mainthread.stack[r.mainthread.top++]=e.stack[e.top-1],ec(r.mainthread,t);else{let n=r.panic;throw n&&(Qm(e,t,e.top),e.ci.top<e.top&&(e.ci.top=e.top),n(e)),new Error(`Aborted ${t}`)}}},Jm=function(e,t,r){let n=e.nCcalls,i={status:Aa,previous:e.errorJmp};e.errorJmp=i;try{t(e,r)}catch(o){if(i.status===Aa){let h=e.l_G.atnativeerror;if(h)try{if(i.status=Aa,Wl.lua_pushcfunction(e,h),Wl.lua_pushlightuserdata(e,o),gw(e,e.top-2,1),e.errfunc!==0){let g=e.errfunc;hr.pushobj2s(e,e.stack[e.top-1]),hr.setobjs2s(e,e.top-2,g),gw(e,e.top-2,1)}i.status=xw}catch{i.status===Aa&&(i.status=-1)}else i.status=-1}}return e.errorJmp=i.previous,e.nCcalls=n,i.status},CO=function(e,t){let r=e.ci;hi(r.c_k!==null&&e.nny===0),hi(r.callstatus&dr.CIST_YPCALL||t===Ea),r.callstatus&dr.CIST_YPCALL&&(r.callstatus&=~dr.CIST_YPCALL,e.errfunc=r.c_old_errfunc),r.nresults===vw&&e.ci.top<e.top&&(e.ci.top=e.top);let n=r.c_k,i=n(e,t,r.c_ctx);Wl.api_checknelems(e,i),ty(e,r,e.top-i,i)},HO=function(e,t){for(t!==null&&CO(e,t);e.ci!==e.base_ci;)e.ci.callstatus&dr.CIST_LUA?(Uh.luaV_finishOp(e),Uh.luaV_execute(e)):CO(e,Ea)},F0e=function(e){for(let t=e.ci;t!==null;t=t.previous)if(t.callstatus&dr.CIST_YPCALL)return t;return null},q0e=function(e,t){let r=F0e(e);if(r===null)return 0;let n=r.extra;return ww.luaF_close(e,n),Qm(e,t,n),e.ci=r,e.allowhook=r.callstatus&dr.CIST_OAH,e.nny=0,GO(e),e.errfunc=r.c_old_errfunc,1},mw=function(e,t,r){let n=yw(e,t);if(r===0)hr.pushsvalue2s(e,n),PO(e,e.top<=e.ci.top,"stack overflow");else{for(let i=1;i<r;i++)delete e.stack[--e.top];hr.setsvalue2s(e,e.top-1,n)}return xw},L0e=function(e,t){let r=e.top-t,n=e.ci;e.status===Aa?ey(e,r-1,vw)||Uh.luaV_execute(e):(hi(e.status===Ea),e.status=Aa,n.funcOff=n.extra,n.func=e.stack[n.funcOff],n.callstatus&dr.CIST_LUA?Uh.luaV_execute(e):(n.c_k!==null&&(t=n.c_k(e,Ea,n.c_ctx),Wl.api_checknelems(e,t),r=e.top-t),ty(e,n,r,t)),HO(e,null))},G0e=function(e,t,r){let n=e.nny;if(e.status===Aa){if(e.ci!==e.base_ci)return mw(e,"cannot resume non-suspended coroutine",r)}else if(e.status!==Ea)return mw(e,"cannot resume dead coroutine",r);if(e.nCcalls=t?t.nCcalls+1:1,e.nCcalls>=Bh)return mw(e,"JS stack overflow",r);e.nny=0,Wl.api_checknelems(e,e.status===Aa?r+1:r);let i=Jm(e,L0e,r);if(i===-1)i=xw;else{for(;i>Ea&&q0e(e,i);)i=Jm(e,HO,i);i>Ea?(e.status=i,Qm(e,i,e.top),e.ci.top=e.top):hi(i===e.status)}return e.nny=n,e.nCcalls--,hi(e.nCcalls===(t?t.nCcalls:0)),i},K0e=function(e){return e.nny===0},zO=function(e,t,r,n){let i=e.ci;return Wl.api_checknelems(e,t),e.nny>0&&(e!==e.l_G.mainthread?Ch.luaG_runerror(e,Io("attempt to yield across a JS-call boundary",!0)):Ch.luaG_runerror(e,Io("attempt to yield from outside a coroutine",!0))),e.status=Ea,i.extra=i.funcOff,i.callstatus&dr.CIST_LUA?PO(e,n===null,"hooks cannot continue after yielding"):(i.c_k=n,n!==null&&(i.c_ctx=r),i.funcOff=e.top-t-1,i.func=e.stack[i.funcOff],ec(e,Ea)),hi(i.callstatus&dr.CIST_HOOKED),0},H0e=function(e,t){zO(e,t,0,null)},jO=function(e,t,r,n,i){let o=e.ci,h=e.allowhook,g=e.nny,v=e.errfunc;e.errfunc=i;let w=Jm(e,t,r);return w!==Aa&&(ww.luaF_close(e,n),Qm(e,w,n),e.ci=o,e.allowhook=h,e.nny=g,GO(e)),e.errfunc=v,w},gw=function(e,t,r){e.nny++,KO(e,t,r),e.nny--},_w=class{constructor(t,r,n){this.z=t,this.buff=new O0e,this.dyd=new FO.Dyndata,this.mode=n,this.name=r}},UO=function(e,t,r){t&&S0e(t,r[0])===-1&&(hr.luaO_pushfstring(e,Io("attempt to load a %s chunk (mode is '%s')"),r,t),ec(e,A0e))},z0e=function(e,t){let r,n=t.z.zgetc();n===x0e[0]?(UO(e,t.mode,Io("binary",!0)),r=R0e.luaU_undump(e,t.z,t.name)):(UO(e,t.mode,Io("text",!0)),r=FO.luaY_parser(e,t.z,t.buff,t.dyd,t.name,n)),hi(r.nupvalues===r.p.upvalues.length),ww.luaF_initupvals(e,r)},j0e=function(e,t,r,n){let i=new _w(t,r,n);e.nny++;let o=jO(e,z0e,i,e.top,e.errfunc);return e.nny--,o};Xr.exports.adjust_top=kw;Xr.exports.luaD_call=KO;Xr.exports.luaD_callnoyield=gw;Xr.exports.luaD_checkstack=Ju;Xr.exports.luaD_growstack=LO;Xr.exports.luaD_hook=ry;Xr.exports.luaD_inctop=N0e;Xr.exports.luaD_pcall=jO;Xr.exports.luaD_poscall=ty;Xr.exports.luaD_precall=ey;Xr.exports.luaD_protectedparser=j0e;Xr.exports.luaD_rawrunprotected=Jm;Xr.exports.luaD_reallocstack=Zm;Xr.exports.luaD_throw=ec;Xr.exports.lua_isyieldable=K0e;Xr.exports.lua_resume=G0e;Xr.exports.lua_yield=H0e;Xr.exports.lua_yieldk=zO});var pa=I((aHe,sn)=>{"use strict";b();var{LUA_HOOKCOUNT:V0e,LUA_HOOKLINE:W0e,LUA_MASKCOUNT:X0e,LUA_MASKLINE:VO,constant_types:{LUA_TBOOLEAN:$0e,LUA_TNIL:Y0e,LUA_TTABLE:Z0e},thread_status:{LUA_ERRRUN:J0e,LUA_YIELD:Mw},from_userstring:Q0e,luastring_eq:ZO,luastring_indexOf:WO,to_luastring:gt}=Pr(),{api_check:Aw,lua_assert:Sw}=Wn(),{LUA_IDSIZE:JO}=Vn(),XO=yh(),Dh=Xi(),iy=Ll(),ehe=Bm(),wn=oi(),tc=Dl(),Yn=da(),$O=Es(),sr=ql(),Tw=Fl(),sy=function(e){return Sw(e.callstatus&Yn.CIST_LUA),e.l_savedpc-1},QO=function(e){return e.func.value.p.lineinfo.length!==0?e.func.value.p.lineinfo[sy(e)]:-1},rc=function(e){if(e.status===Mw){let t=e.ci,r=t.funcOff;t.func=e.stack[t.extra],t.funcOff=t.extra,t.extra=r}},the=function(e,t,r,n){(t===null||r===0)&&(r=0,t=null),e.ci.callstatus&Yn.CIST_LUA&&(e.oldpc=e.ci.l_savedpc),e.hook=t,e.basehookcount=n,e.hookcount=e.basehookcount,e.hookmask=r},rhe=function(e){return e.hook},nhe=function(e){return e.hookmask},ihe=function(e){return e.basehookcount},she=function(e,t,r){let n,i;if(t<0)return 0;for(n=e.ci;t>0&&n!==e.base_ci;n=n.previous)t--;return t===0&&n!==e.base_ci?(i=1,r.i_ci=n):i=0,i},Ew=function(e,t){Sw(t<e.upvalues.length);let r=e.upvalues[t].name;return r===null?gt("?",!0):r.getstr()},ahe=function(e,t){let r=e.func.value.p.numparams;return t>=e.l_base-e.funcOff-r?null:{pos:e.funcOff+r+t,name:gt("(*vararg)",!0)}},e9=function(e,t,r){let n,i=null;if(t.callstatus&Yn.CIST_LUA){if(r<0)return ahe(t,-r);n=t.l_base,i=iy.luaF_getlocalname(t.func.value.p,r,sy(t))}else n=t.funcOff+1;if(i===null)if((t===e.ci?e.top:t.next.funcOff)-n>=r&&r>0)i=gt("(*temporary)",!0);else return null;return{pos:n+(r-1),name:i}},ohe=function(e,t,r){let n;if(rc(e),t===null)e.stack[e.top-1].ttisLclosure()?n=iy.luaF_getlocalname(e.stack[e.top-1].value.p,r,0):n=null;else{let i=e9(e,t.i_ci,r);i?(n=i.name,wn.pushobj2s(e,e.stack[i.pos]),Aw(e,e.top<=e.ci.top,"stack overflow")):n=null}return rc(e),n},lhe=function(e,t,r){let n;rc(e);let i=e9(e,t.i_ci,r);return i?(n=i.name,wn.setobjs2s(e,i.pos,e.top-1),delete e.stack[--e.top]):n=null,rc(e),n},fhe=function(e,t){if(t===null||t instanceof wn.CClosure)e.source=gt("=[JS]",!0),e.linedefined=-1,e.lastlinedefined=-1,e.what=gt("J",!0);else{let r=t.p;e.source=r.source?r.source.getstr():gt("=?",!0),e.linedefined=r.linedefined,e.lastlinedefined=r.lastlinedefined,e.what=e.linedefined===0?gt("main",!0):gt("Lua",!0)}e.short_src=wn.luaO_chunkid(e.source,JO)},uhe=function(e,t){if(t===null||t instanceof wn.CClosure)e.stack[e.top]=new wn.TValue(Y0e,null),XO.api_incr_top(e);else{let r=t.p.lineinfo,n=$O.luaH_new(e);e.stack[e.top]=new wn.TValue(Z0e,n),XO.api_incr_top(e);let i=new wn.TValue($0e,!0);for(let o=0;o<r.length;o++)$O.luaH_setint(n,r[o],i)}},che=function(e,t){let r={name:null,funcname:null};return t===null?null:t.callstatus&Yn.CIST_FIN?(r.name=gt("__gc",!0),r.funcname=gt("metamethod",!0),r):!(t.callstatus&Yn.CIST_TAIL)&&t.previous.callstatus&Yn.CIST_LUA?mhe(e,t.previous):null},hhe=function(e,t,r,n,i){let o=1;for(;t.length>0;t=t.subarray(1))switch(t[0]){case 83:{fhe(r,n);break}case 108:{r.currentline=i&&i.callstatus&Yn.CIST_LUA?QO(i):-1;break}case 117:{r.nups=n===null?0:n.nupvalues,n===null||n instanceof wn.CClosure?(r.isvararg=!0,r.nparams=0):(r.isvararg=n.p.is_vararg,r.nparams=n.p.numparams);break}case 116:{r.istailcall=i?i.callstatus&Yn.CIST_TAIL:0;break}case 110:{let h=che(e,i);h===null?(r.namewhat=gt("",!0),r.name=null):(r.namewhat=h.funcname,r.name=h.name);break}case 76:case 102:break;default:o=0}return o},dhe=function(e,t,r){t=Q0e(t);let n,i,o,h;return rc(e),t[0]===62?(o=null,h=e.stack[e.top-1],Aw(e,h.ttisfunction(),"function expected"),t=t.subarray(1),e.top--):(o=r.i_ci,h=o.func,Sw(o.func.ttisfunction())),i=h.ttisclosure()?h.value:null,n=hhe(e,t,r,i,o),WO(t,102)>=0&&(wn.pushobj2s(e,h),Aw(e,e.top<=e.ci.top,"stack overflow")),rc(e),WO(t,76)>=0&&uhe(e,i),n},YO=function(e,t,r){let n={name:null,funcname:null};if(tc.ISK(r)){let i=e.k[tc.INDEXK(r)];if(i.ttisstring())return n.name=i.svalue(),n}else{let i=ay(e,t,r);if(i&&i.funcname[0]===99)return i}return n.name=gt("?",!0),n},ny=function(e,t){return e<t?-1:e},phe=function(e,t,r){let n=-1,i=0,o=tc.OpCodesI;for(let h=0;h<t;h++){let g=e.code[h],v=g.A;switch(g.opcode){case o.OP_LOADNIL:{let w=g.B;v<=r&&r<=v+w&&(n=ny(h,i));break}case o.OP_TFORCALL:{r>=v+2&&(n=ny(h,i));break}case o.OP_CALL:case o.OP_TAILCALL:{r>=v&&(n=ny(h,i));break}case o.OP_JMP:{let w=g.sBx,k=h+1+w;h<k&&k<=t&&k>i&&(i=k);break}default:tc.testAMode(g.opcode)&&r===v&&(n=ny(h,i));break}}return n},ay=function(e,t,r){let n={name:iy.luaF_getlocalname(e,r+1,t),funcname:null};if(n.name)return n.funcname=gt("local",!0),n;let i=phe(e,t,r),o=tc.OpCodesI;if(i!==-1){let h=e.code[i];switch(h.opcode){case o.OP_MOVE:{let g=h.B;if(g<h.A)return ay(e,i,g);break}case o.OP_GETTABUP:case o.OP_GETTABLE:{let g=h.C,v=h.B,w=h.opcode===o.OP_GETTABLE?iy.luaF_getlocalname(e,v+1,i):Ew(e,v);return n.name=YO(e,i,g).name,n.funcname=w&&ZO(w,ehe.LUA_ENV)?gt("global",!0):gt("field",!0),n}case o.OP_GETUPVAL:return n.name=Ew(e,h.B),n.funcname=gt("upvalue",!0),n;case o.OP_LOADK:case o.OP_LOADKX:{let g=h.opcode===o.OP_LOADK?h.Bx:e.code[i+1].Ax;if(e.k[g].ttisstring())return n.name=e.k[g].svalue(),n.funcname=gt("constant",!0),n;break}case o.OP_SELF:{let g=h.C;return n.name=YO(e,i,g).name,n.funcname=gt("method",!0),n}default:break}}return null},mhe=function(e,t){let r={name:null,funcname:null},n=0,i=t.func.value.p,o=sy(t),h=i.code[o],g=tc.OpCodesI;if(t.callstatus&Yn.CIST_HOOKED)return r.name=gt("?",!0),r.funcname=gt("hook",!0),r;switch(h.opcode){case g.OP_CALL:case g.OP_TAILCALL:return ay(i,o,h.A);case g.OP_TFORCALL:return r.name=gt("for iterator",!0),r.funcname=gt("for iterator",!0),r;case g.OP_SELF:case g.OP_GETTABUP:case g.OP_GETTABLE:n=sr.TMS.TM_INDEX;break;case g.OP_SETTABUP:case g.OP_SETTABLE:n=sr.TMS.TM_NEWINDEX;break;case g.OP_ADD:n=sr.TMS.TM_ADD;break;case g.OP_SUB:n=sr.TMS.TM_SUB;break;case g.OP_MUL:n=sr.TMS.TM_MUL;break;case g.OP_MOD:n=sr.TMS.TM_MOD;break;case g.OP_POW:n=sr.TMS.TM_POW;break;case g.OP_DIV:n=sr.TMS.TM_DIV;break;case g.OP_IDIV:n=sr.TMS.TM_IDIV;break;case g.OP_BAND:n=sr.TMS.TM_BAND;break;case g.OP_BOR:n=sr.TMS.TM_BOR;break;case g.OP_BXOR:n=sr.TMS.TM_BXOR;break;case g.OP_SHL:n=sr.TMS.TM_SHL;break;case g.OP_SHR:n=sr.TMS.TM_SHR;break;case g.OP_UNM:n=sr.TMS.TM_UNM;break;case g.OP_BNOT:n=sr.TMS.TM_BNOT;break;case g.OP_LEN:n=sr.TMS.TM_LEN;break;case g.OP_CONCAT:n=sr.TMS.TM_CONCAT;break;case g.OP_EQ:n=sr.TMS.TM_EQ;break;case g.OP_LT:n=sr.TMS.TM_LT;break;case g.OP_LE:n=sr.TMS.TM_LE;break;default:return null}return r.name=e.l_G.tmname[n].getstr(),r.funcname=gt("metamethod",!0),r},yhe=function(e,t,r){for(let n=t.l_base;n<t.top;n++)if(e.stack[n]===r)return n;return!1},ghe=function(e,t,r){let n=t.func.value;for(let i=0;i<n.nupvalues;i++)if(n.upvals[i]===r)return{name:Ew(n.p,i),funcname:gt("upvalue",!0)};return null},t9=function(e,t){let r=e.ci,n=null;if(r.callstatus&Yn.CIST_LUA){n=ghe(e,r,t);let i=yhe(e,r,t);!n&&i&&(n=ay(r.func.value.p,sy(r),i-r.l_base))}return n?wn.luaO_pushfstring(e,gt(" (%s '%s')",!0),n.funcname,n.name):gt("",!0)},Rw=function(e,t,r){let n=sr.luaT_objtypename(e,t);Ph(e,gt("attempt to %s a %s value%s",!0),r,n,t9(e,t))},_he=function(e,t,r){(t.ttisstring()||Tw.cvt2str(t))&&(t=r),Rw(e,t,gt("concatenate",!0))},vhe=function(e,t,r,n){Tw.tonumber(t)===!1&&(r=t),Rw(e,r,n)},bhe=function(e,t,r){let n=sr.luaT_objtypename(e,t),i=sr.luaT_objtypename(e,r);ZO(n,i)?Ph(e,gt("attempt to compare two %s values",!0),n):Ph(e,gt("attempt to compare %s with %s",!0),n,i)},r9=function(e,t,r,n){let i;return r?i=wn.luaO_chunkid(r.getstr(),JO):i=gt("?",!0),wn.luaO_pushfstring(e,gt("%s:%d: %s",!0),i,n,t)},Ph=function(e,t,...r){let n=e.ci,i=wn.luaO_pushvfstring(e,t,r);n.callstatus&Yn.CIST_LUA&&r9(e,i,n.func.value.p.source,QO(n)),n9(e)},n9=function(e){if(e.errfunc!==0){let t=e.errfunc;wn.pushobj2s(e,e.stack[e.top-1]),wn.setobjs2s(e,e.top-2,t),Dh.luaD_callnoyield(e,e.top-2,1)}Dh.luaD_throw(e,J0e)},xhe=function(e,t,r){Tw.tointeger(t)===!1&&(r=t),Ph(e,gt("number%s has no integer representation",!0),t9(e,r))},whe=function(e){let t=e.ci,r=e.hookmask,n=--e.hookcount===0&&r&X0e;if(n)e.hookcount=e.basehookcount;else if(!(r&VO))return;if(t.callstatus&Yn.CIST_HOOKYIELD){t.callstatus&=~Yn.CIST_HOOKYIELD;return}if(n&&Dh.luaD_hook(e,V0e,-1),r&VO){let i=t.func.value.p,o=t.l_savedpc-1,h=i.lineinfo.length!==0?i.lineinfo[o]:-1;(o===0||t.l_savedpc<=e.oldpc||h!==(i.lineinfo.length!==0?i.lineinfo[e.oldpc-1]:-1))&&Dh.luaD_hook(e,W0e,h)}e.oldpc=t.l_savedpc,e.status===Mw&&(n&&(e.hookcount=1),t.l_savedpc--,t.callstatus|=Yn.CIST_HOOKYIELD,t.funcOff=e.top-1,t.func=e.stack[t.funcOff],Dh.luaD_throw(e,Mw))};sn.exports.luaG_addinfo=r9;sn.exports.luaG_concaterror=_he;sn.exports.luaG_errormsg=n9;sn.exports.luaG_opinterror=vhe;sn.exports.luaG_ordererror=bhe;sn.exports.luaG_runerror=Ph;sn.exports.luaG_tointerror=xhe;sn.exports.luaG_traceexec=whe;sn.exports.luaG_typeerror=Rw;sn.exports.lua_gethook=rhe;sn.exports.lua_gethookcount=ihe;sn.exports.lua_gethookmask=nhe;sn.exports.lua_getinfo=dhe;sn.exports.lua_getlocal=ohe;sn.exports.lua_getstack=she;sn.exports.lua_sethook=the;sn.exports.lua_setlocal=lhe});var u9=I((lHe,f9)=>{"use strict";b();var{LUA_SIGNATURE:i9,LUA_VERSION_MAJOR:khe,LUA_VERSION_MINOR:Mhe,constant_types:{LUA_TBOOLEAN:Ahe,LUA_TLNGSTR:Ehe,LUA_TNIL:She,LUA_TNUMFLT:The,LUA_TNUMINT:Rhe,LUA_TSHRSTR:Ohe},luastring_of:a9}=Pr(),s9=a9(25,147,13,10,26,10),Ihe=22136,Nhe=370.5,Bhe=Number(khe)*16+Number(Mhe),Che=0,Ow=class{constructor(){this.L=null,this.write=null,this.data=null,this.strip=NaN,this.status=NaN}},Xl=function(e,t,r){r.status===0&&t>0&&(r.status=r.writer(r.L,e,t,r.data))},an=function(e,t){Xl(a9(e),1,t)},di=function(e,t){let r=new ArrayBuffer(4);new DataView(r).setInt32(0,e,!0);let i=new Uint8Array(r);Xl(i,4,t)},Iw=function(e,t){let r=new ArrayBuffer(4);new DataView(r).setInt32(0,e,!0);let i=new Uint8Array(r);Xl(i,4,t)},o9=function(e,t){let r=new ArrayBuffer(8);new DataView(r).setFloat64(0,e,!0);let i=new Uint8Array(r);Xl(i,8,t)},Fh=function(e,t){if(e===null)an(0,t);else{let r=e.tsslen()+1,n=e.getstr();r<255?an(r,t):(an(255,t),Iw(r,t)),Xl(n,r-1,t)}},Uhe=function(e,t){let r=e.code.map(n=>n.code);di(r.length,t);for(let n=0;n<r.length;n++)di(r[n],t)},Dhe=function(e,t){let r=e.k.length;di(r,t);for(let n=0;n<r;n++){let i=e.k[n];switch(an(i.ttype(),t),i.ttype()){case She:break;case Ahe:an(i.value?1:0,t);break;case The:o9(i.value,t);break;case Rhe:Iw(i.value,t);break;case Ohe:case Ehe:Fh(i.tsvalue(),t);break}}},Phe=function(e,t){let r=e.p.length;di(r,t);for(let n=0;n<r;n++)l9(e.p[n],e.source,t)},Fhe=function(e,t){let r=e.upvalues.length;di(r,t);for(let n=0;n<r;n++)an(e.upvalues[n].instack?1:0,t),an(e.upvalues[n].idx,t)},qhe=function(e,t){let r=t.strip?0:e.lineinfo.length;di(r,t);for(let n=0;n<r;n++)di(e.lineinfo[n],t);r=t.strip?0:e.locvars.length,di(r,t);for(let n=0;n<r;n++)Fh(e.locvars[n].varname,t),di(e.locvars[n].startpc,t),di(e.locvars[n].endpc,t);r=t.strip?0:e.upvalues.length,di(r,t);for(let n=0;n<r;n++)Fh(e.upvalues[n].name,t)},l9=function(e,t,r){r.strip||e.source===t?Fh(null,r):Fh(e.source,r),di(e.linedefined,r),di(e.lastlinedefined,r),an(e.numparams,r),an(e.is_vararg?1:0,r),an(e.maxstacksize,r),Uhe(e,r),Dhe(e,r),Fhe(e,r),Phe(e,r),qhe(e,r)},Lhe=function(e){Xl(i9,i9.length,e),an(Bhe,e),an(Che,e),Xl(s9,s9.length,e),an(4,e),an(4,e),an(4,e),an(4,e),an(8,e),Iw(Ihe,e),o9(Nhe,e)},Ghe=function(e,t,r,n,i){let o=new Ow;return o.L=e,o.writer=r,o.data=n,o.strip=i,o.status=0,Lhe(o),an(t.upvalues.length,o),l9(t,null,o),o.status};f9.exports.luaU_dump=Ghe});var yh=I((uHe,Oe)=>{"use strict";b();var{LUA_MULTRET:Cw,LUA_OPBNOT:Khe,LUA_OPEQ:Hhe,LUA_OPLE:zhe,LUA_OPLT:jhe,LUA_OPUNM:Vhe,LUA_REGISTRYINDEX:Yl,LUA_RIDX_GLOBALS:ly,LUA_VERSION_NUM:Whe,constant_types:{LUA_NUMTAGS:Xhe,LUA_TBOOLEAN:c9,LUA_TCCL:Uw,LUA_TFUNCTION:$he,LUA_TLCF:h9,LUA_TLCL:Dw,LUA_TLIGHTUSERDATA:sc,LUA_TLNGSTR:Yhe,LUA_TNIL:fy,LUA_TNONE:Pw,LUA_TNUMFLT:Zhe,LUA_TNUMINT:Fw,LUA_TSHRSTR:Jhe,LUA_TTABLE:nc,LUA_TTHREAD:qw,LUA_TUSERDATA:ac},thread_status:{LUA_OK:oy},from_userstring:No,to_luastring:qh}=Pr(),{api_check:Ve}=Wn(),Qhe=pa(),Bo=Xi(),{luaU_dump:ede}=u9(),d9=Ll(),vt=oi(),$l=da(),{luaS_bless:p9,luaS_new:uy,luaS_newliteral:tde}=As(),rde=ql(),{LUAI_MAXSTACK:nde}=Vn(),on=Fl(),pi=Es(),{ZIO:ide}=_h(),Kr=vt.TValue,sde=vt.CClosure,ln=function(e){e.top++,Ve(e,e.top<=e.ci.top,"stack overflow")},$r=function(e,t){Ve(e,t<e.top-e.ci.funcOff,"not enough elements in the stack")},cy=function(e){if(!e)throw TypeError("invalid argument")},Sa=function(e){cy(typeof e=="number"&&(e|0)===e)},ic=function(e){return e!==vt.luaO_nilobject},ade=function(e){return e===null?Whe:e.l_G.version},ode=function(e,t){let r=e.l_G.panic;return e.l_G.panic=t,r},lde=function(e,t){let r=e.l_G.atnativeerror;return e.l_G.atnativeerror=t,r},We=function(e,t){let r=e.ci;if(t>0){let n=r.funcOff+t;return Ve(e,t<=r.top-(r.funcOff+1),"unacceptable index"),n>=e.top?vt.luaO_nilobject:e.stack[n]}else return t>Yl?(Ve(e,t!==0&&-t<=e.top,"invalid index"),e.stack[e.top+t]):t===Yl?e.l_G.l_registry:(t=Yl-t,Ve(e,t<=d9.MAXUPVAL+1,"upvalue index too large"),r.func.ttislcf()?vt.luaO_nilobject:t<=r.func.value.nupvalues?r.func.value.upvalue[t-1]:vt.luaO_nilobject)},m9=function(e,t){let r=e.ci;if(t>0){let n=r.funcOff+t;return Ve(e,t<=r.top-(r.funcOff+1),"unacceptable index"),n>=e.top?null:n}else{if(t>Yl)return Ve(e,t!==0&&-t<=e.top,"invalid index"),e.top+t;throw Error("attempt to use pseudo-index")}},fde=function(e,t){let r,n=e.ci;return Ve(e,t>=0,"negative 'n'"),e.stack_last-e.top>t?r=!0:e.top+$l.EXTRA_STACK>nde-t?r=!1:(Bo.luaD_growstack(e,t),r=!0),r&&n.top<e.top+t&&(n.top=e.top+t),r},ude=function(e,t,r){if(e!==t){$r(e,r),Ve(e,e.l_G===t.l_G,"moving among independent states"),Ve(e,t.ci.top-t.top>=r,"stack overflow"),e.top-=r;for(let n=0;n<r;n++)t.stack[t.top]=new vt.TValue,vt.setobj2s(t,t.top,e.stack[e.top+n]),delete e.stack[e.top+n],t.top++}},cde=function(e,t){return t>0||t<=Yl?t:e.top-e.ci.funcOff+t},hde=function(e){return e.top-(e.ci.funcOff+1)},dde=function(e,t){vt.pushobj2s(e,We(e,t)),Ve(e,e.top<=e.ci.top,"stack overflow")},y9=function(e,t){let r=e.ci.funcOff,n;t>=0?(Ve(e,t<=e.stack_last-(r+1),"new top too large"),n=r+1+t):(Ve(e,-(t+1)<=e.top-(r+1),"invalid new top"),n=e.top+t+1),Bo.adjust_top(e,n)},Lw=function(e,t){y9(e,-t-1)},Nw=function(e,t,r){for(;t<r;t++,r--){let n=e.stack[t],i=new Kr(n.type,n.value);vt.setobjs2s(e,t,r),vt.setobj2s(e,r,i)}},Gw=function(e,t,r){let n=e.top-1,i=m9(e,t),o=e.stack[i];Ve(e,ic(o)&&t>Yl,"index not in the stack"),Ve(e,(r>=0?r:-r)<=n-i+1,"invalid 'n'");let h=r>=0?n-r:i-r-1;Nw(e,i,h),Nw(e,h+1,e.top-1),Nw(e,i,e.top-1)},g9=function(e,t,r){let n=We(e,t);We(e,r).setfrom(n)},pde=function(e,t){Gw(e,t,-1),Lw(e,1)},mde=function(e,t){Gw(e,t,1)},yde=function(e,t){g9(e,-1,t),Lw(e,1)},gde=function(e){e.stack[e.top]=new Kr(fy,null),ln(e)},_de=function(e,t){cy(typeof t=="number"),e.stack[e.top]=new Kr(Zhe,t),ln(e)},vde=function(e,t){Sa(t),e.stack[e.top]=new Kr(Fw,t),ln(e)},bde=function(e,t,r){Sa(r);let n;return r===0?(t=qh("",!0),n=p9(e,t)):(t=No(t),Ve(e,t.length>=r,"invalid length to lua_pushlstring"),n=uy(e,t.subarray(0,r))),vt.pushsvalue2s(e,n),Ve(e,e.top<=e.ci.top,"stack overflow"),n.value},xde=function(e,t){if(t==null)e.stack[e.top]=new Kr(fy,null),e.top++;else{let r=uy(e,No(t));vt.pushsvalue2s(e,r),t=r.getstr()}return Ve(e,e.top<=e.ci.top,"stack overflow"),t},wde=function(e,t,r){return t=No(t),vt.luaO_pushvfstring(e,t,r)},kde=function(e,t,...r){return t=No(t),vt.luaO_pushvfstring(e,t,r)},Mde=function(e,t){if(t==null)e.stack[e.top]=new Kr(fy,null),e.top++;else{cy(typeof t=="string");let r=tde(e,t);vt.pushsvalue2s(e,r),t=r.getstr()}return Ve(e,e.top<=e.ci.top,"stack overflow"),t},Kw=function(e,t,r){if(cy(typeof t=="function"),Sa(r),r===0)e.stack[e.top]=new Kr(h9,t);else{$r(e,r),Ve(e,r<=d9.MAXUPVAL,"upvalue index too large");let n=new sde(e,t,r);for(let i=0;i<r;i++)n.upvalue[i].setfrom(e.stack[e.top-r+i]);for(let i=1;i<r;i++)delete e.stack[--e.top];r>0&&--e.top,e.stack[e.top].setclCvalue(n)}ln(e)},Ade=Kw,Hw=function(e,t){Kw(e,t,0)},Ede=Hw,Sde=function(e,t){e.stack[e.top]=new Kr(c9,!!t),ln(e)},Tde=function(e,t){e.stack[e.top]=new Kr(sc,t),ln(e)},Rde=function(e){return e.stack[e.top]=new Kr(qw,e),ln(e),e.l_G.mainthread===e},Ode=function(e){x9(e,Yl,ly)},_9=function(e,t,r){let n=uy(e,No(r));$r(e,1),vt.pushsvalue2s(e,n),Ve(e,e.top<=e.ci.top,"stack overflow"),on.settable(e,t,e.stack[e.top-1],e.stack[e.top-2]),delete e.stack[--e.top],delete e.stack[--e.top]},v9=function(e,t){_9(e,pi.luaH_getint(e.l_G.l_registry.value,ly),t)},Ide=function(e,t){$r(e,1);let r,n=We(e,t);switch(e.stack[e.top-1].ttisnil()?r=null:(Ve(e,e.stack[e.top-1].ttistable(),"table expected"),r=e.stack[e.top-1].value),n.ttnov()){case ac:case nc:{n.value.metatable=r;break}default:{e.l_G.mt[n.ttnov()]=r;break}}return delete e.stack[--e.top],!0},Nde=function(e,t){$r(e,2);let r=We(e,t);on.settable(e,r,e.stack[e.top-2],e.stack[e.top-1]),delete e.stack[--e.top],delete e.stack[--e.top]},Bde=function(e,t,r){_9(e,We(e,t),r)},Cde=function(e,t,r){Sa(r),$r(e,1);let n=We(e,t);e.stack[e.top]=new Kr(Fw,r),ln(e),on.settable(e,n,e.stack[e.top-1],e.stack[e.top-2]),delete e.stack[--e.top],delete e.stack[--e.top]},Ude=function(e,t){$r(e,2);let r=We(e,t);Ve(e,r.ttistable(),"table expected");let n=e.stack[e.top-2],i=e.stack[e.top-1];pi.luaH_setfrom(e,r.value,n,i),pi.invalidateTMcache(r.value),delete e.stack[--e.top],delete e.stack[--e.top]},Dde=function(e,t,r){Sa(r),$r(e,1);let n=We(e,t);Ve(e,n.ttistable(),"table expected"),pi.luaH_setint(n.value,r,e.stack[e.top-1]),delete e.stack[--e.top]},Pde=function(e,t,r){$r(e,1);let n=We(e,t);Ve(e,n.ttistable(),"table expected");let i=new Kr(sc,r),o=e.stack[e.top-1];pi.luaH_setfrom(e,n.value,i,o),delete e.stack[--e.top]},b9=function(e,t,r){let n=uy(e,No(r));return vt.pushsvalue2s(e,n),Ve(e,e.top<=e.ci.top,"stack overflow"),on.luaV_gettable(e,t,e.stack[e.top-1],e.top-1),e.stack[e.top-1].ttnov()},x9=function(e,t,r){let n=We(e,t);return Sa(r),Ve(e,n.ttistable(),"table expected"),vt.pushobj2s(e,pi.luaH_getint(n.value,r)),Ve(e,e.top<=e.ci.top,"stack overflow"),e.stack[e.top-1].ttnov()},Fde=function(e,t,r){let n=We(e,t);Ve(e,n.ttistable(),"table expected");let i=new Kr(sc,r);return vt.pushobj2s(e,pi.luaH_get(e,n.value,i)),Ve(e,e.top<=e.ci.top,"stack overflow"),e.stack[e.top-1].ttnov()},qde=function(e,t){let r=We(e,t);return Ve(e,r.ttistable(r),"table expected"),vt.setobj2s(e,e.top-1,pi.luaH_get(e,r.value,e.stack[e.top-1])),e.stack[e.top-1].ttnov()},w9=function(e,t,r){let n=new vt.TValue(nc,pi.luaH_new(e));e.stack[e.top]=n,ln(e)},Lde=function(e,t){return new vt.Udata(e,t)},Gde=function(e,t){let r=Lde(e,t);return e.stack[e.top]=new vt.TValue(ac,r),ln(e),r.data},k9=function(e,t,r){switch(Sa(r),t.ttype()){case Uw:{let n=t.value;return 1<=r&&r<=n.nupvalues?{name:qh("",!0),val:n.upvalue[r-1]}:null}case Dw:{let n=t.value,i=n.p;if(!(1<=r&&r<=i.upvalues.length))return null;let o=i.upvalues[r-1].name;return{name:o?o.getstr():qh("(*no name)",!0),val:n.upvals[r-1]}}default:return null}},Kde=function(e,t,r){let n=k9(e,We(e,t),r);if(n){let i=n.name,o=n.val;return vt.pushobj2s(e,o),Ve(e,e.top<=e.ci.top,"stack overflow"),i}return null},Hde=function(e,t,r){let n=We(e,t);$r(e,1);let i=k9(e,n,r);if(i){let o=i.name;return i.val.setfrom(e.stack[e.top-1]),delete e.stack[--e.top],o}return null},zde=function(e){w9(e,0,0)},jde=function(e,t,r){Hw(e,r),v9(e,t)},Vde=function(e,t){let r=We(e,t),n,i=!1;switch(r.ttnov()){case nc:case ac:n=r.value.metatable;break;default:n=e.l_G.mt[r.ttnov()];break}return n!=null&&(e.stack[e.top]=new Kr(nc,n),ln(e),i=!0),i},Wde=function(e,t){let r=We(e,t);Ve(e,r.ttisfulluserdata(),"full userdata expected");let n=r.value.uservalue;return e.stack[e.top]=new Kr(n.type,n.value),ln(e),e.stack[e.top-1].ttnov()},Xde=function(e,t){let r=We(e,t);return on.luaV_gettable(e,r,e.stack[e.top-1],e.top-1),e.stack[e.top-1].ttnov()},$de=function(e,t,r){return b9(e,We(e,t),r)},Yde=function(e,t,r){let n=We(e,t);return Sa(r),e.stack[e.top]=new Kr(Fw,r),ln(e),on.luaV_gettable(e,n,e.stack[e.top-1],e.top-1),e.stack[e.top-1].ttnov()},Zde=function(e,t){return b9(e,pi.luaH_getint(e.l_G.l_registry.value,ly),t)},Jde=function(e,t){return!We(e,t).l_isfalse()},zw=function(e,t){let r=We(e,t);if(!r.ttisstring()){if(!on.cvt2str(r))return null;vt.luaO_tostring(e,r)}return r.svalue()},Qde=zw,epe=function(e,t){let r=We(e,t);if(!r.ttisstring()){if(!on.cvt2str(r))return null;vt.luaO_tostring(e,r)}return r.jsstring()},tpe=function(e,t){let r=zw(e,t);return new DataView(r.buffer,r.byteOffset,r.byteLength)},rpe=function(e,t){let r=We(e,t);switch(r.ttype()){case Jhe:case Yhe:return r.vslen();case ac:return r.value.len;case nc:return pi.luaH_getn(r.value);default:return 0}},npe=function(e,t){let r=We(e,t);return r.ttislcf()||r.ttisCclosure()?r.value:null},ipe=function(e,t){let r=M9(e,t);return r===!1?0:r},M9=function(e,t){return on.tointeger(We(e,t))},spe=function(e,t){let r=A9(e,t);return r===!1?0:r},A9=function(e,t){return on.tonumber(We(e,t))},ape=function(e,t){let r=We(e,t);switch(r.ttnov()){case ac:return r.value.data;case sc:return r.value;default:return null}},ope=function(e,t){let r=We(e,t);return r.ttisthread()?r.value:null},lpe=function(e,t){let r=We(e,t);switch(r.ttype()){case nc:case Dw:case Uw:case h9:case qw:case ac:case sc:return r.value;default:return null}},E9=new WeakMap,fpe=function(e,t){let r=E9.get(e);return r?t===null||t.l_G===r:!1},upe=function(e,t,r){let n=function(i){Ve(i,i instanceof $l.lua_State&&e===i.l_G,"must be from same global state"),i.stack[i.top]=new Kr(t,r),ln(i)};return E9.set(n,e),n},cpe=function(e,t){let r=We(e,t);return upe(e.l_G,r.type,r.value)},hpe=function(e,t,r,n){let i=We(e,t),o=We(e,r),h=0;if(ic(i)&&ic(o))switch(n){case Hhe:h=on.luaV_equalobj(e,i,o);break;case jhe:h=on.luaV_lessthan(e,i,o);break;case zhe:h=on.luaV_lessequal(e,i,o);break;default:Ve(e,!1,"invalid option")}return h},dpe=function(e,t){let r=new Kr,n=vt.luaO_str2num(t,r);return n!==0&&(e.stack[e.top]=r,ln(e)),n},ppe=function(e,t){Bo.luaD_callnoyield(e,t.funcOff,t.nresults)},Co=function(e,t){let r=We(e,t);return ic(r)?r.ttnov():Pw},mpe=function(e,t){return Ve(e,Pw<=t&&t<Xhe,"invalid tag"),rde.ttypename(t)},ype=function(e,t){let r=We(e,t);return r.ttislcf(r)||r.ttisCclosure()},gpe=function(e,t){return Co(e,t)===fy},_pe=function(e,t){return Co(e,t)===c9},vpe=function(e,t){return Co(e,t)===Pw},bpe=function(e,t){return Co(e,t)<=0},xpe=function(e,t){return We(e,t).ttistable()},wpe=function(e,t){return We(e,t).ttisinteger()},kpe=function(e,t){return on.tonumber(We(e,t))!==!1},Mpe=function(e,t){let r=We(e,t);return r.ttisstring()||on.cvt2str(r)},Ape=function(e,t){let r=We(e,t);return r.ttisfulluserdata(r)||r.ttislightuserdata()},Epe=function(e,t){return Co(e,t)===qw},Spe=function(e,t){return Co(e,t)===$he},Tpe=function(e,t){return Co(e,t)===sc},Rpe=function(e,t,r){let n=We(e,t),i=We(e,r);return ic(n)&&ic(i)?on.luaV_equalobj(null,n,i):0},Ope=function(e,t){t!==Vhe&&t!==Khe?$r(e,2):($r(e,1),vt.pushobj2s(e,e.stack[e.top-1]),Ve(e,e.top<=e.ci.top,"stack overflow")),vt.luaO_arith(e,t,e.stack[e.top-2],e.stack[e.top-1],e.stack[e.top-2]),delete e.stack[--e.top]},Ipe=qh("?"),Npe=function(e,t,r,n,i){n?n=No(n):n=Ipe,i!==null&&(i=No(i));let o=new ide(e,t,r),h=Bo.luaD_protectedparser(e,o,n,i);if(h===oy){let g=e.stack[e.top-1].value;if(g.nupvalues>=1){let v=pi.luaH_getint(e.l_G.l_registry.value,ly);g.upvals[0].setfrom(v)}}return h},Bpe=function(e,t,r,n){$r(e,1);let i=e.stack[e.top-1];return i.ttisLclosure()?ede(e,i.value.p,t,r,n):1},Cpe=function(e){return e.status},Upe=function(e,t){$r(e,1);let r=We(e,t);Ve(e,r.ttisfulluserdata(),"full userdata expected"),r.value.uservalue.setfrom(e.stack[e.top-1]),delete e.stack[--e.top]},S9=function(e,t,r){Ve(e,r===Cw||e.ci.top-e.top>=r-t,"results from function overflow current stack size")},T9=function(e,t,r,n,i){Ve(e,i===null||!(e.ci.callstatus&$l.CIST_LUA),"cannot use continuations inside hooks"),$r(e,t+1),Ve(e,e.status===oy,"cannot do calls on non-normal thread"),S9(e,t,r);let o=e.top-(t+1);i!==null&&e.nny===0?(e.ci.c_k=i,e.ci.c_ctx=n,Bo.luaD_call(e,o,r)):Bo.luaD_callnoyield(e,o,r),r===Cw&&e.ci.top<e.top&&(e.ci.top=e.top)},Dpe=function(e,t,r){T9(e,t,r,0,null)},R9=function(e,t,r,n,i,o){Ve(e,o===null||!(e.ci.callstatus&$l.CIST_LUA),"cannot use continuations inside hooks"),$r(e,t+1),Ve(e,e.status===oy,"cannot do calls on non-normal thread"),S9(e,t,r);let h,g;n===0?g=0:g=m9(e,n);let v=e.top-(t+1);if(o===null||e.nny>0){let w={funcOff:v,nresults:r};h=Bo.luaD_pcall(e,ppe,w,v,g)}else{let w=e.ci;w.c_k=o,w.c_ctx=i,w.extra=v,w.c_old_errfunc=e.errfunc,e.errfunc=g,w.callstatus&=~$l.CIST_OAH|e.allowhook,w.callstatus|=$l.CIST_YPCALL,Bo.luaD_call(e,v,r),w.callstatus&=~$l.CIST_YPCALL,e.errfunc=w.c_old_errfunc,h=oy}return r===Cw&&e.ci.top<e.top&&(e.ci.top=e.top),h},Ppe=function(e,t,r,n){return R9(e,t,r,n,0,null)},Fpe=function(e){$r(e,1),Qhe.luaG_errormsg(e)},qpe=function(e,t){let r=We(e,t);return Ve(e,r.ttistable(),"table expected"),e.stack[e.top]=new Kr,pi.luaH_next(e,r.value,e.top-1)?(ln(e),1):(delete e.stack[e.top],delete e.stack[--e.top],0)},Lpe=function(e,t){$r(e,t),t>=2?on.luaV_concat(e,t):t===0&&(vt.pushsvalue2s(e,p9(e,qh("",!0))),Ve(e,e.top<=e.ci.top,"stack overflow"))},Gpe=function(e,t){let r=We(e,t),n=new Kr;on.luaV_objlen(e,n,r),e.stack[e.top]=n,ln(e)},Bw=function(e,t,r){let n=We(e,t);Ve(e,n.ttisLclosure(),"Lua function expected");let i=n.value;return Sa(r),Ve(e,1<=r&&r<=i.p.upvalues.length,"invalid upvalue index"),{f:i,i:r-1}},Kpe=function(e,t,r){let n=We(e,t);switch(n.ttype()){case Dw:{let i=Bw(e,t,r);return i.f.upvals[i.i]}case Uw:{let i=n.value;return Ve(e,(r|0)===r&&r>0&&r<=i.nupvalues,"invalid upvalue index"),i.upvalue[r-1]}default:return Ve(e,!1,"closure expected"),null}},Hpe=function(e,t,r,n,i){let o=Bw(e,t,r),h=Bw(e,n,i),g=h.f.upvals[h.i];o.f.upvals[o.i]=g},zpe=function(){},jpe=function(){return console.warn("lua_getallocf is not available"),0},Vpe=function(){return console.warn("lua_setallocf is not available"),0},Wpe=function(){return console.warn("lua_getextraspace is not available"),0};Oe.exports.api_incr_top=ln;Oe.exports.api_checknelems=$r;Oe.exports.lua_absindex=cde;Oe.exports.lua_arith=Ope;Oe.exports.lua_atpanic=ode;Oe.exports.lua_atnativeerror=lde;Oe.exports.lua_call=Dpe;Oe.exports.lua_callk=T9;Oe.exports.lua_checkstack=fde;Oe.exports.lua_compare=hpe;Oe.exports.lua_concat=Lpe;Oe.exports.lua_copy=g9;Oe.exports.lua_createtable=w9;Oe.exports.lua_dump=Bpe;Oe.exports.lua_error=Fpe;Oe.exports.lua_gc=zpe;Oe.exports.lua_getallocf=jpe;Oe.exports.lua_getextraspace=Wpe;Oe.exports.lua_getfield=$de;Oe.exports.lua_getglobal=Zde;Oe.exports.lua_geti=Yde;Oe.exports.lua_getmetatable=Vde;Oe.exports.lua_gettable=Xde;Oe.exports.lua_gettop=hde;Oe.exports.lua_getupvalue=Kde;Oe.exports.lua_getuservalue=Wde;Oe.exports.lua_insert=mde;Oe.exports.lua_isboolean=_pe;Oe.exports.lua_iscfunction=ype;Oe.exports.lua_isfunction=Spe;Oe.exports.lua_isinteger=wpe;Oe.exports.lua_islightuserdata=Tpe;Oe.exports.lua_isnil=gpe;Oe.exports.lua_isnone=vpe;Oe.exports.lua_isnoneornil=bpe;Oe.exports.lua_isnumber=kpe;Oe.exports.lua_isproxy=fpe;Oe.exports.lua_isstring=Mpe;Oe.exports.lua_istable=xpe;Oe.exports.lua_isthread=Epe;Oe.exports.lua_isuserdata=Ape;Oe.exports.lua_len=Gpe;Oe.exports.lua_load=Npe;Oe.exports.lua_newtable=zde;Oe.exports.lua_newuserdata=Gde;Oe.exports.lua_next=qpe;Oe.exports.lua_pcall=Ppe;Oe.exports.lua_pcallk=R9;Oe.exports.lua_pop=Lw;Oe.exports.lua_pushboolean=Sde;Oe.exports.lua_pushcclosure=Kw;Oe.exports.lua_pushcfunction=Hw;Oe.exports.lua_pushfstring=kde;Oe.exports.lua_pushglobaltable=Ode;Oe.exports.lua_pushinteger=vde;Oe.exports.lua_pushjsclosure=Ade;Oe.exports.lua_pushjsfunction=Ede;Oe.exports.lua_pushlightuserdata=Tde;Oe.exports.lua_pushliteral=Mde;Oe.exports.lua_pushlstring=bde;Oe.exports.lua_pushnil=gde;Oe.exports.lua_pushnumber=_de;Oe.exports.lua_pushstring=xde;Oe.exports.lua_pushthread=Rde;Oe.exports.lua_pushvalue=dde;Oe.exports.lua_pushvfstring=wde;Oe.exports.lua_rawequal=Rpe;Oe.exports.lua_rawget=qde;Oe.exports.lua_rawgeti=x9;Oe.exports.lua_rawgetp=Fde;Oe.exports.lua_rawlen=rpe;Oe.exports.lua_rawset=Ude;Oe.exports.lua_rawseti=Dde;Oe.exports.lua_rawsetp=Pde;Oe.exports.lua_register=jde;Oe.exports.lua_remove=pde;Oe.exports.lua_replace=yde;Oe.exports.lua_rotate=Gw;Oe.exports.lua_setallocf=Vpe;Oe.exports.lua_setfield=Bde;Oe.exports.lua_setglobal=v9;Oe.exports.lua_seti=Cde;Oe.exports.lua_setmetatable=Ide;Oe.exports.lua_settable=Nde;Oe.exports.lua_settop=y9;Oe.exports.lua_setupvalue=Hde;Oe.exports.lua_setuservalue=Upe;Oe.exports.lua_status=Cpe;Oe.exports.lua_stringtonumber=dpe;Oe.exports.lua_toboolean=Jde;Oe.exports.lua_tocfunction=npe;Oe.exports.lua_todataview=tpe;Oe.exports.lua_tointeger=ipe;Oe.exports.lua_tointegerx=M9;Oe.exports.lua_tojsstring=epe;Oe.exports.lua_tolstring=zw;Oe.exports.lua_tonumber=spe;Oe.exports.lua_tonumberx=A9;Oe.exports.lua_topointer=lpe;Oe.exports.lua_toproxy=cpe;Oe.exports.lua_tostring=Qde;Oe.exports.lua_tothread=ope;Oe.exports.lua_touserdata=ape;Oe.exports.lua_type=Co;Oe.exports.lua_typename=mpe;Oe.exports.lua_upvalueid=Kpe;Oe.exports.lua_upvaluejoin=Hpe;Oe.exports.lua_version=ade;Oe.exports.lua_xmove=ude});var Pn=I((hHe,G)=>{"use strict";b();var Le=Pr(),Ie=yh(),Uo=pa(),Lh=Xi(),jw=da();G.exports.LUA_AUTHORS=Le.LUA_AUTHORS;G.exports.LUA_COPYRIGHT=Le.LUA_COPYRIGHT;G.exports.LUA_ERRERR=Le.thread_status.LUA_ERRERR;G.exports.LUA_ERRGCMM=Le.thread_status.LUA_ERRGCMM;G.exports.LUA_ERRMEM=Le.thread_status.LUA_ERRMEM;G.exports.LUA_ERRRUN=Le.thread_status.LUA_ERRRUN;G.exports.LUA_ERRSYNTAX=Le.thread_status.LUA_ERRSYNTAX;G.exports.LUA_HOOKCALL=Le.LUA_HOOKCALL;G.exports.LUA_HOOKCOUNT=Le.LUA_HOOKCOUNT;G.exports.LUA_HOOKLINE=Le.LUA_HOOKLINE;G.exports.LUA_HOOKRET=Le.LUA_HOOKRET;G.exports.LUA_HOOKTAILCALL=Le.LUA_HOOKTAILCALL;G.exports.LUA_MASKCALL=Le.LUA_MASKCALL;G.exports.LUA_MASKCOUNT=Le.LUA_MASKCOUNT;G.exports.LUA_MASKLINE=Le.LUA_MASKLINE;G.exports.LUA_MASKRET=Le.LUA_MASKRET;G.exports.LUA_MINSTACK=Le.LUA_MINSTACK;G.exports.LUA_MULTRET=Le.LUA_MULTRET;G.exports.LUA_NUMTAGS=Le.constant_types.LUA_NUMTAGS;G.exports.LUA_OK=Le.thread_status.LUA_OK;G.exports.LUA_OPADD=Le.LUA_OPADD;G.exports.LUA_OPBAND=Le.LUA_OPBAND;G.exports.LUA_OPBNOT=Le.LUA_OPBNOT;G.exports.LUA_OPBOR=Le.LUA_OPBOR;G.exports.LUA_OPBXOR=Le.LUA_OPBXOR;G.exports.LUA_OPDIV=Le.LUA_OPDIV;G.exports.LUA_OPEQ=Le.LUA_OPEQ;G.exports.LUA_OPIDIV=Le.LUA_OPIDIV;G.exports.LUA_OPLE=Le.LUA_OPLE;G.exports.LUA_OPLT=Le.LUA_OPLT;G.exports.LUA_OPMOD=Le.LUA_OPMOD;G.exports.LUA_OPMUL=Le.LUA_OPMUL;G.exports.LUA_OPPOW=Le.LUA_OPPOW;G.exports.LUA_OPSHL=Le.LUA_OPSHL;G.exports.LUA_OPSHR=Le.LUA_OPSHR;G.exports.LUA_OPSUB=Le.LUA_OPSUB;G.exports.LUA_OPUNM=Le.LUA_OPUNM;G.exports.LUA_REGISTRYINDEX=Le.LUA_REGISTRYINDEX;G.exports.LUA_RELEASE=Le.LUA_RELEASE;G.exports.LUA_RIDX_GLOBALS=Le.LUA_RIDX_GLOBALS;G.exports.LUA_RIDX_LAST=Le.LUA_RIDX_LAST;G.exports.LUA_RIDX_MAINTHREAD=Le.LUA_RIDX_MAINTHREAD;G.exports.LUA_SIGNATURE=Le.LUA_SIGNATURE;G.exports.LUA_TNONE=Le.constant_types.LUA_TNONE;G.exports.LUA_TNIL=Le.constant_types.LUA_TNIL;G.exports.LUA_TBOOLEAN=Le.constant_types.LUA_TBOOLEAN;G.exports.LUA_TLIGHTUSERDATA=Le.constant_types.LUA_TLIGHTUSERDATA;G.exports.LUA_TNUMBER=Le.constant_types.LUA_TNUMBER;G.exports.LUA_TSTRING=Le.constant_types.LUA_TSTRING;G.exports.LUA_TTABLE=Le.constant_types.LUA_TTABLE;G.exports.LUA_TFUNCTION=Le.constant_types.LUA_TFUNCTION;G.exports.LUA_TUSERDATA=Le.constant_types.LUA_TUSERDATA;G.exports.LUA_TTHREAD=Le.constant_types.LUA_TTHREAD;G.exports.LUA_VERSION=Le.LUA_VERSION;G.exports.LUA_VERSION_MAJOR=Le.LUA_VERSION_MAJOR;G.exports.LUA_VERSION_MINOR=Le.LUA_VERSION_MINOR;G.exports.LUA_VERSION_NUM=Le.LUA_VERSION_NUM;G.exports.LUA_VERSION_RELEASE=Le.LUA_VERSION_RELEASE;G.exports.LUA_YIELD=Le.thread_status.LUA_YIELD;G.exports.lua_Debug=Le.lua_Debug;G.exports.lua_upvalueindex=Le.lua_upvalueindex;G.exports.lua_absindex=Ie.lua_absindex;G.exports.lua_arith=Ie.lua_arith;G.exports.lua_atpanic=Ie.lua_atpanic;G.exports.lua_atnativeerror=Ie.lua_atnativeerror;G.exports.lua_call=Ie.lua_call;G.exports.lua_callk=Ie.lua_callk;G.exports.lua_checkstack=Ie.lua_checkstack;G.exports.lua_close=jw.lua_close;G.exports.lua_compare=Ie.lua_compare;G.exports.lua_concat=Ie.lua_concat;G.exports.lua_copy=Ie.lua_copy;G.exports.lua_createtable=Ie.lua_createtable;G.exports.lua_dump=Ie.lua_dump;G.exports.lua_error=Ie.lua_error;G.exports.lua_gc=Ie.lua_gc;G.exports.lua_getallocf=Ie.lua_getallocf;G.exports.lua_getextraspace=Ie.lua_getextraspace;G.exports.lua_getfield=Ie.lua_getfield;G.exports.lua_getglobal=Ie.lua_getglobal;G.exports.lua_gethook=Uo.lua_gethook;G.exports.lua_gethookcount=Uo.lua_gethookcount;G.exports.lua_gethookmask=Uo.lua_gethookmask;G.exports.lua_geti=Ie.lua_geti;G.exports.lua_getinfo=Uo.lua_getinfo;G.exports.lua_getlocal=Uo.lua_getlocal;G.exports.lua_getmetatable=Ie.lua_getmetatable;G.exports.lua_getstack=Uo.lua_getstack;G.exports.lua_gettable=Ie.lua_gettable;G.exports.lua_gettop=Ie.lua_gettop;G.exports.lua_getupvalue=Ie.lua_getupvalue;G.exports.lua_getuservalue=Ie.lua_getuservalue;G.exports.lua_insert=Ie.lua_insert;G.exports.lua_isboolean=Ie.lua_isboolean;G.exports.lua_iscfunction=Ie.lua_iscfunction;G.exports.lua_isfunction=Ie.lua_isfunction;G.exports.lua_isinteger=Ie.lua_isinteger;G.exports.lua_islightuserdata=Ie.lua_islightuserdata;G.exports.lua_isnil=Ie.lua_isnil;G.exports.lua_isnone=Ie.lua_isnone;G.exports.lua_isnoneornil=Ie.lua_isnoneornil;G.exports.lua_isnumber=Ie.lua_isnumber;G.exports.lua_isproxy=Ie.lua_isproxy;G.exports.lua_isstring=Ie.lua_isstring;G.exports.lua_istable=Ie.lua_istable;G.exports.lua_isthread=Ie.lua_isthread;G.exports.lua_isuserdata=Ie.lua_isuserdata;G.exports.lua_isyieldable=Lh.lua_isyieldable;G.exports.lua_len=Ie.lua_len;G.exports.lua_load=Ie.lua_load;G.exports.lua_newstate=jw.lua_newstate;G.exports.lua_newtable=Ie.lua_newtable;G.exports.lua_newthread=jw.lua_newthread;G.exports.lua_newuserdata=Ie.lua_newuserdata;G.exports.lua_next=Ie.lua_next;G.exports.lua_pcall=Ie.lua_pcall;G.exports.lua_pcallk=Ie.lua_pcallk;G.exports.lua_pop=Ie.lua_pop;G.exports.lua_pushboolean=Ie.lua_pushboolean;G.exports.lua_pushcclosure=Ie.lua_pushcclosure;G.exports.lua_pushcfunction=Ie.lua_pushcfunction;G.exports.lua_pushfstring=Ie.lua_pushfstring;G.exports.lua_pushglobaltable=Ie.lua_pushglobaltable;G.exports.lua_pushinteger=Ie.lua_pushinteger;G.exports.lua_pushjsclosure=Ie.lua_pushjsclosure;G.exports.lua_pushjsfunction=Ie.lua_pushjsfunction;G.exports.lua_pushlightuserdata=Ie.lua_pushlightuserdata;G.exports.lua_pushliteral=Ie.lua_pushliteral;G.exports.lua_pushlstring=Ie.lua_pushlstring;G.exports.lua_pushnil=Ie.lua_pushnil;G.exports.lua_pushnumber=Ie.lua_pushnumber;G.exports.lua_pushstring=Ie.lua_pushstring;G.exports.lua_pushthread=Ie.lua_pushthread;G.exports.lua_pushvalue=Ie.lua_pushvalue;G.exports.lua_pushvfstring=Ie.lua_pushvfstring;G.exports.lua_rawequal=Ie.lua_rawequal;G.exports.lua_rawget=Ie.lua_rawget;G.exports.lua_rawgeti=Ie.lua_rawgeti;G.exports.lua_rawgetp=Ie.lua_rawgetp;G.exports.lua_rawlen=Ie.lua_rawlen;G.exports.lua_rawset=Ie.lua_rawset;G.exports.lua_rawseti=Ie.lua_rawseti;G.exports.lua_rawsetp=Ie.lua_rawsetp;G.exports.lua_register=Ie.lua_register;G.exports.lua_remove=Ie.lua_remove;G.exports.lua_replace=Ie.lua_replace;G.exports.lua_resume=Lh.lua_resume;G.exports.lua_rotate=Ie.lua_rotate;G.exports.lua_setallof=Lh.lua_setallof;G.exports.lua_setfield=Ie.lua_setfield;G.exports.lua_setglobal=Ie.lua_setglobal;G.exports.lua_sethook=Uo.lua_sethook;G.exports.lua_seti=Ie.lua_seti;G.exports.lua_setlocal=Uo.lua_setlocal;G.exports.lua_setmetatable=Ie.lua_setmetatable;G.exports.lua_settable=Ie.lua_settable;G.exports.lua_settop=Ie.lua_settop;G.exports.lua_setupvalue=Ie.lua_setupvalue;G.exports.lua_setuservalue=Ie.lua_setuservalue;G.exports.lua_status=Ie.lua_status;G.exports.lua_stringtonumber=Ie.lua_stringtonumber;G.exports.lua_toboolean=Ie.lua_toboolean;G.exports.lua_todataview=Ie.lua_todataview;G.exports.lua_tointeger=Ie.lua_tointeger;G.exports.lua_tointegerx=Ie.lua_tointegerx;G.exports.lua_tojsstring=Ie.lua_tojsstring;G.exports.lua_tolstring=Ie.lua_tolstring;G.exports.lua_tonumber=Ie.lua_tonumber;G.exports.lua_tonumberx=Ie.lua_tonumberx;G.exports.lua_topointer=Ie.lua_topointer;G.exports.lua_toproxy=Ie.lua_toproxy;G.exports.lua_tostring=Ie.lua_tostring;G.exports.lua_tothread=Ie.lua_tothread;G.exports.lua_touserdata=Ie.lua_touserdata;G.exports.lua_type=Ie.lua_type;G.exports.lua_typename=Ie.lua_typename;G.exports.lua_upvalueid=Ie.lua_upvalueid;G.exports.lua_upvaluejoin=Ie.lua_upvaluejoin;G.exports.lua_version=Ie.lua_version;G.exports.lua_xmove=Ie.lua_xmove;G.exports.lua_yield=Lh.lua_yield;G.exports.lua_yieldk=Lh.lua_yieldk;G.exports.lua_tocfunction=Ie.lua_tocfunction});var yi=I((pHe,Pe)=>{"use strict";b();var{LUAL_BUFFERSIZE:Xpe}=Vn(),{LUA_ERRERR:$pe,LUA_MULTRET:U9,LUA_REGISTRYINDEX:yy,LUA_SIGNATURE:Ype,LUA_TBOOLEAN:Zpe,LUA_TLIGHTUSERDATA:Jpe,LUA_TNIL:oc,LUA_TNONE:Qpe,LUA_TNUMBER:Xw,LUA_TSTRING:Kh,LUA_TTABLE:eme,LUA_VERSION_NUM:tme,lua_Debug:gy,lua_absindex:_y,lua_atpanic:rme,lua_call:D9,lua_checkstack:nme,lua_concat:hy,lua_copy:ime,lua_createtable:$w,lua_error:sme,lua_getfield:vy,lua_getinfo:by,lua_getmetatable:P9,lua_getstack:Hh,lua_gettop:Gh,lua_insert:ame,lua_isinteger:ome,lua_isnil:lme,lua_isnumber:fme,lua_isstring:ume,lua_istable:cme,lua_len:hme,lua_load:F9,lua_newstate:dme,lua_newtable:pme,lua_next:mme,lua_pcall:q9,lua_pop:mi,lua_pushboolean:L9,lua_pushcclosure:yme,lua_pushcfunction:gme,lua_pushfstring:Zn,lua_pushinteger:dy,lua_pushliteral:Ei,lua_pushlstring:_me,lua_pushnil:Yw,lua_pushstring:lc,lua_pushvalue:Zl,lua_pushvfstring:vme,lua_rawequal:G9,lua_rawget:bme,lua_rawgeti:Vw,lua_rawlen:xme,lua_rawseti:py,lua_remove:Do,lua_setfield:zh,lua_setglobal:wme,lua_setmetatable:kme,lua_settop:K9,lua_toboolean:H9,lua_tointeger:z9,lua_tointegerx:j9,lua_tojsstring:Mme,lua_tolstring:V9,lua_tonumber:Ame,lua_tonumberx:Eme,lua_topointer:Sme,lua_tostring:Ta,lua_touserdata:Tme,lua_type:Po,lua_typename:W9,lua_version:O9}=Pn(),{from_userstring:Zw,luastring_eq:X9,to_luastring:$e,to_uristring:Rme}=ai(),$9=$pe+1,Jw=$e("_LOADED"),Ome=$e("_PRELOAD"),Ime=$e("FILE*"),Y9=72,Qw=$e("__name"),Nme=$e("__tostring"),e2=new Uint8Array(0),my=class{constructor(){this.L=null,this.b=e2,this.n=0}},I9=10,N9=11,Z9=function(e,t,r){if(r===0||!cme(e,-1))return 0;for(Yw(e);mme(e,-2);){if(Po(e,-2)===Kh){if(G9(e,t,-1))return mi(e,1),1;if(Z9(e,t,r-1))return Do(e,-2),Ei(e,"."),ame(e,-2),hy(e,3),1}mi(e,1)}return 0},J9=function(e,t){let r=Gh(e);if(by(e,$e("f"),t),vy(e,yy,Jw),Z9(e,r+1,2)){let n=Ta(e,-1);return n[0]===95&&n[1]===71&&n[2]===46&&(lc(e,n.subarray(3)),Do(e,-2)),ime(e,-1,r+1),mi(e,2),1}else return K9(e,r),0},Bme=function(e,t){J9(e,t)?(Zn(e,$e("function '%s'"),Ta(e,-1)),Do(e,-2)):t.namewhat.length!==0?Zn(e,$e("%s '%s'"),t.namewhat,t.name):t.what&&t.what[0]===109?Ei(e,"main chunk"):t.what&&t.what[0]===76?Zn(e,$e("function <%s:%d>"),t.short_src,t.linedefined):Ei(e,"?")},Cme=function(e){let t=new gy,r=1,n=1;for(;Hh(e,n,t);)r=n,n*=2;for(;r<n;){let i=Math.floor((r+n)/2);Hh(e,i,t)?r=i+1:n=i}return n-1},Ume=function(e,t,r,n){let i=new gy,o=Gh(e),h=Cme(t),g=h-n>I9+N9?I9:-1;for(r&&Zn(e,$e(`%s
159
+ `),r),o2(e,10,null),Ei(e,"stack traceback:");Hh(t,n++,i);)g--===0?(Ei(e,`
160
+ ...`),n=h-N9+1):(by(t,$e("Slnt",!0),i),Zn(e,$e(`
161
+ %s:`),i.short_src),i.currentline>0&&Ei(e,`${i.currentline}:`),Ei(e," in "),Bme(e,i),i.istailcall&&Ei(e,`
162
+ (...tail calls..)`),hy(e,Gh(e)-o));hy(e,Gh(e)-o)},Dme=function(e){let t="PANIC: unprotected error in call to Lua API ("+Mme(e,-1)+")";throw new Error(t)},fc=function(e,t,r){let n=new gy;return Hh(e,0,n)?(by(e,$e("n"),n),X9(n.namewhat,$e("method"))&&(t--,t===0)?Yi(e,$e("calling '%s' on bad self (%s)"),n.name,r):(n.name===null&&(n.name=J9(e,n)?Ta(e,-1):$e("?")),Yi(e,$e("bad argument #%d to '%s' (%s)"),t,n.name,r))):Yi(e,$e("bad argument #%d (%s)"),t,r)},Q9=function(e,t,r){let n;My(e,t,Qw)===Kh?n=Ta(e,-1):Po(e,t)===Jpe?n=$e("light userdata",!0):n=t2(e,t);let i=Zn(e,$e("%s expected, got %s"),r,n);return fc(e,t,i)},eI=function(e,t){let r=new gy;if(Hh(e,t,r)&&(by(e,$e("Sl",!0),r),r.currentline>0)){Zn(e,$e("%s:%d: "),r.short_src,r.currentline);return}lc(e,$e(""))},Yi=function(e,t,...r){return eI(e,1),vme(e,t,r),hy(e,2),sme(e)},tI=function(e,t,r,n){if(t)return L9(e,1),1;{Yw(e);let i,o;return n?(i=n.message,o=-n.errno):(i="Success",o=0),r?Zn(e,$e("%s: %s"),r,$e(i)):lc(e,$e(i)),dy(e,o),3}},Pme=function(e,t){let r,n;if(t===null)return L9(e,1),Ei(e,"exit"),dy(e,0),3;if(t.status)r="exit",n=t.status;else if(t.signal)r="signal",n=t.signal;else return tI(e,0,null,t);return Yw(e),Ei(e,r),dy(e,n),3},xy=function(e,t){return vy(e,yy,t)},Fme=function(e,t){return xy(e,t)!==oc?0:(mi(e,1),$w(e,0,2),lc(e,t),zh(e,-2,Qw),Zl(e,-1),zh(e,yy,t),1)},qme=function(e,t){xy(e,t),kme(e,-2)},rI=function(e,t,r){let n=Tme(e,t);return n!==null&&P9(e,t)?(xy(e,r),G9(e,-1,-2)||(n=null),mi(e,2),n):null},Lme=function(e,t,r){let n=rI(e,t,r);return n===null&&Q9(e,t,r),n},Gme=function(e,t,r,n){let i=r!==null?sI(e,t,r):nI(e,t);for(let o=0;n[o];o++)if(X9(n[o],i))return o;return fc(e,t,Zn(e,$e("invalid option '%s'"),i))},wy=function(e,t,r){Q9(e,t,W9(e,r))},Kme=function(){let e=dme();return e&&rme(e,Dme),e},t2=function(e,t){return W9(e,Po(e,t))},Hme=function(e,t,r,n){t||fc(e,r,n)},zme=function(e,t){Po(e,t)===Qpe&&fc(e,t,$e("value expected",!0))},jme=function(e,t,r){Po(e,t)!==r&&wy(e,t,r)},r2=function(e,t){let r=V9(e,t);return r==null&&wy(e,t,Kh),r},nI=r2,iI=function(e,t,r){return Po(e,t)<=0?r===null?null:Zw(r):r2(e,t)},sI=iI,Vme=function(e,t){fme(e,t)?fc(e,t,$e("number has no integer representation",!0)):wy(e,t,Xw)},aI=function(e,t){let r=Eme(e,t);return r===!1&&wy(e,t,Xw),r},Wme=function(e,t,r){return a2(e,aI,t,r)},oI=function(e,t){let r=j9(e,t);return r===!1&&Vme(e,t),r},Xme=function(e,t,r){return a2(e,oI,t,r)},Vh=function(e,t){let r=e.n+t;if(e.b.length<r){let n=Math.max(e.b.length*2,r),i=new Uint8Array(n);i.set(e.b),e.b=i}return e.b.subarray(e.n,r)},n2=function(e,t){t.L=e,t.b=e2},$me=function(e,t,r){return n2(e,t),Vh(t,r)},Yme=function(e){return Vh(e,Xpe)},ky=function(e,t,r){r>0&&(t=Zw(t),Vh(e,r).set(t.subarray(0,r)),s2(e,r))},Ww=function(e,t){t=Zw(t),ky(e,t,t.length)},i2=function(e){_me(e.L,e.b,e.n),e.n=0,e.b=e2},Zme=function(e,t){Vh(e,1),e.b[e.n++]=t},s2=function(e,t){e.n+=t},Jme=function(e,t){s2(e,t),i2(e)},Qme=function(e){let t=e.L,r=Ta(t,-1);ky(e,r,r.length),mi(t,1)},a2=function(e,t,r,n){return Po(e,r)<=0?n:t(e,r)},eye=function(e,t){let r=t.string;return t.string=null,r},lI=function(e,t,r,n,i){return F9(e,eye,{string:t},n,i)},fI=function(e,t,r,n){return lI(e,t,r,n,null)},uI=function(e,t){return fI(e,t,t.length,t)},tye=function(e,t){return uI(e,t)||q9(e,0,U9,0)},My=function(e,t,r){if(P9(e,t)){lc(e,r);let n=bme(e,-2);return n===oc?mi(e,2):Do(e,-2),n}else return oc},cI=function(e,t,r){return t=_y(e,t),My(e,t,r)===oc?!1:(Zl(e,t),D9(e,1,1),!0)},rye=function(e,t){hme(e,t);let r=j9(e,-1);return r===!1&&Yi(e,$e("object length is not an integer",!0)),mi(e,1),r},nye=$e("%I"),iye=$e("%f"),sye=function(e,t){if(cI(e,t,Nme))ume(e,-1)||Yi(e,$e("'__tostring' must return a string"));else switch(Po(e,t)){case Xw:{ome(e,t)?Zn(e,nye,z9(e,t)):Zn(e,iye,Ame(e,t));break}case Kh:Zl(e,t);break;case Zpe:Ei(e,H9(e,t)?"true":"false");break;case oc:Ei(e,"nil");break;default:{let n=My(e,t,Qw),i=n===Kh?Ta(e,-1):t2(e,t);Zn(e,$e("%s: %p"),i,Sme(e,t)),n!==oc&&Do(e,-2);break}}return V9(e,-1)},aye=function(e,t,r,n){hI(e,yy,Jw),vy(e,-1,t),H9(e,-1)||(mi(e,1),gme(e,r),lc(e,t),D9(e,1,1),Zl(e,-1),zh(e,-3,t)),Do(e,-2),n&&(Zl(e,-1),wme(e,t))},oye=function(e,t,r){var n=r>>>0,i=t.length,o=e.length+1-i;e:for(;n<o;n++){for(let h=0;h<i;h++)if(e[n+h]!==t[h])continue e;return n}return-1},lye=function(e,t,r,n){let i,o=new my;for(n2(e,o);(i=oye(t,r))>=0;)ky(o,t,i),Ww(o,n),t=t.subarray(i+r.length);return Ww(o,t),i2(o),Ta(e,-1)},hI=function(e,t,r){return vy(e,t,r)===eme?!0:(mi(e,1),t=_y(e,t),pme(e),Zl(e,-1),zh(e,t,r),!1)},dI=function(e,t,r){o2(e,r,$e("too many upvalues",!0));for(let n in t){for(let i=0;i<r;i++)Zl(e,-r);yme(e,t[n],r),zh(e,-(r+2),$e(n))}mi(e,r)},o2=function(e,t,r){nme(e,t)||(r?Yi(e,$e("stack overflow (%s)"),r):Yi(e,$e("stack overflow",!0)))},fye=function(e){$w(e)},uye=function(e,t){$w(e),dI(e,t,0)},cye=-2,pI=-1,hye=function(e,t){let r;return lme(e,-1)?(mi(e,1),pI):(t=_y(e,t),Vw(e,t,0),r=z9(e,-1),mi(e,1),r!==0?(Vw(e,t,r),py(e,t,0)):r=xme(e,t)+1,py(e,t,r),r)},dye=function(e,t,r){r>=0&&(t=_y(e,t),Vw(e,t,0),py(e,t,r),dy(e,r),py(e,t,0))},B9=function(e,t,r,n){let i=n.message,o=Ta(e,r).subarray(1);return Zn(e,$e("cannot %s %s: %s"),$e(t),o,$e(i)),Do(e,r),$9},jh,C9=[239,187,191],pye=function(e){e.n=0;let t,r=0;do{if(t=jh(e),t===null||t!==C9[r])return t;r++,e.buff[e.n++]=t}while(r<C9.length);return e.n=0,jh(e)},mye=function(e){let t=pye(e);if(t===35){do t=jh(e);while(t&&t!==10);return{skipped:!0,c:jh(e)}}else return{skipped:!1,c:t}},l2;{class e{constructor(){this.n=NaN,this.f=null,this.buff=new Uint8Array(1024),this.pos=0,this.err=void 0}}let t=function(r,n){let i=n;if(i.f!==null&&i.n>0){let h=i.n;return i.n=0,i.f=i.f.subarray(i.pos),i.buff.subarray(0,h)}let o=i.f;return i.f=null,o};jh=function(r){return r.pos<r.f.length?r.f[r.pos++]:null},l2=function(r,n,i){let o=new e,h=Gh(r)+1;if(n===null)throw new Error("Can't read stdin in the browser");{Zn(r,$e("@%s"),n);let k=Rme(n),A=new XMLHttpRequest;if(A.open("GET",k,!1),typeof window>"u"&&(A.responseType="arraybuffer"),A.send(),A.status>=200&&A.status<=299)typeof A.response=="string"?o.f=$e(A.response):o.f=new Uint8Array(A.response);else return o.err=A.status,B9(r,"open",h,{message:`${A.status}: ${A.statusText}`})}let g=mye(o);g.c===Ype[0]&&n||g.skipped&&(o.buff[o.n++]=10),g.c!==null&&(o.buff[o.n++]=g.c);let v=F9(r,t,o,Ta(r,-1),i),w=o.err;return w?(K9(r,h),B9(r,"read",h,w)):(Do(r,h),v)}}var mI=function(e,t){return l2(e,t,null)},yye=function(e,t){return mI(e,t)||q9(e,0,U9,0)},gye=function(){for(let e=0;e<arguments.length;e++){let t=arguments[e];do{let r=/([^\n]*)\n?([\d\D]*)/.exec(t);console.error(r[1]),t=r[2]}while(t!=="")}},yI=function(e,t,r){let n=O9(e);r!=Y9&&Yi(e,$e("core and library have incompatible numeric types")),n!=O9(null)?Yi(e,$e("multiple Lua VMs detected")):n!==t&&Yi(e,$e("version mismatch: app. needs %f, Lua core provides %f"),t,n)},_ye=function(e){yI(e,tme,Y9)};Pe.exports.LUA_ERRFILE=$9;Pe.exports.LUA_FILEHANDLE=Ime;Pe.exports.LUA_LOADED_TABLE=Jw;Pe.exports.LUA_NOREF=cye;Pe.exports.LUA_PRELOAD_TABLE=Ome;Pe.exports.LUA_REFNIL=pI;Pe.exports.luaL_Buffer=my;Pe.exports.luaL_addchar=Zme;Pe.exports.luaL_addlstring=ky;Pe.exports.luaL_addsize=s2;Pe.exports.luaL_addstring=Ww;Pe.exports.luaL_addvalue=Qme;Pe.exports.luaL_argcheck=Hme;Pe.exports.luaL_argerror=fc;Pe.exports.luaL_buffinit=n2;Pe.exports.luaL_buffinitsize=$me;Pe.exports.luaL_callmeta=cI;Pe.exports.luaL_checkany=zme;Pe.exports.luaL_checkinteger=oI;Pe.exports.luaL_checklstring=r2;Pe.exports.luaL_checknumber=aI;Pe.exports.luaL_checkoption=Gme;Pe.exports.luaL_checkstack=o2;Pe.exports.luaL_checkstring=nI;Pe.exports.luaL_checktype=jme;Pe.exports.luaL_checkudata=Lme;Pe.exports.luaL_checkversion=_ye;Pe.exports.luaL_checkversion_=yI;Pe.exports.luaL_dofile=yye;Pe.exports.luaL_dostring=tye;Pe.exports.luaL_error=Yi;Pe.exports.luaL_execresult=Pme;Pe.exports.luaL_fileresult=tI;Pe.exports.luaL_getmetafield=My;Pe.exports.luaL_getmetatable=xy;Pe.exports.luaL_getsubtable=hI;Pe.exports.luaL_gsub=lye;Pe.exports.luaL_len=rye;Pe.exports.luaL_loadbuffer=fI;Pe.exports.luaL_loadbufferx=lI;Pe.exports.luaL_loadfile=mI;Pe.exports.luaL_loadfilex=l2;Pe.exports.luaL_loadstring=uI;Pe.exports.luaL_newlib=uye;Pe.exports.luaL_newlibtable=fye;Pe.exports.luaL_newmetatable=Fme;Pe.exports.luaL_newstate=Kme;Pe.exports.luaL_opt=a2;Pe.exports.luaL_optinteger=Xme;Pe.exports.luaL_optlstring=iI;Pe.exports.luaL_optnumber=Wme;Pe.exports.luaL_optstring=sI;Pe.exports.luaL_prepbuffer=Yme;Pe.exports.luaL_prepbuffsize=Vh;Pe.exports.luaL_pushresult=i2;Pe.exports.luaL_pushresultsize=Jme;Pe.exports.luaL_ref=hye;Pe.exports.luaL_requiref=aye;Pe.exports.luaL_setfuncs=dI;Pe.exports.luaL_setmetatable=qme;Pe.exports.luaL_testudata=rI;Pe.exports.luaL_tolstring=sye;Pe.exports.luaL_traceback=Ume;Pe.exports.luaL_typename=t2;Pe.exports.luaL_unref=dye;Pe.exports.luaL_where=eI;Pe.exports.lua_writestringerror=gye});var g2=I((yHe,II)=>{"use strict";b();var{LUA_MULTRET:c2,LUA_OK:h2,LUA_TFUNCTION:vI,LUA_TNIL:Ay,LUA_TNONE:vye,LUA_TNUMBER:bye,LUA_TSTRING:Ty,LUA_TTABLE:cc,LUA_VERSION:xye,LUA_YIELD:wye,lua_call:d2,lua_callk:kye,lua_concat:Mye,lua_error:bI,lua_getglobal:Aye,lua_geti:Eye,lua_getmetatable:Sye,lua_gettop:Ql,lua_insert:xI,lua_isnil:Tye,lua_isnone:wI,lua_isstring:Rye,lua_load:Oye,lua_next:Iye,lua_pcallk:kI,lua_pop:p2,lua_pushboolean:Ry,lua_pushcfunction:MI,lua_pushglobaltable:Nye,lua_pushinteger:hc,lua_pushliteral:AI,lua_pushnil:Xh,lua_pushstring:Bye,lua_pushvalue:Zi,lua_rawequal:Cye,lua_rawget:Uye,lua_rawlen:Dye,lua_rawset:Pye,lua_remove:Fye,lua_replace:qye,lua_rotate:Lye,lua_setfield:gI,lua_setmetatable:Gye,lua_settop:Ra,lua_setupvalue:Kye,lua_stringtonumber:Hye,lua_toboolean:zye,lua_tolstring:jye,lua_tostring:Wh,lua_type:Jl,lua_typename:Vye}=Pn(),{luaL_argcheck:$h,luaL_checkany:Ti,luaL_checkinteger:m2,luaL_checkoption:Wye,luaL_checkstack:Xye,luaL_checktype:ef,luaL_error:Oy,luaL_getmetafield:y2,luaL_loadbufferx:$ye,luaL_loadfile:Yye,luaL_loadfilex:Zye,luaL_optinteger:EI,luaL_optstring:uc,luaL_setfuncs:Jye,luaL_tolstring:Qye,luaL_where:e1e}=yi(),{to_jsstring:SI,to_luastring:Si}=ai(),Ey,f2;if(typeof TextDecoder=="function"){let e="",t=new TextDecoder("utf-8");Ey=function(n){e+=t.decode(n,{stream:!0})};let r=new Uint8Array(0);f2=function(){e+=t.decode(r),console.log(e),e=""}}else{let e=[];Ey=function(t){try{t=SI(t)}catch{let n=new Uint8Array(t.length);n.set(t),t=n}e.push(t)},f2=function(){console.log.apply(console.log,e),e=[]}}var t1e=function(e){let t=Ql(e);Aye(e,Si("tostring",!0));for(let r=1;r<=t;r++){Zi(e,-1),Zi(e,r),d2(e,1,1);let n=jye(e,-1);if(n===null)return Oy(e,Si("'tostring' must return a string to 'print'"));r>1&&Ey(Si(" ")),Ey(n),p2(e,1)}return f2(),0},r1e=function(e){return Ti(e,1),Qye(e,1),1},n1e=function(e){return Ti(e,1),Sye(e,1)?(y2(e,1,Si("__metatable",!0)),1):(Xh(e),1)},i1e=function(e){let t=Jl(e,2);return ef(e,1,cc),$h(e,t===Ay||t===cc,2,"nil or table expected"),y2(e,1,Si("__metatable",!0))!==Ay?Oy(e,Si("cannot change a protected metatable")):(Ra(e,2),Gye(e,1),1)},s1e=function(e){return Ti(e,1),Ti(e,2),Ry(e,Cye(e,1,2)),1},a1e=function(e){let t=Jl(e,1);return $h(e,t===cc||t===Ty,1,"table or string expected"),hc(e,Dye(e,1)),1},o1e=function(e){return ef(e,1,cc),Ti(e,2),Ra(e,2),Uye(e,1),1},l1e=function(e){return ef(e,1,cc),Ti(e,2),Ti(e,3),Ra(e,3),Pye(e,1),1},f1e=["stop","restart","collect","count","step","setpause","setstepmul","isrunning"].map(e=>Si(e)),u1e=function(e){Wye(e,1,"collect",f1e),EI(e,2,0),Oy(e,Si("lua_gc not implemented"))},c1e=function(e){let t=Jl(e,1);return $h(e,t!==vye,1,"value expected"),Bye(e,Vye(e,t)),1},h1e=function(e,t,r,n){return Ti(e,1),y2(e,1,t)===Ay?(MI(e,n),Zi(e,1),r?hc(e,0):Xh(e)):(Zi(e,1),d2(e,1,3)),3},TI=function(e){return ef(e,1,cc),Ra(e,2),Iye(e,1)?2:(Xh(e),1)},d1e=function(e){return h1e(e,Si("__pairs",!0),0,TI)},p1e=function(e){let t=m2(e,2)+1;return hc(e,t),Eye(e,1,t)===Ay?1:2},m1e=function(e){return Ti(e,1),MI(e,p1e),Zi(e,1),hc(e,0),3},y1e=function(e,t){try{e=SI(e)}catch{return null}let r=/^[\t\v\f \n\r]*([+-]?)0*([0-9A-Za-z]+)[\t\v\f \n\r]*$/.exec(e);if(!r)return null;let n=parseInt(r[1]+r[2],t);return isNaN(n)?null:n|0},g1e=function(e){if(Jl(e,2)<=0){if(Ti(e,1),Jl(e,1)===bye)return Ra(e,1),1;{let t=Wh(e,1);if(t!==null&&Hye(e,t)===t.length+1)return 1}}else{let t=m2(e,2);ef(e,1,Ty);let r=Wh(e,1);$h(e,2<=t&&t<=36,2,"base out of range");let n=y1e(r,t);if(n!==null)return hc(e,n),1}return Xh(e),1},RI=function(e){let t=EI(e,2,1);return Ra(e,1),Jl(e,1)===Ty&&t>0&&(e1e(e,t),Zi(e,1),Mye(e,2)),bI(e)},_1e=function(e){return zye(e,1)?Ql(e):(Ti(e,1),Fye(e,1),AI(e,"assertion failed!"),Ra(e,1),RI(e))},v1e=function(e){let t=Ql(e);if(Jl(e,1)===Ty&&Wh(e,1)[0]===35)return hc(e,t-1),1;{let r=m2(e,1);return r<0?r=t+r:r>t&&(r=t),$h(e,1<=r,1,"index out of range"),t-r}},Sy=function(e,t,r){return t!==h2&&t!==wye?(Ry(e,0),Zi(e,-2),2):Ql(e)-r},b1e=function(e){Ti(e,1),Ry(e,1),xI(e,1);let t=kI(e,Ql(e)-2,c2,0,0,Sy);return Sy(e,t,0)},x1e=function(e){let t=Ql(e);ef(e,2,vI),Ry(e,1),Zi(e,1),Lye(e,3,2);let r=kI(e,t-2,c2,2,2,Sy);return Sy(e,r,2)},OI=function(e,t,r){return t===h2?(r!==0&&(Zi(e,r),Kye(e,-2,1)||p2(e,1)),1):(Xh(e),xI(e,-2),2)},u2=5,w1e=function(e,t){return Xye(e,2,"too many nested functions"),Zi(e,1),d2(e,0,1),Tye(e,-1)?(p2(e,1),null):(Rye(e,-1)||Oy(e,Si("reader function must return a string")),qye(e,u2),Wh(e,u2))},k1e=function(e){let t=Wh(e,1),r=uc(e,3,"bt"),n=wI(e,4)?0:4,i;if(t!==null){let o=uc(e,2,t);i=$ye(e,t,t.length,o,r)}else{let o=uc(e,2,"=(load)");ef(e,1,vI),Ra(e,u2),i=Oye(e,w1e,null,o,r)}return OI(e,i,n)},M1e=function(e){let t=uc(e,1,null),r=uc(e,2,null),n=wI(e,3)?0:3,i=Zye(e,t,r);return OI(e,i,n)},_I=function(e,t,r){return Ql(e)-1},A1e=function(e){let t=uc(e,1,null);return Ra(e,1),Yye(e,t)!==h2?bI(e):(kye(e,0,c2,0,_I),_I(e,0,0))},E1e={assert:_1e,collectgarbage:u1e,dofile:A1e,error:RI,getmetatable:n1e,ipairs:m1e,load:k1e,loadfile:M1e,next:TI,pairs:d1e,pcall:b1e,print:t1e,rawequal:s1e,rawget:o1e,rawlen:a1e,rawset:l1e,select:v1e,setmetatable:i1e,tonumber:g1e,tostring:r1e,type:c1e,xpcall:x1e},S1e=function(e){return Nye(e),Jye(e,E1e,0),Zi(e,-1),gI(e,-2,Si("_G")),AI(e,xye),gI(e,-2,Si("_VERSION")),1};II.exports.luaopen_base=S1e});var b2=I((_He,qI)=>{"use strict";b();var{LUA_OK:_2,LUA_TFUNCTION:T1e,LUA_TSTRING:R1e,LUA_YIELD:BI,lua_Debug:O1e,lua_checkstack:NI,lua_concat:I1e,lua_error:N1e,lua_getstack:B1e,lua_gettop:dc,lua_insert:v2,lua_isyieldable:C1e,lua_newthread:U1e,lua_pop:D1e,lua_pushboolean:Ny,lua_pushcclosure:P1e,lua_pushliteral:Oa,lua_pushthread:F1e,lua_pushvalue:q1e,lua_resume:L1e,lua_status:CI,lua_tothread:UI,lua_type:G1e,lua_upvalueindex:K1e,lua_xmove:Iy,lua_yield:H1e}=Pn(),{luaL_argcheck:z1e,luaL_checktype:j1e,luaL_newlib:V1e,luaL_where:W1e}=yi(),DI=function(e){let t=UI(e,1);return z1e(e,t,1,"thread expected"),t},PI=function(e,t,r){if(!NI(t,r))return Oa(e,"too many arguments to resume"),-1;if(CI(t)===_2&&dc(t)===0)return Oa(e,"cannot resume dead coroutine"),-1;Iy(e,t,r);let n=L1e(t,e,r);if(n===_2||n===BI){let i=dc(t);return NI(e,i+1)?(Iy(t,e,i),i):(D1e(t,i),Oa(e,"too many results to resume"),-1)}else return Iy(t,e,1),-1},X1e=function(e){let t=DI(e),r=PI(e,t,dc(e)-1);return r<0?(Ny(e,0),v2(e,-2),2):(Ny(e,1),v2(e,-(r+1)),r+1)},$1e=function(e){let t=UI(e,K1e(1)),r=PI(e,t,dc(e));return r<0?(G1e(e,-1)===R1e&&(W1e(e,1),v2(e,-2),I1e(e,2)),N1e(e)):r},FI=function(e){j1e(e,1,T1e);let t=U1e(e);return q1e(e,1),Iy(e,t,1),1},Y1e=function(e){return FI(e),P1e(e,$1e,1),1},Z1e=function(e){return H1e(e,dc(e))},J1e=function(e){let t=DI(e);if(e===t)Oa(e,"running");else switch(CI(t)){case BI:Oa(e,"suspended");break;case _2:{let r=new O1e;B1e(t,0,r)>0?Oa(e,"normal"):dc(t)===0?Oa(e,"dead"):Oa(e,"suspended");break}default:Oa(e,"dead");break}return 1},Q1e=function(e){return Ny(e,C1e(e)),1},ege=function(e){return Ny(e,F1e(e)),2},tge={create:FI,isyieldable:Q1e,resume:X1e,running:ege,status:J1e,wrap:Y1e,yield:Z1e},rge=function(e){return V1e(e,tge),1};qI.exports.luaopen_coroutine=rge});var S2=I((bHe,XI)=>{"use strict";b();var{LUA_MAXINTEGER:w2}=Vn(),{LUA_OPEQ:nge,LUA_OPLT:ige,LUA_TFUNCTION:sge,LUA_TNIL:age,LUA_TTABLE:LI,lua_call:oge,lua_checkstack:lge,lua_compare:KI,lua_createtable:fge,lua_geti:gn,lua_getmetatable:uge,lua_gettop:HI,lua_insert:cge,lua_isnil:hge,lua_isnoneornil:zI,lua_isstring:dge,lua_pop:Fo,lua_pushinteger:pge,lua_pushnil:mge,lua_pushstring:yge,lua_pushvalue:Yh,lua_rawget:gge,lua_setfield:_ge,lua_seti:Ia,lua_settop:vge,lua_toboolean:bge,lua_type:xge}=Pn(),{luaL_Buffer:wge,luaL_addlstring:kge,luaL_addvalue:Mge,luaL_argcheck:Qh,luaL_buffinit:Age,luaL_checkinteger:Zh,luaL_checktype:jI,luaL_error:ed,luaL_len:VI,luaL_newlib:Ege,luaL_opt:Sge,luaL_optinteger:By,luaL_optlstring:Tge,luaL_pushresult:Rge,luaL_typename:Oge}=yi(),Ige=tf(),{to_luastring:qo}=ai(),Cy=1,A2=2,WI=4,E2=Cy|A2,x2=function(e,t,r){return yge(e,t),gge(e,-r)!==age},k2=function(e,t,r){if(xge(e,t)!==LI){let n=1;uge(e,t)&&(!(r&Cy)||x2(e,qo("__index",!0),++n))&&(!(r&A2)||x2(e,qo("__newindex",!0),++n))&&(!(r&WI)||x2(e,qo("__len",!0),++n))?Fo(e,n):jI(e,t,LI)}},Uy=function(e,t,r){return k2(e,t,r|WI),VI(e,t)},GI=function(e,t,r){gn(e,1,r),dge(e,-1)||ed(e,qo("invalid value (%s) at index %d in table for 'concat'"),Oge(e,-1),r),Mge(t)},Nge=function(e){let t=Uy(e,1,E2)+1,r;switch(HI(e)){case 2:r=t;break;case 3:{r=Zh(e,2),Qh(e,1<=r&&r<=t,2,"position out of bounds");for(let n=t;n>r;n--)gn(e,1,n-1),Ia(e,1,n);break}default:return ed(e,"wrong number of arguments to 'insert'")}return Ia(e,1,r),0},Bge=function(e){let t=Uy(e,1,E2),r=By(e,2,t);for(r!==t&&Qh(e,1<=r&&r<=t+1,1,"position out of bounds"),gn(e,1,r);r<t;r++)gn(e,1,r+1),Ia(e,1,r);return mge(e),Ia(e,1,r),1},Cge=function(e){let t=Zh(e,2),r=Zh(e,3),n=Zh(e,4),i=zI(e,5)?1:5;if(k2(e,1,Cy),k2(e,i,A2),r>=t){Qh(e,t>0||r<w2+t,3,"too many elements to move");let o=r-t+1;if(Qh(e,n<=w2-o+1,4,"destination wrap around"),n>r||n<=t||i!==1&&KI(e,1,i,nge)!==1)for(let h=0;h<o;h++)gn(e,1,t+h),Ia(e,i,n+h);else for(let h=o-1;h>=0;h--)gn(e,1,t+h),Ia(e,i,n+h)}return Yh(e,i),1},Uge=function(e){let t=Uy(e,1,Cy),r=Tge(e,2,""),n=r.length,i=By(e,3,1);t=By(e,4,t);let o=new wge;for(Age(e,o);i<t;i++)GI(e,o,i),kge(o,r,n);return i===t&&GI(e,o,i),Rge(o),1},Dge=function(e){let t=HI(e);fge(e,t,1),cge(e,1);for(let r=t;r>=1;r--)Ia(e,1,r);return pge(e,t),_ge(e,1,qo("n")),1},Pge=function(e){let t=By(e,2,1),r=Sge(e,Zh,3,VI(e,1));if(t>r)return 0;let n=r-t;if(n>=Number.MAX_SAFE_INTEGER||!lge(e,++n))return ed(e,qo("too many results to unpack"));for(;t<r;t++)gn(e,1,t);return gn(e,1,r),n},Fge=function(){return Math.floor(Math.random()*4294967296)},qge=100,pc=function(e,t,r){Ia(e,1,t),Ia(e,1,r)},Jh=function(e,t,r){if(hge(e,2))return KI(e,t,r,ige);{Yh(e,2),Yh(e,t-1),Yh(e,r-2),oge(e,2,1);let n=bge(e,-1);return Fo(e,1),n}},Lge=function(e,t,r){let n=t,i=r-1;for(;;){for(;gn(e,1,++n),Jh(e,-1,-2);)n==r-1&&ed(e,qo("invalid order function for sorting")),Fo(e,1);for(;gn(e,1,--i),Jh(e,-3,-1);)i<n&&ed(e,qo("invalid order function for sorting")),Fo(e,1);if(i<n)return Fo(e,1),pc(e,r-1,n),n;pc(e,n,i)}},Gge=function(e,t,r){let n=Math.floor((t-e)/4),i=r%(n*2)+(e+n);return Ige.lua_assert(e+n<=i&&i<=t-n),i},M2=function(e,t,r,n){for(;t<r;){if(gn(e,1,t),gn(e,1,r),Jh(e,-1,-2)?pc(e,t,r):Fo(e,2),r-t==1)return;let i;if(r-t<qge||n===0?i=Math.floor((t+r)/2):i=Gge(t,r,n),gn(e,1,i),gn(e,1,t),Jh(e,-2,-1)?pc(e,i,t):(Fo(e,1),gn(e,1,r),Jh(e,-1,-2)?pc(e,i,r):Fo(e,2)),r-t==2)return;gn(e,1,i),Yh(e,-1),gn(e,1,r-1),pc(e,i,r-1),i=Lge(e,t,r);let o;i-t<r-i?(M2(e,t,i-1,n),o=i-t,t=i+1):(M2(e,i+1,r,n),o=r-i,r=i-1),(r-t)/128>o&&(n=Fge())}},Kge=function(e){let t=Uy(e,1,E2);return t>1&&(Qh(e,t<w2,1,"array too big"),zI(e,2)||jI(e,2,sge),vge(e,2),M2(e,1,t,0)),0},Hge={concat:Uge,insert:Nge,move:Cge,pack:Dge,remove:Bge,sort:Kge,unpack:Pge},zge=function(e){return Ege(e,Hge),1};XI.exports.luaopen_table=zge});var O2=I((UHe,rN)=>{"use strict";b();var{LUA_TNIL:jge,LUA_TTABLE:Vge,lua_close:wHe,lua_createtable:Wge,lua_getfield:Xge,lua_isboolean:kHe,lua_isnoneornil:ZI,lua_pop:$ge,lua_pushboolean:MHe,lua_pushfstring:Yge,lua_pushinteger:JI,lua_pushliteral:AHe,lua_pushnil:EHe,lua_pushnumber:QI,lua_pushstring:SHe,lua_setfield:Zge,lua_settop:Jge,lua_toboolean:THe,lua_tointegerx:Qge}=Pn(),{luaL_Buffer:e_e,luaL_addchar:Na,luaL_addstring:gi,luaL_argerror:t_e,luaL_buffinit:r_e,luaL_checkinteger:n_e,luaL_checkstring:RHe,luaL_checktype:i_e,luaL_error:T2,luaL_execresult:OHe,luaL_fileresult:IHe,luaL_newlib:s_e,luaL_optinteger:NHe,luaL_optlstring:a_e,luaL_optstring:BHe,luaL_pushresult:o_e}=yi(),{luastring_eq:l_e,to_jsstring:CHe,to_luastring:xt}=ai(),f_e=xt("aAbBcCdDeFhHIjklmMnpPrRStTuUwWxXyYzZ%"),Lo=function(e,t,r){JI(e,r),Zge(e,-2,xt(t,!0))},eN=function(e,t,r){Lo(e,"sec",r?t.getUTCSeconds():t.getSeconds()),Lo(e,"min",r?t.getUTCMinutes():t.getMinutes()),Lo(e,"hour",r?t.getUTCHours():t.getHours()),Lo(e,"day",r?t.getUTCDate():t.getDate()),Lo(e,"month",(r?t.getUTCMonth():t.getMonth())+1),Lo(e,"year",r?t.getUTCFullYear():t.getFullYear()),Lo(e,"wday",(r?t.getUTCDay():t.getDay())+1),Lo(e,"yday",Math.floor((t-new Date(t.getFullYear(),0,0))/864e5))},$I=Number.MAX_SAFE_INTEGER/2,mc=function(e,t,r,n){let i=Xge(e,-1,xt(t,!0)),o=Qge(e,-1);if(o===!1){if(i!==jge)return T2(e,xt("field '%s' is not an integer"),t);if(r<0)return T2(e,xt("field '%s' missing in date table"),t);o=r}else{if(!(-$I<=o&&o<=$I))return T2(e,xt("field '%s' is out-of-bound"),t);o-=n}return $ge(e,1),o},kn={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map(e=>xt(e)),shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(e=>xt(e)),months:["January","February","March","April","May","June","July","August","September","October","November","December"].map(e=>xt(e)),shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"].map(e=>xt(e)),AM:xt("AM"),PM:xt("PM"),am:xt("am"),pm:xt("pm"),formats:{c:xt("%a %b %e %H:%M:%S %Y"),D:xt("%m/%d/%y"),F:xt("%Y-%m-%d"),R:xt("%H:%M"),r:xt("%I:%M:%S %p"),T:xt("%H:%M:%S"),X:xt("%T"),x:xt("%D")}},YI=function(e,t){let r=e.getDay();t==="monday"&&(r===0?r=6:r--);let n=(e-new Date(e.getFullYear(),0,1))/864e5;return Math.floor((n+7-r)/7)},Fn=function(e,t,r){t<10&&Na(e,r),gi(e,xt(String(t)))},Ba=function(e,t,r,n){let i=0;for(;i<r.length;)if(r[i]!==37)Na(t,r[i++]);else{i++;let o=u_e(e,r,i);switch(r[i]){case 37:Na(t,37);break;case 65:gi(t,kn.days[n.getDay()]);break;case 66:gi(t,kn.months[n.getMonth()]);break;case 67:Fn(t,Math.floor(n.getFullYear()/100),48);break;case 68:Ba(e,t,kn.formats.D,n);break;case 70:Ba(e,t,kn.formats.F,n);break;case 72:Fn(t,n.getHours(),48);break;case 73:Fn(t,(n.getHours()+11)%12+1,48);break;case 77:Fn(t,n.getMinutes(),48);break;case 80:gi(t,n.getHours()<12?kn.am:kn.pm);break;case 82:Ba(e,t,kn.formats.R,n);break;case 83:Fn(t,n.getSeconds(),48);break;case 84:Ba(e,t,kn.formats.T,n);break;case 85:Fn(t,YI(n,"sunday"),48);break;case 87:Fn(t,YI(n,"monday"),48);break;case 88:Ba(e,t,kn.formats.X,n);break;case 89:gi(t,xt(String(n.getFullYear())));break;case 90:{let h=n.toString().match(/\(([\w\s]+)\)/);h&&gi(t,xt(h[1]));break}case 97:gi(t,kn.shortDays[n.getDay()]);break;case 98:case 104:gi(t,kn.shortMonths[n.getMonth()]);break;case 99:Ba(e,t,kn.formats.c,n);break;case 100:Fn(t,n.getDate(),48);break;case 101:Fn(t,n.getDate(),32);break;case 106:{let h=Math.floor((n-new Date(n.getFullYear(),0,1))/864e5);h<100&&(h<10&&Na(t,48),Na(t,48)),gi(t,xt(String(h)));break}case 107:Fn(t,n.getHours(),32);break;case 108:Fn(t,(n.getHours()+11)%12+1,32);break;case 109:Fn(t,n.getMonth()+1,48);break;case 110:Na(t,10);break;case 112:gi(t,n.getHours()<12?kn.AM:kn.PM);break;case 114:Ba(e,t,kn.formats.r,n);break;case 115:gi(t,xt(String(Math.floor(n/1e3))));break;case 116:Na(t,8);break;case 117:{let h=n.getDay();gi(t,xt(String(h===0?7:h)));break}case 119:gi(t,xt(String(n.getDay())));break;case 120:Ba(e,t,kn.formats.x,n);break;case 121:Fn(t,n.getFullYear()%100,48);break;case 122:{let h=n.getTimezoneOffset();h>0?Na(t,45):(h=-h,Na(t,43)),Fn(t,Math.floor(h/60),48),Fn(t,h%60,48);break}}i+=o}},u_e=function(e,t,r){let n=f_e,i=0,o=1;for(;i<n.length&&o<=t.length-r;i+=o)if(n[i]===124)o++;else if(l_e(t.subarray(r,r+o),n.subarray(i,i+o)))return o;t_e(e,1,Yge(e,xt("invalid conversion specifier '%%%s'"),t))},c_e=function(e){let t=a_e(e,1,"%c"),r=ZI(e,2)?new Date:new Date(R2(e,2)*1e3),n=!1,i=0;if(t[i]===33&&(n=!0,i++),t[i]===42&&t[i+1]===116)Wge(e,0,9),eN(e,r,n);else{let o=new Uint8Array(4);o[0]=37;let h=new e_e;r_e(e,h),Ba(e,h,t,r),o_e(h)}return 1},h_e=function(e){let t;return ZI(e,1)?t=new Date:(i_e(e,1,Vge),Jge(e,1),t=new Date(mc(e,"year",-1,0),mc(e,"month",-1,1),mc(e,"day",-1,0),mc(e,"hour",12,0),mc(e,"min",0,0),mc(e,"sec",0,0)),eN(e,t)),JI(e,Math.floor(t/1e3)),1},R2=function(e,t){return n_e(e,t)},d_e=function(e){let t=R2(e,1),r=R2(e,2);return QI(e,t-r),1},tN={date:c_e,difftime:d_e,time:h_e};tN.clock=function(e){return QI(e,performance.now()/1e3),1};var p_e=function(e){return s_e(e,tN),1};rN.exports.luaopen_os=p_e});var nN=I(Dy=>{b();(function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function t(h){return n(o(h),arguments)}function r(h,g){return t.apply(null,[h].concat(g||[]))}function n(h,g){var v=1,w=h.length,k,A="",R,O,B,L,X,P,H,D;for(R=0;R<w;R++)if(typeof h[R]=="string")A+=h[R];else if(typeof h[R]=="object"){if(B=h[R],B.keys)for(k=g[v],O=0;O<B.keys.length;O++){if(k==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',B.keys[O],B.keys[O-1]));k=k[B.keys[O]]}else B.param_no?k=g[B.param_no]:k=g[v++];if(e.not_type.test(B.type)&&e.not_primitive.test(B.type)&&k instanceof Function&&(k=k()),e.numeric_arg.test(B.type)&&typeof k!="number"&&isNaN(k))throw new TypeError(t("[sprintf] expecting number but found %T",k));switch(e.number.test(B.type)&&(H=k>=0),B.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,B.width?parseInt(B.width):0);break;case"e":k=B.precision?parseFloat(k).toExponential(B.precision):parseFloat(k).toExponential();break;case"f":k=B.precision?parseFloat(k).toFixed(B.precision):parseFloat(k);break;case"g":k=B.precision?String(Number(k.toPrecision(B.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=B.precision?k.substring(0,B.precision):k;break;case"t":k=String(!!k),k=B.precision?k.substring(0,B.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=B.precision?k.substring(0,B.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=B.precision?k.substring(0,B.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}e.json.test(B.type)?A+=k:(e.number.test(B.type)&&(!H||B.sign)?(D=H?"+":"-",k=k.toString().replace(e.sign,"")):D="",X=B.pad_char?B.pad_char==="0"?"0":B.pad_char.charAt(1):" ",P=B.width-(D+k).length,L=B.width&&P>0?X.repeat(P):"",A+=B.align?D+k+L:X==="0"?D+L+k:L+D+k)}return A}var i=Object.create(null);function o(h){if(i[h])return i[h];for(var g=h,v,w=[],k=0;g;){if((v=e.text.exec(g))!==null)w.push(v[0]);else if((v=e.modulo.exec(g))!==null)w.push("%");else if((v=e.placeholder.exec(g))!==null){if(v[2]){k|=1;var A=[],R=v[2],O=[];if((O=e.key.exec(R))!==null)for(A.push(O[1]);(R=R.substring(O[0].length))!=="";)if((O=e.key_access.exec(R))!==null)A.push(O[1]);else if((O=e.index_access.exec(R))!==null)A.push(O[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");v[2]=A}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");w.push({placeholder:v[0],param_no:v[1],keys:v[2],sign:v[3],pad_char:v[4],align:v[5],width:v[6],precision:v[7],type:v[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");g=g.substring(v[0].length)}return i[h]=w}typeof Dy<"u"&&(Dy.sprintf=t,Dy.vsprintf=r),typeof window<"u"&&(window.sprintf=t,window.vsprintf=r,typeof define=="function"&&define.amd&&define(function(){return{sprintf:t,vsprintf:r}}))})()});var ik=I((qHe,DN)=>{"use strict";b();var{sprintf:gc}=nN(),{LUA_INTEGER_FMT:m_e,LUA_INTEGER_FRMLEN:td,LUA_MININTEGER:y_e,LUA_NUMBER_FMT:g_e,LUA_NUMBER_FRMLEN:__e,frexp:v_e,lua_getlocaledecpoint:b_e}=Vn(),{LUA_TBOOLEAN:x_e,LUA_TFUNCTION:j2,LUA_TNIL:w_e,LUA_TNUMBER:gN,LUA_TSTRING:_N,LUA_TTABLE:vN,lua_call:k_e,lua_createtable:M_e,lua_dump:A_e,lua_gettable:E_e,lua_gettop:bN,lua_isinteger:S_e,lua_isstring:T_e,lua_pop:qy,lua_pushcclosure:R_e,lua_pushinteger:Qi,lua_pushlightuserdata:O_e,lua_pushliteral:V2,lua_pushlstring:C2,lua_pushnil:U2,lua_pushnumber:I_e,lua_pushstring:rf,lua_pushvalue:D2,lua_remove:N_e,lua_setfield:B_e,lua_setmetatable:C_e,lua_settop:xN,lua_toboolean:W2,lua_tointeger:U_e,lua_tonumber:D_e,lua_tostring:wN,lua_touserdata:P_e,lua_type:kN,lua_upvalueindex:F_e}=Pn(),{luaL_Buffer:wc,luaL_addchar:qn,luaL_addlstring:_c,luaL_addsize:MN,luaL_addstring:yc,luaL_addvalue:nd,luaL_argcheck:Ji,luaL_argerror:nf,luaL_buffinit:Gy,luaL_buffinitsize:AN,luaL_checkinteger:sf,luaL_checknumber:P2,luaL_checkstack:X2,luaL_checkstring:vr,luaL_checktype:q_e,luaL_error:fr,luaL_newlib:L_e,luaL_optinteger:vc,luaL_optstring:G_e,luaL_prepbuffsize:EN,luaL_pushresult:Ky,luaL_pushresultsize:SN,luaL_tolstring:$2,luaL_typename:K_e}=yi(),TN=tf(),{luastring_eq:RN,luastring_indexOf:zo,to_jsstring:H_e,to_luastring:Ze}=ai(),z_e="%",Ps=z_e.charCodeAt(0),j_e=32,Y2=2147483647,V_e=function(e){let t=zo(e,0);return t>-1?t:e.length},bc=function(e,t){return e>=0?e:0-e>t?0:t+e+1},W_e=function(e){let t=vr(e,1),r=t.length,n=bc(sf(e,2),r),i=bc(vc(e,3,-1),r);return n<1&&(n=1),i>r&&(i=r),n<=i?rf(e,t.subarray(n-1,n-1+(i-n+1))):V2(e,""),1},X_e=function(e){return Qi(e,vr(e,1).length),1},$_e=function(e){let t=bN(e),r=new wc,n=AN(e,r,t);for(let i=1;i<=t;i++){let o=sf(e,i);Ji(e,o>=0&&o<=255,"value out of range"),n[i-1]=o}return SN(r,t),1},Y_e=function(e,t,r,n){return _c(n,t,r),0},Z_e=function(e){let t=new wc,r=W2(e,2);return q_e(e,1,j2),xN(e,1),Gy(e,t),A_e(e,Y_e,t,r)!==0?fr(e,Ze("unable to dump given function")):(Ky(t),1)},iN=__e.length+1,sN=1,J_e=function(e){if(Object.is(e,1/0))return Ze("inf");if(Object.is(e,-1/0))return Ze("-inf");if(Number.isNaN(e))return Ze("nan");if(e===0){let t=gc(g_e+"x0p+0",e);return Object.is(e,-0)&&(t="-"+t),Ze(t)}else{let t="",r=v_e(e),n=r[0],i=r[1];return n<0&&(t+="-",n=-n),t+="0x",t+=(n*(1<<sN)).toString(16),i-=sN,t+=gc("p%+d",i),Ze(t)}},ON=function(e,t,r){let n=J_e(r);if(t[iN]===65)for(let i=0;i<n.length;i++){let o=n[i];o>=97&&(n[i]=o&223)}else t[iN]!==97&&fr(e,Ze("modifiers for format '%%a'/'%%A' not implemented"));return n},aN=Ze("-+ #0"),oN=e=>97<=e&&e<=122||65<=e&&e<=90,Ds=e=>48<=e&&e<=57,F2=e=>0<=e&&e<=31||e===127,q2=e=>33<=e&&e<=126,L2=e=>97<=e&&e<=122,G2=e=>65<=e&&e<=90,K2=e=>97<=e&&e<=122||65<=e&&e<=90||48<=e&&e<=57,lN=e=>q2(e)&&!K2(e),fN=e=>e===32||e>=9&&e<=13,uN=e=>48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102,Q_e=function(e,t,r){qn(e,34);let n=0;for(;r--;){if(t[n]===34||t[n]===92||t[n]===10)qn(e,92),qn(e,t[n]);else if(F2(t[n])){let i=""+t[n];Ds(t[n+1])&&(i="0".repeat(3-i.length)+i),yc(e,Ze("\\"+i))}else qn(e,t[n]);n++}qn(e,34)},eve=function(e){if(zo(e,46)<0){let t=b_e(),r=zo(e,t);r&&(e[r]=46)}},tve=function(e,t,r){switch(kN(e,r)){case _N:{let n=wN(e,r);Q_e(t,n,n.length);break}case gN:{let n;if(S_e(e,r)){let i=U_e(e,r),o=i===y_e?"0x%"+td+"x":m_e;n=Ze(gc(o,i))}else{let i=D_e(e,r);n=ON(e,Ze(`%${td}a`),i),eve(n)}yc(t,n);break}case w_e:case x_e:{$2(e,r),nd(t);break}default:nf(e,r,Ze("value has no literal form"))}},rve=function(e,t,r,n){let i=r;for(;t[i]!==0&&zo(aN,t[i])>=0;)i++;i-r>=aN.length&&fr(e,Ze("invalid format (repeated flags)")),Ds(t[i])&&i++,Ds(t[i])&&i++,t[i]===46&&(i++,Ds(t[i])&&i++,Ds(t[i])&&i++),Ds(t[i])&&fr(e,Ze("invalid format (width or precision too long)")),n[0]=37;for(let o=0;o<i-r+1;o++)n[o+1]=t[r+o];return i},I2=function(e,t){let r=e.length,n=t.length,i=e[r-1];for(let o=0;o<n;o++)e[o+r-1]=t[o];e[r+n-1]=i},nve=function(e){let t=bN(e),r=1,n=vr(e,r),i=0,o=new wc;for(Gy(e,o);i<n.length;)if(n[i]!==Ps)qn(o,n[i++]);else if(n[++i]===Ps)qn(o,n[i++]);else{let h=[];switch(++r>t&&nf(e,r,Ze("no value")),i=rve(e,n,i,h),String.fromCharCode(n[i++])){case"c":{qn(o,sf(e,r));break}case"d":case"i":case"o":case"u":case"x":case"X":{let g=sf(e,r);I2(h,Ze(td,!0)),yc(o,Ze(gc(String.fromCharCode(...h),g)));break}case"a":case"A":{I2(h,Ze(td,!0)),yc(o,ON(e,h,P2(e,r)));break}case"e":case"E":case"f":case"g":case"G":{let g=P2(e,r);I2(h,Ze(td,!0)),yc(o,Ze(gc(String.fromCharCode(...h),g)));break}case"q":{tve(e,o,r);break}case"s":{let g=$2(e,r);h.length<=2||h[2]===0?nd(o):(Ji(e,g.length===V_e(g),r,"string contains zeros"),zo(h,46)<0&&g.length>=100?nd(o):(yc(o,Ze(gc(String.fromCharCode(...h),H_e(g)))),qy(e,1)));break}default:return fr(e,Ze("invalid option '%%%c' to 'format'"),n[i-1])}}return Ky(o),1},N2=0,cN=16,Ho=4,xc=8,Fy=(1<<xc)-1,ive=8,id=class{constructor(t){this.L=t,this.islittle=!0,this.maxalign=1}},Ko=0,Go=1,rd=2,sd=3,Hy=4,zy=5,Z2=6,jy=7,J2=8,hN=Ds,IN=function(e,t){if(e.off>=e.s.length||!hN(e.s[e.off]))return t;{let r=0;do r=r*10+(e.s[e.off++]-48);while(e.off<e.s.length&&hN(e.s[e.off])&&r<=(Y2-9)/10);return r}},Py=function(e,t,r){let n=IN(t,r);return(n>cN||n<=0)&&fr(e.L,Ze("integral size (%d) out of limits [1,%d]"),n,cN),n},dN=function(e,t){let r={opt:t.s[t.off++],size:0};switch(r.opt){case 98:return r.size=1,r.opt=Ko,r;case 66:return r.size=1,r.opt=Go,r;case 104:return r.size=2,r.opt=Ko,r;case 72:return r.size=2,r.opt=Go,r;case 108:return r.size=4,r.opt=Ko,r;case 76:return r.size=4,r.opt=Go,r;case 106:return r.size=4,r.opt=Ko,r;case 74:return r.size=4,r.opt=Go,r;case 84:return r.size=4,r.opt=Go,r;case 102:return r.size=4,r.opt=rd,r;case 100:return r.size=8,r.opt=rd,r;case 110:return r.size=8,r.opt=rd,r;case 105:return r.size=Py(e,t,4),r.opt=Ko,r;case 73:return r.size=Py(e,t,4),r.opt=Go,r;case 115:return r.size=Py(e,t,4),r.opt=Hy,r;case 99:return r.size=IN(t,-1),r.size===-1&&fr(e.L,Ze("missing size for format option 'c'")),r.opt=sd,r;case 122:return r.opt=zy,r;case 120:return r.size=1,r.opt=Z2,r;case 88:return r.opt=jy,r;case 32:break;case 60:e.islittle=!0;break;case 62:e.islittle=!1;break;case 61:e.islittle=!0;break;case 33:e.maxalign=Py(e,t,ive);break;default:fr(e.L,Ze("invalid format option '%c'"),r.opt)}return r.opt=J2,r},Q2=function(e,t,r){let n={opt:NaN,size:NaN,ntoalign:NaN},i=dN(e,r);n.size=i.size,n.opt=i.opt;let o=n.size;if(n.opt===jy)if(r.off>=r.s.length||r.s[r.off]===0)nf(e.L,1,Ze("invalid next option for option 'X'"));else{let h=dN(e,r);o=h.size,h=h.opt,(h===sd||o===0)&&nf(e.L,1,Ze("invalid next option for option 'X'"))}return o<=1||n.opt===sd?n.ntoalign=0:(o>e.maxalign&&(o=e.maxalign),(o&o-1)!==0&&nf(e.L,1,Ze("format asks for alignment not power of 2")),n.ntoalign=o-(t&o-1)&o-1),n},B2=function(e,t,r,n,i){let o=EN(e,n);o[r?0:n-1]=t&Fy;for(let h=1;h<n;h++)t>>=xc,o[r?h:n-1-h]=t&Fy;if(i&&n>Ho)for(let h=Ho;h<n;h++)o[r?h:n-1-h]=Fy;MN(e,n)},sve=function(e){let t=new wc,r=new id(e),n={s:vr(e,1),off:0},i=1,o=0;for(U2(e),Gy(e,t);n.off<n.s.length;){let h=Q2(r,o,n),g=h.opt,v=h.size,w=h.ntoalign;for(o+=w+v;w-- >0;)qn(t,N2);switch(i++,g){case Ko:{let k=sf(e,i);if(v<Ho){let A=1<<v*8-1;Ji(e,-A<=k&&k<A,i,"integer overflow")}B2(t,k,r.islittle,v,k<0);break}case Go:{let k=sf(e,i);v<Ho&&Ji(e,k>>>0<1<<v*xc,i,"unsigned overflow"),B2(t,k>>>0,r.islittle,v,!1);break}case rd:{let k=EN(t,v),A=P2(e,i),R=new DataView(k.buffer,k.byteOffset,k.byteLength);v===4?R.setFloat32(0,A,r.islittle):R.setFloat64(0,A,r.islittle),MN(t,v);break}case sd:{let k=vr(e,i),A=k.length;for(Ji(e,A<=v,i,"string longer than given size"),_c(t,k,A);A++<v;)qn(t,N2);break}case Hy:{let k=vr(e,i),A=k.length;Ji(e,v>=4||A<1<<v*xc,i,"string length does not fit in given size"),B2(t,A,r.islittle,v,0),_c(t,k,A),o+=A;break}case zy:{let k=vr(e,i),A=k.length;Ji(e,zo(k,0)<0,i,"strings contains zeros"),_c(t,k,A),qn(t,0),o+=A+1;break}case Z2:qn(t,N2);case jy:case J2:i--;break}}return Ky(t),1},ave=function(e){let t=vr(e,1),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t[r-1-i];return rf(e,n),1},ove=function(e){let t=vr(e,1),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++){let o=t[i];G2(o)&&(o=o|32),n[i]=o}return rf(e,n),1},lve=function(e){let t=vr(e,1),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++){let o=t[i];L2(o)&&(o=o&223),n[i]=o}return rf(e,n),1},fve=function(e){let t=vr(e,1),r=t.length,n=sf(e,2),i=G_e(e,3,""),o=i.length;if(n<=0)V2(e,"");else{if(r+o<r||r+o>Y2/n)return fr(e,Ze("resulting string too large"));{let h=n*r+(n-1)*o,g=new wc,v=AN(e,g,h),w=0;for(;n-- >1;)v.set(t,w),w+=r,o>0&&(v.set(i,w),w+=o);v.set(t,w),SN(g,h)}}return 1},uve=function(e){let t=vr(e,1),r=t.length,n=bc(vc(e,2,1),r),i=bc(vc(e,3,n),r);if(n<1&&(n=1),i>r&&(i=r),n>i)return 0;if(i-n>=Number.MAX_SAFE_INTEGER)return fr(e,"string slice too long");let o=i-n+1;X2(e,o,"string slice too long");for(let h=0;h<o;h++)Qi(e,t[n+h-1]);return o},cve=function(e){let t=new id(e),r={s:vr(e,1),off:0},n=0;for(;r.off<r.s.length;){let i=Q2(t,n,r),o=i.opt,h=i.size,g=i.ntoalign;switch(h+=g,Ji(e,n<=Y2-h,1,"format result too large"),n+=h,o){case Hy:case zy:nf(e,1,"variable-length format");default:break}}return Qi(e,n),1},pN=function(e,t,r,n,i){let o=0,h=n<=Ho?n:Ho;for(let g=h-1;g>=0;g--)o<<=xc,o|=t[r?g:n-1-g];if(n<Ho){if(i){let g=1<<n*xc-1;o=(o^g)-g}}else if(n>Ho){let g=!i||o>=0?0:Fy;for(let v=h;v<n;v++)t[r?v:n-1-v]!==g&&fr(e,Ze("%d-byte integer does not fit into Lua Integer"),n)}return o},hve=function(e,t,r,n){TN.lua_assert(t.length>=n);let i=new DataView(new ArrayBuffer(n));for(let o=0;o<n;o++)i.setUint8(o,t[o],r);return n==4?i.getFloat32(0,r):i.getFloat64(0,r)},dve=function(e){let t=new id(e),r={s:vr(e,1),off:0},n=vr(e,2),i=n.length,o=bc(vc(e,3,1),i)-1,h=0;for(Ji(e,o<=i&&o>=0,3,"initial position out of string");r.off<r.s.length;){let g=Q2(t,o,r),v=g.opt,w=g.size,k=g.ntoalign;switch(o+k+w>i&&nf(e,2,Ze("data string too short")),o+=k,X2(e,2,"too many results"),h++,v){case Ko:case Go:{let A=pN(e,n.subarray(o),t.islittle,w,v===Ko);Qi(e,A);break}case rd:{let A=hve(e,n.subarray(o),t.islittle,w);I_e(e,A);break}case sd:{rf(e,n.subarray(o,o+w));break}case Hy:{let A=pN(e,n.subarray(o),t.islittle,w,0);Ji(e,o+A+w<=i,2,"data string too short"),rf(e,n.subarray(o+w,o+w+A)),o+=A;break}case zy:{let A=zo(n,0,o);A===-1&&(A=n.length-o),rf(e,n.subarray(o,A)),o=A+1;break}case jy:case Z2:case J2:h--;break}o+=w}return Qi(e,o+1),h+1},od=-1,NN=-2,BN=200,pve=Ze("^$*+?.([%-"),ad=class{constructor(t){this.src=null,this.src_init=null,this.src_end=null,this.p=null,this.p_end=null,this.L=t,this.matchdepth=NaN,this.level=NaN,this.capture=[]}},mve=function(e,t){return t=t-49,t<0||t>=e.level||e.capture[t].len===od?fr(e.L,Ze("invalid capture index %%%d"),t+1):t},yve=function(e){let t=e.level;for(t--;t>=0;t--)if(e.capture[t].len===od)return t;return fr(e.L,Ze("invalid pattern capture"))},mN=function(e,t){switch(e.p[t++]){case Ps:return t===e.p_end&&fr(e.L,Ze("malformed pattern (ends with '%%')")),t+1;case 91:{e.p[t]===94&&t++;do t===e.p_end&&fr(e.L,Ze("malformed pattern (missing ']')")),e.p[t++]===Ps&&t<e.p_end&&t++;while(e.p[t]!==93);return t+1}default:return t}},CN=function(e,t){switch(t){case 97:return oN(e);case 65:return!oN(e);case 99:return F2(e);case 67:return!F2(e);case 100:return Ds(e);case 68:return!Ds(e);case 103:return q2(e);case 71:return!q2(e);case 108:return L2(e);case 76:return!L2(e);case 112:return lN(e);case 80:return!lN(e);case 115:return fN(e);case 83:return!fN(e);case 117:return G2(e);case 85:return!G2(e);case 119:return K2(e);case 87:return!K2(e);case 120:return uN(e);case 88:return!uN(e);case 122:return e===0;case 90:return e!==0;default:return t===e}},H2=function(e,t,r,n){let i=!0;for(e.p[r+1]===94&&(i=!1,r++);++r<n;)if(e.p[r]===Ps){if(r++,CN(t,e.p[r]))return i}else if(e.p[r+1]===45&&r+2<n){if(r+=2,e.p[r-2]<=t&&t<=e.p[r])return i}else if(e.p[r]===t)return i;return!i},ek=function(e,t,r,n){if(t>=e.src_end)return!1;{let i=e.src[t];switch(e.p[r]){case 46:return!0;case Ps:return CN(i,e.p[r+1]);case 91:return H2(e,i,r,n-1);default:return e.p[r]===i}}},gve=function(e,t,r){if(r>=e.p_end-1&&fr(e.L,Ze("malformed pattern (missing arguments to '%%b'")),e.src[t]!==e.p[r])return null;{let n=e.p[r],i=e.p[r+1],o=1;for(;++t<e.src_end;)if(e.src[t]===i){if(--o===0)return t+1}else e.src[t]===n&&o++}return null},_ve=function(e,t,r,n){let i=0;for(;ek(e,t+i,r,n);)i++;for(;i>=0;){let o=jo(e,t+i,n+1);if(o)return o;i--}return null},vve=function(e,t,r,n){for(;;){let i=jo(e,t,n+1);if(i!==null)return i;if(ek(e,t,r,n))t++;else return null}},yN=function(e,t,r,n){let i=e.level;i>=j_e&&fr(e.L,Ze("too many captures")),e.capture[i]=e.capture[i]?e.capture[i]:{},e.capture[i].init=t,e.capture[i].len=n,e.level=i+1;let o;return(o=jo(e,t,r))===null&&e.level--,o},bve=function(e,t,r){let n=yve(e);e.capture[n].len=t-e.capture[n].init;let i;return(i=jo(e,t,r))===null&&(e.capture[n].len=od),i},xve=function(e,t,r,n,i){return RN(e.subarray(t,t+i),r.subarray(n,n+i))},wve=function(e,t,r){r=mve(e,r);let n=e.capture[r].len;return e.src_end-t>=n&&xve(e.src,e.capture[r].init,e.src,t,n)?t+n:null},jo=function(e,t,r){let n=!1,i=!0;for(e.matchdepth--===0&&fr(e.L,Ze("pattern too complex"));i||n;)if(i=!1,r!==e.p_end)switch(n?void 0:e.p[r]){case 40:{e.p[r+1]===41?t=yN(e,t,r+2,NN):t=yN(e,t,r+1,od);break}case 41:{t=bve(e,t,r+1);break}case 36:{if(r+1!==e.p_end){n=!0;break}t=e.src.length-t===0?t:null;break}case Ps:{switch(e.p[r+1]){case 98:{t=gve(e,t,r+2),t!==null&&(r+=4,i=!0);break}case 102:{r+=2,e.p[r]!==91&&fr(e.L,Ze("missing '[' after '%%f' in pattern"));let o=mN(e,r),h=t===e.src_init?0:e.src[t-1];if(!H2(e,h,r,o-1)&&H2(e,t===e.src_end?0:e.src[t],r,o-1)){r=o,i=!0;break}t=null;break}case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:{t=wve(e,t,e.p[r+1]),t!==null&&(r+=2,i=!0);break}default:n=!0}break}default:{n=!1;let o=mN(e,r);if(ek(e,t,r,o))switch(e.p[o]){case 63:{let h;(h=jo(e,t+1,o+1))!==null?t=h:(r=o+1,i=!0);break}case 43:t++;case 42:t=_ve(e,t,r,o);break;case 45:t=vve(e,t,r,o);break;default:t++,r=o,i=!0}else if(e.p[o]===42||e.p[o]===63||e.p[o]===45){r=o+1,i=!0;break}else t=null;break}}return e.matchdepth++,t},tk=function(e,t,r,n){if(t>=e.level)t===0?C2(e.L,e.src.subarray(r,n),n-r):fr(e.L,Ze("invalid capture index %%%d"),t+1);else{let i=e.capture[t].len;i===od&&fr(e.L,Ze("unfinished capture")),i===NN?Qi(e.L,e.capture[t].init-e.src_init+1):C2(e.L,e.src.subarray(e.capture[t].init),i)}},Ly=function(e,t,r){let n=e.level===0&&e.src.subarray(t)?1:e.level;X2(e.L,n,"too many captures");for(let i=0;i<n;i++)tk(e,i,t,r);return n},kve=function(e,t){for(let r=0;r<t;r++)if(zo(pve,e[r])!==-1)return!1;return!0},rk=function(e,t,r,n,i,o){e.L=t,e.matchdepth=BN,e.src=r,e.src_init=0,e.src_end=n,e.p=i,e.p_end=o},nk=function(e){e.level=0,TN.lua_assert(e.matchdepth===BN)},Mve=function(e,t,r){var n=r>>>0,i=t.length;if(i===0)return n;for(;(n=e.indexOf(t[0],n))!==-1;n++)if(RN(e.subarray(n,n+i),t))return n;return-1},UN=function(e,t){let r=vr(e,1),n=vr(e,2),i=r.length,o=n.length,h=bc(vc(e,3,1),i);if(h<1)h=1;else if(h>i+1)return U2(e),1;if(t&&(W2(e,4)||kve(n,o))){let g=Mve(r.subarray(h-1),n,0);if(g>-1)return Qi(e,h+g),Qi(e,h+g+o-1),2}else{let g=new ad(e),v=h-1,w=n[0]===94;w&&(n=n.subarray(1),o--),rk(g,e,r,i,n,o);do{let k;if(nk(g),(k=jo(g,v,0))!==null)return t?(Qi(e,v+1),Qi(e,k),Ly(g,null,0)+2):Ly(g,v,k)}while(v++<g.src_end&&!w)}return U2(e),1},Ave=function(e){return UN(e,1)},Eve=function(e){return UN(e,0)},z2=class{constructor(){this.src=NaN,this.p=NaN,this.lastmatch=NaN,this.ms=new ad}},Sve=function(e){let t=P_e(e,F_e(3));t.ms.L=e;for(let r=t.src;r<=t.ms.src_end;r++){nk(t.ms);let n;if((n=jo(t.ms,r,t.p))!==null&&n!==t.lastmatch)return t.src=t.lastmatch=n,Ly(t.ms,r,n)}return 0},Tve=function(e){let t=vr(e,1),r=vr(e,2),n=t.length,i=r.length;xN(e,2);let o=new z2;return O_e(e,o),rk(o.ms,e,t,n,r,i),o.src=0,o.p=0,o.lastmatch=null,R_e(e,Sve,3),1},Rve=function(e,t,r,n){let i=e.L,o=wN(i,3),h=o.length;for(let g=0;g<h;g++)o[g]!==Ps?qn(t,o[g]):(g++,Ds(o[g])?o[g]===48?_c(t,e.src.subarray(r,n),n-r):(tk(e,o[g]-49,r,n),$2(i,-1),N_e(i,-2),nd(t)):(o[g]!==Ps&&fr(i,Ze("invalid use of '%c' in replacement string"),Ps),qn(t,o[g])))},Ove=function(e,t,r,n,i){let o=e.L;switch(i){case j2:{D2(o,3);let h=Ly(e,r,n);k_e(o,h,1);break}case vN:{tk(e,0,r,n),E_e(o,3);break}default:{Rve(e,t,r,n);return}}W2(o,-1)?T_e(o,-1)||fr(o,Ze("invalid replacement value (a %s)"),K_e(o,-1)):(qy(o,1),C2(o,e.src.subarray(r,n),n-r)),nd(t)},Ive=function(e){let t=vr(e,1),r=t.length,n=vr(e,2),i=n.length,o=null,h=kN(e,3),g=vc(e,4,r+1),v=n[0]===94,w=0,k=new ad(e),A=new wc;for(Ji(e,h===gN||h===_N||h===j2||h===vN,3,"string/function/table expected"),Gy(e,A),v&&(n=n.subarray(1),i--),rk(k,e,t,r,n,i),t=0,n=0;w<g;){let R;if(nk(k),(R=jo(k,t,n))!==null&&R!==o)w++,Ove(k,A,t,R,h),t=o=R;else if(t<k.src_end)qn(A,k.src[t++]);else break;if(v)break}return _c(A,k.src.subarray(t,k.src_end),k.src_end-t),Ky(A),Qi(e,w),2},Nve={byte:uve,char:$_e,dump:Z_e,find:Ave,format:nve,gmatch:Tve,gsub:Ive,len:X_e,lower:ove,match:Eve,pack:sve,packsize:cve,rep:fve,reverse:ave,sub:W_e,unpack:dve,upper:lve},Bve=function(e){M_e(e,0,1),V2(e,""),D2(e,-2),C_e(e,-2),qy(e,1),D2(e,-2),B_e(e,-2,Ze("__index",!0)),qy(e,1)},Cve=function(e){return L_e(e,Nve),Bve(e),1};DN.exports.luaopen_string=Cve});var ok=I((GHe,GN)=>{"use strict";b();var{lua_gettop:Uve,lua_pushcfunction:Dve,lua_pushfstring:Pve,lua_pushinteger:af,lua_pushnil:FN,lua_pushstring:Fve,lua_pushvalue:qve,lua_setfield:Lve,lua_tointeger:Gve}=Pn(),{luaL_Buffer:Kve,luaL_addvalue:Hve,luaL_argcheck:Mc,luaL_buffinit:zve,luaL_checkinteger:qN,luaL_checkstack:jve,luaL_checkstring:ud,luaL_error:Vy,luaL_newlib:Vve,luaL_optinteger:ld,luaL_pushresult:Wve}=yi(),{luastring_of:Xve,to_luastring:sk}=ai(),LN=1114111,kc=function(e){return(e&192)===128},fd=function(e,t){return e>=0?e:0-e>t?0:t+e+1},$ve=[255,127,2047,65535],ak=function(e,t){let r=e[t],n=0;if(r<128)n=r;else{let i=0;for(;r&64;){let o=e[t+ ++i];if((o&192)!==128)return null;n=n<<6|o&63,r<<=1}if(n|=(r&127)<<i*5,i>3||n>LN||n<=$ve[i])return null;t+=i}return{code:n,pos:t+1}},Yve=function(e){let t=0,r=ud(e,1),n=r.length,i=fd(ld(e,2,1),n),o=fd(ld(e,3,-1),n);for(Mc(e,1<=i&&--i<=n,2,"initial position out of string"),Mc(e,--o<n,3,"final position out of string");i<=o;){let h=ak(r,i);if(h===null)return FN(e),af(e,i+1),2;i=h.pos,t++}return af(e,t),1},Zve=sk("%U"),PN=function(e,t){let r=qN(e,t);Mc(e,0<=r&&r<=LN,t,"value out of range"),Pve(e,Zve,r)},Jve=function(e){let t=Uve(e);if(t===1)PN(e,1);else{let r=new Kve;zve(e,r);for(let n=1;n<=t;n++)PN(e,n),Hve(r);Wve(r)}return 1},Qve=function(e){let t=ud(e,1),r=qN(e,2),n=r>=0?1:t.length+1;if(n=fd(ld(e,3,n),t.length),Mc(e,1<=n&&--n<=t.length,3,"position out of range"),r===0)for(;n>0&&kc(t[n]);)n--;else if(kc(t[n])&&Vy(e,"initial position is a continuation byte"),r<0)for(;r<0&&n>0;){do n--;while(n>0&&kc(t[n]));r++}else for(r--;r>0&&n<t.length;){do n++;while(kc(t[n]));r--}return r===0?af(e,n+1):FN(e),1},ebe=function(e){let t=ud(e,1),r=fd(ld(e,2,1),t.length),n=fd(ld(e,3,r),t.length);if(Mc(e,r>=1,2,"out of range"),Mc(e,n<=t.length,3,"out of range"),r>n)return 0;if(n-r>=Number.MAX_SAFE_INTEGER)return Vy(e,"string slice too long");let i=n-r+1;for(jve(e,i,"string slice too long"),i=0,r-=1;r<n;){let o=ak(t,r);if(o===null)return Vy(e,"invalid UTF-8 code");af(e,o.code),r=o.pos,i++}return i},tbe=function(e){let t=ud(e,1),r=t.length,n=Gve(e,2)-1;if(n<0)n=0;else if(n<r)for(n++;kc(t[n]);)n++;if(n>=r)return 0;{let i=ak(t,n);return i===null||kc(t[i.pos])?Vy(e,sk("invalid UTF-8 code")):(af(e,n+1),af(e,i.code),2)}},rbe=function(e){return ud(e,1),Dve(e,tbe),qve(e,1),af(e,0),3},nbe={char:Jve,codepoint:ebe,codes:rbe,len:Yve,offset:Qve},ibe=Xve(91,0,45,127,194,45,244,93,91,128,45,191,93,42),sbe=function(e){return Vve(e,nbe),Fve(e,ibe),Lve(e,-2,sk("charpattern",!0)),1};GN.exports.luaopen_utf8=sbe});var hk=I((HHe,YN)=>{"use strict";b();var{LUA_OPLT:HN,LUA_TNUMBER:abe,lua_compare:zN,lua_gettop:fk,lua_isinteger:lf,lua_isnoneornil:obe,lua_pushboolean:lbe,lua_pushinteger:ff,lua_pushliteral:KN,lua_pushnil:jN,lua_pushnumber:Yr,lua_pushvalue:VN,lua_setfield:Wy,lua_settop:uk,lua_tointeger:lk,lua_tointegerx:fbe,lua_type:ube}=Pn(),{luaL_argcheck:$y,luaL_argerror:cbe,luaL_checkany:WN,luaL_checkinteger:cd,luaL_checknumber:Zr,luaL_error:hbe,luaL_newlib:dbe,luaL_optnumber:pbe}=yi(),{LUA_MAXINTEGER:XN,LUA_MININTEGER:mbe,lua_numbertointeger:ybe}=Vn(),{to_luastring:Xy}=ai(),of,$N=function(){return of=1103515245*of+12345&2147483647,of},gbe=function(e){of=e|0,of===0&&(of=1)},_be=function(e){let t,r,n=of===void 0?Math.random():$N()/2147483648;switch(fk(e)){case 0:return Yr(e,n),1;case 1:{t=1,r=cd(e,1);break}case 2:{t=cd(e,1),r=cd(e,2);break}default:return hbe(e,"wrong number of arguments")}return $y(e,t<=r,1,"interval is empty"),$y(e,t>=0||r<=XN+t,1,"interval too large"),n*=r-t+1,ff(e,Math.floor(n)+t),1},vbe=function(e){return gbe(Zr(e,1)),$N(),0},bbe=function(e){if(lf(e,1)){let t=lk(e,1);t<0&&(t=-t|0),ff(e,t)}else Yr(e,Math.abs(Zr(e,1)));return 1},xbe=function(e){return Yr(e,Math.sin(Zr(e,1))),1},wbe=function(e){return Yr(e,Math.cos(Zr(e,1))),1},kbe=function(e){return Yr(e,Math.tan(Zr(e,1))),1},Mbe=function(e){return Yr(e,Math.asin(Zr(e,1))),1},Abe=function(e){return Yr(e,Math.acos(Zr(e,1))),1},Ebe=function(e){let t=Zr(e,1),r=pbe(e,2,1);return Yr(e,Math.atan2(t,r)),1},Sbe=function(e){let t=fbe(e,1);return t!==!1?ff(e,t):(WN(e,1),jN(e)),1},ck=function(e,t){let r=ybe(t);r!==!1?ff(e,r):Yr(e,t)},Tbe=function(e){return lf(e,1)?uk(e,1):ck(e,Math.floor(Zr(e,1))),1},Rbe=function(e){return lf(e,1)?uk(e,1):ck(e,Math.ceil(Zr(e,1))),1},Obe=function(e){return Yr(e,Math.sqrt(Zr(e,1))),1},Ibe=function(e){let t=cd(e,1),r=cd(e,2);return lbe(e,t>=0?r<0||t<r:r<0&&t<r),1},Nbe=function(e){let t=Zr(e,1),r;if(obe(e,2))r=Math.log(t);else{let n=Zr(e,2);n===2?r=Math.log2(t):n===10?r=Math.log10(t):r=Math.log(t)/Math.log(n)}return Yr(e,r),1},Bbe=function(e){return Yr(e,Math.exp(Zr(e,1))),1},Cbe=function(e){return Yr(e,Zr(e,1)*(180/Math.PI)),1},Ube=function(e){return Yr(e,Zr(e,1)*(Math.PI/180)),1},Dbe=function(e){let t=fk(e),r=1;$y(e,t>=1,1,"value expected");for(let n=2;n<=t;n++)zN(e,n,r,HN)&&(r=n);return VN(e,r),1},Pbe=function(e){let t=fk(e),r=1;$y(e,t>=1,1,"value expected");for(let n=2;n<=t;n++)zN(e,r,n,HN)&&(r=n);return VN(e,r),1},Fbe=function(e){return ube(e,1)===abe?lf(e,1)?KN(e,"integer"):KN(e,"float"):(WN(e,1),jN(e)),1},qbe=function(e){if(lf(e,1)&&lf(e,2)){let t=lk(e,2);t===0?cbe(e,2,"zero"):ff(e,lk(e,1)%t|0)}else{let t=Zr(e,1),r=Zr(e,2);Yr(e,t%r)}return 1},Lbe=function(e){if(lf(e,1))uk(e,1),Yr(e,0);else{let t=Zr(e,1),r=t<0?Math.ceil(t):Math.floor(t);ck(e,r),Yr(e,t===r?0:t-r)}return 2},Gbe={abs:bbe,acos:Abe,asin:Mbe,atan:Ebe,ceil:Rbe,cos:wbe,deg:Cbe,exp:Bbe,floor:Tbe,fmod:qbe,log:Nbe,max:Pbe,min:Dbe,modf:Lbe,rad:Ube,random:_be,randomseed:vbe,sin:xbe,sqrt:Obe,tan:kbe,tointeger:Sbe,type:Fbe,ult:Ibe},Kbe=function(e){return dbe(e,Gbe),Yr(e,Math.PI),Wy(e,-2,Xy("pi",!0)),Yr(e,1/0),Wy(e,-2,Xy("huge",!0)),ff(e,XN),Wy(e,-2,Xy("maxinteger",!0)),ff(e,mbe),Wy(e,-2,Xy("mininteger",!0)),1};YN.exports.luaopen_math=Kbe});var kk=I((jHe,gB)=>{"use strict";b();var{LUA_MASKCALL:tB,LUA_MASKCOUNT:Hbe,LUA_MASKLINE:rB,LUA_MASKRET:nB,LUA_REGISTRYINDEX:pd,LUA_TFUNCTION:mk,LUA_TNIL:iB,LUA_TTABLE:zbe,LUA_TUSERDATA:sB,lua_Debug:yk,lua_call:jbe,lua_checkstack:Vbe,lua_gethook:Wbe,lua_gethookcount:Xbe,lua_gethookmask:$be,lua_getinfo:aB,lua_getlocal:ZN,lua_getmetatable:Ybe,lua_getstack:gk,lua_getupvalue:oB,lua_getuservalue:Zbe,lua_insert:Jbe,lua_iscfunction:JN,lua_isfunction:lB,lua_isnoneornil:fB,lua_isthread:Qbe,lua_newtable:exe,lua_pcall:txe,lua_pop:rxe,lua_pushboolean:nxe,lua_pushfstring:ixe,lua_pushinteger:_k,lua_pushlightuserdata:uB,lua_pushliteral:sxe,lua_pushnil:Ac,lua_pushstring:uf,lua_pushvalue:Jy,lua_rawgetp:vk,lua_rawsetp:axe,lua_rotate:cB,lua_setfield:Qy,lua_sethook:oxe,lua_setlocal:lxe,lua_setmetatable:fxe,lua_settop:md,lua_setupvalue:uxe,lua_setuservalue:cxe,lua_tojsstring:hxe,lua_toproxy:dxe,lua_tostring:pxe,lua_tothread:mxe,lua_touserdata:bk,lua_type:hB,lua_upvalueid:yxe,lua_upvaluejoin:gxe,lua_xmove:e1}=Pn(),{luaL_argcheck:Yy,luaL_argerror:xk,luaL_checkany:t1,luaL_checkinteger:cf,luaL_checkstring:_xe,luaL_checktype:r1,luaL_error:vxe,luaL_loadbuffer:bxe,luaL_newlib:xxe,luaL_optinteger:dB,luaL_optstring:wxe,luaL_traceback:kxe,lua_writestringerror:Mxe}=yi(),Axe=tf(),{luastring_indexOf:Fs,to_luastring:br}=ai(),wk=function(e,t,r){e!==t&&!Vbe(t,r)&&vxe(e,br("stack overflow",!0))},Exe=function(e){return Jy(e,pd),1},Sxe=function(e){return t1(e,1),Ybe(e,1)||Ac(e),1},Txe=function(e){let t=hB(e,2);return Yy(e,t==iB||t==zbe,2,"nil or table expected"),md(e,2),fxe(e,1),1},Rxe=function(e){return hB(e,1)!==sB?Ac(e):Zbe(e,1),1},Oxe=function(e){return r1(e,1,sB),t1(e,2),md(e,2),cxe(e,1),1},Ec=function(e){return Qbe(e,1)?{arg:1,thread:mxe(e,1)}:{arg:0,thread:e}},hd=function(e,t,r){uf(e,r),Qy(e,-2,t)},dd=function(e,t,r){_k(e,r),Qy(e,-2,t)},QN=function(e,t,r){nxe(e,r),Qy(e,-2,t)},eB=function(e,t,r){e==t?cB(e,-2,1):e1(t,e,1),Qy(e,-2,r)},Ixe=function(e){let t=new yk,r=Ec(e),n=r.arg,i=r.thread,o=wxe(e,n+2,"flnStu");if(wk(e,i,3),lB(e,n+1))o=ixe(e,br(">%s"),o),Jy(e,n+1),e1(e,i,1);else if(!gk(i,cf(e,n+1),t))return Ac(e),1;return aB(i,o,t)||xk(e,n+2,"invalid option"),exe(e),Fs(o,83)>-1&&(hd(e,br("source",!0),t.source),hd(e,br("short_src",!0),t.short_src),dd(e,br("linedefined",!0),t.linedefined),dd(e,br("lastlinedefined",!0),t.lastlinedefined),hd(e,br("what",!0),t.what)),Fs(o,108)>-1&&dd(e,br("currentline",!0),t.currentline),Fs(o,117)>-1&&(dd(e,br("nups",!0),t.nups),dd(e,br("nparams",!0),t.nparams),QN(e,br("isvararg",!0),t.isvararg)),Fs(o,110)>-1&&(hd(e,br("name",!0),t.name),hd(e,br("namewhat",!0),t.namewhat)),Fs(o,116)>-1&&QN(e,br("istailcall",!0),t.istailcall),Fs(o,76)>-1&&eB(e,i,br("activelines",!0)),Fs(o,102)>-1&&eB(e,i,br("func",!0)),1},Nxe=function(e){let t=Ec(e),r=t.thread,n=t.arg,i=new yk,o=cf(e,n+2);if(lB(e,n+1))return Jy(e,n+1),uf(e,ZN(e,null,o)),1;{let h=cf(e,n+1);if(!gk(r,h,i))return xk(e,n+1,"level out of range");wk(e,r,1);let g=ZN(r,i,o);return g?(e1(r,e,1),uf(e,g),cB(e,-2,1),2):(Ac(e),1)}},Bxe=function(e){let t=Ec(e),r=t.thread,n=t.arg,i=new yk,o=cf(e,n+1),h=cf(e,n+2);if(!gk(r,o,i))return xk(e,n+1,"level out of range");t1(e,n+3),md(e,n+3),wk(e,r,1),e1(e,r,1);let g=lxe(r,i,h);return g===null&&rxe(r,1),uf(e,g),1},pB=function(e,t){let r=cf(e,2);r1(e,1,mk);let n=t?oB(e,1,r):uxe(e,1,r);return n===null?0:(uf(e,n),Jbe(e,-(t+1)),t+1)},Cxe=function(e){return pB(e,1)},Uxe=function(e){return t1(e,3),pB(e,0)},dk=function(e,t,r){let n=cf(e,r);return r1(e,t,mk),Yy(e,oB(e,t,n)!==null,r,"invalid upvalue index"),n},Dxe=function(e){let t=dk(e,1,2);return uB(e,yxe(e,1,t)),1},Pxe=function(e){let t=dk(e,1,2),r=dk(e,3,4);return Yy(e,!JN(e,1),1,"Lua function expected"),Yy(e,!JN(e,3),3,"Lua function expected"),gxe(e,1,t,3,r),0},Zy=br("__hooks__",!0),Fxe=["call","return","line","count","tail call"].map(e=>br(e)),mB=function(e,t){vk(e,pd,Zy);let n=bk(e,-1).get(e);n&&(n(e),uf(e,Fxe[t.event]),t.currentline>=0?_k(e,t.currentline):Ac(e),Axe.lua_assert(aB(e,br("lS"),t)),jbe(e,2,0))},qxe=function(e,t){let r=0;return Fs(e,99)>-1&&(r|=tB),Fs(e,114)>-1&&(r|=nB),Fs(e,108)>-1&&(r|=rB),t>0&&(r|=Hbe),r},Lxe=function(e,t){let r=0;return e&tB&&(t[r++]=99),e&nB&&(t[r++]=114),e&rB&&(t[r++]=108),t.subarray(0,r)},Gxe=function(e){let t,r,n,i=Ec(e),o=i.thread,h=i.arg;if(fB(e,h+1))md(e,h+1),n=null,t=0,r=0;else{let w=_xe(e,h+2);r1(e,h+1,mk),r=dB(e,h+3,0),n=mB,t=qxe(w,r)}let g;vk(e,pd,Zy)===iB?(g=new WeakMap,uB(e,g),axe(e,pd,Zy)):g=bk(e,-1);let v=dxe(e,h+1);return g.set(o,v),oxe(o,n,t,r),0},Kxe=function(e){let r=Ec(e).thread,n=new Uint8Array(5),i=$be(r),o=Wbe(r);return o===null?Ac(e):o!==mB?sxe(e,"external hook"):(vk(e,pd,Zy),bk(e,-1).get(r)(e)),uf(e,Lxe(i,n)),_k(e,Xbe(r)),3},Hxe=function(e){let t=Ec(e),r=t.thread,n=t.arg,i=pxe(e,n+1);if(i===null&&!fB(e,n+1))Jy(e,n+1);else{let o=dB(e,n+2,e===r?1:0);kxe(e,r,i,o)}return 1},yB={gethook:Kxe,getinfo:Ixe,getlocal:Nxe,getmetatable:Sxe,getregistry:Exe,getupvalue:Cxe,getuservalue:Rxe,sethook:Gxe,setlocal:Bxe,setmetatable:Txe,setupvalue:Uxe,setuservalue:Oxe,traceback:Hxe,upvalueid:Dxe,upvaluejoin:Pxe},pk;typeof window<"u"&&(pk=function(){let e=prompt("lua_debug>","");return e!==null?e:""});pk&&(yB.debug=function(e){for(;;){let t=pk();if(t==="cont")return 0;if(t.length===0)continue;let r=br(t);(bxe(e,r,r.length,br("=(debug command)",!0))||txe(e,0,0,0))&&Mxe(hxe(e,-1),`
163
+ `),md(e,0)}});var zxe=function(e){return xxe(e,yB),1};gB.exports.luaopen_debug=zxe});var Ck=I((WHe,JB)=>{"use strict";b();var{LUA_DIRSEP:n1,LUA_EXEC_DIR:jxe,LUA_JSPATH_DEFAULT:Vxe,LUA_PATH_DEFAULT:Wxe,LUA_PATH_MARK:AB,LUA_PATH_SEP:hf}=Vn(),{LUA_OK:Sc,LUA_REGISTRYINDEX:Wo,LUA_TNIL:Ek,LUA_TTABLE:Xxe,lua_callk:EB,lua_createtable:SB,lua_getfield:Ua,lua_insert:Sk,lua_isfunction:$xe,lua_isnil:Yxe,lua_isstring:Zxe,lua_newtable:Jxe,lua_pop:Ca,lua_pushboolean:TB,lua_pushcclosure:Qxe,lua_pushcfunction:ewe,lua_pushfstring:yd,lua_pushglobaltable:twe,lua_pushlightuserdata:rwe,lua_pushliteral:RB,lua_pushlstring:Tk,lua_pushnil:OB,lua_pushstring:qs,lua_pushvalue:i1,lua_rawgeti:nwe,lua_rawgetp:IB,lua_rawseti:NB,lua_rawsetp:iwe,lua_remove:Mk,lua_setfield:Vo,lua_setmetatable:swe,lua_settop:awe,lua_toboolean:BB,lua_tostring:Tc,lua_touserdata:owe,lua_upvalueindex:CB}=Pn(),{LUA_LOADED_TABLE:UB,LUA_PRELOAD_TABLE:DB,luaL_Buffer:PB,luaL_addvalue:FB,luaL_buffinit:qB,luaL_checkstring:Da,luaL_error:s1,luaL_getsubtable:_B,luaL_gsub:gd,luaL_len:lwe,luaL_loadfile:fwe,luaL_newlib:uwe,luaL_optstring:vB,luaL_pushresult:LB,luaL_setfuncs:cwe}=yi(),hwe=tf(),{luastring_indexOf:Rk,to_jsstring:GB,to_luastring:ct,to_uristring:KB}=ai(),dwe=_d(),HB=(function(){return typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:(0,eval)("this")})(),Ok=ct("__JSLIBS__"),pwe="LUA_PATH",mwe="LUA_JSPATH",zB="-",jB=n1,ywe=n1,bB=ct("luaopen_"),gwe=ct("_"),_we="open",xB=ct(""),VB;VB=function(e,t,r){t=KB(t);let n=new XMLHttpRequest;if(n.open("GET",t,!1),n.send(),n.status<200||n.status>=300)return qs(e,ct(`${n.status}: ${n.statusText}`)),null;let i=n.response;/\/\/[#@] sourceURL=/.test(i)||(i+=" //# sourceURL="+t);let o;try{o=Function("fengari",i)}catch(g){return qs(e,ct(`${g.name}: ${g.message}`)),null}let h=o(dwe);return typeof h=="function"||typeof h=="object"&&h!==null?h:h===void 0?HB:(qs(e,ct(`library returned unexpected type (${typeof h})`)),null)};var vwe=function(e,t,r){let n=t[GB(r)];return n&&typeof n=="function"?n:(yd(e,ct("undefined symbol: %s"),r),null)},bwe=function(e){Ua(e,Wo,ct("LUA_NOENV"));let t=BB(e,-1);return Ca(e,1),t},WB;WB=function(e){e=KB(e);let t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(),t.status>=200&&t.status<=299};var XB=1,Ik=2,Ak=function(e,t,r){let n=wwe(e,t);if(n===null){if(n=VB(e,t,r[0]===42),n===null)return XB;kwe(e,t,n)}if(r[0]===42)return TB(e,1),0;{let i=vwe(e,n,r);return i===null?Ik:(ewe(e,i),0)}},xwe=function(e){let t=Da(e,1),r=Da(e,2),n=Ak(e,t,r);return n===0?1:(OB(e),Sk(e,-2),RB(e,n===XB?_we:"init"),3)},wB=(function(){return HB})(),kB=function(e,t,r,n){let i=`${r}${hwe.LUA_VERSUFFIX}`;qs(e,ct(i));let o=wB[i];o===void 0&&(o=wB[r]),o===void 0||bwe(e)?qs(e,n):(o=gd(e,ct(o),ct(hf+hf,!0),ct(hf+GB(xB)+hf,!0)),gd(e,o,xB,n),Mk(e,-2)),Vo(e,-3,t),Ca(e,1)},wwe=function(e,t){IB(e,Wo,Ok),Ua(e,-1,t);let r=owe(e,-1);return Ca(e,2),r},kwe=function(e,t,r){IB(e,Wo,Ok),rwe(e,r),i1(e,-1),Vo(e,-3,t),NB(e,-2,lwe(e,-2)+1),Ca(e,1)},Mwe=function(e,t){for(;t[0]===hf.charCodeAt(0);)t=t.subarray(1);if(t.length===0)return null;let r=Rk(t,hf.charCodeAt(0));return r<0&&(r=t.length),Tk(e,t,r),t.subarray(r)},$B=function(e,t,r,n,i){let o=new PB;for(qB(e,o),n[0]!==0&&(t=gd(e,t,n,i));(r=Mwe(e,r))!==null;){let h=gd(e,Tc(e,-1),ct(AB,!0),t);if(Mk(e,-2),WB(h))return h;yd(e,ct(`
164
+ no file '%s'`),h),Mk(e,-2),FB(o)}return LB(o),null},Awe=function(e){return $B(e,Da(e,1),Da(e,2),vB(e,3,"."),vB(e,4,n1))!==null?1:(OB(e),Sk(e,-2),2)},Nk=function(e,t,r,n){Ua(e,CB(1),r);let i=Tc(e,-1);return i===null&&s1(e,ct("'package.%s' must be a string"),r),$B(e,t,i,ct("."),n)},Bk=function(e,t,r){return t?(qs(e,r),2):s1(e,ct(`error loading module '%s' from file '%s':
165
+ %s`),Tc(e,1),r,Tc(e,-1))},Ewe=function(e){let t=Da(e,1),r=Nk(e,t,ct("path",!0),ct(ywe,!0));return r===null?1:Bk(e,fwe(e,r)===Sc,r)},YB=function(e,t,r){let n;r=gd(e,r,ct("."),gwe);let i=Rk(r,zB.charCodeAt(0));if(i>=0){n=Tk(e,r,i),n=yd(e,ct("%s%s"),bB,n);let o=Ak(e,t,n);if(o!==Ik)return o;r=i+1}return n=yd(e,ct("%s%s"),bB,r),Ak(e,t,n)},Swe=function(e){let t=Da(e,1),r=Nk(e,t,ct("jspath",!0),ct(jB,!0));return r===null?1:Bk(e,YB(e,r,t)===0,r)},Twe=function(e){let t=Da(e,1),r=Rk(t,46),n;if(r<0)return 0;Tk(e,t,r);let i=Nk(e,Tc(e,-1),ct("jspath",!0),ct(jB,!0));return i===null?1:(n=YB(e,i,t))!==0?n!=Ik?Bk(e,0,i):(qs(e,ct(`
166
+ no module '%s' in file '%s'`),t,i),1):(qs(e,i),2)},Rwe=function(e){let t=Da(e,1);return Ua(e,Wo,DB),Ua(e,-1,t)===Ek&&yd(e,ct(`
167
+ no field package.preload['%s']`),t),1},Owe=function(e,t,r,n){let i=new PB;return qB(e,i),Ua(e,CB(1),ct("searchers",!0))!==Xxe&&s1(e,ct("'package.searchers' must be a table")),ZB(e,Sc,{name:t,i:1,msg:i,ctx:r,k:n})},ZB=function(e,t,r){for(;t===Sc?(nwe(e,3,r.i)===Ek&&(Ca(e,1),LB(r.msg),s1(e,ct("module '%s' not found:%s"),r.name,Tc(e,-1))),qs(e,r.name),EB(e,1,2,r,ZB)):t=Sc,!$xe(e,-2);r.i++)Zxe(e,-2)?(Ca(e,1),FB(r.msg)):Ca(e,2);return r.k(e,Sc,r.ctx)},Iwe=function(e){let t=Da(e,1);return awe(e,1),Ua(e,Wo,UB),Ua(e,2,t),BB(e,-1)?1:(Ca(e,1),Owe(e,t,t,Nwe))},Nwe=function(e,t,r){return qs(e,r),Sk(e,-2),EB(e,2,1,r,MB),MB(e,Sc,r)},MB=function(e,t,r){let n=r;return Yxe(e,-1)||Vo(e,2,n),Ua(e,2,n)==Ek&&(TB(e,1),i1(e,-1),Vo(e,2,n)),1},Bwe={loadlib:xwe,searchpath:Awe},Cwe={require:Iwe},Uwe=function(e){let t=[Rwe,Ewe,Swe,Twe,null];SB(e);for(let r=0;t[r];r++)i1(e,-2),Qxe(e,t[r],1),NB(e,-2,r+1);Vo(e,-2,ct("searchers",!0))},Dwe=function(e){Jxe(e),SB(e,0,1),swe(e,-2),iwe(e,Wo,Ok)},Pwe=function(e){return Dwe(e),uwe(e,Bwe),Uwe(e),kB(e,ct("path",!0),pwe,Wxe),kB(e,ct("jspath",!0),mwe,Vxe),RB(e,n1+`
168
+ `+hf+`
169
+ `+AB+`
170
+ `+jxe+`
171
+ `+zB+`
172
+ `),Vo(e,-2,ct("config",!0)),_B(e,Wo,UB),Vo(e,-2,ct("loaded",!0)),_B(e,Wo,DB),Vo(e,-2,ct("preload",!0)),twe(e),i1(e,-2),cwe(e,Cwe,1),Ca(e,1),1};JB.exports.luaopen_package=Pwe});var Uk=I((YHe,QB)=>{b();var{lua_pushinteger:Fwe,lua_pushliteral:df,lua_setfield:Xo}=Pn(),{luaL_newlib:qwe}=yi(),{FENGARI_AUTHORS:Lwe,FENGARI_COPYRIGHT:Gwe,FENGARI_RELEASE:Kwe,FENGARI_VERSION:Hwe,FENGARI_VERSION_MAJOR:zwe,FENGARI_VERSION_MINOR:jwe,FENGARI_VERSION_NUM:Vwe,FENGARI_VERSION_RELEASE:Wwe,to_luastring:$o}=ai(),Xwe=function(e){return qwe(e,{}),df(e,Lwe),Xo(e,-2,$o("AUTHORS")),df(e,Gwe),Xo(e,-2,$o("COPYRIGHT")),df(e,Kwe),Xo(e,-2,$o("RELEASE")),df(e,Hwe),Xo(e,-2,$o("VERSION")),df(e,zwe),Xo(e,-2,$o("VERSION_MAJOR")),df(e,jwe),Xo(e,-2,$o("VERSION_MINOR")),Fwe(e,Vwe),Xo(e,-2,$o("VERSION_NUM")),df(e,Wwe),Xo(e,-2,$o("VERSION_RELEASE")),1};QB.exports.luaopen_fengari=Xwe});var tC=I((JHe,eC)=>{"use strict";b();var{lua_pop:$we}=Pn(),{luaL_requiref:Ywe}=yi(),{to_luastring:Zwe}=ai(),Ri={},Jwe=function(e){for(let t in Ri)Ywe(e,Zwe(t),Ri[t],1),$we(e,1)};eC.exports.luaL_openlibs=Jwe;var Pa=tf(),{luaopen_base:Qwe}=g2(),{luaopen_coroutine:e2e}=b2(),{luaopen_debug:t2e}=kk(),{luaopen_math:r2e}=hk(),{luaopen_package:n2e}=Ck(),{luaopen_os:i2e}=O2(),{luaopen_string:s2e}=ik(),{luaopen_table:a2e}=S2(),{luaopen_utf8:o2e}=ok();Ri._G=Qwe,Ri[Pa.LUA_LOADLIBNAME]=n2e;Ri[Pa.LUA_COLIBNAME]=e2e;Ri[Pa.LUA_TABLIBNAME]=a2e;Ri[Pa.LUA_OSLIBNAME]=i2e;Ri[Pa.LUA_STRLIBNAME]=s2e;Ri[Pa.LUA_MATHLIBNAME]=r2e;Ri[Pa.LUA_UTF8LIBNAME]=o2e;Ri[Pa.LUA_DBLIBNAME]=t2e;var{luaopen_fengari:l2e}=Uk();Ri[Pa.LUA_FENGARILIBNAME]=l2e});var tf=I((eze,ar)=>{"use strict";b();var{LUA_VERSION_MAJOR:f2e,LUA_VERSION_MINOR:u2e}=Pn(),c2e="_"+f2e+"_"+u2e;ar.exports.LUA_VERSUFFIX=c2e;ar.exports.lua_assert=function(e){};ar.exports.luaopen_base=g2().luaopen_base;var h2e="coroutine";ar.exports.LUA_COLIBNAME=h2e;ar.exports.luaopen_coroutine=b2().luaopen_coroutine;var d2e="table";ar.exports.LUA_TABLIBNAME=d2e;ar.exports.luaopen_table=S2().luaopen_table;var p2e="os";ar.exports.LUA_OSLIBNAME=p2e;ar.exports.luaopen_os=O2().luaopen_os;var m2e="string";ar.exports.LUA_STRLIBNAME=m2e;ar.exports.luaopen_string=ik().luaopen_string;var y2e="utf8";ar.exports.LUA_UTF8LIBNAME=y2e;ar.exports.luaopen_utf8=ok().luaopen_utf8;var g2e="bit32";ar.exports.LUA_BITLIBNAME=g2e;var _2e="math";ar.exports.LUA_MATHLIBNAME=_2e;ar.exports.luaopen_math=hk().luaopen_math;var v2e="debug";ar.exports.LUA_DBLIBNAME=v2e;ar.exports.luaopen_debug=kk().luaopen_debug;var b2e="package";ar.exports.LUA_LOADLIBNAME=b2e;ar.exports.luaopen_package=Ck().luaopen_package;var x2e="fengari";ar.exports.LUA_FENGARILIBNAME=x2e;ar.exports.luaopen_fengari=Uk().luaopen_fengari;var w2e=tC();ar.exports.luaL_openlibs=w2e.luaL_openlibs});var _d=I((rze,Jr)=>{"use strict";b();var Jn=ai();Jr.exports.FENGARI_AUTHORS=Jn.FENGARI_AUTHORS;Jr.exports.FENGARI_COPYRIGHT=Jn.FENGARI_COPYRIGHT;Jr.exports.FENGARI_RELEASE=Jn.FENGARI_RELEASE;Jr.exports.FENGARI_VERSION=Jn.FENGARI_VERSION;Jr.exports.FENGARI_VERSION_MAJOR=Jn.FENGARI_VERSION_MAJOR;Jr.exports.FENGARI_VERSION_MINOR=Jn.FENGARI_VERSION_MINOR;Jr.exports.FENGARI_VERSION_NUM=Jn.FENGARI_VERSION_NUM;Jr.exports.FENGARI_VERSION_RELEASE=Jn.FENGARI_VERSION_RELEASE;Jr.exports.luastring_eq=Jn.luastring_eq;Jr.exports.luastring_indexOf=Jn.luastring_indexOf;Jr.exports.luastring_of=Jn.luastring_of;Jr.exports.to_jsstring=Jn.to_jsstring;Jr.exports.to_luastring=Jn.to_luastring;Jr.exports.to_uristring=Jn.to_uristring;var k2e=Vn(),M2e=Pn(),A2e=yi(),E2e=tf();Jr.exports.luaconf=k2e;Jr.exports.lua=M2e;Jr.exports.lauxlib=A2e;Jr.exports.lualib=E2e});var Vk=I((ize,Ls)=>{"use strict";b();var{lua:S2e,lauxlib:T2e,lualib:R2e,to_luastring:pr}=_d(),{LUA_MULTRET:sC,LUA_OK:_f,LUA_REGISTRYINDEX:Gk,LUA_RIDX_MAINTHREAD:O2e,LUA_TBOOLEAN:I2e,LUA_TFUNCTION:N2e,LUA_TLIGHTUSERDATA:B2e,LUA_TNIL:pf,LUA_TNONE:C2e,LUA_TNUMBER:U2e,LUA_TSTRING:D2e,LUA_TTABLE:P2e,LUA_TTHREAD:F2e,LUA_TUSERDATA:aC,lua_atnativeerror:q2e,lua_call:L2e,lua_getfield:G2e,lua_gettable:K2e,lua_gettop:gf,lua_isnil:oC,lua_isproxy:H2e,lua_newuserdata:z2e,lua_pcall:vf,lua_pop:Mn,lua_pushboolean:lC,lua_pushcfunction:Jo,lua_pushinteger:j2e,lua_pushlightuserdata:V2e,lua_pushliteral:o1,lua_pushnil:fC,lua_pushnumber:uC,lua_pushstring:cC,lua_pushvalue:W2e,lua_rawgeti:X2e,lua_rawgetp:$2e,lua_rawsetp:Y2e,lua_rotate:Rc,lua_setfield:vd,lua_settable:hC,lua_settop:Pk,lua_toboolean:Z2e,lua_tojsstring:J2e,lua_tonumber:Q2e,lua_toproxy:yf,lua_tothread:eke,lua_touserdata:dC,lua_type:tke}=S2e,{luaL_argerror:rC,luaL_checkany:rke,luaL_checkoption:nke,luaL_checkstack:Ln,luaL_checkudata:ike,luaL_error:Dk,luaL_getmetafield:Oc,luaL_newlib:ske,luaL_newmetatable:ake,luaL_requiref:oke,luaL_setfuncs:lke,luaL_setmetatable:fke,luaL_testudata:uke,luaL_tolstring:cke}=T2e,{luaopen_base:hke}=R2e,dke="0",pke="1",pC=1,mke="3",Kk=dke+"."+pke,mC=Kk+"."+mke,nC,yke=(function(){return typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:(0,eval)("this")})(),mf,Fk,qk;if(typeof Reflect<"u")mf=Reflect.apply,Fk=Reflect.construct,qk=Reflect.deleteProperty;else{let e=Function.apply,t=Function.bind;mf=function(r,n,i){return e.call(r,n,i)},Fk=function(r,n){switch(n.length){case 0:return new r;case 1:return new r(n[0]);case 2:return new r(n[0],n[1]);case 3:return new r(n[0],n[1],n[2]);case 4:return new r(n[0],n[1],n[2],n[3])}let i=[null];return i.push.apply(i,n),new(t.apply(r,i))},qk=Function("t","k","delete t[k]")}var yC=String.prototype.concat.bind(""),gC=function(e){return typeof e=="object"?e!==null:typeof e=="function"},l1=pr("js object"),Lk="js library not loaded into lua_State",_C=function(e,t){let r=uke(e,t,l1);if(r)return r.data},Yo=function(e,t){return ike(e,t,l1).data},Hk=function(e,t){let r=z2e(e);r.data=t,fke(e,l1)},f1=function(e){X2e(e,Gk,O2e);let t=eke(e,-1);return Mn(e,1),t},zk=new WeakMap,Qt=function(e,t){switch(typeof t){case"undefined":fC(e);break;case"number":uC(e,t);break;case"string":cC(e,pr(t));break;case"boolean":lC(e,t);break;case"symbol":V2e(e,t);break;case"function":if(H2e(t,e)){t(e);break}case"object":if(t===null){if($2e(e,Gk,null)!==aC)throw Error(Lk);break}default:{let r=zk.get(f1(e));if(!r)throw Error(Lk);let n=r.get(t);n?n(e):(Hk(e,t),n=yf(e,-1),r.set(t,n))}}},gke=function(e){let t=dC(e,1);return Qt(e,t),1},Jt=function(e,t){switch(tke(e,t)){case C2e:case pf:return;case I2e:return Z2e(e,t);case B2e:return dC(e,t);case U2e:return Q2e(e,t);case D2e:return J2e(e,t);case aC:{let r=_C(e,t);if(r!==void 0)return r}case P2e:case N2e:case F2e:default:return bke(e,yf(e,t))}},Zo=function(e,t){let r=vf(e,t,1,0),n=Jt(e,-1);switch(Mn(e,1),r){case _f:return n;default:throw n}},a1=function(e,t,r,n,i){if(!gC(n))throw new TypeError("`args` argument must be an object");let o=+n.length;o>=0||(o=0),Ln(e,2+o,null);let h=gf(e);t(e),Qt(e,r);for(let g=0;g<o;g++)Qt(e,n[g]);switch(vf(e,1+o,i,0)){case _f:{let g=gf(e)-h,v=new Array(g);for(let w=0;w<g;w++)v[w]=Jt(e,h+w+1);return Pk(e,h),v}default:{let g=Jt(e,-1);throw Pk(e,h),g}}},vC=function(e){return K2e(e,1),1},bC=function(e,t,r){return Ln(e,3,null),Jo(e,vC),t(e),Qt(e,r),Zo(e,2)},xC=function(e,t,r){switch(Ln(e,3,null),Jo(e,vC),t(e),Qt(e,r),vf(e,2,1,0)){case _f:{let i=oC(e,-1);return Mn(e,1),!i}default:{let i=Jt(e,-1);throw Mn(e,1),i}}},wC=function(e,t,r,n){switch(Ln(e,4,null),Jo(e,function(i){return hC(i,1),0}),t(e),Qt(e,r),Qt(e,n),vf(e,3,0,0)){case _f:return;default:{let i=Jt(e,-1);throw Mn(e,1),i}}},kC=function(e,t,r){switch(Ln(e,4,null),Jo(e,function(n){return hC(n,1),0}),t(e),Qt(e,r),fC(e),vf(e,3,0,0)){case _f:return;default:{let n=Jt(e,-1);throw Mn(e,1),n}}},iC=function(e,t){return Ln(e,2,null),Jo(e,function(r){return cke(r,1),1}),t(e),Zo(e,1)},_ke=function(){let e=this.L;Ln(e,3,null);let t=gf(e);switch(this.iter(e),this.state(e),this.last(e),vf(e,2,sC,0)){case _f:{this.last=yf(e,t+1);let r;if(oC(e,-1))r={done:!0,value:void 0};else{let n=gf(e)-t,i=new Array(n);for(let o=0;o<n;o++)i[o]=Jt(e,t+o+1);r={done:!1,value:i}}return Pk(e,t),r}default:{let r=Jt(e,-1);throw Mn(e,1),r}}},vke=function(e,t){switch(Ln(e,1,null),Jo(e,function(r){return oke(r,pr("_G"),hke,0),G2e(r,-1,pr("pairs")),t(r),L2e(r,1,3),3}),vf(e,0,3,0)){case _f:{let r=yf(e,-3),n=yf(e,-2),i=yf(e,-1);return Mn(e,3),{L:e,iter:r,state:n,last:i,next:_ke}}default:{let r=Jt(e,-1);throw Mn(e,1),r}}},bke=function(e,t){let r=f1(e),n=function(){return a1(r,t,this,arguments,1)[0]};n.apply=function(o,h){return a1(r,t,o,h,1)[0]},n.invoke=function(o,h){return a1(r,t,o,h,sC)},n.get=function(o){return bC(r,t,o)},n.has=function(o){return xC(r,t,o)},n.set=function(o,h){return wC(r,t,o,h)},n.delete=function(o){return kC(r,t,o)},n.toString=function(){return iC(r,t)},typeof Symbol=="function"&&(n[Symbol.toStringTag]="Fengari object",n[Symbol.iterator]=function(){return vke(r,t)},Symbol.toPrimitive&&(n[Symbol.toPrimitive]=function(o){if(o==="string")return iC(r,t)})),nC&&(n[nC]=n.toString);let i=zk.get(r);if(!i)throw Error(Lk);return i.set(n,t),n},jk={new:function(e){let t=Jt(e,1),r=gf(e)-1,n=new Array(r);for(let i=0;i<r;i++)n[i]=Jt(e,i+2);return Qt(e,Fk(t,n)),1},tonumber:function(e){let t=Jt(e,1);return uC(e,+t),1},tostring:function(e){let t=Jt(e,1);return o1(e,yC(t)),1},instanceof:function(e){let t=Jt(e,1),r=Jt(e,2);return lC(e,t instanceof r),1},typeof:function(e){let t=Jt(e,1);return o1(e,typeof t),1}};if(typeof Symbol=="function"&&Symbol.iterator){let e=function(r,n){let i=Yo(r,n),o=i[Symbol.iterator];o||rC(r,n,pr("object not iterable"));let h=mf(o,i,[]);return gC(h)||rC(r,n,pr("Result of the Symbol.iterator method is not an object")),h},t=function(r){let i=Jt(r,1).next();return i.done?0:(Qt(r,i.value),1)};jk.of=function(r){let n=e(r,1);return Jo(r,t),Qt(r,n),2}}if(typeof Proxy=="function"&&typeof Symbol=="function"){let e=Symbol("lua_State"),t=Symbol("fengari-proxy"),r={apply:function(w,k,A){return a1(w[e],w[t],k,A,1)[0]},construct:function(w,k){let A=w[e],R=w[t],O=k.length;Ln(A,2+O,null),R(A);let B=gf(A);if(Oc(A,B,pr("construct"))===pf)throw Mn(A,1),new TypeError("not a constructor");Rc(A,B,1);for(let L=0;L<O;L++)Qt(A,k[L]);return Zo(A,1+O)},defineProperty:function(w,k,A){let R=w[e],O=w[t];return Ln(R,4,null),O(R),Oc(R,-1,pr("defineProperty"))===pf?(Mn(R,1),!1):(Rc(R,-2,1),Qt(R,k),Qt(R,A),Zo(R,3))},deleteProperty:function(w,k){return kC(w[e],w[t],k)},get:function(w,k){return bC(w[e],w[t],k)},getOwnPropertyDescriptor:function(w,k){let A=w[e],R=w[t];if(Ln(A,3,null),R(A),Oc(A,-1,pr("getOwnPropertyDescriptor"))===pf){Mn(A,1);return}return Rc(A,-2,1),Qt(A,k),Zo(A,2)},getPrototypeOf:function(w){let k=w[e],A=w[t];return Ln(k,2,null),A(k),Oc(k,-1,pr("getPrototypeOf"))===pf?(Mn(k,1),null):(Rc(k,-2,1),Zo(k,1))},has:function(w,k){return xC(w[e],w[t],k)},ownKeys:function(w){let k=w[e],A=w[t];if(Ln(k,2,null),A(k),Oc(k,-1,pr("ownKeys"))===pf)throw Mn(k,1),Error("ownKeys unknown for fengari object");return Rc(k,-2,1),Zo(k,1)},set:function(w,k,A){return wC(w[e],w[t],k,A),!0},setPrototypeOf:function(w,k){let A=w[e],R=w[t];return Ln(A,3,null),R(A),Oc(A,-1,pr("setPrototypeOf"))===pf?(Mn(A,1),!1):(Rc(A,-2,1),Qt(A,k),Zo(A,2))}},n=function(){let w=(function(){}).bind();return delete w.length,delete w.name,w},i=function(){return i=Function("return ()=>void 0;"),i()},o=function(){let w=i();return delete w.length,delete w.name,w},h=function(w,k,A){let R=f1(w),O;switch(A){case"function":O=n();break;case"arrow_function":O=o();break;case"object":O={};break;default:throw TypeError("invalid type to createproxy")}return O[t]=k,O[e]=R,new Proxy(O,r)},g=["function","arrow_function","object"],v=g.map(w=>pr(w));jk.createproxy=function(w){rke(w,1);let k=g[nke(w,2,v[0],v)],A=h(w,yf(w,1),k);return Qt(w,A),1}}var xke={__index:function(e){let t=Yo(e,1),r=Jt(e,2);return Qt(e,t[r]),1},__newindex:function(e){let t=Yo(e,1),r=Jt(e,2),n=Jt(e,3);return n===void 0?qk(t,r):t[r]=n,0},__tostring:function(e){let t=Yo(e,1),r=yC(t);return cC(e,pr(r)),1},__call:function(e){let t=Yo(e,1),r=gf(e)-1,n,i=new Array(Math.max(0,r-1));if(r>0&&(n=Jt(e,2),r-- >0))for(let o=0;o<r;o++)i[o]=Jt(e,o+3);return Qt(e,mf(t,n,i)),1},__pairs:function(e){let t=Yo(e,1),r,n,i,o;if(typeof Symbol!="function"||(r=t[Symbol.for("__pairs")])===void 0)n=function(h){if(this.index>=this.keys.length)return;let g=this.keys[this.index++];return[g,this.object[g]]},i={object:t,keys:Object.keys(t),index:0};else{let h=mf(r,t,[]);h===void 0&&Dk(e,pr("bad '__pairs' result (object with keys 'iter', 'state', 'first' expected)")),n=h.iter,n===void 0&&Dk(e,pr("bad '__pairs' result (object.iter is missing)")),i=h.state,o=h.first}return Jo(e,function(){let h=Jt(e,1),g=Jt(e,2),v=mf(n,h,[g]);if(v===void 0)return 0;Array.isArray(v)||Dk(e,pr("bad iterator result (Array or undefined expected)")),Ln(e,v.length,null);for(let w=0;w<v.length;w++)Qt(e,v[w]);return v.length}),Qt(e,i),Qt(e,o),3},__len:function(e){let t=Yo(e,1),r,n;return typeof Symbol!="function"||(r=t[Symbol.for("__len")])===void 0?n=t.length:n=mf(r,t,[]),Qt(e,n),1}},wke=function(e){return zk.set(f1(e),new WeakMap),q2e(e,gke),ske(e,jk),o1(e,Kk),vd(e,-2,pr("_VERSION")),j2e(e,pC),vd(e,-2,pr("_VERSION_NUM")),o1(e,mC),vd(e,-2,pr("_RELEASE")),ake(e,l1),lke(e,xke,0),Mn(e,1),Hk(e,null),W2e(e,-1),Y2e(e,Gk,null),vd(e,-2,pr("null")),Qt(e,yke),vd(e,-2,pr("global")),1};Ls.exports.FENGARI_INTEROP_VERSION=Kk;Ls.exports.FENGARI_INTEROP_VERSION_NUM=pC;Ls.exports.FENGARI_INTEROP_RELEASE=mC;Ls.exports.checkjs=Yo;Ls.exports.testjs=_C;Ls.exports.pushjs=Hk;Ls.exports.push=Qt;Ls.exports.tojs=Jt;Ls.exports.luaopen_js=wke});var MC,es,Xt,kke,AC,Wk,Mke,Ake,Eke,Ske,Tke,EC,SC,Rke,Oke,Ike,Xk,Nke,Bke,Cke,TC,RC,OC=K(()=>{b();MC=mt(_d()),es=mt(Vk()),{lua:Xt,lualib:kke,lauxlib:AC,to_luastring:Wk,to_jsstring:Mke}=MC.default,Ake=e=>t=>{if(AC.luaL_dostring(e,Wk(t))!==0){let i=`Error trying to loading or executing lua code string in VM: ${Xt.lua_tojsstring(e,-1)}`;throw new Error(i)}},Eke=e=>{Xt.lua_len(e,-1);let t=Xt.lua_tointeger(e,-1);return Xt.lua_pop(e,1),t},Ske=e=>t=>Mke(Xt.lua_typename(e,Xt.lua_type(e,t))),Tke=e=>{if(Xt.lua_isnil(e,-1))throw new Error("cannot get keys on nil");if(!Xt.lua_istable(e,-1))throw new Error(`non-tables don't have keys! type is "${Ske(e)(-1)}"`);Xt.lua_pushnil(e);let t=[];for(;Xt.lua_next(e,-2)!==0;)t.push(es.default.tojs(e,-2)),Xt.lua_pop(e,1);return t},EC=e=>()=>{try{return Tke(e).reverse().every((r,n)=>r===n+1)}catch{return!1}},SC=e=>{if(!EC(e)()){let o=es.default.tojs(e,-1);return Array.isArray(o)?o.slice(1):o}let r=Eke(e),n=es.default.tojs(e,-1),i=[];if(r===0)return Xt.lua_pop(e,1),i;for(let o=1;o<=r;o++)es.default.push(e,n.get(o)),i.push(SC(e));return Xt.lua_pop(e,1),i},Rke=e=>t=>{let r=Xt.lua_gettop(e)-t+1,n;return r>0&&(n=SC(e)),Xt.lua_settop(e,t),n},Oke=e=>t=>{Xt.lua_newtable(e);let r=Xt.lua_gettop(e);Object.keys(t).forEach(n=>{es.default.push(e,n),Xk(e)(t[n]),Xt.lua_settable(e,r)})},Ike=e=>t=>{Xt.lua_newtable(e);let r=Xt.lua_gettop(e);t.forEach((n,i)=>{es.default.push(e,i+1),es.default.push(e,n),Xt.lua_settable(e,r)})},Xk=e=>t=>{Array.isArray(t)?Ike(e)(t):t&&typeof t=="object"&&!Array.isArray(t)?Oke(e)(t):es.default.push(e,t)},Nke=e=>(t,r)=>{Xk(e)(t),Xt.lua_setglobal(e,Wk(r))},Bke=e=>(t,r)=>{Xt.lua_pushjsfunction(e,t),Xt.lua_setglobal(e,Wk(r))},Cke=e=>()=>{let t=Xt.lua_gettop(e),r=[],n=-t;for(;n<0;)r.push(n),n+=1;return r.map(i=>es.default.tojs(e,i))},TC=()=>{let e=AC.luaL_newstate();return kke.luaL_openlibs(e),es.default.luaopen_js(e),{L:e,defineGlobalFunction:Bke(e),defineGlobalArray:Nke(e),luaExecString:Ake(e),extractArgs:Cke(e),popReturnValue:Rke(e),utils:{isTopArray:EC(e),push:Xk(e)}}},RC=e=>{let t=e.L||e;Xt.lua_close(t)}});function CC(e,t,r){let n=r.slice(0,t);e.defineGlobalArray(n,"KEYS")}function UC(e,t,r){let n=r.slice(t);e.defineGlobalArray(n,"ARGV")}function Pke(e,{numberOfKeys:t,lua:r}){let n=ca(Ic(t,r).bind(this),e,this);this[e]=n,this.customCommands[e]=n}var IC,$k,NC,Uke,BC,Dke,Ic,u1=K(()=>{b();IC=mt(_d()),$k=mt(Vk());Iu();OC();xr();({lua:NC,to_luastring:Uke}=IC.default),BC=e=>t=>{e.defineGlobalFunction(t,"call"),e.luaExecString(`
173
+ local redis = {}
174
+ function repair(val)
175
+ if val == nil then
176
+ return false
177
+ end
178
+ return val
179
+ end
180
+ unpack = table.unpack
181
+ redis.call = function(...)
182
+ return repair(call(false, ...))
183
+ end
184
+ redis.pcall = function(...)
185
+ return repair(call(true, ...))
186
+ end
187
+ return redis
188
+ `),NC.lua_setglobal(e.L,Uke("redis"))},Dke=e=>function(){let r=e.extractArgs(),n=r[0],i;try{let o=r.slice(1),h=o[0].toLowerCase();i=Fa[h].bind(this)(...o.slice(1)),h==="hgetall"&&(i=[].concat(...Object.entries(i)))}catch(o){if(!n)throw o;return $k.default.push(e.L,["error",o.toString()]),1}return i||i===0?(Array.isArray(i)&&(i.unshift(null),i[Symbol.for("__len")]=function(){return this.length-1}),$k.default.push(e.L,i),1):0};Ic=(e,t)=>function(...n){let i=TC();BC(i)(Dke(i).bind(this)),CC.bind(this)(i,e,n),UC.bind(this)(i,e,n);let o=NC.lua_gettop(i.L);i.luaExecString(t);let h=i.popReturnValue(o);return RC(i),h}});function DC(e){let t={...Yk},n=e.replace("A","g$lshzxe");return t.g=n.includes("g"),t.string=n.includes("$"),t.l=n.includes("l"),t.s=n.includes("s"),t.h=n.includes("h"),t.z=n.includes("z"),t.x=n.includes("x"),t.e=n.includes("e"),t}function Zk(e){let t={K:{...Yk},E:{...Yk}},r=e.includes("K"),n=e.includes("E");return r&&(t.K=DC(e)),n&&(t.E=DC(e)),t}function PC(e,t){return`__${e==="K"?"keyspace":"keyevent"}@0__:${t}`}function bf(e,t,r,n){e.keyspaceEvents.K[t]===!0&&e.publish(PC("K",r),n),e.keyspaceEvents.E[t]===!0&&e.publish(PC("E",n),r)}var Yk,bd=K(()=>{b();Yk={g:!1,string:!1,l:!1,s:!1,h:!1,z:!1,x:!1,e:!1}});function c1(...e){if(e.length===0||!e[0])throw new Error("ERR wrong number of arguments for 'del' command");let t=0;return e.forEach(r=>{this.data.has(r)&&(t++,bf(this,"g",r,"del")),this.data.delete(r)}),t}var Fke,Jk=K(()=>{b();bd();Fke=c1});function FC(){if(!this.batch)throw new Error("ERR DISCARD without MULTI");return this.dirty=!1,this.watching.clear(),this.batch=void 0,"OK"}function qke(){let e=FC.call(this);return z(e)}var qC=K(()=>{b();Ne()});function LC(e){return e}function Lke(e){let t=LC.call(this,e);return z(t)}var GC=K(()=>{b();Ne()});var rt=I((Qk,HC)=>{b();var h1=ii(),Gs=h1.Buffer;function KC(e,t){for(var r in e)t[r]=e[r]}Gs.from&&Gs.alloc&&Gs.allocUnsafe&&Gs.allocUnsafeSlow?HC.exports=h1:(KC(h1,Qk),Qk.Buffer=xf);function xf(e,t,r){return Gs(e,t,r)}xf.prototype=Object.create(Gs.prototype);KC(Gs,xf);xf.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Gs(e,t,r)};xf.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Gs(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};xf.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Gs(e)};xf.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return h1.SlowBuffer(e)}});var wf=I((Mze,t3)=>{"use strict";b();var e3=65536,Gke=4294967295;function Kke(){throw new Error(`Secure random number generation is not supported by this browser.
189
+ Use Chrome, Firefox or Internet Explorer 11`)}var Hke=rt().Buffer,d1=window.crypto||window.msCrypto;d1&&d1.getRandomValues?t3.exports=zke:t3.exports=Kke;function zke(e,t){if(e>Gke)throw new RangeError("requested too many random bytes");var r=Hke.allocUnsafe(e);if(e>0)if(e>e3)for(var n=0;n<e;n+=e3)d1.getRandomValues(r.slice(n,n+e3));else d1.getRandomValues(r);return typeof t=="function"?S(function(){t(null,r)}):r}});var Ye=I((Eze,r3)=>{b();typeof Object.create=="function"?r3.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:r3.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var n3=I((Tze,zC)=>{b();zC.exports=la().EventEmitter});var xd=I(()=>{b()});var YC=I((Bze,$C)=>{"use strict";b();function jC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jC(Object(r),!0).forEach(function(n){jke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jke(e,t,r){return t=XC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XC(n.key),n)}}function Wke(e,t,r){return t&&WC(e.prototype,t),r&&WC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function XC(e){var t=Xke(e,"string");return typeof t=="symbol"?t:String(t)}function Xke(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $ke=ii(),p1=$ke.Buffer,Yke=xd(),i3=Yke.inspect,Zke=i3&&i3.custom||"inspect";function Jke(e,t,r){p1.prototype.copy.call(e,t,r)}$C.exports=(function(){function e(){Vke(this,e),this.head=null,this.tail=null,this.length=0}return Wke(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return p1.alloc(0);for(var n=p1.allocUnsafe(r>>>0),i=this.head,o=0;i;)Jke(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var h=n.data,g=r>h.length?h.length:r;if(g===h.length?o+=h:o+=h.slice(0,r),r-=g,r===0){g===h.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=h.slice(g));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=p1.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var h=i.data,g=r>h.length?h.length:r;if(h.copy(n,n.length-r,0,g),r-=g,r===0){g===h.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=h.slice(g));break}++o}return this.length-=o,n}},{key:Zke,value:function(r,n){return i3(this,VC(VC({},n),{},{depth:0,customInspect:!1}))}}]),e})()});var a3=I((Uze,JC)=>{"use strict";b();function Qke(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,S(s3,this,e)):S(s3,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?S(m1,r):(r._writableState.errorEmitted=!0,S(ZC,r,o)):S(ZC,r,o):t?(S(m1,r),t(o)):S(m1,r)}),this)}function ZC(e,t){s3(e,t),m1(e)}function m1(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function e3e(){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 s3(e,t){e.emit("error",t)}function t3e(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}JC.exports={destroy:Qke,undestroy:e3e,errorOrDestroy:t3e}});var kf=I((Pze,tU)=>{"use strict";b();function r3e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var eU={};function Oi(e,t,r){r||(r=Error);function n(o,h,g){return typeof t=="string"?t:t(o,h,g)}var i=(function(o){r3e(h,o);function h(g,v,w){return o.call(this,n(g,v,w))||this}return h})(r);i.prototype.name=r.name,i.prototype.code=e,eU[e]=i}function QC(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function n3e(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function i3e(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s3e(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Oi("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Oi("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&n3e(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(i3e(e," argument"))i="The ".concat(e," ").concat(n," ").concat(QC(t,"type"));else{var o=s3e(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(o," ").concat(n," ").concat(QC(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Oi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Oi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Oi("ERR_STREAM_PREMATURE_CLOSE","Premature close");Oi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Oi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Oi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Oi("ERR_STREAM_WRITE_AFTER_END","write after end");Oi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Oi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Oi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");tU.exports.codes=eU});var o3=I((qze,rU)=>{"use strict";b();var a3e=kf().codes.ERR_INVALID_OPT_VALUE;function o3e(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function l3e(e,t,r,n){var i=o3e(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new a3e(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}rU.exports={getHighWaterMark:l3e}});var f3=I((Gze,nU)=>{b();nU.exports=f3e;function f3e(e,t){if(l3("noDeprecation"))return e;var r=!1;function n(){if(!r){if(l3("throwDeprecation"))throw new Error(t);l3("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function l3(e){try{if(!window.localStorage)return!1}catch{return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var h3=I((Hze,fU)=>{"use strict";b();fU.exports=mr;function sU(e){var t=this;this.next=null,this.entry=null,this.finish=function(){D3e(t,e)}}var Nc;mr.WritableState=kd;var u3e={deprecate:f3()},aU=n3(),g1=ii().Buffer,c3e=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h3e(e){return g1.from(e)}function d3e(e){return g1.isBuffer(e)||e instanceof c3e}var c3=a3(),p3e=o3(),m3e=p3e.getHighWaterMark,Qo=kf().codes,y3e=Qo.ERR_INVALID_ARG_TYPE,g3e=Qo.ERR_METHOD_NOT_IMPLEMENTED,_3e=Qo.ERR_MULTIPLE_CALLBACK,v3e=Qo.ERR_STREAM_CANNOT_PIPE,b3e=Qo.ERR_STREAM_DESTROYED,x3e=Qo.ERR_STREAM_NULL_VALUES,w3e=Qo.ERR_STREAM_WRITE_AFTER_END,k3e=Qo.ERR_UNKNOWN_ENCODING,Bc=c3.errorOrDestroy;Ye()(mr,aU);function M3e(){}function kd(e,t,r){Nc=Nc||Mf(),e=e||{},typeof r!="boolean"&&(r=t instanceof Nc),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m3e(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){I3e(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new sU(this)}kd.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(kd.prototype,"buffer",{get:u3e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var y1;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(y1=Function.prototype[Symbol.hasInstance],Object.defineProperty(mr,Symbol.hasInstance,{value:function(t){return y1.call(this,t)?!0:this!==mr?!1:t&&t._writableState instanceof kd}})):y1=function(t){return t instanceof this};function mr(e){Nc=Nc||Mf();var t=this instanceof Nc;if(!t&&!y1.call(mr,this))return new mr(e);this._writableState=new kd(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),aU.call(this)}mr.prototype.pipe=function(){Bc(this,new v3e)};function A3e(e,t){var r=new w3e;Bc(e,r),S(t,r)}function E3e(e,t,r,n){var i;return r===null?i=new x3e:typeof r!="string"&&!t.objectMode&&(i=new y3e("chunk",["string","Buffer"],r)),i?(Bc(e,i),S(n,i),!1):!0}mr.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&d3e(e);return o&&!g1.isBuffer(e)&&(e=h3e(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=M3e),n.ending?A3e(this,r):(o||E3e(this,n,e,r))&&(n.pendingcb++,i=T3e(this,n,o,e,t,r)),i};mr.prototype.cork=function(){this._writableState.corked++};mr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&oU(this,e))};mr.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new k3e(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(mr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function S3e(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=g1.from(t,r)),t}Object.defineProperty(mr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T3e(e,t,r,n,i,o){if(!r){var h=S3e(t,n,i);n!==h&&(r=!0,i="buffer",n=h)}var g=t.objectMode?1:n.length;t.length+=g;var v=t.length<t.highWaterMark;if(v||(t.needDrain=!0),t.writing||t.corked){var w=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},w?w.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else u3(e,t,!1,g,n,i,o);return v}function u3(e,t,r,n,i,o,h){t.writelen=n,t.writecb=h,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b3e("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R3e(e,t,r,n,i){--t.pendingcb,r?(S(i,n),S(wd,e,t),e._writableState.errorEmitted=!0,Bc(e,n)):(i(n),e._writableState.errorEmitted=!0,Bc(e,n),wd(e,t))}function O3e(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function I3e(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new _3e;if(O3e(r),t)R3e(e,r,n,t,i);else{var o=lU(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&oU(e,r),n?S(iU,e,r,o,i):iU(e,r,o,i)}}function iU(e,t,r,n){r||N3e(e,t),t.pendingcb--,n(),wd(e,t)}function N3e(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function oU(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var h=0,g=!0;r;)i[h]=r,r.isBuf||(g=!1),r=r.next,h+=1;i.allBuffers=g,u3(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new sU(t),t.bufferedRequestCount=0}else{for(;r;){var v=r.chunk,w=r.encoding,k=r.callback,A=t.objectMode?1:v.length;if(u3(e,t,!1,A,v,w,k),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}mr.prototype._write=function(e,t,r){r(new g3e("_write()"))};mr.prototype._writev=null;mr.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||U3e(this,n,r),this};Object.defineProperty(mr.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function lU(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function B3e(e,t){e._final(function(r){t.pendingcb--,r&&Bc(e,r),t.prefinished=!0,e.emit("prefinish"),wd(e,t)})}function C3e(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,S(B3e,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function wd(e,t){var r=lU(t);if(r&&(C3e(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function U3e(e,t,r){t.ending=!0,wd(e,t),r&&(t.finished?S(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function D3e(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(mr.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});mr.prototype.destroy=c3.destroy;mr.prototype._undestroy=c3.undestroy;mr.prototype._destroy=function(e,t){t(e)}});var Mf=I((jze,cU)=>{"use strict";b();var P3e=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};cU.exports=Ks;var uU=m3(),p3=h3();Ye()(Ks,uU);for(d3=P3e(p3.prototype),_1=0;_1<d3.length;_1++)v1=d3[_1],Ks.prototype[v1]||(Ks.prototype[v1]=p3.prototype[v1]);var d3,v1,_1;function Ks(e){if(!(this instanceof Ks))return new Ks(e);uU.call(this,e),p3.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",F3e)))}Object.defineProperty(Ks.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ks.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ks.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function F3e(){this._writableState.ended||S(q3e,this)}function q3e(e){e.end()}Object.defineProperty(Ks.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var pU=I((y3,dU)=>{b();var b1=ii(),qa=b1.Buffer;function hU(e,t){for(var r in e)t[r]=e[r]}qa.from&&qa.alloc&&qa.allocUnsafe&&qa.allocUnsafeSlow?dU.exports=b1:(hU(b1,y3),y3.Buffer=Cc);function Cc(e,t,r){return qa(e,t,r)}hU(qa,Cc);Cc.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return qa(e,t,r)};Cc.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=qa(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Cc.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return qa(e)};Cc.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return b1.SlowBuffer(e)}});var Uc=I(yU=>{"use strict";b();var _3=pU().Buffer,mU=_3.isEncoding||function(e){switch(e=""+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}};function L3e(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 G3e(e){var t=L3e(e);if(typeof t!="string"&&(_3.isEncoding===mU||!mU(e)))throw new Error("Unknown encoding: "+e);return t||e}yU.StringDecoder=Md;function Md(e){this.encoding=G3e(e);var t;switch(this.encoding){case"utf16le":this.text=W3e,this.end=X3e,t=4;break;case"utf8":this.fillLast=z3e,t=4;break;case"base64":this.text=$3e,this.end=Y3e,t=3;break;default:this.write=Z3e,this.end=J3e;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_3.allocUnsafe(t)}Md.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Md.prototype.end=V3e;Md.prototype.text=j3e;Md.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};function g3(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function K3e(e,t,r){var n=t.length-1;if(n<r)return 0;var i=g3(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=g3(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=g3(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function H3e(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function z3e(e){var t=this.lastTotal-this.lastNeed,r=H3e(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function j3e(e,t){var r=K3e(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function V3e(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function W3e(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.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],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function X3e(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function $3e(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?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-r))}function Y3e(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Z3e(e){return e.toString(this.encoding)}function J3e(e){return e&&e.length?this.write(e):""}});var x1=I((Yze,vU)=>{"use strict";b();var gU=kf().codes.ERR_STREAM_PREMATURE_CLOSE;function Q3e(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function eMe(){}function tMe(e){return e.setHeader&&typeof e.abort=="function"}function _U(e,t,r){if(typeof t=="function")return _U(e,null,t);t||(t={}),r=Q3e(r||eMe);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||g()},h=e._writableState&&e._writableState.finished,g=function(){i=!1,h=!0,n||r.call(e)},v=e._readableState&&e._readableState.endEmitted,w=function(){n=!1,v=!0,i||r.call(e)},k=function(B){r.call(e,B)},A=function(){var B;if(n&&!v)return(!e._readableState||!e._readableState.ended)&&(B=new gU),r.call(e,B);if(i&&!h)return(!e._writableState||!e._writableState.ended)&&(B=new gU),r.call(e,B)},R=function(){e.req.on("finish",g)};return tMe(e)?(e.on("complete",g),e.on("abort",A),e.req?R():e.on("request",R)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",w),e.on("finish",g),t.error!==!1&&e.on("error",k),e.on("close",A),function(){e.removeListener("complete",g),e.removeListener("abort",A),e.removeListener("request",R),e.req&&e.req.removeListener("finish",g),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",g),e.removeListener("end",w),e.removeListener("error",k),e.removeListener("close",A)}}vU.exports=_U});var xU=I((Jze,bU)=>{"use strict";b();var w1;function el(e,t,r){return t=rMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rMe(e){var t=nMe(e,"string");return typeof t=="symbol"?t:String(t)}function nMe(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iMe=x1(),tl=Symbol("lastResolve"),Af=Symbol("lastReject"),Ad=Symbol("error"),k1=Symbol("ended"),Ef=Symbol("lastPromise"),v3=Symbol("handlePromise"),Sf=Symbol("stream");function rl(e,t){return{value:e,done:t}}function sMe(e){var t=e[tl];if(t!==null){var r=e[Sf].read();r!==null&&(e[Ef]=null,e[tl]=null,e[Af]=null,t(rl(r,!1)))}}function aMe(e){S(sMe,e)}function oMe(e,t){return function(r,n){e.then(function(){if(t[k1]){r(rl(void 0,!0));return}t[v3](r,n)},n)}}var lMe=Object.getPrototypeOf(function(){}),fMe=Object.setPrototypeOf((w1={get stream(){return this[Sf]},next:function(){var t=this,r=this[Ad];if(r!==null)return Promise.reject(r);if(this[k1])return Promise.resolve(rl(void 0,!0));if(this[Sf].destroyed)return new Promise(function(h,g){S(function(){t[Ad]?g(t[Ad]):h(rl(void 0,!0))})});var n=this[Ef],i;if(n)i=new Promise(oMe(n,this));else{var o=this[Sf].read();if(o!==null)return Promise.resolve(rl(o,!1));i=new Promise(this[v3])}return this[Ef]=i,i}},el(w1,Symbol.asyncIterator,function(){return this}),el(w1,"return",function(){var t=this;return new Promise(function(r,n){t[Sf].destroy(null,function(i){if(i){n(i);return}r(rl(void 0,!0))})})}),w1),lMe),uMe=function(t){var r,n=Object.create(fMe,(r={},el(r,Sf,{value:t,writable:!0}),el(r,tl,{value:null,writable:!0}),el(r,Af,{value:null,writable:!0}),el(r,Ad,{value:null,writable:!0}),el(r,k1,{value:t._readableState.endEmitted,writable:!0}),el(r,v3,{value:function(o,h){var g=n[Sf].read();g?(n[Ef]=null,n[tl]=null,n[Af]=null,o(rl(g,!1))):(n[tl]=o,n[Af]=h)},writable:!0}),r));return n[Ef]=null,iMe(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Af];o!==null&&(n[Ef]=null,n[tl]=null,n[Af]=null,o(i)),n[Ad]=i;return}var h=n[tl];h!==null&&(n[Ef]=null,n[tl]=null,n[Af]=null,h(rl(void 0,!0))),n[k1]=!0}),t.on("readable",aMe.bind(null,n)),n};bU.exports=uMe});var kU=I((eje,wU)=>{b();wU.exports=function(){throw new Error("Readable.from is not available in the browser")}});var m3=I((nje,BU)=>{"use strict";b();BU.exports=_t;var Dc;_t.ReadableState=SU;var rje=la().EventEmitter,EU=function(t,r){return t.listeners(r).length},Sd=n3(),M1=ii().Buffer,cMe=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hMe(e){return M1.from(e)}function dMe(e){return M1.isBuffer(e)||e instanceof cMe}var b3=xd(),ht;b3&&b3.debuglog?ht=b3.debuglog("stream"):ht=function(){};var pMe=YC(),S3=a3(),mMe=o3(),yMe=mMe.getHighWaterMark,A1=kf().codes,gMe=A1.ERR_INVALID_ARG_TYPE,_Me=A1.ERR_STREAM_PUSH_AFTER_EOF,vMe=A1.ERR_METHOD_NOT_IMPLEMENTED,bMe=A1.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Pc,x3,w3;Ye()(_t,Sd);var Ed=S3.errorOrDestroy,k3=["error","close","destroy","pause","resume"];function xMe(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function SU(e,t,r){Dc=Dc||Mf(),e=e||{},typeof r!="boolean"&&(r=t instanceof Dc),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=yMe(this,e,"readableHighWaterMark",r),this.buffer=new pMe,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Pc||(Pc=Uc().StringDecoder),this.decoder=new Pc(e.encoding),this.encoding=e.encoding)}function _t(e){if(Dc=Dc||Mf(),!(this instanceof _t))return new _t(e);var t=this instanceof Dc;this._readableState=new SU(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Sd.call(this)}Object.defineProperty(_t.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});_t.prototype.destroy=S3.destroy;_t.prototype._undestroy=S3.undestroy;_t.prototype._destroy=function(e,t){t(e)};_t.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=M1.from(e,t),t=""),n=!0),TU(this,e,t,!1,n)};_t.prototype.unshift=function(e){return TU(this,e,null,!0,!1)};function TU(e,t,r,n,i){ht("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,MMe(e,o);else{var h;if(i||(h=wMe(o,t)),h)Ed(e,h);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==M1.prototype&&(t=hMe(t)),n)o.endEmitted?Ed(e,new bMe):M3(e,o,t,!0);else if(o.ended)Ed(e,new _Me);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?M3(e,o,t,!1):E3(e,o)):M3(e,o,t,!1)}else n||(o.reading=!1,E3(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function M3(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&E1(e)),E3(e,t)}function wMe(e,t){var r;return!dMe(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new gMe("chunk",["string","Buffer","Uint8Array"],t)),r}_t.prototype.isPaused=function(){return this._readableState.flowing===!1};_t.prototype.setEncoding=function(e){Pc||(Pc=Uc().StringDecoder);var t=new Pc(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var MU=1073741824;function kMe(e){return e>=MU?e=MU:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function AU(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=kMe(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}_t.prototype.read=function(e){ht("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return ht("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?A3(this):E1(this),null;if(e=AU(e,t),e===0&&t.ended)return t.length===0&&A3(this),null;var n=t.needReadable;ht("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,ht("length less than watermark",n)),t.ended||t.reading?(n=!1,ht("reading or ended",n)):n&&(ht("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=AU(r,t)));var i;return e>0?i=IU(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&A3(this)),i!==null&&this.emit("data",i),i};function MMe(e,t){if(ht("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?E1(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,RU(e)))}}function E1(e){var t=e._readableState;ht("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(ht("emitReadable",t.flowing),t.emittedReadable=!0,S(RU,e))}function RU(e){var t=e._readableState;ht("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,T3(e)}function E3(e,t){t.readingMore||(t.readingMore=!0,S(AMe,e,t))}function AMe(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(ht("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}_t.prototype._read=function(e){Ed(this,new vMe("_read()"))};_t.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,ht("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==(void 0).stdout&&e!==(void 0).stderr,o=i?g:L;n.endEmitted?S(o):r.once("end",o),e.on("unpipe",h);function h(X,P){ht("onunpipe"),X===r&&P&&P.hasUnpiped===!1&&(P.hasUnpiped=!0,k())}function g(){ht("onend"),e.end()}var v=EMe(r);e.on("drain",v);var w=!1;function k(){ht("cleanup"),e.removeListener("close",O),e.removeListener("finish",B),e.removeListener("drain",v),e.removeListener("error",R),e.removeListener("unpipe",h),r.removeListener("end",g),r.removeListener("end",L),r.removeListener("data",A),w=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&v()}r.on("data",A);function A(X){ht("ondata");var P=e.write(X);ht("dest.write",P),P===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&NU(n.pipes,e)!==-1)&&!w&&(ht("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function R(X){ht("onerror",X),L(),e.removeListener("error",R),EU(e,"error")===0&&Ed(e,X)}xMe(e,"error",R);function O(){e.removeListener("finish",B),L()}e.once("close",O);function B(){ht("onfinish"),e.removeListener("close",O),L()}e.once("finish",B);function L(){ht("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(ht("pipe resume"),r.resume()),e};function EMe(e){return function(){var r=e._readableState;ht("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&EU(e,"data")&&(r.flowing=!0,T3(e))}}_t.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var h=NU(t.pipes,e);return h===-1?this:(t.pipes.splice(h,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};_t.prototype.on=function(e,t){var r=Sd.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ht("on readable",n.length,n.reading),n.length?E1(this):n.reading||S(SMe,this)),r};_t.prototype.addListener=_t.prototype.on;_t.prototype.removeListener=function(e,t){var r=Sd.prototype.removeListener.call(this,e,t);return e==="readable"&&S(OU,this),r};_t.prototype.removeAllListeners=function(e){var t=Sd.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&S(OU,this),t};function OU(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 SMe(e){ht("readable nexttick read 0"),e.read(0)}_t.prototype.resume=function(){var e=this._readableState;return e.flowing||(ht("resume"),e.flowing=!e.readableListening,TMe(this,e)),e.paused=!1,this};function TMe(e,t){t.resumeScheduled||(t.resumeScheduled=!0,S(RMe,e,t))}function RMe(e,t){ht("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),T3(e),t.flowing&&!t.reading&&e.read(0)}_t.prototype.pause=function(){return ht("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ht("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function T3(e){var t=e._readableState;for(ht("flow",t.flowing);t.flowing&&e.read()!==null;);}_t.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(ht("wrapped end"),r.decoder&&!r.ended){var h=r.decoder.end();h&&h.length&&t.push(h)}t.push(null)}),e.on("data",function(h){if(ht("wrapped data"),r.decoder&&(h=r.decoder.write(h)),!(r.objectMode&&h==null)&&!(!r.objectMode&&(!h||!h.length))){var g=t.push(h);g||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(g){return function(){return e[g].apply(e,arguments)}})(i));for(var o=0;o<k3.length;o++)e.on(k3[o],this.emit.bind(this,k3[o]));return this._read=function(h){ht("wrapped _read",h),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(_t.prototype[Symbol.asyncIterator]=function(){return x3===void 0&&(x3=xU()),x3(this)});Object.defineProperty(_t.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(_t.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(_t.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});_t._fromList=IU;Object.defineProperty(_t.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function IU(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function A3(e){var t=e._readableState;ht("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,S(OMe,t,e))}function OMe(e,t){if(ht("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(_t.from=function(e,t){return w3===void 0&&(w3=kU()),w3(_t,e,t)});function NU(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var R3=I((sje,UU)=>{"use strict";b();UU.exports=La;var S1=kf().codes,IMe=S1.ERR_METHOD_NOT_IMPLEMENTED,NMe=S1.ERR_MULTIPLE_CALLBACK,BMe=S1.ERR_TRANSFORM_ALREADY_TRANSFORMING,CMe=S1.ERR_TRANSFORM_WITH_LENGTH_0,T1=Mf();Ye()(La,T1);function UMe(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new NMe);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function La(e){if(!(this instanceof La))return new La(e);T1.call(this,e),this._transformState={afterTransform:UMe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",DMe)}function DMe(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){CU(e,t,r)}):CU(this,null,null)}La.prototype.push=function(e,t){return this._transformState.needTransform=!1,T1.prototype.push.call(this,e,t)};La.prototype._transform=function(e,t,r){r(new IMe("_transform()"))};La.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};La.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};La.prototype._destroy=function(e,t){T1.prototype._destroy.call(this,e,function(r){t(r)})};function CU(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new CMe;if(e._transformState.transforming)throw new BMe;return e.push(null)}});var FU=I((oje,PU)=>{"use strict";b();PU.exports=Td;var DU=R3();Ye()(Td,DU);function Td(e){if(!(this instanceof Td))return new Td(e);DU.call(this,e)}Td.prototype._transform=function(e,t,r){r(null,e)}});var HU=I((fje,KU)=>{"use strict";b();var O3;function PMe(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var GU=kf().codes,FMe=GU.ERR_MISSING_ARGS,qMe=GU.ERR_STREAM_DESTROYED;function qU(e){if(e)throw e}function LMe(e){return e.setHeader&&typeof e.abort=="function"}function GMe(e,t,r,n){n=PMe(n);var i=!1;e.on("close",function(){i=!0}),O3===void 0&&(O3=x1()),O3(e,{readable:t,writable:r},function(h){if(h)return n(h);i=!0,n()});var o=!1;return function(h){if(!i&&!o){if(o=!0,LMe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(h||new qMe("pipe"))}}}function LU(e){e()}function KMe(e,t){return e.pipe(t)}function HMe(e){return!e.length||typeof e[e.length-1]!="function"?qU:e.pop()}function zMe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=HMe(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new FMe("streams");var i,o=t.map(function(h,g){var v=g<t.length-1,w=g>0;return GMe(h,v,w,function(k){i||(i=k),k&&o.forEach(LU),!v&&(o.forEach(LU),n(i))})});return t.reduce(KMe)}KU.exports=zMe});var R1=I((cje,zU)=>{b();zU.exports=Ii;var I3=la().EventEmitter,jMe=Ye();jMe(Ii,I3);Ii.Readable=m3();Ii.Writable=h3();Ii.Duplex=Mf();Ii.Transform=R3();Ii.PassThrough=FU();Ii.finished=x1();Ii.pipeline=HU();Ii.Stream=Ii;function Ii(){I3.call(this)}Ii.prototype.pipe=function(e,t){var r=this;function n(k){e.writable&&e.write(k)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",h),r.on("close",g));var o=!1;function h(){o||(o=!0,e.end())}function g(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function v(k){if(w(),I3.listenerCount(this,"error")===0)throw k}r.on("error",v),e.on("error",v);function w(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",h),r.removeListener("close",g),r.removeListener("error",v),e.removeListener("error",v),r.removeListener("end",w),r.removeListener("close",w),e.removeListener("close",w)}return r.on("end",w),r.on("close",w),e.on("close",w),e.emit("pipe",r),e}});var WU=I((dje,VU)=>{"use strict";b();var Hs=rt().Buffer,jU=R1().Transform,VMe=Ye();function nl(e){jU.call(this),this._block=Hs.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}VMe(nl,jU);nl.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)};nl.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var WMe=typeof Uint8Array<"u",XMe=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Hs.prototype instanceof Uint8Array||Hs.TYPED_ARRAY_SUPPORT);function $Me(e,t){if(e instanceof Hs)return e;if(typeof e=="string")return Hs.from(e,t);if(XMe&&ArrayBuffer.isView(e)){if(e.byteLength===0)return Hs.alloc(0);var r=Hs.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(WMe&&e instanceof Uint8Array||Hs.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Hs.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}nl.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=$Me(e,t);for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var o=0,h=e.length*8;h>0;++o)this._length[o]+=h,h=this._length[o]/4294967296|0,h>0&&(this._length[o]-=4294967296*h);return this};nl.prototype._update=function(){throw new Error("_update is not implemented")};nl.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};nl.prototype._digest=function(){throw new Error("_digest is not implemented")};VU.exports=nl});var N1=I((mje,$U)=>{"use strict";b();var YMe=Ye(),XU=WU(),ZMe=rt().Buffer,JMe=new Array(16);function O1(){XU.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}YMe(O1,XU);O1.prototype._update=function(){for(var e=JMe,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,n=this._b,i=this._c,o=this._d;r=An(r,n,i,o,e[0],3614090360,7),o=An(o,r,n,i,e[1],3905402710,12),i=An(i,o,r,n,e[2],606105819,17),n=An(n,i,o,r,e[3],3250441966,22),r=An(r,n,i,o,e[4],4118548399,7),o=An(o,r,n,i,e[5],1200080426,12),i=An(i,o,r,n,e[6],2821735955,17),n=An(n,i,o,r,e[7],4249261313,22),r=An(r,n,i,o,e[8],1770035416,7),o=An(o,r,n,i,e[9],2336552879,12),i=An(i,o,r,n,e[10],4294925233,17),n=An(n,i,o,r,e[11],2304563134,22),r=An(r,n,i,o,e[12],1804603682,7),o=An(o,r,n,i,e[13],4254626195,12),i=An(i,o,r,n,e[14],2792965006,17),n=An(n,i,o,r,e[15],1236535329,22),r=En(r,n,i,o,e[1],4129170786,5),o=En(o,r,n,i,e[6],3225465664,9),i=En(i,o,r,n,e[11],643717713,14),n=En(n,i,o,r,e[0],3921069994,20),r=En(r,n,i,o,e[5],3593408605,5),o=En(o,r,n,i,e[10],38016083,9),i=En(i,o,r,n,e[15],3634488961,14),n=En(n,i,o,r,e[4],3889429448,20),r=En(r,n,i,o,e[9],568446438,5),o=En(o,r,n,i,e[14],3275163606,9),i=En(i,o,r,n,e[3],4107603335,14),n=En(n,i,o,r,e[8],1163531501,20),r=En(r,n,i,o,e[13],2850285829,5),o=En(o,r,n,i,e[2],4243563512,9),i=En(i,o,r,n,e[7],1735328473,14),n=En(n,i,o,r,e[12],2368359562,20),r=Sn(r,n,i,o,e[5],4294588738,4),o=Sn(o,r,n,i,e[8],2272392833,11),i=Sn(i,o,r,n,e[11],1839030562,16),n=Sn(n,i,o,r,e[14],4259657740,23),r=Sn(r,n,i,o,e[1],2763975236,4),o=Sn(o,r,n,i,e[4],1272893353,11),i=Sn(i,o,r,n,e[7],4139469664,16),n=Sn(n,i,o,r,e[10],3200236656,23),r=Sn(r,n,i,o,e[13],681279174,4),o=Sn(o,r,n,i,e[0],3936430074,11),i=Sn(i,o,r,n,e[3],3572445317,16),n=Sn(n,i,o,r,e[6],76029189,23),r=Sn(r,n,i,o,e[9],3654602809,4),o=Sn(o,r,n,i,e[12],3873151461,11),i=Sn(i,o,r,n,e[15],530742520,16),n=Sn(n,i,o,r,e[2],3299628645,23),r=Tn(r,n,i,o,e[0],4096336452,6),o=Tn(o,r,n,i,e[7],1126891415,10),i=Tn(i,o,r,n,e[14],2878612391,15),n=Tn(n,i,o,r,e[5],4237533241,21),r=Tn(r,n,i,o,e[12],1700485571,6),o=Tn(o,r,n,i,e[3],2399980690,10),i=Tn(i,o,r,n,e[10],4293915773,15),n=Tn(n,i,o,r,e[1],2240044497,21),r=Tn(r,n,i,o,e[8],1873313359,6),o=Tn(o,r,n,i,e[15],4264355552,10),i=Tn(i,o,r,n,e[6],2734768916,15),n=Tn(n,i,o,r,e[13],1309151649,21),r=Tn(r,n,i,o,e[4],4149444226,6),o=Tn(o,r,n,i,e[11],3174756917,10),i=Tn(i,o,r,n,e[2],718787259,15),n=Tn(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0};O1.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=ZMe.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function I1(e,t){return e<<t|e>>>32-t}function An(e,t,r,n,i,o,h){return I1(e+(t&r|~t&n)+i+o|0,h)+t|0}function En(e,t,r,n,i,o,h){return I1(e+(t&n|r&~n)+i+o|0,h)+t|0}function Sn(e,t,r,n,i,o,h){return I1(e+(t^r^n)+i+o|0,h)+t|0}function Tn(e,t,r,n,i,o,h){return I1(e+(r^(t|~n))+i+o|0,h)+t|0}$U.exports=O1});var ZU=I((gje,YU)=>{b();var QMe={}.toString;YU.exports=Array.isArray||function(e){return QMe.call(e)=="[object Array]"}});var tD=I((vje,eD)=>{"use strict";b();var QU=Function.prototype.toString,Fc=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,B3,B1;if(typeof Fc=="function"&&typeof Object.defineProperty=="function")try{B3=Object.defineProperty({},"length",{get:function(){throw B1}}),B1={},Fc(function(){throw 42},null,B3)}catch(e){e!==B1&&(Fc=null)}else Fc=null;var e6e=/^\s*class\b/,C3=function(t){try{var r=QU.call(t);return e6e.test(r)}catch{return!1}},N3=function(t){try{return C3(t)?!1:(QU.call(t),!0)}catch{return!1}},C1=Object.prototype.toString,t6e="[object Object]",r6e="[object Function]",n6e="[object GeneratorFunction]",i6e="[object HTMLAllCollection]",s6e="[object HTML document.all class]",a6e="[object HTMLCollection]",o6e=typeof Symbol=="function"&&!!Symbol.toStringTag,l6e=!(0 in[,]),U3=function(){return!1};typeof document=="object"&&(JU=document.all,C1.call(JU)===C1.call(document.all)&&(U3=function(t){if((l6e||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=C1.call(t);return(r===i6e||r===s6e||r===a6e||r===t6e)&&t("")==null}catch{}return!1}));var JU;eD.exports=Fc?function(t){if(U3(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Fc(t,null,B3)}catch(r){if(r!==B1)return!1}return!C3(t)&&N3(t)}:function(t){if(U3(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(o6e)return N3(t);if(C3(t))return!1;var r=C1.call(t);return r!==r6e&&r!==n6e&&!/^\[object HTML/.test(r)?!1:N3(t)}});var iD=I((xje,nD)=>{"use strict";b();var f6e=tD(),u6e=Object.prototype.toString,rD=Object.prototype.hasOwnProperty,c6e=function(t,r,n){for(var i=0,o=t.length;i<o;i++)rD.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},h6e=function(t,r,n){for(var i=0,o=t.length;i<o;i++)n==null?r(t.charAt(i),i,t):r.call(n,t.charAt(i),i,t)},d6e=function(t,r,n){for(var i in t)rD.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))};function p6e(e){return u6e.call(e)==="[object Array]"}nD.exports=function(t,r,n){if(!f6e(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),p6e(t)?c6e(t,r,i):typeof t=="string"?h6e(t,r,i):d6e(t,r,i)}});var aD=I((kje,sD)=>{"use strict";b();sD.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var lD=I((Aje,oD)=>{"use strict";b();var D3=aD(),m6e=typeof globalThis>"u"?window:globalThis;oD.exports=function(){for(var t=[],r=0;r<D3.length;r++)typeof m6e[D3[r]]=="function"&&(t[t.length]=D3[r]);return t}});var hD=I((Sje,cD)=>{"use strict";b();var fD=K0(),y6e=Pv(),qc=_s(),uD=yu();cD.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new qc("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new qc("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new qc("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new qc("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new qc("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new qc("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,v=!!uD&&uD(t,r);if(fD)fD(t,r,{configurable:h===null&&v?v.configurable:!h,enumerable:i===null&&v?v.enumerable:!i,value:n,writable:o===null&&v?v.writable:!o});else if(g||!i&&!o&&!h)t[r]=n;else throw new y6e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var mD=I((Rje,pD)=>{"use strict";b();var P3=K0(),dD=function(){return!!P3};dD.hasArrayLengthDefineBug=function(){if(!P3)return null;try{return P3([],"length",{value:1}).length!==1}catch{return!0}};pD.exports=dD});var bD=I((Ije,vD)=>{"use strict";b();var g6e=V0(),yD=hD(),_6e=mD()(),gD=yu(),_D=_s(),v6e=g6e("%Math.floor%");vD.exports=function(t,r){if(typeof t!="function")throw new _D("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||v6e(r)!==r)throw new _D("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&gD){var h=gD(t,"length");h&&!h.configurable&&(i=!1),h&&!h.writable&&(o=!1)}return(i||o||!n)&&(_6e?yD(t,"length",r,!0,!0):yD(t,"length",r)),t}});var wD=I((Bje,xD)=>{"use strict";b();var b6e=gu(),x6e=Qp(),w6e=Gv();xD.exports=function(){return w6e(b6e,x6e,arguments)}});var AD=I((Uje,U1)=>{"use strict";b();var k6e=bD(),kD=K0(),M6e=em(),MD=wD();U1.exports=function(t){var r=M6e(arguments),n=t.length-(arguments.length-1);return k6e(r,1+(n>0?n:0),!0)};kD?kD(U1.exports,"apply",{value:MD}):U1.exports.apply=MD});var SD=I((Pje,ED)=>{"use strict";b();var A6e=Fv();ED.exports=function(){return A6e()&&!!Symbol.toStringTag}});var ND=I((qje,ID)=>{"use strict";b();var F1=iD(),E6e=lD(),TD=AD(),q3=W0(),P1=yu(),D1=Hv(),S6e=q3("Object.prototype.toString"),OD=SD()(),RD=typeof globalThis>"u"?window:globalThis,F3=E6e(),L3=q3("String.prototype.slice"),T6e=q3("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},q1={__proto__:null};OD&&P1&&D1?F1(F3,function(e){var t=new RD[e];if(Symbol.toStringTag in t&&D1){var r=D1(t),n=P1(r,Symbol.toStringTag);if(!n&&r){var i=D1(r);n=P1(i,Symbol.toStringTag)}q1["$"+e]=TD(n.get)}}):F1(F3,function(e){var t=new RD[e],r=t.slice||t.set;r&&(q1["$"+e]=TD(r))});var R6e=function(t){var r=!1;return F1(q1,function(n,i){if(!r)try{"$"+n(t)===i&&(r=L3(i,1))}catch{}}),r},O6e=function(t){var r=!1;return F1(q1,function(n,i){if(!r)try{n(t),r=L3(i,1)}catch{}}),r};ID.exports=function(t){if(!t||typeof t!="object")return!1;if(!OD){var r=L3(S6e(t),8,-1);return T6e(F3,r)>-1?r:r!=="Object"?!1:O6e(t)}return P1?R6e(t):null}});var CD=I((Gje,BD)=>{"use strict";b();var I6e=ND();BD.exports=function(t){return!!I6e(t)}});var DD=I((Hje,UD)=>{"use strict";b();var N6e=_s(),B6e=W0(),C6e=B6e("TypedArray.prototype.buffer",!0),U6e=CD();UD.exports=C6e||function(t){if(!U6e(t))throw new N6e("Not a Typed Array");return t.buffer}});var Rd=I((jje,FD)=>{"use strict";b();var ts=rt().Buffer,D6e=ZU(),P6e=DD(),F6e=ArrayBuffer.isView||function(t){try{return P6e(t),!0}catch{return!1}},q6e=typeof Uint8Array<"u",PD=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",L6e=PD&&(ts.prototype instanceof Uint8Array||ts.TYPED_ARRAY_SUPPORT);FD.exports=function(t,r){if(ts.isBuffer(t))return t.constructor&&!("isBuffer"in t)?ts.from(t):t;if(typeof t=="string")return ts.from(t,r);if(PD&&F6e(t)){if(t.byteLength===0)return ts.alloc(0);if(L6e){var n=ts.from(t.buffer,t.byteOffset,t.byteLength);if(n.byteLength===t.byteLength)return n}var i=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),o=ts.from(i);if(o.length===t.byteLength)return o}if(q6e&&t instanceof Uint8Array)return ts.from(t);var h=D6e(t);if(h)for(var g=0;g<t.length;g+=1){var v=t[g];if(typeof v!="number"||v<0||v>255||~~v!==v)throw new RangeError("Array items must be numbers in the range 0-255.")}if(h||ts.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return ts.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var KD=I((Wje,GD)=>{"use strict";b();var G6e=rt().Buffer,K6e=Rd(),LD=typeof Uint8Array<"u",H6e=LD&&typeof ArrayBuffer<"u",qD=H6e&&ArrayBuffer.isView;GD.exports=function(e,t){if(typeof e=="string"||G6e.isBuffer(e)||LD&&e instanceof Uint8Array||qD&&qD(e))return K6e(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Od=I(($je,HD)=>{"use strict";b();HD.exports={nextTick:z6e};function z6e(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,o,h;switch(i){case 0:case 1:return S(e);case 2:return S(function(){e.call(null,t)});case 3:return S(function(){e.call(null,t,r)});case 4:return S(function(){e.call(null,t,r,n)});default:for(o=new Array(i-1),h=0;h<o.length;)o[h++]=arguments[h];return S(function(){e.apply(null,o)})}}});var jD=I((Zje,zD)=>{b();var j6e={}.toString;zD.exports=Array.isArray||function(e){return j6e.call(e)=="[object Array]"}});var G3=I((Qje,VD)=>{b();VD.exports=la().EventEmitter});var G1=I((K3,XD)=>{b();var L1=ii(),Ga=L1.Buffer;function WD(e,t){for(var r in e)t[r]=e[r]}Ga.from&&Ga.alloc&&Ga.allocUnsafe&&Ga.allocUnsafeSlow?XD.exports=L1:(WD(L1,K3),K3.Buffer=Lc);function Lc(e,t,r){return Ga(e,t,r)}WD(Ga,Lc);Lc.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ga(e,t,r)};Lc.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Ga(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Lc.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ga(e)};Lc.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return L1.SlowBuffer(e)}});var Gc=I(Rn=>{b();function V6e(e){return Array.isArray?Array.isArray(e):K1(e)==="[object Array]"}Rn.isArray=V6e;function W6e(e){return typeof e=="boolean"}Rn.isBoolean=W6e;function X6e(e){return e===null}Rn.isNull=X6e;function $6e(e){return e==null}Rn.isNullOrUndefined=$6e;function Y6e(e){return typeof e=="number"}Rn.isNumber=Y6e;function Z6e(e){return typeof e=="string"}Rn.isString=Z6e;function J6e(e){return typeof e=="symbol"}Rn.isSymbol=J6e;function Q6e(e){return e===void 0}Rn.isUndefined=Q6e;function e4e(e){return K1(e)==="[object RegExp]"}Rn.isRegExp=e4e;function t4e(e){return typeof e=="object"&&e!==null}Rn.isObject=t4e;function r4e(e){return K1(e)==="[object Date]"}Rn.isDate=r4e;function n4e(e){return K1(e)==="[object Error]"||e instanceof Error}Rn.isError=n4e;function i4e(e){return typeof e=="function"}Rn.isFunction=i4e;function s4e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Rn.isPrimitive=s4e;Rn.isBuffer=ii().Buffer.isBuffer;function K1(e){return Object.prototype.toString.call(e)}});var YD=I((iVe,H3)=>{"use strict";b();function a4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var $D=G1().Buffer,Id=xd();function o4e(e,t,r){e.copy(t,r)}H3.exports=(function(){function e(){a4e(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return $D.alloc(0);for(var n=$D.allocUnsafe(r>>>0),i=this.head,o=0;i;)o4e(i.data,n,o),o+=i.data.length,i=i.next;return n},e})();Id&&Id.inspect&&Id.inspect.custom&&(H3.exports.prototype[Id.inspect.custom]=function(){var e=Id.inspect({length:this.length});return this.constructor.name+" "+e})});var z3=I((aVe,ZD)=>{"use strict";b();var H1=Od();function l4e(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,H1.nextTick(z1,this,e)):H1.nextTick(z1,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,H1.nextTick(z1,r,o)):H1.nextTick(z1,r,o):t&&t(o)}),this)}function f4e(){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 z1(e,t){e.emit("error",t)}ZD.exports={destroy:l4e,undestroy:f4e}});var V3=I((lVe,sP)=>{"use strict";b();var Tf=Od();sP.exports=Hr;function QD(e){var t=this;this.next=null,this.entry=null,this.finish=function(){S4e(t,e)}}var u4e=Tf.nextTick,Kc;Hr.WritableState=Bd;var eP=Object.create(Gc());eP.inherits=Ye();var c4e={deprecate:f3()},tP=G3(),V1=G1().Buffer,h4e=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d4e(e){return V1.from(e)}function p4e(e){return V1.isBuffer(e)||e instanceof h4e}var rP=z3();eP.inherits(Hr,tP);function m4e(){}function Bd(e,t){Kc=Kc||Rf(),e=e||{};var r=t instanceof Kc;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,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 h=e.decodeStrings===!1;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(g){w4e(t,g)},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 QD(this)}Bd.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Bd.prototype,"buffer",{get:c4e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var j1;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j1=Function.prototype[Symbol.hasInstance],Object.defineProperty(Hr,Symbol.hasInstance,{value:function(e){return j1.call(this,e)?!0:this!==Hr?!1:e&&e._writableState instanceof Bd}})):j1=function(e){return e instanceof this};function Hr(e){if(Kc=Kc||Rf(),!j1.call(Hr,this)&&!(this instanceof Kc))return new Hr(e);this._writableState=new Bd(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),tP.call(this)}Hr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function y4e(e,t){var r=new Error("write after end");e.emit("error",r),Tf.nextTick(t,r)}function g4e(e,t,r,n){var i=!0,o=!1;return r===null?o=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),Tf.nextTick(n,o),i=!1),i}Hr.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&p4e(e);return o&&!V1.isBuffer(e)&&(e=d4e(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=m4e),n.ended?y4e(this,r):(o||g4e(this,n,e,r))&&(n.pendingcb++,i=v4e(this,n,o,e,t,r)),i};Hr.prototype.cork=function(){var e=this._writableState;e.corked++};Hr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&nP(this,e))};Hr.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function _4e(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=V1.from(t,r)),t}Object.defineProperty(Hr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function v4e(e,t,r,n,i,o){if(!r){var h=_4e(t,n,i);n!==h&&(r=!0,i="buffer",n=h)}var g=t.objectMode?1:n.length;t.length+=g;var v=t.length<t.highWaterMark;if(v||(t.needDrain=!0),t.writing||t.corked){var w=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},w?w.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else j3(e,t,!1,g,n,i,o);return v}function j3(e,t,r,n,i,o,h){t.writelen=n,t.writecb=h,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b4e(e,t,r,n,i){--t.pendingcb,r?(Tf.nextTick(i,n),Tf.nextTick(Nd,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),Nd(e,t))}function x4e(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function w4e(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(x4e(r),t)b4e(e,r,n,t,i);else{var o=iP(r);!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&nP(e,r),n?u4e(JD,e,r,o,i):JD(e,r,o,i)}}function JD(e,t,r,n){r||k4e(e,t),t.pendingcb--,n(),Nd(e,t)}function k4e(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function nP(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var h=0,g=!0;r;)i[h]=r,r.isBuf||(g=!1),r=r.next,h+=1;i.allBuffers=g,j3(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new QD(t),t.bufferedRequestCount=0}else{for(;r;){var v=r.chunk,w=r.encoding,k=r.callback,A=t.objectMode?1:v.length;if(j3(e,t,!1,A,v,w,k),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Hr.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Hr.prototype._writev=null;Hr.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||E4e(this,n,r)};function iP(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function M4e(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Nd(e,t)})}function A4e(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Tf.nextTick(M4e,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Nd(e,t){var r=iP(t);return r&&(A4e(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function E4e(e,t,r){t.ending=!0,Nd(e,t),r&&(t.finished?Tf.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function S4e(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Hr.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Hr.prototype.destroy=rP.destroy;Hr.prototype._undestroy=rP.undestroy;Hr.prototype._destroy=function(e,t){this.end(),t(e)}});var Rf=I((uVe,fP)=>{"use strict";b();var aP=Od(),T4e=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};fP.exports=Ka;var oP=Object.create(Gc());oP.inherits=Ye();var lP=$3(),X3=V3();oP.inherits(Ka,lP);for(W3=T4e(X3.prototype),W1=0;W1<W3.length;W1++)X1=W3[W1],Ka.prototype[X1]||(Ka.prototype[X1]=X3.prototype[X1]);var W3,X1,W1;function Ka(e){if(!(this instanceof Ka))return new Ka(e);lP.call(this,e),X3.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",R4e)}Object.defineProperty(Ka.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R4e(){this.allowHalfOpen||this._writableState.ended||aP.nextTick(O4e,this)}function O4e(e){e.end()}Object.defineProperty(Ka.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});Ka.prototype._destroy=function(e,t){this.push(null),this.end(),aP.nextTick(t,e)}});var $3=I((dVe,xP)=>{"use strict";b();var zc=Od();xP.exports=er;var I4e=jD(),Cd;er.ReadableState=yP;var hVe=la().EventEmitter,dP=function(e,t){return e.listeners(t).length},eM=G3(),Ud=G1().Buffer,N4e=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function B4e(e){return Ud.from(e)}function C4e(e){return Ud.isBuffer(e)||e instanceof N4e}var pP=Object.create(Gc());pP.inherits=Ye();var Y3=xd(),bt=void 0;Y3&&Y3.debuglog?bt=Y3.debuglog("stream"):bt=function(){};var U4e=YD(),mP=z3(),Hc;pP.inherits(er,eM);var Z3=["error","close","destroy","pause","resume"];function D4e(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):I4e(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function yP(e,t){Cd=Cd||Rf(),e=e||{};var r=t instanceof Cd;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new U4e,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&&(Hc||(Hc=Uc().StringDecoder),this.decoder=new Hc(e.encoding),this.encoding=e.encoding)}function er(e){if(Cd=Cd||Rf(),!(this instanceof er))return new er(e);this._readableState=new yP(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),eM.call(this)}Object.defineProperty(er.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});er.prototype.destroy=mP.destroy;er.prototype._undestroy=mP.undestroy;er.prototype._destroy=function(e,t){this.push(null),t(e)};er.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Ud.from(e,t),t=""),n=!0),gP(this,e,t,!1,n)};er.prototype.unshift=function(e){return gP(this,e,null,!0,!1)};function gP(e,t,r,n,i){var o=e._readableState;if(t===null)o.reading=!1,L4e(e,o);else{var h;i||(h=P4e(o,t)),h?e.emit("error",h):o.objectMode||t&&t.length>0?(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Ud.prototype&&(t=B4e(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):J3(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?J3(e,o,t,!1):_P(e,o)):J3(e,o,t,!1))):n||(o.reading=!1)}return F4e(o)}function J3(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&$1(e)),_P(e,t)}function P4e(e,t){var r;return!C4e(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function F4e(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}er.prototype.isPaused=function(){return this._readableState.flowing===!1};er.prototype.setEncoding=function(e){return Hc||(Hc=Uc().StringDecoder),this._readableState.decoder=new Hc(e),this._readableState.encoding=e,this};var uP=8388608;function q4e(e){return e>=uP?e=uP:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function cP(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=q4e(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}er.prototype.read=function(e){bt("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return bt("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Q3(this):$1(this),null;if(e=cP(e,t),e===0&&t.ended)return t.length===0&&Q3(this),null;var n=t.needReadable;bt("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,bt("length less than watermark",n)),t.ended||t.reading?(n=!1,bt("reading or ended",n)):n&&(bt("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=cP(r,t)));var i;return e>0?i=vP(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Q3(this)),i!==null&&this.emit("data",i),i};function L4e(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,$1(e)}}function $1(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(bt("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?zc.nextTick(hP,e):hP(e))}function hP(e){bt("emit readable"),e.emit("readable"),tM(e)}function _P(e,t){t.readingMore||(t.readingMore=!0,zc.nextTick(G4e,e,t))}function G4e(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(bt("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}er.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};er.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,bt("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==(void 0).stdout&&e!==(void 0).stderr,o=i?g:X;n.endEmitted?zc.nextTick(o):r.once("end",o),e.on("unpipe",h);function h(P,H){bt("onunpipe"),P===r&&H&&H.hasUnpiped===!1&&(H.hasUnpiped=!0,k())}function g(){bt("onend"),e.end()}var v=K4e(r);e.on("drain",v);var w=!1;function k(){bt("cleanup"),e.removeListener("close",B),e.removeListener("finish",L),e.removeListener("drain",v),e.removeListener("error",O),e.removeListener("unpipe",h),r.removeListener("end",g),r.removeListener("end",X),r.removeListener("data",R),w=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&v()}var A=!1;r.on("data",R);function R(P){bt("ondata"),A=!1;var H=e.write(P);H===!1&&!A&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&bP(n.pipes,e)!==-1)&&!w&&(bt("false write response, pause",n.awaitDrain),n.awaitDrain++,A=!0),r.pause())}function O(P){bt("onerror",P),X(),e.removeListener("error",O),dP(e,"error")===0&&e.emit("error",P)}D4e(e,"error",O);function B(){e.removeListener("finish",L),X()}e.once("close",B);function L(){bt("onfinish"),e.removeListener("close",B),X()}e.once("finish",L);function X(){bt("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(bt("pipe resume"),r.resume()),e};function K4e(e){return function(){var t=e._readableState;bt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&dP(e,"data")&&(t.flowing=!0,tM(e))}}er.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var h=bP(t.pipes,e);return h===-1?this:(t.pipes.splice(h,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};er.prototype.on=function(e,t){var r=eM.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&$1(this):zc.nextTick(H4e,this))}return r};er.prototype.addListener=er.prototype.on;function H4e(e){bt("readable nexttick read 0"),e.read(0)}er.prototype.resume=function(){var e=this._readableState;return e.flowing||(bt("resume"),e.flowing=!0,z4e(this,e)),this};function z4e(e,t){t.resumeScheduled||(t.resumeScheduled=!0,zc.nextTick(j4e,e,t))}function j4e(e,t){t.reading||(bt("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),tM(e),t.flowing&&!t.reading&&e.read(0)}er.prototype.pause=function(){return bt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(bt("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function tM(e){var t=e._readableState;for(bt("flow",t.flowing);t.flowing&&e.read()!==null;);}er.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(bt("wrapped end"),r.decoder&&!r.ended){var h=r.decoder.end();h&&h.length&&t.push(h)}t.push(null)}),e.on("data",function(h){if(bt("wrapped data"),r.decoder&&(h=r.decoder.write(h)),!(r.objectMode&&h==null)&&!(!r.objectMode&&(!h||!h.length))){var g=t.push(h);g||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(h){return function(){return e[h].apply(e,arguments)}})(i));for(var o=0;o<Z3.length;o++)e.on(Z3[o],this.emit.bind(this,Z3[o]));return this._read=function(h){bt("wrapped _read",h),n&&(n=!1,e.resume())},this};Object.defineProperty(er.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});er._fromList=vP;function vP(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=V4e(e,t.buffer,t.decoder),r}function V4e(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?W4e(e,t):X4e(e,t),n}function W4e(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,h=e>o.length?o.length:e;if(h===o.length?i+=o:i+=o.slice(0,e),e-=h,e===0){h===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(h));break}++n}return t.length-=n,i}function X4e(e,t){var r=Ud.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,h=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,h),e-=h,e===0){h===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(h));break}++i}return t.length-=i,r}function Q3(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,zc.nextTick($4e,t,e))}function $4e(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function bP(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var rM=I((mVe,MP)=>{"use strict";b();MP.exports=Ha;var Y1=Rf(),kP=Object.create(Gc());kP.inherits=Ye();kP.inherits(Ha,Y1);function Y4e(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Ha(e){if(!(this instanceof Ha))return new Ha(e);Y1.call(this,e),this._transformState={afterTransform:Y4e.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Z4e)}function Z4e(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){wP(e,t,r)}):wP(this,null,null)}Ha.prototype.push=function(e,t){return this._transformState.needTransform=!1,Y1.prototype.push.call(this,e,t)};Ha.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Ha.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Ha.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Ha.prototype._destroy=function(e,t){var r=this;Y1.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function wP(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),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)}});var TP=I((gVe,SP)=>{"use strict";b();SP.exports=Dd;var AP=rM(),EP=Object.create(Gc());EP.inherits=Ye();EP.inherits(Dd,AP);function Dd(e){if(!(this instanceof Dd))return new Dd(e);AP.call(this,e)}Dd.prototype._transform=function(e,t,r){r(null,e)}});var nM=I((zs,RP)=>{b();zs=RP.exports=$3();zs.Stream=zs;zs.Readable=zs;zs.Writable=V3();zs.Duplex=Rf();zs.Transform=rM();zs.PassThrough=TP()});var NP=I((bVe,IP)=>{"use strict";b();var J4e=rt().Buffer,Q4e=KD(),OP=nM().Transform,eAe=Ye();function il(e){OP.call(this),this._block=J4e.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}eAe(il,OP);il.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)};il.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};il.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=Q4e(e,t),n=this._block,i=0;this._blockOffset+r.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o]=r[i],o+=1,i+=1;this._update(),this._blockOffset=0}for(;i<r.length;)n[this._blockOffset]=r[i],this._blockOffset+=1,i+=1;for(var h=0,g=r.length*8;g>0;++h)this._length[h]+=g,g=this._length[h]/4294967296|0,g>0&&(this._length[h]-=4294967296*g);return this};il.prototype._update=function(){throw new Error("_update is not implemented")};il.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};il.prototype._digest=function(){throw new Error("_digest is not implemented")};IP.exports=il});var J1=I((wVe,qP)=>{"use strict";b();var iM=ii().Buffer,tAe=Ye(),FP=NP(),rAe=new Array(16),Pd=[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],Fd=[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],qd=[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],Ld=[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],Gd=[0,1518500249,1859775393,2400959708,2840853838],Kd=[1352829926,1548603684,1836072691,2053994217,0];function Of(e,t){return e<<t|e>>>32-t}function BP(e,t,r,n,i,o,h,g){return Of(e+(t^r^n)+o+h|0,g)+i|0}function CP(e,t,r,n,i,o,h,g){return Of(e+(t&r|~t&n)+o+h|0,g)+i|0}function UP(e,t,r,n,i,o,h,g){return Of(e+((t|~r)^n)+o+h|0,g)+i|0}function DP(e,t,r,n,i,o,h,g){return Of(e+(t&n|r&~n)+o+h|0,g)+i|0}function PP(e,t,r,n,i,o,h,g){return Of(e+(t^(r|~n))+o+h|0,g)+i|0}function Z1(){FP.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}tAe(Z1,FP);Z1.prototype._update=function(){for(var e=rAe,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,h=this._e|0,g=this._a|0,v=this._b|0,w=this._c|0,k=this._d|0,A=this._e|0,R=0;R<80;R+=1){var O,B;R<16?(O=BP(r,n,i,o,h,e[Pd[R]],Gd[0],qd[R]),B=PP(g,v,w,k,A,e[Fd[R]],Kd[0],Ld[R])):R<32?(O=CP(r,n,i,o,h,e[Pd[R]],Gd[1],qd[R]),B=DP(g,v,w,k,A,e[Fd[R]],Kd[1],Ld[R])):R<48?(O=UP(r,n,i,o,h,e[Pd[R]],Gd[2],qd[R]),B=UP(g,v,w,k,A,e[Fd[R]],Kd[2],Ld[R])):R<64?(O=DP(r,n,i,o,h,e[Pd[R]],Gd[3],qd[R]),B=CP(g,v,w,k,A,e[Fd[R]],Kd[3],Ld[R])):(O=PP(r,n,i,o,h,e[Pd[R]],Gd[4],qd[R]),B=BP(g,v,w,k,A,e[Fd[R]],Kd[4],Ld[R])),r=h,h=o,o=Of(i,10),i=n,n=O,g=A,A=k,k=Of(w,10),w=v,v=B}var L=this._b+i+k|0;this._b=this._c+o+A|0,this._c=this._d+h+g|0,this._d=this._e+r+v|0,this._e=this._a+n+w|0,this._a=L};Z1.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=iM.alloc?iM.alloc(20):new iM(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};qP.exports=Z1});var If=I((MVe,LP)=>{"use strict";b();var nAe=rt().Buffer,iAe=Rd();function Q1(e,t){this._block=nAe.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Q1.prototype.update=function(e,t){e=iAe(e,t||"utf8");for(var r=this._block,n=this._blockSize,i=e.length,o=this._len,h=0;h<i;){for(var g=o%n,v=Math.min(i-h,n-g),w=0;w<v;w++)r[g+w]=e[h+w];o+=v,h+=v,o%n===0&&this._update(r)}return this._len+=i,this};Q1.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 r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o};Q1.prototype._update=function(){throw new Error("_update must be implemented by subclass")};LP.exports=Q1});var HP=I((EVe,KP)=>{"use strict";b();var sAe=Ye(),GP=If(),aAe=rt().Buffer,oAe=[1518500249,1859775393,-1894007588,-899497514],lAe=new Array(80);function Hd(){this.init(),this._w=lAe,GP.call(this,64,56)}sAe(Hd,GP);Hd.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function fAe(e){return e<<5|e>>>27}function uAe(e){return e<<30|e>>>2}function cAe(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Hd.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,h=this._e|0,g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<80;++g)t[g]=t[g-3]^t[g-8]^t[g-14]^t[g-16];for(var v=0;v<80;++v){var w=~~(v/20),k=fAe(r)+cAe(w,n,i,o)+h+t[v]+oAe[w]|0;h=o,o=i,i=uAe(n),n=r,r=k}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0};Hd.prototype._hash=function(){var e=aAe.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};KP.exports=Hd});var VP=I((TVe,jP)=>{"use strict";b();var hAe=Ye(),zP=If(),dAe=rt().Buffer,pAe=[1518500249,1859775393,-1894007588,-899497514],mAe=new Array(80);function zd(){this.init(),this._w=mAe,zP.call(this,64,56)}hAe(zd,zP);zd.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function yAe(e){return e<<1|e>>>31}function gAe(e){return e<<5|e>>>27}function _Ae(e){return e<<30|e>>>2}function vAe(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}zd.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,h=this._e|0,g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<80;++g)t[g]=yAe(t[g-3]^t[g-8]^t[g-14]^t[g-16]);for(var v=0;v<80;++v){var w=~~(v/20),k=gAe(r)+vAe(w,n,i,o)+h+t[v]+pAe[w]|0;h=o,o=i,i=_Ae(n),n=r,r=k}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0};zd.prototype._hash=function(){var e=dAe.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};jP.exports=zd});var sM=I((OVe,XP)=>{"use strict";b();var bAe=Ye(),WP=If(),xAe=rt().Buffer,wAe=[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],kAe=new Array(64);function jd(){this.init(),this._w=kAe,WP.call(this,64,56)}bAe(jd,WP);jd.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};function MAe(e,t,r){return r^e&(t^r)}function AAe(e,t,r){return e&t|r&(e|t)}function EAe(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function SAe(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function TAe(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function RAe(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}jd.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,h=this._e|0,g=this._f|0,v=this._g|0,w=this._h|0,k=0;k<16;++k)t[k]=e.readInt32BE(k*4);for(;k<64;++k)t[k]=RAe(t[k-2])+t[k-7]+TAe(t[k-15])+t[k-16]|0;for(var A=0;A<64;++A){var R=w+SAe(h)+MAe(h,g,v)+wAe[A]+t[A]|0,O=EAe(r)+AAe(r,n,i)|0;w=v,v=g,g=h,h=o+R|0,o=i,i=n,n=r,r=R+O|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0,this._f=g+this._f|0,this._g=v+this._g|0,this._h=w+this._h|0};jd.prototype._hash=function(){var e=xAe.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};XP.exports=jd});var YP=I((NVe,$P)=>{"use strict";b();var OAe=Ye(),IAe=sM(),NAe=If(),BAe=rt().Buffer,CAe=new Array(64);function eg(){this.init(),this._w=CAe,NAe.call(this,64,56)}OAe(eg,IAe);eg.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};eg.prototype._hash=function(){var e=BAe.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};$P.exports=eg});var aM=I((CVe,nF)=>{"use strict";b();var UAe=Ye(),rF=If(),DAe=rt().Buffer,ZP=[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],PAe=new Array(160);function Vd(){this.init(),this._w=PAe,rF.call(this,128,112)}UAe(Vd,rF);Vd.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};function JP(e,t,r){return r^e&(t^r)}function QP(e,t,r){return e&t|r&(e|t)}function eF(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function tF(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function FAe(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function qAe(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function LAe(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function GAe(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function fn(e,t){return e>>>0<t>>>0?1:0}Vd.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,o=this._dh|0,h=this._eh|0,g=this._fh|0,v=this._gh|0,w=this._hh|0,k=this._al|0,A=this._bl|0,R=this._cl|0,O=this._dl|0,B=this._el|0,L=this._fl|0,X=this._gl|0,P=this._hl|0,H=0;H<32;H+=2)t[H]=e.readInt32BE(H*4),t[H+1]=e.readInt32BE(H*4+4);for(;H<160;H+=2){var D=t[H-30],Se=t[H-30+1],De=FAe(D,Se),Ce=qAe(Se,D);D=t[H-4],Se=t[H-4+1];var Ke=LAe(D,Se),j=GAe(Se,D),Be=t[H-14],y=t[H-14+1],s=t[H-32],l=t[H-32+1],u=Ce+y|0,f=De+Be+fn(u,Ce)|0;u=u+j|0,f=f+Ke+fn(u,j)|0,u=u+l|0,f=f+s+fn(u,l)|0,t[H]=f,t[H+1]=u}for(var c=0;c<160;c+=2){f=t[c],u=t[c+1];var m=QP(r,n,i),_=QP(k,A,R),d=eF(r,k),a=eF(k,r),p=tF(h,B),M=tF(B,h),x=ZP[c],E=ZP[c+1],N=JP(h,g,v),C=JP(B,L,X),U=P+M|0,Re=w+p+fn(U,P)|0;U=U+C|0,Re=Re+N+fn(U,C)|0,U=U+E|0,Re=Re+x+fn(U,E)|0,U=U+u|0,Re=Re+f+fn(U,u)|0;var F=a+_|0,q=d+m+fn(F,a)|0;w=v,P=X,v=g,X=L,g=h,L=B,B=O+U|0,h=o+Re+fn(B,O)|0,o=i,O=R,i=n,R=A,n=r,A=k,k=U+F|0,r=Re+q+fn(k,U)|0}this._al=this._al+k|0,this._bl=this._bl+A|0,this._cl=this._cl+R|0,this._dl=this._dl+O|0,this._el=this._el+B|0,this._fl=this._fl+L|0,this._gl=this._gl+X|0,this._hl=this._hl+P|0,this._ah=this._ah+r+fn(this._al,k)|0,this._bh=this._bh+n+fn(this._bl,A)|0,this._ch=this._ch+i+fn(this._cl,R)|0,this._dh=this._dh+o+fn(this._dl,O)|0,this._eh=this._eh+h+fn(this._el,B)|0,this._fh=this._fh+g+fn(this._fl,L)|0,this._gh=this._gh+v+fn(this._gl,X)|0,this._hh=this._hh+w+fn(this._hl,P)|0};Vd.prototype._hash=function(){var e=DAe.allocUnsafe(64);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+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};nF.exports=Vd});var sF=I((DVe,iF)=>{"use strict";b();var KAe=Ye(),HAe=aM(),zAe=If(),jAe=rt().Buffer,VAe=new Array(160);function tg(){this.init(),this._w=VAe,zAe.call(this,128,112)}KAe(tg,HAe);tg.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};tg.prototype._hash=function(){var e=jAe.allocUnsafe(48);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+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};iF.exports=tg});var rg=I((FVe,za)=>{"use strict";b();za.exports=function(t){var r=t.toLowerCase(),n=za.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n};za.exports.sha=HP();za.exports.sha1=VP();za.exports.sha224=YP();za.exports.sha256=sM();za.exports.sha384=sF();za.exports.sha512=aM()});var ja=I((LVe,oF)=>{"use strict";b();var WAe=rt().Buffer,aF=R1().Transform,XAe=Uc().StringDecoder,$Ae=Ye(),YAe=Rd();function rs(e){aF.call(this),this.hashMode=typeof e=="string",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}$Ae(rs,aF);rs.prototype.update=function(e,t,r){var n=YAe(e,t),i=this._update(n);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)};rs.prototype.setAutoPadding=function(){};rs.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};rs.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};rs.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};rs.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}};rs.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};rs.prototype._finalOrDigest=function(e){var t=this.__final()||WAe.alloc(0);return e&&(t=this._toString(t,e,!0)),t};rs.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new XAe(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n};oF.exports=rs});var jc=I((KVe,fF)=>{"use strict";b();var ZAe=Ye(),JAe=N1(),QAe=J1(),eEe=rg(),lF=ja();function ng(e){lF.call(this,"digest"),this._hash=e}ZAe(ng,lF);ng.prototype._update=function(e){this._hash.update(e)};ng.prototype._final=function(){return this._hash.digest()};fF.exports=function(t){return t=t.toLowerCase(),t==="md5"?new JAe:t==="rmd160"||t==="ripemd160"?new QAe:new ng(eEe(t))}});var hF=I((zVe,cF)=>{"use strict";b();var tEe=Ye(),Nf=rt().Buffer,uF=ja(),rEe=Nf.alloc(128),Vc=64;function ig(e,t){uF.call(this,"digest"),typeof t=="string"&&(t=Nf.from(t)),this._alg=e,this._key=t,t.length>Vc?t=e(t):t.length<Vc&&(t=Nf.concat([t,rEe],Vc));for(var r=this._ipad=Nf.allocUnsafe(Vc),n=this._opad=Nf.allocUnsafe(Vc),i=0;i<Vc;i++)r[i]=t[i]^54,n[i]=t[i]^92;this._hash=[r]}tEe(ig,uF);ig.prototype._update=function(e){this._hash.push(e)};ig.prototype._final=function(){var e=this._alg(Nf.concat(this._hash));return this._alg(Nf.concat([this._opad,e]))};cF.exports=ig});var oM=I((VVe,dF)=>{b();var nEe=N1();dF.exports=function(e){return new nEe().update(e).digest()}});var uM=I((XVe,mF)=>{"use strict";b();var iEe=Ye(),sEe=hF(),pF=ja(),Wd=rt().Buffer,aEe=oM(),lM=J1(),fM=rg(),oEe=Wd.alloc(128);function Xd(e,t){pF.call(this,"digest"),typeof t=="string"&&(t=Wd.from(t));var r=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=t,t.length>r){var n=e==="rmd160"?new lM:fM(e);t=n.update(t).digest()}else t.length<r&&(t=Wd.concat([t,oEe],r));for(var i=this._ipad=Wd.allocUnsafe(r),o=this._opad=Wd.allocUnsafe(r),h=0;h<r;h++)i[h]=t[h]^54,o[h]=t[h]^92;this._hash=e==="rmd160"?new lM:fM(e),this._hash.update(i)}iEe(Xd,pF);Xd.prototype._update=function(e){this._hash.update(e)};Xd.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new lM:fM(this._alg);return t.update(this._opad).update(e).digest()};mF.exports=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new Xd("rmd160",r):t==="md5"?new sEe(aEe,r):new Xd(t,r)}});var cM=I((YVe,lEe)=>{lEe.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"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:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"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:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var gF=I((ZVe,yF)=>{"use strict";b();yF.exports=cM()});var hM=I((QVe,_F)=>{"use strict";b();var fEe=isFinite,uEe=Math.pow(2,30)-1;_F.exports=function(e,t){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0||!fEe(e))throw new TypeError("Bad iterations");if(typeof t!="number")throw new TypeError("Key length not a number");if(t<0||t>uEe||t!==t)throw new TypeError("Bad key length")}});var dM=I((rWe,bF)=>{"use strict";b();var vF;vF="utf-8";var tWe;bF.exports=vF});var pM=I((iWe,kF)=>{"use strict";b();var cEe=rt().Buffer,hEe=Rd(),wF=typeof Uint8Array<"u",dEe=wF&&typeof ArrayBuffer<"u",xF=dEe&&ArrayBuffer.isView;kF.exports=function(e,t,r){if(typeof e=="string"||cEe.isBuffer(e)||wF&&e instanceof Uint8Array||xF&&xF(e))return hEe(e,t);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var mM=I((aWe,SF)=>{"use strict";b();var pEe=oM(),mEe=J1(),yEe=rg(),Bf=rt().Buffer,gEe=hM(),MF=dM(),AF=pM(),_Ee=Bf.alloc(128),sg={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},vEe={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function bEe(e){return new mEe().update(e).digest()}function xEe(e){function t(r){return yEe(e).update(r).digest()}return e==="rmd160"||e==="ripemd160"?bEe:e==="md5"?pEe:t}function EF(e,t,r){var n=xEe(e),i=e==="sha512"||e==="sha384"?128:64;t.length>i?t=n(t):t.length<i&&(t=Bf.concat([t,_Ee],i));for(var o=Bf.allocUnsafe(i+sg[e]),h=Bf.allocUnsafe(i+sg[e]),g=0;g<i;g++)o[g]=t[g]^54,h[g]=t[g]^92;var v=Bf.allocUnsafe(i+r+4);o.copy(v,0,0,i),this.ipad1=v,this.ipad2=o,this.opad=h,this.alg=e,this.blocksize=i,this.hash=n,this.size=sg[e]}EF.prototype.run=function(e,t){e.copy(t,this.blocksize);var r=this.hash(t);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function wEe(e,t,r,n,i){gEe(r,n),e=AF(e,MF,"Password"),t=AF(t,MF,"Salt");var o=(i||"sha1").toLowerCase(),h=vEe[o]||o,g=sg[h];if(typeof g!="number"||!g)throw new TypeError("Digest algorithm not supported: "+i);var v=new EF(h,e,t.length),w=Bf.allocUnsafe(n),k=Bf.allocUnsafe(t.length+4);t.copy(k,0,0,t.length);for(var A=0,R=g,O=Math.ceil(n/R),B=1;B<=O;B++){k.writeUInt32BE(B,t.length);for(var L=v.run(k,v.ipad1),X=L,P=1;P<r;P++){X=v.run(X,v.ipad2);for(var H=0;H<R;H++)L[H]^=X[H]}L.copy(w,A),A+=R}return w}SF.exports=wEe});var CF=I((lWe,BF)=>{"use strict";b();var IF=rt().Buffer,kEe=hM(),TF=dM(),RF=mM(),OF=pM(),ag,$d=window.crypto&&window.crypto.subtle,MEe={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"},yM=[],Wc;function gM(){return Wc||(window.queueMicrotask?Wc=window.queueMicrotask:window.setImmediate?Wc=window.setImmediate:Wc=window.setTimeout,Wc)}function NF(e,t,r,n,i){return $d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(o){return $d.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},o,n<<3)}).then(function(o){return IF.from(o)})}function AEe(e){if(!$d||!$d.importKey||!$d.deriveBits)return Promise.resolve(!1);if(yM[e]!==void 0)return yM[e];ag=ag||IF.alloc(8);var t=NF(ag,ag,10,128,e).then(function(){return!0},function(){return!1});return yM[e]=t,t}function EEe(e,t){e.then(function(r){gM()(function(){t(null,r)})},function(r){gM()(function(){t(r)})})}BF.exports=function(e,t,r,n,i,o){if(typeof i=="function"&&(o=i,i=void 0),kEe(r,n),e=OF(e,TF,"Password"),t=OF(t,TF,"Salt"),typeof o!="function")throw new Error("No callback provided to pbkdf2");i=i||"sha1";var h=MEe[i.toLowerCase()];if(!h||typeof window.Promise!="function"){gM()(function(){var g;try{g=RF(e,t,r,n,i)}catch(v){o(v);return}o(null,g)});return}EEe(AEe(h).then(function(g){return g?NF(e,t,r,n,h):RF(e,t,r,n,i)}),o)}});var vM=I(_M=>{"use strict";b();_M.pbkdf2=CF();_M.pbkdf2Sync=mM()});var bM=I(Ni=>{"use strict";b();Ni.readUInt32BE=function(t,r){var n=t[0+r]<<24|t[1+r]<<16|t[2+r]<<8|t[3+r];return n>>>0};Ni.writeUInt32BE=function(t,r,n){t[0+n]=r>>>24,t[1+n]=r>>>16&255,t[2+n]=r>>>8&255,t[3+n]=r&255};Ni.ip=function(t,r,n,i){for(var o=0,h=0,g=6;g>=0;g-=2){for(var v=0;v<=24;v+=8)o<<=1,o|=r>>>v+g&1;for(var v=0;v<=24;v+=8)o<<=1,o|=t>>>v+g&1}for(var g=6;g>=0;g-=2){for(var v=1;v<=25;v+=8)h<<=1,h|=r>>>v+g&1;for(var v=1;v<=25;v+=8)h<<=1,h|=t>>>v+g&1}n[i+0]=o>>>0,n[i+1]=h>>>0};Ni.rip=function(t,r,n,i){for(var o=0,h=0,g=0;g<4;g++)for(var v=24;v>=0;v-=8)o<<=1,o|=r>>>v+g&1,o<<=1,o|=t>>>v+g&1;for(var g=4;g<8;g++)for(var v=24;v>=0;v-=8)h<<=1,h|=r>>>v+g&1,h<<=1,h|=t>>>v+g&1;n[i+0]=o>>>0,n[i+1]=h>>>0};Ni.pc1=function(t,r,n,i){for(var o=0,h=0,g=7;g>=5;g--){for(var v=0;v<=24;v+=8)o<<=1,o|=r>>v+g&1;for(var v=0;v<=24;v+=8)o<<=1,o|=t>>v+g&1}for(var v=0;v<=24;v+=8)o<<=1,o|=r>>v+g&1;for(var g=1;g<=3;g++){for(var v=0;v<=24;v+=8)h<<=1,h|=r>>v+g&1;for(var v=0;v<=24;v+=8)h<<=1,h|=t>>v+g&1}for(var v=0;v<=24;v+=8)h<<=1,h|=t>>v+g&1;n[i+0]=o>>>0,n[i+1]=h>>>0};Ni.r28shl=function(t,r){return t<<r&268435455|t>>>28-r};var og=[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];Ni.pc2=function(t,r,n,i){for(var o=0,h=0,g=og.length>>>1,v=0;v<g;v++)o<<=1,o|=t>>>og[v]&1;for(var v=g;v<og.length;v++)h<<=1,h|=r>>>og[v]&1;n[i+0]=o>>>0,n[i+1]=h>>>0};Ni.expand=function(t,r,n){var i=0,o=0;i=(t&1)<<5|t>>>27;for(var h=23;h>=15;h-=4)i<<=6,i|=t>>>h&63;for(var h=11;h>=3;h-=4)o|=t>>>h&63,o<<=6;o|=(t&31)<<1|t>>>31,r[n+0]=i>>>0,r[n+1]=o>>>0};var UF=[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];Ni.substitute=function(t,r){for(var n=0,i=0;i<4;i++){var o=t>>>18-i*6&63,h=UF[i*64+o];n<<=4,n|=h}for(var i=0;i<4;i++){var o=r>>>18-i*6&63,h=UF[256+i*64+o];n<<=4,n|=h}return n>>>0};var DF=[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];Ni.permute=function(t){for(var r=0,n=0;n<DF.length;n++)r<<=1,r|=t>>>DF[n]&1;return r>>>0};Ni.padSplit=function(t,r,n){for(var i=t.toString(2);i.length<r;)i="0"+i;for(var o=[],h=0;h<r;h+=n)o.push(i.slice(h,h+n));return o.join(" ")}});var _i=I((pWe,FF)=>{b();FF.exports=PF;function PF(e,t){if(!e)throw new Error(t||"Assertion failed")}PF.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)}});var lg=I((yWe,qF)=>{"use strict";b();var SEe=_i();function Bi(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=e.padding!==!1}qF.exports=Bi;Bi.prototype._init=function(){};Bi.prototype.update=function(t){return t.length===0?[]:this.type==="decrypt"?this._updateDecrypt(t):this._updateEncrypt(t)};Bi.prototype._buffer=function(t,r){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-r),i=0;i<n;i++)this.buffer[this.bufferOff+i]=t[r+i];return this.bufferOff+=n,n};Bi.prototype._flushBuffer=function(t,r){return this._update(this.buffer,0,t,r),this.bufferOff=0,this.blockSize};Bi.prototype._updateEncrypt=function(t){var r=0,n=0,i=(this.bufferOff+t.length)/this.blockSize|0,o=new Array(i*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(t,r),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(o,n)));for(var h=t.length-(t.length-r)%this.blockSize;r<h;r+=this.blockSize)this._update(t,r,o,n),n+=this.blockSize;for(;r<t.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=t[r];return o};Bi.prototype._updateDecrypt=function(t){for(var r=0,n=0,i=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,o=new Array(i*this.blockSize);i>0;i--)r+=this._buffer(t,r),n+=this._flushBuffer(o,n);return r+=this._buffer(t,r),o};Bi.prototype.final=function(t){var r;t&&(r=this.update(t));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),r?r.concat(n):n};Bi.prototype._pad=function(t,r){if(r===0)return!1;for(;r<t.length;)t[r++]=0;return!0};Bi.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t};Bi.prototype._unpad=function(t){return t};Bi.prototype._finalDecrypt=function(){SEe.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}});var xM=I((_We,KF)=>{"use strict";b();var LF=_i(),TEe=Ye(),Qr=bM(),GF=lg();function REe(){this.tmp=new Array(2),this.keys=null}function js(e){GF.call(this,e);var t=new REe;this._desState=t,this.deriveKeys(t,e.key)}TEe(js,GF);KF.exports=js;js.create=function(t){return new js(t)};var OEe=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];js.prototype.deriveKeys=function(t,r){t.keys=new Array(32),LF.equal(r.length,this.blockSize,"Invalid key length");var n=Qr.readUInt32BE(r,0),i=Qr.readUInt32BE(r,4);Qr.pc1(n,i,t.tmp,0),n=t.tmp[0],i=t.tmp[1];for(var o=0;o<t.keys.length;o+=2){var h=OEe[o>>>1];n=Qr.r28shl(n,h),i=Qr.r28shl(i,h),Qr.pc2(n,i,t.keys,o)}};js.prototype._update=function(t,r,n,i){var o=this._desState,h=Qr.readUInt32BE(t,r),g=Qr.readUInt32BE(t,r+4);Qr.ip(h,g,o.tmp,0),h=o.tmp[0],g=o.tmp[1],this.type==="encrypt"?this._encrypt(o,h,g,o.tmp,0):this._decrypt(o,h,g,o.tmp,0),h=o.tmp[0],g=o.tmp[1],Qr.writeUInt32BE(n,h,i),Qr.writeUInt32BE(n,g,i+4)};js.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var n=t.length-r,i=r;i<t.length;i++)t[i]=n;return!0};js.prototype._unpad=function(t){if(this.padding===!1)return t;for(var r=t[t.length-1],n=t.length-r;n<t.length;n++)LF.equal(t[n],r);return t.slice(0,t.length-r)};js.prototype._encrypt=function(t,r,n,i,o){for(var h=r,g=n,v=0;v<t.keys.length;v+=2){var w=t.keys[v],k=t.keys[v+1];Qr.expand(g,t.tmp,0),w^=t.tmp[0],k^=t.tmp[1];var A=Qr.substitute(w,k),R=Qr.permute(A),O=g;g=(h^R)>>>0,h=O}Qr.rip(g,h,i,o)};js.prototype._decrypt=function(t,r,n,i,o){for(var h=n,g=r,v=t.keys.length-2;v>=0;v-=2){var w=t.keys[v],k=t.keys[v+1];Qr.expand(h,t.tmp,0),w^=t.tmp[0],k^=t.tmp[1];var A=Qr.substitute(w,k),R=Qr.permute(A),O=h;h=(g^R)>>>0,g=O}Qr.rip(h,g,i,o)}});var zF=I(HF=>{"use strict";b();var IEe=_i(),NEe=Ye(),fg={};function BEe(e){IEe.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 CEe(e){function t(o){e.call(this,o),this._cbcInit()}NEe(t,e);for(var r=Object.keys(fg),n=0;n<r.length;n++){var i=r[n];t.prototype[i]=fg[i]}return t.create=function(h){return new t(h)},t}HF.instantiate=CEe;fg._cbcInit=function(){var t=new BEe(this.options.iv);this._cbcState=t};fg._update=function(t,r,n,i){var o=this._cbcState,h=this.constructor.super_.prototype,g=o.iv;if(this.type==="encrypt"){for(var v=0;v<this.blockSize;v++)g[v]^=t[r+v];h._update.call(this,g,0,n,i);for(var v=0;v<this.blockSize;v++)g[v]=n[i+v]}else{h._update.call(this,t,r,n,i);for(var v=0;v<this.blockSize;v++)n[i+v]^=g[v];for(var v=0;v<this.blockSize;v++)g[v]=t[r+v]}}});var WF=I((wWe,VF)=>{"use strict";b();var UEe=_i(),DEe=Ye(),jF=lg(),sl=xM();function PEe(e,t){UEe.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),i=t.slice(16,24);e==="encrypt"?this.ciphers=[sl.create({type:"encrypt",key:r}),sl.create({type:"decrypt",key:n}),sl.create({type:"encrypt",key:i})]:this.ciphers=[sl.create({type:"decrypt",key:i}),sl.create({type:"encrypt",key:n}),sl.create({type:"decrypt",key:r})]}function Cf(e){jF.call(this,e);var t=new PEe(this.type,this.options.key);this._edeState=t}DEe(Cf,jF);VF.exports=Cf;Cf.create=function(t){return new Cf(t)};Cf.prototype._update=function(t,r,n,i){var o=this._edeState;o.ciphers[0]._update(t,r,n,i),o.ciphers[1]._update(n,i,n,i),o.ciphers[2]._update(n,i,n,i)};Cf.prototype._pad=sl.prototype._pad;Cf.prototype._unpad=sl.prototype._unpad});var XF=I(Xc=>{"use strict";b();Xc.utils=bM();Xc.Cipher=lg();Xc.DES=xM();Xc.CBC=zF();Xc.EDE=WF()});var ZF=I((EWe,YF)=>{b();var $F=ja(),Va=XF(),FEe=Ye(),Uf=rt().Buffer,Yd={"des-ede3-cbc":Va.CBC.instantiate(Va.EDE),"des-ede3":Va.EDE,"des-ede-cbc":Va.CBC.instantiate(Va.EDE),"des-ede":Va.EDE,"des-cbc":Va.CBC.instantiate(Va.DES),"des-ecb":Va.DES};Yd.des=Yd["des-cbc"];Yd.des3=Yd["des-ede3-cbc"];YF.exports=ug;FEe(ug,$F);function ug(e){$F.call(this);var t=e.mode.toLowerCase(),r=Yd[t],n;e.decrypt?n="decrypt":n="encrypt";var i=e.key;Uf.isBuffer(i)||(i=Uf.from(i)),(t==="des-ede"||t==="des-ede-cbc")&&(i=Uf.concat([i,i.slice(0,8)]));var o=e.iv;Uf.isBuffer(o)||(o=Uf.from(o)),this._des=r.create({key:i,iv:o,type:n})}ug.prototype._update=function(e){return Uf.from(this._des.update(e))};ug.prototype._final=function(){return Uf.from(this._des.final())}});var JF=I(wM=>{b();wM.encrypt=function(e,t){return e._cipher.encryptBlock(t)};wM.decrypt=function(e,t){return e._cipher.decryptBlock(t)}});var $c=I((OWe,QF)=>{b();QF.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new Buffer(n),o=0;o<n;++o)i[o]=t[o]^r[o];return i}});var tq=I(kM=>{b();var eq=$c();kM.encrypt=function(e,t){var r=eq(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev};kM.decrypt=function(e,t){var r=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return eq(n,r)}});var iq=I(nq=>{b();var Zd=rt().Buffer,qEe=$c();function rq(e,t,r){var n=t.length,i=qEe(t,e._cache);return e._cache=e._cache.slice(n),e._prev=Zd.concat([e._prev,r?t:i]),i}nq.encrypt=function(e,t,r){for(var n=Zd.allocUnsafe(0),i;t.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Zd.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,n=Zd.concat([n,rq(e,t.slice(0,i),r)]),t=t.slice(i);else{n=Zd.concat([n,rq(e,t,r)]);break}return n}});var aq=I(sq=>{b();var MM=rt().Buffer;function LEe(e,t,r){var n=e._cipher.encryptBlock(e._prev),i=n[0]^t;return e._prev=MM.concat([e._prev.slice(1),MM.from([r?t:i])]),i}sq.encrypt=function(e,t,r){for(var n=t.length,i=MM.allocUnsafe(n),o=-1;++o<n;)i[o]=LEe(e,t[o],r);return i}});var lq=I(oq=>{b();var cg=rt().Buffer;function GEe(e,t,r){for(var n,i=-1,o=8,h=0,g,v;++i<o;)n=e._cipher.encryptBlock(e._prev),g=t&1<<7-i?128:0,v=n[0]^g,h+=(v&128)>>i%8,e._prev=KEe(e._prev,r?g:v);return h}function KEe(e,t){var r=e.length,n=-1,i=cg.allocUnsafe(e.length);for(e=cg.concat([e,cg.from([t])]);++n<r;)i[n]=e[n]<<1|e[n+1]>>7;return i}oq.encrypt=function(e,t,r){for(var n=t.length,i=cg.allocUnsafe(n),o=-1;++o<n;)i[o]=GEe(e,t[o],r);return i}});var uq=I(fq=>{b();var HEe=$c();function zEe(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}fq.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=Buffer.concat([e._cache,zEe(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),HEe(t,r)}});var AM=I((KWe,cq)=>{b();function jEe(e){for(var t=e.length,r;t--;)if(r=e.readUInt8(t),r===255)e.writeUInt8(0,t);else{r++,e.writeUInt8(r,t);break}}cq.exports=jEe});var SM=I(dq=>{b();var VEe=$c(),hq=rt().Buffer,WEe=AM();function XEe(e){var t=e._cipher.encryptBlockRaw(e._prev);return WEe(e._prev),t}var EM=16;dq.encrypt=function(e,t){var r=Math.ceil(t.length/EM),n=e._cache.length;e._cache=hq.concat([e._cache,hq.allocUnsafe(r*EM)]);for(var i=0;i<r;i++){var o=XEe(e),h=n+i*EM;e._cache.writeUInt32BE(o[0],h+0),e._cache.writeUInt32BE(o[1],h+4),e._cache.writeUInt32BE(o[2],h+8),e._cache.writeUInt32BE(o[3],h+12)}var g=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),VEe(t,g)}});var TM=I((VWe,$Ee)=>{$Ee.exports={"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:{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"},"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 dg=I((WWe,pq)=>{b();var YEe={ECB:JF(),CBC:tq(),CFB:iq(),CFB8:aq(),CFB1:lq(),OFB:uq(),CTR:SM(),GCM:SM()},hg=TM();for(RM in hg)hg[RM].module=YEe[hg[RM].mode];var RM;pq.exports=hg});var Jd=I(($We,yq)=>{b();var pg=rt().Buffer;function IM(e){pg.isBuffer(e)||(e=pg.from(e));for(var t=e.length/4|0,r=new Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(n*4);return r}function OM(e){for(var t=0;t<e.length;e++)e[t]=0}function mq(e,t,r,n,i){for(var o=r[0],h=r[1],g=r[2],v=r[3],w=e[0]^t[0],k=e[1]^t[1],A=e[2]^t[2],R=e[3]^t[3],O,B,L,X,P=4,H=1;H<i;H++)O=o[w>>>24]^h[k>>>16&255]^g[A>>>8&255]^v[R&255]^t[P++],B=o[k>>>24]^h[A>>>16&255]^g[R>>>8&255]^v[w&255]^t[P++],L=o[A>>>24]^h[R>>>16&255]^g[w>>>8&255]^v[k&255]^t[P++],X=o[R>>>24]^h[w>>>16&255]^g[k>>>8&255]^v[A&255]^t[P++],w=O,k=B,A=L,R=X;return O=(n[w>>>24]<<24|n[k>>>16&255]<<16|n[A>>>8&255]<<8|n[R&255])^t[P++],B=(n[k>>>24]<<24|n[A>>>16&255]<<16|n[R>>>8&255]<<8|n[w&255])^t[P++],L=(n[A>>>24]<<24|n[R>>>16&255]<<16|n[w>>>8&255]<<8|n[k&255])^t[P++],X=(n[R>>>24]<<24|n[w>>>16&255]<<16|n[k>>>8&255]<<8|n[A&255])^t[P++],O=O>>>0,B=B>>>0,L=L>>>0,X=X>>>0,[O,B,L,X]}var ZEe=[0,1,2,4,8,16,32,64,128,27,54],zr=(function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],h=0,g=0,v=0;v<256;++v){var w=g^g<<1^g<<2^g<<3^g<<4;w=w>>>8^w&255^99,r[h]=w,n[w]=h;var k=e[h],A=e[k],R=e[A],O=e[w]*257^w*16843008;i[0][h]=O<<24|O>>>8,i[1][h]=O<<16|O>>>16,i[2][h]=O<<8|O>>>24,i[3][h]=O,O=R*16843009^A*65537^k*257^h*16843008,o[0][w]=O<<24|O>>>8,o[1][w]=O<<16|O>>>16,o[2][w]=O<<8|O>>>24,o[3][w]=O,h===0?h=g=1:(h=k^e[e[e[R^k]]],g^=e[e[g]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}})();function Ci(e){this._key=IM(e),this._reset()}Ci.blockSize=16;Ci.keySize=256/8;Ci.prototype.blockSize=Ci.blockSize;Ci.prototype.keySize=Ci.keySize;Ci.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var h=i[o-1];o%t===0?(h=h<<8|h>>>24,h=zr.SBOX[h>>>24]<<24|zr.SBOX[h>>>16&255]<<16|zr.SBOX[h>>>8&255]<<8|zr.SBOX[h&255],h^=ZEe[o/t|0]<<24):t>6&&o%t===4&&(h=zr.SBOX[h>>>24]<<24|zr.SBOX[h>>>16&255]<<16|zr.SBOX[h>>>8&255]<<8|zr.SBOX[h&255]),i[o]=i[o-t]^h}for(var g=[],v=0;v<n;v++){var w=n-v,k=i[w-(v%4?0:4)];v<4||w<=4?g[v]=k:g[v]=zr.INV_SUB_MIX[0][zr.SBOX[k>>>24]]^zr.INV_SUB_MIX[1][zr.SBOX[k>>>16&255]]^zr.INV_SUB_MIX[2][zr.SBOX[k>>>8&255]]^zr.INV_SUB_MIX[3][zr.SBOX[k&255]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=g};Ci.prototype.encryptBlockRaw=function(e){return e=IM(e),mq(e,this._keySchedule,zr.SUB_MIX,zr.SBOX,this._nRounds)};Ci.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=pg.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};Ci.prototype.decryptBlock=function(e){e=IM(e);var t=e[1];e[1]=e[3],e[3]=t;var r=mq(e,this._invKeySchedule,zr.INV_SUB_MIX,zr.INV_SBOX,this._nRounds),n=pg.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n};Ci.prototype.scrub=function(){OM(this._keySchedule),OM(this._invKeySchedule),OM(this._key)};yq.exports.AES=Ci});var vq=I((ZWe,_q)=>{b();var Yc=rt().Buffer,JEe=Yc.alloc(16,0);function QEe(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function gq(e){var t=Yc.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 Qd(e){this.h=e,this.state=Yc.alloc(16,0),this.cache=Yc.allocUnsafe(0)}Qd.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()};Qd.prototype._multiply=function(){for(var e=QEe(this.h),t=[0,0,0,0],r,n,i,o=-1;++o<128;){for(n=(this.state[~~(o/8)]&1<<7-o%8)!==0,n&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),i=(e[3]&1)!==0,r=3;r>0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,i&&(e[0]=e[0]^225<<24)}this.state=gq(t)};Qd.prototype.update=function(e){this.cache=Yc.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};Qd.prototype.final=function(e,t){return this.cache.length&&this.ghash(Yc.concat([this.cache,JEe],16)),this.ghash(gq([0,e,0,t])),this.state};_q.exports=Qd});var NM=I((QWe,wq)=>{b();var eSe=Jd(),Qn=rt().Buffer,bq=ja(),tSe=Ye(),xq=vq(),rSe=$c(),nSe=AM();function iSe(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}function sSe(e,t,r){if(t.length===12)return e._finID=Qn.concat([t,Qn.from([0,0,0,1])]),Qn.concat([t,Qn.from([0,0,0,2])]);var n=new xq(r),i=t.length,o=i%16;n.update(t),o&&(o=16-o,n.update(Qn.alloc(o,0))),n.update(Qn.alloc(8,0));var h=i*8,g=Qn.alloc(8);g.writeUIntBE(h,0,8),n.update(g),e._finID=n.state;var v=Qn.from(e._finID);return nSe(v),v}function Df(e,t,r,n){bq.call(this);var i=Qn.alloc(4,0);this._cipher=new eSe.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new xq(o),r=sSe(this,r,o),this._prev=Qn.from(r),this._cache=Qn.allocUnsafe(0),this._secCache=Qn.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}tSe(Df,bq);Df.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=Qn.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r};Df.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=rSe(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&iSe(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()};Df.prototype.getAuthTag=function(){if(this._decrypt||!Qn.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};Df.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t};Df.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length};wq.exports=Df});var CM=I((tXe,Mq)=>{b();var aSe=Jd(),BM=rt().Buffer,kq=ja(),oSe=Ye();function mg(e,t,r,n){kq.call(this),this._cipher=new aSe.AES(t),this._prev=BM.from(r),this._cache=BM.allocUnsafe(0),this._secCache=BM.allocUnsafe(0),this._decrypt=n,this._mode=e}oSe(mg,kq);mg.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)};mg.prototype._final=function(){this._cipher.scrub()};Mq.exports=mg});var ep=I((nXe,Aq)=>{b();var Pf=rt().Buffer,lSe=N1();function fSe(e,t,r,n){if(Pf.isBuffer(e)||(e=Pf.from(e,"binary")),t&&(Pf.isBuffer(t)||(t=Pf.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=r/8,o=Pf.alloc(i),h=Pf.alloc(n||0),g=Pf.alloc(0);i>0||n>0;){var v=new lSe;v.update(g),v.update(e),t&&v.update(t),g=v.digest();var w=0;if(i>0){var k=o.length-i;w=Math.min(i,g.length),g.copy(o,k,0,w),i-=w}if(w<g.length&&n>0){var A=h.length-n,R=Math.min(n,g.length-w);g.copy(h,A,w,w+R),n-=R}}return g.fill(0),{key:o,iv:h}}Aq.exports=fSe});var Rq=I(UM=>{b();var Eq=dg(),uSe=NM(),Wa=rt().Buffer,cSe=CM(),Sq=ja(),hSe=Jd(),dSe=ep(),pSe=Ye();function tp(e,t,r){Sq.call(this),this._cache=new yg,this._cipher=new hSe.AES(t),this._prev=Wa.from(r),this._mode=e,this._autopadding=!0}pSe(tp,Sq);tp.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return Wa.concat(n)};var mSe=Wa.alloc(16,16);tp.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(mSe))throw this._cipher.scrub(),new Error("data not multiple of block length")};tp.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function yg(){this.cache=Wa.allocUnsafe(0)}yg.prototype.add=function(e){this.cache=Wa.concat([this.cache,e])};yg.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};yg.prototype.flush=function(){for(var e=16-this.cache.length,t=Wa.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return Wa.concat([this.cache,t])};function Tq(e,t,r){var n=Eq[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=Wa.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);if(typeof r=="string"&&(r=Wa.from(r)),n.mode!=="GCM"&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);return n.type==="stream"?new cSe(n.module,t,r):n.type==="auth"?new uSe(n.module,t,r):new tp(n.module,t,r)}function ySe(e,t){var r=Eq[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=dSe(t,!1,r.key,r.iv);return Tq(e,n.key,n.iv)}UM.createCipheriv=Tq;UM.createCipher=ySe});var Bq=I(DM=>{b();var gSe=NM(),Zc=rt().Buffer,Oq=dg(),_Se=CM(),Iq=ja(),vSe=Jd(),bSe=ep(),xSe=Ye();function rp(e,t,r){Iq.call(this),this._cache=new gg,this._last=void 0,this._cipher=new vSe.AES(t),this._prev=Zc.from(r),this._mode=e,this._autopadding=!0}xSe(rp,Iq);rp.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return Zc.concat(n)};rp.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return wSe(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")};rp.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function gg(){this.cache=Zc.allocUnsafe(0)}gg.prototype.add=function(e){this.cache=Zc.concat([this.cache,e])};gg.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};gg.prototype.flush=function(){if(this.cache.length)return this.cache};function wSe(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(t!==16)return e.slice(0,16-t)}function Nq(e,t,r){var n=Oq[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=Zc.from(r)),n.mode!=="GCM"&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);if(typeof t=="string"&&(t=Zc.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);return n.type==="stream"?new _Se(n.module,t,r,!0):n.type==="auth"?new gSe(n.module,t,r,!0):new rp(n.module,t,r)}function kSe(e,t){var r=Oq[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=bSe(t,!1,r.key,r.iv);return Nq(e,n.key,n.iv)}DM.createDecipher=kSe;DM.createDecipheriv=Nq});var _g=I(ns=>{b();var Cq=Rq(),Uq=Bq(),MSe=TM();function ASe(){return Object.keys(MSe)}ns.createCipher=ns.Cipher=Cq.createCipher;ns.createCipheriv=ns.Cipheriv=Cq.createCipheriv;ns.createDecipher=ns.Decipher=Uq.createDecipher;ns.createDecipheriv=ns.Decipheriv=Uq.createDecipheriv;ns.listCiphers=ns.getCiphers=ASe});var Dq=I(Xa=>{b();Xa["des-ecb"]={key:8,iv:0};Xa["des-cbc"]=Xa.des={key:8,iv:8};Xa["des-ede3-cbc"]=Xa.des3={key:24,iv:8};Xa["des-ede3"]={key:24,iv:0};Xa["des-ede-cbc"]={key:16,iv:8};Xa["des-ede"]={key:16,iv:0}});var Gq=I(is=>{b();var Pq=ZF(),PM=_g(),al=dg(),$a=Dq(),Fq=ep();function ESe(e,t){e=e.toLowerCase();var r,n;if(al[e])r=al[e].key,n=al[e].iv;else if($a[e])r=$a[e].key*8,n=$a[e].iv;else throw new TypeError("invalid suite type");var i=Fq(t,!1,r,n);return qq(e,i.key,i.iv)}function SSe(e,t){e=e.toLowerCase();var r,n;if(al[e])r=al[e].key,n=al[e].iv;else if($a[e])r=$a[e].key*8,n=$a[e].iv;else throw new TypeError("invalid suite type");var i=Fq(t,!1,r,n);return Lq(e,i.key,i.iv)}function qq(e,t,r){if(e=e.toLowerCase(),al[e])return PM.createCipheriv(e,t,r);if($a[e])return new Pq({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function Lq(e,t,r){if(e=e.toLowerCase(),al[e])return PM.createDecipheriv(e,t,r);if($a[e])return new Pq({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function TSe(){return Object.keys($a).concat(PM.getCiphers())}is.createCipher=is.Cipher=ESe;is.createCipheriv=is.Cipheriv=qq;is.createDecipher=is.Decipher=SSe;is.createDecipheriv=is.Decipheriv=Lq;is.listCiphers=is.getCiphers=TSe});var ol=I(()=>{b()});var qM=I((Kq,FM)=>{b();(function(e,t){"use strict";function r(y,s){if(!y)throw new Error(s||"Assertion failed")}function n(y,s){y.super_=s;var l=function(){};l.prototype=s.prototype,y.prototype=new l,y.prototype.constructor=y}function i(y,s,l){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(y||0,s||10,l||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ol().Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,u){if(typeof s=="number")return this._initNumber(s,l,u);if(typeof s=="object")return this._initArray(s,l,u);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(l===16?this._parseHex(s,f,u):(this._parseBase(s,l,f),u==="le"&&this._initArray(this.toArray(),l,u)))},i.prototype._initNumber=function(s,l,u){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),l,u)},i.prototype._initArray=function(s,l,u){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,m,_=0;if(u==="be")for(f=s.length-1,c=0;f>=0;f-=3)m=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);else if(u==="le")for(f=0,c=0;f<s.length;f+=3)m=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);return this.strip()};function h(y,s){var l=y.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(y,s,l){var u=h(y,l);return l-1>=s&&(u|=h(y,l-1)<<4),u}i.prototype._parseHex=function(s,l,u){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,m=0,_;if(u==="be")for(f=s.length-1;f>=l;f-=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8;else{var d=s.length-l;for(f=d%2===0?l+1:l;f<s.length;f+=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8}this.strip()};function v(y,s,l,u){for(var f=0,c=Math.min(y.length,l),m=s;m<c;m++){var _=y.charCodeAt(m)-48;f*=u,_>=49?f+=_-49+10:_>=17?f+=_-17+10:f+=_}return f}i.prototype._parseBase=function(s,l,u){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=l)f++;f--,c=c/l|0;for(var m=s.length-u,_=m%f,d=Math.min(m,m-_)+u,a=0,p=u;p<d;p+=f)a=v(s,p,p+f,l),this.imuln(c),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(_!==0){var M=1;for(a=v(s,p,s.length,l),p=0;p<_;p++)M*=l;this.imuln(M),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","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"],k=[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],A=[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];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var u;if(s===16||s==="hex"){u="";for(var f=0,c=0,m=0;m<this.length;m++){var _=this.words[m],d=((_<<f|c)&16777215).toString(16);c=_>>>24-f&16777215,f+=2,f>=26&&(f-=26,m--),c!==0||m!==this.length-1?u=w[6-d.length]+d+u:u=d+u}for(c!==0&&(u=c.toString(16)+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(s===(s|0)&&s>=2&&s<=36){var a=k[s],p=A[s];u="";var M=this.clone();for(M.negative=0;!M.isZero();){var x=M.modn(p).toString(s);M=M.idivn(p),M.isZero()?u=x+u:u=w[a-x.length]+x+u}for(this.isZero()&&(u="0"+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,u){var f=this.byteLength(),c=u||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var m=l==="le",_=new s(c),d,a,p=this.clone();if(m){for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[a]=d;for(;a<c;a++)_[a]=0}else{for(a=0;a<c-f;a++)_[a]=0;for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[c-a-1]=d}return _},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,u=0;return l>=4096&&(u+=13,l>>>=13),l>=64&&(u+=7,l>>>=7),l>=8&&(u+=4,l>>>=4),l>=2&&(u+=2,l>>>=2),u+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,u=0;return(l&8191)===0&&(u+=13,l>>>=13),(l&127)===0&&(u+=7,l>>>=7),(l&15)===0&&(u+=4,l>>>=4),(l&3)===0&&(u+=2,l>>>=2),(l&1)===0&&u++,u},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function R(y){for(var s=new Array(y.bitLength()),l=0;l<s.length;l++){var u=l/26|0,f=l%26;s[l]=(y.words[u]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var u=this._zeroBits(this.words[l]);if(s+=u,u!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var u=0;u<l.length;u++)this.words[u]=this.words[u]&s.words[u];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,u;this.length>s.length?(l=this,u=s):(l=s,u=this);for(var f=0;f<u.length;f++)this.words[f]=l.words[f]^u.words[f];if(this!==l)for(;f<l.length;f++)this.words[f]=l.words[f];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,u=s%26;this._expand(l),u>0&&l--;for(var f=0;f<l;f++)this.words[f]=~this.words[f]&67108863;return u>0&&(this.words[f]=~this.words[f]&67108863>>26-u),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var u=s/26|0,f=s%26;return this._expand(u+1),l?this.words[u]=this.words[u]|1<<f:this.words[u]=this.words[u]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var u,f;this.length>s.length?(u=this,f=s):(u=s,f=this);for(var c=0,m=0;m<f.length;m++)l=(u.words[m]|0)+(f.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;for(;c!==0&&m<u.length;m++)l=(u.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;if(this.length=u.length,c!==0)this.words[this.length]=c,this.length++;else if(u!==this)for(;m<u.length;m++)this.words[m]=u.words[m];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var u=this.cmp(s);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;u>0?(f=this,c=s):(f=s,c=this);for(var m=0,_=0;_<c.length;_++)l=(f.words[_]|0)-(c.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;for(;m!==0&&_<f.length;_++)l=(f.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;if(m===0&&_<f.length&&f!==this)for(;_<f.length;_++)this.words[_]=f.words[_];return this.length=Math.max(this.length,_),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function O(y,s,l){l.negative=s.negative^y.negative;var u=y.length+s.length|0;l.length=u,u=u-1|0;var f=y.words[0]|0,c=s.words[0]|0,m=f*c,_=m&67108863,d=m/67108864|0;l.words[0]=_;for(var a=1;a<u;a++){for(var p=d>>>26,M=d&67108863,x=Math.min(a,s.length-1),E=Math.max(0,a-y.length+1);E<=x;E++){var N=a-E|0;f=y.words[N]|0,c=s.words[E]|0,m=f*c+M,p+=m/67108864|0,M=m&67108863}l.words[a]=M|0,d=p|0}return d!==0?l.words[a]=d|0:l.length--,l.strip()}var B=function(s,l,u){var f=s.words,c=l.words,m=u.words,_=0,d,a,p,M=f[0]|0,x=M&8191,E=M>>>13,N=f[1]|0,C=N&8191,U=N>>>13,Re=f[2]|0,F=Re&8191,q=Re>>>13,ft=f[3]|0,V=ft&8191,W=ft>>>13,wt=f[4]|0,$=wt&8191,Y=wt>>>13,wr=f[5]|0,Z=wr&8191,J=wr>>>13,kr=f[6]|0,Q=kr&8191,ee=kr>>>13,Mr=f[7]|0,te=Mr&8191,re=Mr>>>13,Ar=f[8]|0,ne=Ar&8191,ie=Ar>>>13,Er=f[9]|0,se=Er&8191,ae=Er>>>13,Sr=c[0]|0,oe=Sr&8191,le=Sr>>>13,Tr=c[1]|0,fe=Tr&8191,ue=Tr>>>13,Rr=c[2]|0,ce=Rr&8191,he=Rr>>>13,Or=c[3]|0,de=Or&8191,pe=Or>>>13,Ir=c[4]|0,me=Ir&8191,ye=Ir>>>13,Nr=c[5]|0,ge=Nr&8191,_e=Nr>>>13,Br=c[6]|0,ve=Br&8191,be=Br>>>13,Cr=c[7]|0,xe=Cr&8191,we=Cr>>>13,Ur=c[8]|0,ke=Ur&8191,Me=Ur>>>13,Dr=c[9]|0,Ae=Dr&8191,Ee=Dr>>>13;u.negative=s.negative^l.negative,u.length=19,d=Math.imul(x,oe),a=Math.imul(x,le),a=a+Math.imul(E,oe)|0,p=Math.imul(E,le);var jt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(jt>>>26)|0,jt&=67108863,d=Math.imul(C,oe),a=Math.imul(C,le),a=a+Math.imul(U,oe)|0,p=Math.imul(U,le),d=d+Math.imul(x,fe)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(E,fe)|0,p=p+Math.imul(E,ue)|0;var Je=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Je>>>26)|0,Je&=67108863,d=Math.imul(F,oe),a=Math.imul(F,le),a=a+Math.imul(q,oe)|0,p=Math.imul(q,le),d=d+Math.imul(C,fe)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(U,fe)|0,p=p+Math.imul(U,ue)|0,d=d+Math.imul(x,ce)|0,a=a+Math.imul(x,he)|0,a=a+Math.imul(E,ce)|0,p=p+Math.imul(E,he)|0;var Qe=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,d=Math.imul(V,oe),a=Math.imul(V,le),a=a+Math.imul(W,oe)|0,p=Math.imul(W,le),d=d+Math.imul(F,fe)|0,a=a+Math.imul(F,ue)|0,a=a+Math.imul(q,fe)|0,p=p+Math.imul(q,ue)|0,d=d+Math.imul(C,ce)|0,a=a+Math.imul(C,he)|0,a=a+Math.imul(U,ce)|0,p=p+Math.imul(U,he)|0,d=d+Math.imul(x,de)|0,a=a+Math.imul(x,pe)|0,a=a+Math.imul(E,de)|0,p=p+Math.imul(E,pe)|0;var St=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(St>>>26)|0,St&=67108863,d=Math.imul($,oe),a=Math.imul($,le),a=a+Math.imul(Y,oe)|0,p=Math.imul(Y,le),d=d+Math.imul(V,fe)|0,a=a+Math.imul(V,ue)|0,a=a+Math.imul(W,fe)|0,p=p+Math.imul(W,ue)|0,d=d+Math.imul(F,ce)|0,a=a+Math.imul(F,he)|0,a=a+Math.imul(q,ce)|0,p=p+Math.imul(q,he)|0,d=d+Math.imul(C,de)|0,a=a+Math.imul(C,pe)|0,a=a+Math.imul(U,de)|0,p=p+Math.imul(U,pe)|0,d=d+Math.imul(x,me)|0,a=a+Math.imul(x,ye)|0,a=a+Math.imul(E,me)|0,p=p+Math.imul(E,ye)|0;var Tt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(Z,oe),a=Math.imul(Z,le),a=a+Math.imul(J,oe)|0,p=Math.imul(J,le),d=d+Math.imul($,fe)|0,a=a+Math.imul($,ue)|0,a=a+Math.imul(Y,fe)|0,p=p+Math.imul(Y,ue)|0,d=d+Math.imul(V,ce)|0,a=a+Math.imul(V,he)|0,a=a+Math.imul(W,ce)|0,p=p+Math.imul(W,he)|0,d=d+Math.imul(F,de)|0,a=a+Math.imul(F,pe)|0,a=a+Math.imul(q,de)|0,p=p+Math.imul(q,pe)|0,d=d+Math.imul(C,me)|0,a=a+Math.imul(C,ye)|0,a=a+Math.imul(U,me)|0,p=p+Math.imul(U,ye)|0,d=d+Math.imul(x,ge)|0,a=a+Math.imul(x,_e)|0,a=a+Math.imul(E,ge)|0,p=p+Math.imul(E,_e)|0;var Rt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,d=Math.imul(Q,oe),a=Math.imul(Q,le),a=a+Math.imul(ee,oe)|0,p=Math.imul(ee,le),d=d+Math.imul(Z,fe)|0,a=a+Math.imul(Z,ue)|0,a=a+Math.imul(J,fe)|0,p=p+Math.imul(J,ue)|0,d=d+Math.imul($,ce)|0,a=a+Math.imul($,he)|0,a=a+Math.imul(Y,ce)|0,p=p+Math.imul(Y,he)|0,d=d+Math.imul(V,de)|0,a=a+Math.imul(V,pe)|0,a=a+Math.imul(W,de)|0,p=p+Math.imul(W,pe)|0,d=d+Math.imul(F,me)|0,a=a+Math.imul(F,ye)|0,a=a+Math.imul(q,me)|0,p=p+Math.imul(q,ye)|0,d=d+Math.imul(C,ge)|0,a=a+Math.imul(C,_e)|0,a=a+Math.imul(U,ge)|0,p=p+Math.imul(U,_e)|0,d=d+Math.imul(x,ve)|0,a=a+Math.imul(x,be)|0,a=a+Math.imul(E,ve)|0,p=p+Math.imul(E,be)|0;var Ot=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,d=Math.imul(te,oe),a=Math.imul(te,le),a=a+Math.imul(re,oe)|0,p=Math.imul(re,le),d=d+Math.imul(Q,fe)|0,a=a+Math.imul(Q,ue)|0,a=a+Math.imul(ee,fe)|0,p=p+Math.imul(ee,ue)|0,d=d+Math.imul(Z,ce)|0,a=a+Math.imul(Z,he)|0,a=a+Math.imul(J,ce)|0,p=p+Math.imul(J,he)|0,d=d+Math.imul($,de)|0,a=a+Math.imul($,pe)|0,a=a+Math.imul(Y,de)|0,p=p+Math.imul(Y,pe)|0,d=d+Math.imul(V,me)|0,a=a+Math.imul(V,ye)|0,a=a+Math.imul(W,me)|0,p=p+Math.imul(W,ye)|0,d=d+Math.imul(F,ge)|0,a=a+Math.imul(F,_e)|0,a=a+Math.imul(q,ge)|0,p=p+Math.imul(q,_e)|0,d=d+Math.imul(C,ve)|0,a=a+Math.imul(C,be)|0,a=a+Math.imul(U,ve)|0,p=p+Math.imul(U,be)|0,d=d+Math.imul(x,xe)|0,a=a+Math.imul(x,we)|0,a=a+Math.imul(E,xe)|0,p=p+Math.imul(E,we)|0;var It=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(ne,oe),a=Math.imul(ne,le),a=a+Math.imul(ie,oe)|0,p=Math.imul(ie,le),d=d+Math.imul(te,fe)|0,a=a+Math.imul(te,ue)|0,a=a+Math.imul(re,fe)|0,p=p+Math.imul(re,ue)|0,d=d+Math.imul(Q,ce)|0,a=a+Math.imul(Q,he)|0,a=a+Math.imul(ee,ce)|0,p=p+Math.imul(ee,he)|0,d=d+Math.imul(Z,de)|0,a=a+Math.imul(Z,pe)|0,a=a+Math.imul(J,de)|0,p=p+Math.imul(J,pe)|0,d=d+Math.imul($,me)|0,a=a+Math.imul($,ye)|0,a=a+Math.imul(Y,me)|0,p=p+Math.imul(Y,ye)|0,d=d+Math.imul(V,ge)|0,a=a+Math.imul(V,_e)|0,a=a+Math.imul(W,ge)|0,p=p+Math.imul(W,_e)|0,d=d+Math.imul(F,ve)|0,a=a+Math.imul(F,be)|0,a=a+Math.imul(q,ve)|0,p=p+Math.imul(q,be)|0,d=d+Math.imul(C,xe)|0,a=a+Math.imul(C,we)|0,a=a+Math.imul(U,xe)|0,p=p+Math.imul(U,we)|0,d=d+Math.imul(x,ke)|0,a=a+Math.imul(x,Me)|0,a=a+Math.imul(E,ke)|0,p=p+Math.imul(E,Me)|0;var Nt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,d=Math.imul(se,oe),a=Math.imul(se,le),a=a+Math.imul(ae,oe)|0,p=Math.imul(ae,le),d=d+Math.imul(ne,fe)|0,a=a+Math.imul(ne,ue)|0,a=a+Math.imul(ie,fe)|0,p=p+Math.imul(ie,ue)|0,d=d+Math.imul(te,ce)|0,a=a+Math.imul(te,he)|0,a=a+Math.imul(re,ce)|0,p=p+Math.imul(re,he)|0,d=d+Math.imul(Q,de)|0,a=a+Math.imul(Q,pe)|0,a=a+Math.imul(ee,de)|0,p=p+Math.imul(ee,pe)|0,d=d+Math.imul(Z,me)|0,a=a+Math.imul(Z,ye)|0,a=a+Math.imul(J,me)|0,p=p+Math.imul(J,ye)|0,d=d+Math.imul($,ge)|0,a=a+Math.imul($,_e)|0,a=a+Math.imul(Y,ge)|0,p=p+Math.imul(Y,_e)|0,d=d+Math.imul(V,ve)|0,a=a+Math.imul(V,be)|0,a=a+Math.imul(W,ve)|0,p=p+Math.imul(W,be)|0,d=d+Math.imul(F,xe)|0,a=a+Math.imul(F,we)|0,a=a+Math.imul(q,xe)|0,p=p+Math.imul(q,we)|0,d=d+Math.imul(C,ke)|0,a=a+Math.imul(C,Me)|0,a=a+Math.imul(U,ke)|0,p=p+Math.imul(U,Me)|0,d=d+Math.imul(x,Ae)|0,a=a+Math.imul(x,Ee)|0,a=a+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ee)|0;var Bt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,d=Math.imul(se,fe),a=Math.imul(se,ue),a=a+Math.imul(ae,fe)|0,p=Math.imul(ae,ue),d=d+Math.imul(ne,ce)|0,a=a+Math.imul(ne,he)|0,a=a+Math.imul(ie,ce)|0,p=p+Math.imul(ie,he)|0,d=d+Math.imul(te,de)|0,a=a+Math.imul(te,pe)|0,a=a+Math.imul(re,de)|0,p=p+Math.imul(re,pe)|0,d=d+Math.imul(Q,me)|0,a=a+Math.imul(Q,ye)|0,a=a+Math.imul(ee,me)|0,p=p+Math.imul(ee,ye)|0,d=d+Math.imul(Z,ge)|0,a=a+Math.imul(Z,_e)|0,a=a+Math.imul(J,ge)|0,p=p+Math.imul(J,_e)|0,d=d+Math.imul($,ve)|0,a=a+Math.imul($,be)|0,a=a+Math.imul(Y,ve)|0,p=p+Math.imul(Y,be)|0,d=d+Math.imul(V,xe)|0,a=a+Math.imul(V,we)|0,a=a+Math.imul(W,xe)|0,p=p+Math.imul(W,we)|0,d=d+Math.imul(F,ke)|0,a=a+Math.imul(F,Me)|0,a=a+Math.imul(q,ke)|0,p=p+Math.imul(q,Me)|0,d=d+Math.imul(C,Ae)|0,a=a+Math.imul(C,Ee)|0,a=a+Math.imul(U,Ae)|0,p=p+Math.imul(U,Ee)|0;var Ct=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,d=Math.imul(se,ce),a=Math.imul(se,he),a=a+Math.imul(ae,ce)|0,p=Math.imul(ae,he),d=d+Math.imul(ne,de)|0,a=a+Math.imul(ne,pe)|0,a=a+Math.imul(ie,de)|0,p=p+Math.imul(ie,pe)|0,d=d+Math.imul(te,me)|0,a=a+Math.imul(te,ye)|0,a=a+Math.imul(re,me)|0,p=p+Math.imul(re,ye)|0,d=d+Math.imul(Q,ge)|0,a=a+Math.imul(Q,_e)|0,a=a+Math.imul(ee,ge)|0,p=p+Math.imul(ee,_e)|0,d=d+Math.imul(Z,ve)|0,a=a+Math.imul(Z,be)|0,a=a+Math.imul(J,ve)|0,p=p+Math.imul(J,be)|0,d=d+Math.imul($,xe)|0,a=a+Math.imul($,we)|0,a=a+Math.imul(Y,xe)|0,p=p+Math.imul(Y,we)|0,d=d+Math.imul(V,ke)|0,a=a+Math.imul(V,Me)|0,a=a+Math.imul(W,ke)|0,p=p+Math.imul(W,Me)|0,d=d+Math.imul(F,Ae)|0,a=a+Math.imul(F,Ee)|0,a=a+Math.imul(q,Ae)|0,p=p+Math.imul(q,Ee)|0;var Ut=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,d=Math.imul(se,de),a=Math.imul(se,pe),a=a+Math.imul(ae,de)|0,p=Math.imul(ae,pe),d=d+Math.imul(ne,me)|0,a=a+Math.imul(ne,ye)|0,a=a+Math.imul(ie,me)|0,p=p+Math.imul(ie,ye)|0,d=d+Math.imul(te,ge)|0,a=a+Math.imul(te,_e)|0,a=a+Math.imul(re,ge)|0,p=p+Math.imul(re,_e)|0,d=d+Math.imul(Q,ve)|0,a=a+Math.imul(Q,be)|0,a=a+Math.imul(ee,ve)|0,p=p+Math.imul(ee,be)|0,d=d+Math.imul(Z,xe)|0,a=a+Math.imul(Z,we)|0,a=a+Math.imul(J,xe)|0,p=p+Math.imul(J,we)|0,d=d+Math.imul($,ke)|0,a=a+Math.imul($,Me)|0,a=a+Math.imul(Y,ke)|0,p=p+Math.imul(Y,Me)|0,d=d+Math.imul(V,Ae)|0,a=a+Math.imul(V,Ee)|0,a=a+Math.imul(W,Ae)|0,p=p+Math.imul(W,Ee)|0;var Dt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,d=Math.imul(se,me),a=Math.imul(se,ye),a=a+Math.imul(ae,me)|0,p=Math.imul(ae,ye),d=d+Math.imul(ne,ge)|0,a=a+Math.imul(ne,_e)|0,a=a+Math.imul(ie,ge)|0,p=p+Math.imul(ie,_e)|0,d=d+Math.imul(te,ve)|0,a=a+Math.imul(te,be)|0,a=a+Math.imul(re,ve)|0,p=p+Math.imul(re,be)|0,d=d+Math.imul(Q,xe)|0,a=a+Math.imul(Q,we)|0,a=a+Math.imul(ee,xe)|0,p=p+Math.imul(ee,we)|0,d=d+Math.imul(Z,ke)|0,a=a+Math.imul(Z,Me)|0,a=a+Math.imul(J,ke)|0,p=p+Math.imul(J,Me)|0,d=d+Math.imul($,Ae)|0,a=a+Math.imul($,Ee)|0,a=a+Math.imul(Y,Ae)|0,p=p+Math.imul(Y,Ee)|0;var Pt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(se,ge),a=Math.imul(se,_e),a=a+Math.imul(ae,ge)|0,p=Math.imul(ae,_e),d=d+Math.imul(ne,ve)|0,a=a+Math.imul(ne,be)|0,a=a+Math.imul(ie,ve)|0,p=p+Math.imul(ie,be)|0,d=d+Math.imul(te,xe)|0,a=a+Math.imul(te,we)|0,a=a+Math.imul(re,xe)|0,p=p+Math.imul(re,we)|0,d=d+Math.imul(Q,ke)|0,a=a+Math.imul(Q,Me)|0,a=a+Math.imul(ee,ke)|0,p=p+Math.imul(ee,Me)|0,d=d+Math.imul(Z,Ae)|0,a=a+Math.imul(Z,Ee)|0,a=a+Math.imul(J,Ae)|0,p=p+Math.imul(J,Ee)|0;var Ft=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(se,ve),a=Math.imul(se,be),a=a+Math.imul(ae,ve)|0,p=Math.imul(ae,be),d=d+Math.imul(ne,xe)|0,a=a+Math.imul(ne,we)|0,a=a+Math.imul(ie,xe)|0,p=p+Math.imul(ie,we)|0,d=d+Math.imul(te,ke)|0,a=a+Math.imul(te,Me)|0,a=a+Math.imul(re,ke)|0,p=p+Math.imul(re,Me)|0,d=d+Math.imul(Q,Ae)|0,a=a+Math.imul(Q,Ee)|0,a=a+Math.imul(ee,Ae)|0,p=p+Math.imul(ee,Ee)|0;var qt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(qt>>>26)|0,qt&=67108863,d=Math.imul(se,xe),a=Math.imul(se,we),a=a+Math.imul(ae,xe)|0,p=Math.imul(ae,we),d=d+Math.imul(ne,ke)|0,a=a+Math.imul(ne,Me)|0,a=a+Math.imul(ie,ke)|0,p=p+Math.imul(ie,Me)|0,d=d+Math.imul(te,Ae)|0,a=a+Math.imul(te,Ee)|0,a=a+Math.imul(re,Ae)|0,p=p+Math.imul(re,Ee)|0;var Lt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,d=Math.imul(se,ke),a=Math.imul(se,Me),a=a+Math.imul(ae,ke)|0,p=Math.imul(ae,Me),d=d+Math.imul(ne,Ae)|0,a=a+Math.imul(ne,Ee)|0,a=a+Math.imul(ie,Ae)|0,p=p+Math.imul(ie,Ee)|0;var Gt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,d=Math.imul(se,Ae),a=Math.imul(se,Ee),a=a+Math.imul(ae,Ae)|0,p=Math.imul(ae,Ee);var Kt=(_+d|0)+((a&8191)<<13)|0;return _=(p+(a>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,m[0]=jt,m[1]=Je,m[2]=Qe,m[3]=St,m[4]=Tt,m[5]=Rt,m[6]=Ot,m[7]=It,m[8]=Nt,m[9]=Bt,m[10]=Ct,m[11]=Ut,m[12]=Dt,m[13]=Pt,m[14]=Ft,m[15]=qt,m[16]=Lt,m[17]=Gt,m[18]=Kt,_!==0&&(m[19]=_,u.length++),u};Math.imul||(B=O);function L(y,s,l){l.negative=s.negative^y.negative,l.length=y.length+s.length;for(var u=0,f=0,c=0;c<l.length-1;c++){var m=f;f=0;for(var _=u&67108863,d=Math.min(c,s.length-1),a=Math.max(0,c-y.length+1);a<=d;a++){var p=c-a,M=y.words[p]|0,x=s.words[a]|0,E=M*x,N=E&67108863;m=m+(E/67108864|0)|0,N=N+_|0,_=N&67108863,m=m+(N>>>26)|0,f+=m>>>26,m&=67108863}l.words[c]=_,u=m,m=f}return u!==0?l.words[c]=u:l.length--,l.strip()}function X(y,s,l){var u=new P;return u.mulp(y,s,l)}i.prototype.mulTo=function(s,l){var u,f=this.length+s.length;return this.length===10&&s.length===10?u=B(this,s,l):f<63?u=O(this,s,l):f<1024?u=L(this,s,l):u=X(this,s,l),u};function P(y,s){this.x=y,this.y=s}P.prototype.makeRBT=function(s){for(var l=new Array(s),u=i.prototype._countBits(s)-1,f=0;f<s;f++)l[f]=this.revBin(f,u,s);return l},P.prototype.revBin=function(s,l,u){if(s===0||s===u-1)return s;for(var f=0,c=0;c<l;c++)f|=(s&1)<<l-c-1,s>>=1;return f},P.prototype.permute=function(s,l,u,f,c,m){for(var _=0;_<m;_++)f[_]=l[s[_]],c[_]=u[s[_]]},P.prototype.transform=function(s,l,u,f,c,m){this.permute(m,s,l,u,f,c);for(var _=1;_<c;_<<=1)for(var d=_<<1,a=Math.cos(2*Math.PI/d),p=Math.sin(2*Math.PI/d),M=0;M<c;M+=d)for(var x=a,E=p,N=0;N<_;N++){var C=u[M+N],U=f[M+N],Re=u[M+N+_],F=f[M+N+_],q=x*Re-E*F;F=x*F+E*Re,Re=q,u[M+N]=C+Re,f[M+N]=U+F,u[M+N+_]=C-Re,f[M+N+_]=U-F,N!==d&&(q=a*x-p*E,E=a*E+p*x,x=q)}},P.prototype.guessLen13b=function(s,l){var u=Math.max(l,s)|1,f=u&1,c=0;for(u=u/2|0;u;u=u>>>1)c++;return 1<<c+1+f},P.prototype.conjugate=function(s,l,u){if(!(u<=1))for(var f=0;f<u/2;f++){var c=s[f];s[f]=s[u-f-1],s[u-f-1]=c,c=l[f],l[f]=-l[u-f-1],l[u-f-1]=-c}},P.prototype.normalize13b=function(s,l){for(var u=0,f=0;f<l/2;f++){var c=Math.round(s[2*f+1]/l)*8192+Math.round(s[2*f]/l)+u;s[f]=c&67108863,c<67108864?u=0:u=c/67108864|0}return s},P.prototype.convert13b=function(s,l,u,f){for(var c=0,m=0;m<l;m++)c=c+(s[m]|0),u[2*m]=c&8191,c=c>>>13,u[2*m+1]=c&8191,c=c>>>13;for(m=2*l;m<f;++m)u[m]=0;r(c===0),r((c&-8192)===0)},P.prototype.stub=function(s){for(var l=new Array(s),u=0;u<s;u++)l[u]=0;return l},P.prototype.mulp=function(s,l,u){var f=2*this.guessLen13b(s.length,l.length),c=this.makeRBT(f),m=this.stub(f),_=new Array(f),d=new Array(f),a=new Array(f),p=new Array(f),M=new Array(f),x=new Array(f),E=u.words;E.length=f,this.convert13b(s.words,s.length,_,f),this.convert13b(l.words,l.length,p,f),this.transform(_,m,d,a,f,c),this.transform(p,m,M,x,f,c);for(var N=0;N<f;N++){var C=d[N]*M[N]-a[N]*x[N];a[N]=d[N]*x[N]+a[N]*M[N],d[N]=C}return this.conjugate(d,a,f),this.transform(d,a,E,m,f,c),this.conjugate(E,m,f),this.normalize13b(E,f),u.negative=s.negative^l.negative,u.length=s.length+l.length,u.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),X(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,u=0;u<this.length;u++){var f=(this.words[u]|0)*s,c=(f&67108863)+(l&67108863);l>>=26,l+=f/67108864|0,l+=c>>>26,this.words[u]=c&67108863}return l!==0&&(this.words[u]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=R(s);if(l.length===0)return new i(1);for(var u=this,f=0;f<l.length&&l[f]===0;f++,u=u.sqr());if(++f<l.length)for(var c=u.sqr();f<l.length;f++,c=c.sqr())l[f]!==0&&(u=u.mul(c));return u},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=67108863>>>26-l<<26-l,c;if(l!==0){var m=0;for(c=0;c<this.length;c++){var _=this.words[c]&f,d=(this.words[c]|0)-_<<l;this.words[c]=d|m,m=_>>>26-l}m&&(this.words[c]=m,this.length++)}if(u!==0){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c<u;c++)this.words[c]=0;this.length+=u}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,u){r(typeof s=="number"&&s>=0);var f;l?f=(l-l%26)/26:f=0;var c=s%26,m=Math.min((s-c)/26,this.length),_=67108863^67108863>>>c<<c,d=u;if(f-=m,f=Math.max(0,f),d){for(var a=0;a<m;a++)d.words[a]=this.words[a];d.length=m}if(m!==0)if(this.length>m)for(this.length-=m,a=0;a<this.length;a++)this.words[a]=this.words[a+m];else this.words[0]=0,this.length=1;var p=0;for(a=this.length-1;a>=0&&(p!==0||a>=f);a--){var M=this.words[a]|0;this.words[a]=p<<26-c|M>>>c,p=M&_}return d&&p!==0&&(d.words[d.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,u){return r(this.negative===0),this.iushrn(s,l,u)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return!1;var c=this.words[u];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(l!==0&&u++,this.length=Math.min(u,this.length),l!==0){var f=67108863^67108863>>>l<<l;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,u){var f=s.length+u,c;this._expand(f);var m,_=0;for(c=0;c<s.length;c++){m=(this.words[c+u]|0)+_;var d=(s.words[c]|0)*l;m-=d&67108863,_=(m>>26)-(d/67108864|0),this.words[c+u]=m&67108863}for(;c<this.length-u;c++)m=(this.words[c+u]|0)+_,_=m>>26,this.words[c+u]=m&67108863;if(_===0)return this.strip();for(r(_===-1),_=0,c=0;c<this.length;c++)m=-(this.words[c]|0)+_,_=m>>26,this.words[c]=m&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var u=this.length-s.length,f=this.clone(),c=s,m=c.words[c.length-1]|0,_=this._countBits(m);u=26-_,u!==0&&(c=c.ushln(u),f.iushln(u),m=c.words[c.length-1]|0);var d=f.length-c.length,a;if(l!=="mod"){a=new i(null),a.length=d+1,a.words=new Array(a.length);for(var p=0;p<a.length;p++)a.words[p]=0}var M=f.clone()._ishlnsubmul(c,1,d);M.negative===0&&(f=M,a&&(a.words[d]=1));for(var x=d-1;x>=0;x--){var E=(f.words[c.length+x]|0)*67108864+(f.words[c.length+x-1]|0);for(E=Math.min(E/m|0,67108863),f._ishlnsubmul(c,E,x);f.negative!==0;)E--,f.negative=0,f._ishlnsubmul(c,1,x),f.isZero()||(f.negative^=1);a&&(a.words[x]=E)}return a&&a.strip(),f.strip(),l!=="div"&&u!==0&&f.iushrn(u),{div:a||null,mod:f}},i.prototype.divmod=function(s,l,u){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,m;return this.negative!==0&&s.negative===0?(m=this.neg().divmod(s,l),l!=="mod"&&(f=m.div.neg()),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(m=this.divmod(s.neg(),l),l!=="mod"&&(f=m.div.neg()),{div:f,mod:m.mod}):(this.negative&s.negative)!==0?(m=this.neg().divmod(s.neg(),l),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.isub(s)),{div:m.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var u=l.div.negative!==0?l.mod.isub(s):l.mod,f=s.ushrn(1),c=s.andln(1),m=u.cmp(f);return m<0||c===1&&m===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,u=0,f=this.length-1;f>=0;f--)u=(l*u+(this.words[f]|0))%s;return u},i.prototype.idivn=function(s){r(s<=67108863);for(var l=0,u=this.length-1;u>=0;u--){var f=(this.words[u]|0)+l*67108864;this.words[u]=f/s|0,l=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=new i(0),_=new i(1),d=0;l.isEven()&&u.isEven();)l.iushrn(1),u.iushrn(1),++d;for(var a=u.clone(),p=l.clone();!l.isZero();){for(var M=0,x=1;(l.words[0]&x)===0&&M<26;++M,x<<=1);if(M>0)for(l.iushrn(M);M-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(a),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var E=0,N=1;(u.words[0]&N)===0&&E<26;++E,N<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(m.isOdd()||_.isOdd())&&(m.iadd(a),_.isub(p)),m.iushrn(1),_.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(m),c.isub(_)):(u.isub(l),m.isub(f),_.isub(c))}return{a:m,b:_,gcd:u.iushln(d)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=u.clone();l.cmpn(1)>0&&u.cmpn(1)>0;){for(var _=0,d=1;(l.words[0]&d)===0&&_<26;++_,d<<=1);if(_>0)for(l.iushrn(_);_-- >0;)f.isOdd()&&f.iadd(m),f.iushrn(1);for(var a=0,p=1;(u.words[0]&p)===0&&a<26;++a,p<<=1);if(a>0)for(u.iushrn(a);a-- >0;)c.isOdd()&&c.iadd(m),c.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(c)):(u.isub(l),c.isub(f))}var M;return l.cmpn(1)===0?M=f:M=c,M.cmpn(0)<0&&M.iadd(s),M},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),u=s.clone();l.negative=0,u.negative=0;for(var f=0;l.isEven()&&u.isEven();f++)l.iushrn(1),u.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=l.cmp(u);if(c<0){var m=l;l=u,u=m}else if(c===0||u.cmpn(1)===0)break;l.isub(u)}while(!0);return u.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return this._expand(u+1),this.words[u]|=f,this;for(var c=f,m=u;c!==0&&m<this.length;m++){var _=this.words[m]|0;_+=c,c=_>>>26,_&=67108863,this.words[m]=_}return c!==0&&(this.words[m]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var u;if(this.length>1)u=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;u=f===s?0:f<s?-1:1}return this.negative!==0?-u|0:u},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,u=this.length-1;u>=0;u--){var f=this.words[u]|0,c=s.words[u]|0;if(f!==c){f<c?l=-1:f>c&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new j(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var H={k256:null,p224:null,p192:null,p25519:null};function D(y,s){this.name=y,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},D.prototype.ireduce=function(s){var l=s,u;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),u=l.bitLength();while(u>this.n);var f=u<this.n?-1:l.ucmp(this.p);return f===0?(l.words[0]=0,l.length=1):f>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},D.prototype.split=function(s,l){s.iushrn(this.n,0,l)},D.prototype.imulK=function(s){return s.imul(this.k)};function Se(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Se,D),Se.prototype.split=function(s,l){for(var u=4194303,f=Math.min(s.length,9),c=0;c<f;c++)l.words[c]=s.words[c];if(l.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var m=s.words[9];for(l.words[l.length++]=m&u,c=10;c<s.length;c++){var _=s.words[c]|0;s.words[c-10]=(_&u)<<4|m>>>22,m=_}m>>>=22,s.words[c-10]=m,m===0&&s.length>10?s.length-=10:s.length-=9},Se.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,u=0;u<s.length;u++){var f=s.words[u]|0;l+=f*977,s.words[u]=l&67108863,l=f*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function De(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(De,D);function Ce(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Ce,D);function Ke(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Ke,D),Ke.prototype.imulK=function(s){for(var l=0,u=0;u<s.length;u++){var f=(s.words[u]|0)*19+l,c=f&67108863;f>>>=26,s.words[u]=c,l=f}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(H[s])return H[s];var l;if(s==="k256")l=new Se;else if(s==="p224")l=new De;else if(s==="p192")l=new Ce;else if(s==="p25519")l=new Ke;else throw new Error("Unknown prime "+s);return H[s]=l,l};function j(y){if(typeof y=="string"){var s=i._prime(y);this.m=s.p,this.prime=s}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}j.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},j.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},j.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},j.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},j.prototype.add=function(s,l){this._verify2(s,l);var u=s.add(l);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},j.prototype.iadd=function(s,l){this._verify2(s,l);var u=s.iadd(l);return u.cmp(this.m)>=0&&u.isub(this.m),u},j.prototype.sub=function(s,l){this._verify2(s,l);var u=s.sub(l);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},j.prototype.isub=function(s,l){this._verify2(s,l);var u=s.isub(l);return u.cmpn(0)<0&&u.iadd(this.m),u},j.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},j.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},j.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},j.prototype.isqr=function(s){return this.imul(s,s.clone())},j.prototype.sqr=function(s){return this.mul(s,s)},j.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var u=this.m.add(new i(1)).iushrn(2);return this.pow(s,u)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var m=new i(1).toRed(this),_=m.redNeg(),d=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new i(2*a*a).toRed(this);this.pow(a,d).cmp(_)!==0;)a.redIAdd(_);for(var p=this.pow(a,f),M=this.pow(s,f.addn(1).iushrn(1)),x=this.pow(s,f),E=c;x.cmp(m)!==0;){for(var N=x,C=0;N.cmp(m)!==0;C++)N=N.redSqr();r(C<E);var U=this.pow(p,new i(1).iushln(E-C-1));M=M.redMul(U),p=U.redSqr(),x=x.redMul(p),E=C}return M},j.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},j.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var u=4,f=new Array(1<<u);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var m=f[0],_=0,d=0,a=l.bitLength()%26;for(a===0&&(a=26),c=l.length-1;c>=0;c--){for(var p=l.words[c],M=a-1;M>=0;M--){var x=p>>M&1;if(m!==f[0]&&(m=this.sqr(m)),x===0&&_===0){d=0;continue}_<<=1,_|=x,d++,!(d!==u&&(c!==0||M!==0))&&(m=this.mul(m,f[_]),d=0,_=0)}a=26}return m},j.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},j.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new Be(s)};function Be(y){j.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Be,j),Be.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Be.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},Be.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var u=s.imul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var u=s.mul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof FM>"u"||FM,Kq)});var zq=I((Hq,LM)=>{b();(function(e,t){"use strict";function r(y,s){if(!y)throw new Error(s||"Assertion failed")}function n(y,s){y.super_=s;var l=function(){};l.prototype=s.prototype,y.prototype=new l,y.prototype.constructor=y}function i(y,s,l){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(y||0,s||10,l||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ol().Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,u){if(typeof s=="number")return this._initNumber(s,l,u);if(typeof s=="object")return this._initArray(s,l,u);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(l===16?this._parseHex(s,f,u):(this._parseBase(s,l,f),u==="le"&&this._initArray(this.toArray(),l,u)))},i.prototype._initNumber=function(s,l,u){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),l,u)},i.prototype._initArray=function(s,l,u){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,m,_=0;if(u==="be")for(f=s.length-1,c=0;f>=0;f-=3)m=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);else if(u==="le")for(f=0,c=0;f<s.length;f+=3)m=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);return this.strip()};function h(y,s){var l=y.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(y,s,l){var u=h(y,l);return l-1>=s&&(u|=h(y,l-1)<<4),u}i.prototype._parseHex=function(s,l,u){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,m=0,_;if(u==="be")for(f=s.length-1;f>=l;f-=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8;else{var d=s.length-l;for(f=d%2===0?l+1:l;f<s.length;f+=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8}this.strip()};function v(y,s,l,u){for(var f=0,c=Math.min(y.length,l),m=s;m<c;m++){var _=y.charCodeAt(m)-48;f*=u,_>=49?f+=_-49+10:_>=17?f+=_-17+10:f+=_}return f}i.prototype._parseBase=function(s,l,u){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=l)f++;f--,c=c/l|0;for(var m=s.length-u,_=m%f,d=Math.min(m,m-_)+u,a=0,p=u;p<d;p+=f)a=v(s,p,p+f,l),this.imuln(c),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(_!==0){var M=1;for(a=v(s,p,s.length,l),p=0;p<_;p++)M*=l;this.imuln(M),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","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"],k=[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],A=[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];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var u;if(s===16||s==="hex"){u="";for(var f=0,c=0,m=0;m<this.length;m++){var _=this.words[m],d=((_<<f|c)&16777215).toString(16);c=_>>>24-f&16777215,f+=2,f>=26&&(f-=26,m--),c!==0||m!==this.length-1?u=w[6-d.length]+d+u:u=d+u}for(c!==0&&(u=c.toString(16)+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(s===(s|0)&&s>=2&&s<=36){var a=k[s],p=A[s];u="";var M=this.clone();for(M.negative=0;!M.isZero();){var x=M.modn(p).toString(s);M=M.idivn(p),M.isZero()?u=x+u:u=w[a-x.length]+x+u}for(this.isZero()&&(u="0"+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,u){var f=this.byteLength(),c=u||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var m=l==="le",_=new s(c),d,a,p=this.clone();if(m){for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[a]=d;for(;a<c;a++)_[a]=0}else{for(a=0;a<c-f;a++)_[a]=0;for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[c-a-1]=d}return _},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,u=0;return l>=4096&&(u+=13,l>>>=13),l>=64&&(u+=7,l>>>=7),l>=8&&(u+=4,l>>>=4),l>=2&&(u+=2,l>>>=2),u+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,u=0;return(l&8191)===0&&(u+=13,l>>>=13),(l&127)===0&&(u+=7,l>>>=7),(l&15)===0&&(u+=4,l>>>=4),(l&3)===0&&(u+=2,l>>>=2),(l&1)===0&&u++,u},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function R(y){for(var s=new Array(y.bitLength()),l=0;l<s.length;l++){var u=l/26|0,f=l%26;s[l]=(y.words[u]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var u=this._zeroBits(this.words[l]);if(s+=u,u!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var u=0;u<l.length;u++)this.words[u]=this.words[u]&s.words[u];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,u;this.length>s.length?(l=this,u=s):(l=s,u=this);for(var f=0;f<u.length;f++)this.words[f]=l.words[f]^u.words[f];if(this!==l)for(;f<l.length;f++)this.words[f]=l.words[f];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,u=s%26;this._expand(l),u>0&&l--;for(var f=0;f<l;f++)this.words[f]=~this.words[f]&67108863;return u>0&&(this.words[f]=~this.words[f]&67108863>>26-u),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var u=s/26|0,f=s%26;return this._expand(u+1),l?this.words[u]=this.words[u]|1<<f:this.words[u]=this.words[u]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var u,f;this.length>s.length?(u=this,f=s):(u=s,f=this);for(var c=0,m=0;m<f.length;m++)l=(u.words[m]|0)+(f.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;for(;c!==0&&m<u.length;m++)l=(u.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;if(this.length=u.length,c!==0)this.words[this.length]=c,this.length++;else if(u!==this)for(;m<u.length;m++)this.words[m]=u.words[m];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var u=this.cmp(s);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;u>0?(f=this,c=s):(f=s,c=this);for(var m=0,_=0;_<c.length;_++)l=(f.words[_]|0)-(c.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;for(;m!==0&&_<f.length;_++)l=(f.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;if(m===0&&_<f.length&&f!==this)for(;_<f.length;_++)this.words[_]=f.words[_];return this.length=Math.max(this.length,_),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function O(y,s,l){l.negative=s.negative^y.negative;var u=y.length+s.length|0;l.length=u,u=u-1|0;var f=y.words[0]|0,c=s.words[0]|0,m=f*c,_=m&67108863,d=m/67108864|0;l.words[0]=_;for(var a=1;a<u;a++){for(var p=d>>>26,M=d&67108863,x=Math.min(a,s.length-1),E=Math.max(0,a-y.length+1);E<=x;E++){var N=a-E|0;f=y.words[N]|0,c=s.words[E]|0,m=f*c+M,p+=m/67108864|0,M=m&67108863}l.words[a]=M|0,d=p|0}return d!==0?l.words[a]=d|0:l.length--,l.strip()}var B=function(s,l,u){var f=s.words,c=l.words,m=u.words,_=0,d,a,p,M=f[0]|0,x=M&8191,E=M>>>13,N=f[1]|0,C=N&8191,U=N>>>13,Re=f[2]|0,F=Re&8191,q=Re>>>13,ft=f[3]|0,V=ft&8191,W=ft>>>13,wt=f[4]|0,$=wt&8191,Y=wt>>>13,wr=f[5]|0,Z=wr&8191,J=wr>>>13,kr=f[6]|0,Q=kr&8191,ee=kr>>>13,Mr=f[7]|0,te=Mr&8191,re=Mr>>>13,Ar=f[8]|0,ne=Ar&8191,ie=Ar>>>13,Er=f[9]|0,se=Er&8191,ae=Er>>>13,Sr=c[0]|0,oe=Sr&8191,le=Sr>>>13,Tr=c[1]|0,fe=Tr&8191,ue=Tr>>>13,Rr=c[2]|0,ce=Rr&8191,he=Rr>>>13,Or=c[3]|0,de=Or&8191,pe=Or>>>13,Ir=c[4]|0,me=Ir&8191,ye=Ir>>>13,Nr=c[5]|0,ge=Nr&8191,_e=Nr>>>13,Br=c[6]|0,ve=Br&8191,be=Br>>>13,Cr=c[7]|0,xe=Cr&8191,we=Cr>>>13,Ur=c[8]|0,ke=Ur&8191,Me=Ur>>>13,Dr=c[9]|0,Ae=Dr&8191,Ee=Dr>>>13;u.negative=s.negative^l.negative,u.length=19,d=Math.imul(x,oe),a=Math.imul(x,le),a=a+Math.imul(E,oe)|0,p=Math.imul(E,le);var jt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(jt>>>26)|0,jt&=67108863,d=Math.imul(C,oe),a=Math.imul(C,le),a=a+Math.imul(U,oe)|0,p=Math.imul(U,le),d=d+Math.imul(x,fe)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(E,fe)|0,p=p+Math.imul(E,ue)|0;var Je=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Je>>>26)|0,Je&=67108863,d=Math.imul(F,oe),a=Math.imul(F,le),a=a+Math.imul(q,oe)|0,p=Math.imul(q,le),d=d+Math.imul(C,fe)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(U,fe)|0,p=p+Math.imul(U,ue)|0,d=d+Math.imul(x,ce)|0,a=a+Math.imul(x,he)|0,a=a+Math.imul(E,ce)|0,p=p+Math.imul(E,he)|0;var Qe=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,d=Math.imul(V,oe),a=Math.imul(V,le),a=a+Math.imul(W,oe)|0,p=Math.imul(W,le),d=d+Math.imul(F,fe)|0,a=a+Math.imul(F,ue)|0,a=a+Math.imul(q,fe)|0,p=p+Math.imul(q,ue)|0,d=d+Math.imul(C,ce)|0,a=a+Math.imul(C,he)|0,a=a+Math.imul(U,ce)|0,p=p+Math.imul(U,he)|0,d=d+Math.imul(x,de)|0,a=a+Math.imul(x,pe)|0,a=a+Math.imul(E,de)|0,p=p+Math.imul(E,pe)|0;var St=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(St>>>26)|0,St&=67108863,d=Math.imul($,oe),a=Math.imul($,le),a=a+Math.imul(Y,oe)|0,p=Math.imul(Y,le),d=d+Math.imul(V,fe)|0,a=a+Math.imul(V,ue)|0,a=a+Math.imul(W,fe)|0,p=p+Math.imul(W,ue)|0,d=d+Math.imul(F,ce)|0,a=a+Math.imul(F,he)|0,a=a+Math.imul(q,ce)|0,p=p+Math.imul(q,he)|0,d=d+Math.imul(C,de)|0,a=a+Math.imul(C,pe)|0,a=a+Math.imul(U,de)|0,p=p+Math.imul(U,pe)|0,d=d+Math.imul(x,me)|0,a=a+Math.imul(x,ye)|0,a=a+Math.imul(E,me)|0,p=p+Math.imul(E,ye)|0;var Tt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(Z,oe),a=Math.imul(Z,le),a=a+Math.imul(J,oe)|0,p=Math.imul(J,le),d=d+Math.imul($,fe)|0,a=a+Math.imul($,ue)|0,a=a+Math.imul(Y,fe)|0,p=p+Math.imul(Y,ue)|0,d=d+Math.imul(V,ce)|0,a=a+Math.imul(V,he)|0,a=a+Math.imul(W,ce)|0,p=p+Math.imul(W,he)|0,d=d+Math.imul(F,de)|0,a=a+Math.imul(F,pe)|0,a=a+Math.imul(q,de)|0,p=p+Math.imul(q,pe)|0,d=d+Math.imul(C,me)|0,a=a+Math.imul(C,ye)|0,a=a+Math.imul(U,me)|0,p=p+Math.imul(U,ye)|0,d=d+Math.imul(x,ge)|0,a=a+Math.imul(x,_e)|0,a=a+Math.imul(E,ge)|0,p=p+Math.imul(E,_e)|0;var Rt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,d=Math.imul(Q,oe),a=Math.imul(Q,le),a=a+Math.imul(ee,oe)|0,p=Math.imul(ee,le),d=d+Math.imul(Z,fe)|0,a=a+Math.imul(Z,ue)|0,a=a+Math.imul(J,fe)|0,p=p+Math.imul(J,ue)|0,d=d+Math.imul($,ce)|0,a=a+Math.imul($,he)|0,a=a+Math.imul(Y,ce)|0,p=p+Math.imul(Y,he)|0,d=d+Math.imul(V,de)|0,a=a+Math.imul(V,pe)|0,a=a+Math.imul(W,de)|0,p=p+Math.imul(W,pe)|0,d=d+Math.imul(F,me)|0,a=a+Math.imul(F,ye)|0,a=a+Math.imul(q,me)|0,p=p+Math.imul(q,ye)|0,d=d+Math.imul(C,ge)|0,a=a+Math.imul(C,_e)|0,a=a+Math.imul(U,ge)|0,p=p+Math.imul(U,_e)|0,d=d+Math.imul(x,ve)|0,a=a+Math.imul(x,be)|0,a=a+Math.imul(E,ve)|0,p=p+Math.imul(E,be)|0;var Ot=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,d=Math.imul(te,oe),a=Math.imul(te,le),a=a+Math.imul(re,oe)|0,p=Math.imul(re,le),d=d+Math.imul(Q,fe)|0,a=a+Math.imul(Q,ue)|0,a=a+Math.imul(ee,fe)|0,p=p+Math.imul(ee,ue)|0,d=d+Math.imul(Z,ce)|0,a=a+Math.imul(Z,he)|0,a=a+Math.imul(J,ce)|0,p=p+Math.imul(J,he)|0,d=d+Math.imul($,de)|0,a=a+Math.imul($,pe)|0,a=a+Math.imul(Y,de)|0,p=p+Math.imul(Y,pe)|0,d=d+Math.imul(V,me)|0,a=a+Math.imul(V,ye)|0,a=a+Math.imul(W,me)|0,p=p+Math.imul(W,ye)|0,d=d+Math.imul(F,ge)|0,a=a+Math.imul(F,_e)|0,a=a+Math.imul(q,ge)|0,p=p+Math.imul(q,_e)|0,d=d+Math.imul(C,ve)|0,a=a+Math.imul(C,be)|0,a=a+Math.imul(U,ve)|0,p=p+Math.imul(U,be)|0,d=d+Math.imul(x,xe)|0,a=a+Math.imul(x,we)|0,a=a+Math.imul(E,xe)|0,p=p+Math.imul(E,we)|0;var It=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(ne,oe),a=Math.imul(ne,le),a=a+Math.imul(ie,oe)|0,p=Math.imul(ie,le),d=d+Math.imul(te,fe)|0,a=a+Math.imul(te,ue)|0,a=a+Math.imul(re,fe)|0,p=p+Math.imul(re,ue)|0,d=d+Math.imul(Q,ce)|0,a=a+Math.imul(Q,he)|0,a=a+Math.imul(ee,ce)|0,p=p+Math.imul(ee,he)|0,d=d+Math.imul(Z,de)|0,a=a+Math.imul(Z,pe)|0,a=a+Math.imul(J,de)|0,p=p+Math.imul(J,pe)|0,d=d+Math.imul($,me)|0,a=a+Math.imul($,ye)|0,a=a+Math.imul(Y,me)|0,p=p+Math.imul(Y,ye)|0,d=d+Math.imul(V,ge)|0,a=a+Math.imul(V,_e)|0,a=a+Math.imul(W,ge)|0,p=p+Math.imul(W,_e)|0,d=d+Math.imul(F,ve)|0,a=a+Math.imul(F,be)|0,a=a+Math.imul(q,ve)|0,p=p+Math.imul(q,be)|0,d=d+Math.imul(C,xe)|0,a=a+Math.imul(C,we)|0,a=a+Math.imul(U,xe)|0,p=p+Math.imul(U,we)|0,d=d+Math.imul(x,ke)|0,a=a+Math.imul(x,Me)|0,a=a+Math.imul(E,ke)|0,p=p+Math.imul(E,Me)|0;var Nt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,d=Math.imul(se,oe),a=Math.imul(se,le),a=a+Math.imul(ae,oe)|0,p=Math.imul(ae,le),d=d+Math.imul(ne,fe)|0,a=a+Math.imul(ne,ue)|0,a=a+Math.imul(ie,fe)|0,p=p+Math.imul(ie,ue)|0,d=d+Math.imul(te,ce)|0,a=a+Math.imul(te,he)|0,a=a+Math.imul(re,ce)|0,p=p+Math.imul(re,he)|0,d=d+Math.imul(Q,de)|0,a=a+Math.imul(Q,pe)|0,a=a+Math.imul(ee,de)|0,p=p+Math.imul(ee,pe)|0,d=d+Math.imul(Z,me)|0,a=a+Math.imul(Z,ye)|0,a=a+Math.imul(J,me)|0,p=p+Math.imul(J,ye)|0,d=d+Math.imul($,ge)|0,a=a+Math.imul($,_e)|0,a=a+Math.imul(Y,ge)|0,p=p+Math.imul(Y,_e)|0,d=d+Math.imul(V,ve)|0,a=a+Math.imul(V,be)|0,a=a+Math.imul(W,ve)|0,p=p+Math.imul(W,be)|0,d=d+Math.imul(F,xe)|0,a=a+Math.imul(F,we)|0,a=a+Math.imul(q,xe)|0,p=p+Math.imul(q,we)|0,d=d+Math.imul(C,ke)|0,a=a+Math.imul(C,Me)|0,a=a+Math.imul(U,ke)|0,p=p+Math.imul(U,Me)|0,d=d+Math.imul(x,Ae)|0,a=a+Math.imul(x,Ee)|0,a=a+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ee)|0;var Bt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,d=Math.imul(se,fe),a=Math.imul(se,ue),a=a+Math.imul(ae,fe)|0,p=Math.imul(ae,ue),d=d+Math.imul(ne,ce)|0,a=a+Math.imul(ne,he)|0,a=a+Math.imul(ie,ce)|0,p=p+Math.imul(ie,he)|0,d=d+Math.imul(te,de)|0,a=a+Math.imul(te,pe)|0,a=a+Math.imul(re,de)|0,p=p+Math.imul(re,pe)|0,d=d+Math.imul(Q,me)|0,a=a+Math.imul(Q,ye)|0,a=a+Math.imul(ee,me)|0,p=p+Math.imul(ee,ye)|0,d=d+Math.imul(Z,ge)|0,a=a+Math.imul(Z,_e)|0,a=a+Math.imul(J,ge)|0,p=p+Math.imul(J,_e)|0,d=d+Math.imul($,ve)|0,a=a+Math.imul($,be)|0,a=a+Math.imul(Y,ve)|0,p=p+Math.imul(Y,be)|0,d=d+Math.imul(V,xe)|0,a=a+Math.imul(V,we)|0,a=a+Math.imul(W,xe)|0,p=p+Math.imul(W,we)|0,d=d+Math.imul(F,ke)|0,a=a+Math.imul(F,Me)|0,a=a+Math.imul(q,ke)|0,p=p+Math.imul(q,Me)|0,d=d+Math.imul(C,Ae)|0,a=a+Math.imul(C,Ee)|0,a=a+Math.imul(U,Ae)|0,p=p+Math.imul(U,Ee)|0;var Ct=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,d=Math.imul(se,ce),a=Math.imul(se,he),a=a+Math.imul(ae,ce)|0,p=Math.imul(ae,he),d=d+Math.imul(ne,de)|0,a=a+Math.imul(ne,pe)|0,a=a+Math.imul(ie,de)|0,p=p+Math.imul(ie,pe)|0,d=d+Math.imul(te,me)|0,a=a+Math.imul(te,ye)|0,a=a+Math.imul(re,me)|0,p=p+Math.imul(re,ye)|0,d=d+Math.imul(Q,ge)|0,a=a+Math.imul(Q,_e)|0,a=a+Math.imul(ee,ge)|0,p=p+Math.imul(ee,_e)|0,d=d+Math.imul(Z,ve)|0,a=a+Math.imul(Z,be)|0,a=a+Math.imul(J,ve)|0,p=p+Math.imul(J,be)|0,d=d+Math.imul($,xe)|0,a=a+Math.imul($,we)|0,a=a+Math.imul(Y,xe)|0,p=p+Math.imul(Y,we)|0,d=d+Math.imul(V,ke)|0,a=a+Math.imul(V,Me)|0,a=a+Math.imul(W,ke)|0,p=p+Math.imul(W,Me)|0,d=d+Math.imul(F,Ae)|0,a=a+Math.imul(F,Ee)|0,a=a+Math.imul(q,Ae)|0,p=p+Math.imul(q,Ee)|0;var Ut=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,d=Math.imul(se,de),a=Math.imul(se,pe),a=a+Math.imul(ae,de)|0,p=Math.imul(ae,pe),d=d+Math.imul(ne,me)|0,a=a+Math.imul(ne,ye)|0,a=a+Math.imul(ie,me)|0,p=p+Math.imul(ie,ye)|0,d=d+Math.imul(te,ge)|0,a=a+Math.imul(te,_e)|0,a=a+Math.imul(re,ge)|0,p=p+Math.imul(re,_e)|0,d=d+Math.imul(Q,ve)|0,a=a+Math.imul(Q,be)|0,a=a+Math.imul(ee,ve)|0,p=p+Math.imul(ee,be)|0,d=d+Math.imul(Z,xe)|0,a=a+Math.imul(Z,we)|0,a=a+Math.imul(J,xe)|0,p=p+Math.imul(J,we)|0,d=d+Math.imul($,ke)|0,a=a+Math.imul($,Me)|0,a=a+Math.imul(Y,ke)|0,p=p+Math.imul(Y,Me)|0,d=d+Math.imul(V,Ae)|0,a=a+Math.imul(V,Ee)|0,a=a+Math.imul(W,Ae)|0,p=p+Math.imul(W,Ee)|0;var Dt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,d=Math.imul(se,me),a=Math.imul(se,ye),a=a+Math.imul(ae,me)|0,p=Math.imul(ae,ye),d=d+Math.imul(ne,ge)|0,a=a+Math.imul(ne,_e)|0,a=a+Math.imul(ie,ge)|0,p=p+Math.imul(ie,_e)|0,d=d+Math.imul(te,ve)|0,a=a+Math.imul(te,be)|0,a=a+Math.imul(re,ve)|0,p=p+Math.imul(re,be)|0,d=d+Math.imul(Q,xe)|0,a=a+Math.imul(Q,we)|0,a=a+Math.imul(ee,xe)|0,p=p+Math.imul(ee,we)|0,d=d+Math.imul(Z,ke)|0,a=a+Math.imul(Z,Me)|0,a=a+Math.imul(J,ke)|0,p=p+Math.imul(J,Me)|0,d=d+Math.imul($,Ae)|0,a=a+Math.imul($,Ee)|0,a=a+Math.imul(Y,Ae)|0,p=p+Math.imul(Y,Ee)|0;var Pt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(se,ge),a=Math.imul(se,_e),a=a+Math.imul(ae,ge)|0,p=Math.imul(ae,_e),d=d+Math.imul(ne,ve)|0,a=a+Math.imul(ne,be)|0,a=a+Math.imul(ie,ve)|0,p=p+Math.imul(ie,be)|0,d=d+Math.imul(te,xe)|0,a=a+Math.imul(te,we)|0,a=a+Math.imul(re,xe)|0,p=p+Math.imul(re,we)|0,d=d+Math.imul(Q,ke)|0,a=a+Math.imul(Q,Me)|0,a=a+Math.imul(ee,ke)|0,p=p+Math.imul(ee,Me)|0,d=d+Math.imul(Z,Ae)|0,a=a+Math.imul(Z,Ee)|0,a=a+Math.imul(J,Ae)|0,p=p+Math.imul(J,Ee)|0;var Ft=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(se,ve),a=Math.imul(se,be),a=a+Math.imul(ae,ve)|0,p=Math.imul(ae,be),d=d+Math.imul(ne,xe)|0,a=a+Math.imul(ne,we)|0,a=a+Math.imul(ie,xe)|0,p=p+Math.imul(ie,we)|0,d=d+Math.imul(te,ke)|0,a=a+Math.imul(te,Me)|0,a=a+Math.imul(re,ke)|0,p=p+Math.imul(re,Me)|0,d=d+Math.imul(Q,Ae)|0,a=a+Math.imul(Q,Ee)|0,a=a+Math.imul(ee,Ae)|0,p=p+Math.imul(ee,Ee)|0;var qt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(qt>>>26)|0,qt&=67108863,d=Math.imul(se,xe),a=Math.imul(se,we),a=a+Math.imul(ae,xe)|0,p=Math.imul(ae,we),d=d+Math.imul(ne,ke)|0,a=a+Math.imul(ne,Me)|0,a=a+Math.imul(ie,ke)|0,p=p+Math.imul(ie,Me)|0,d=d+Math.imul(te,Ae)|0,a=a+Math.imul(te,Ee)|0,a=a+Math.imul(re,Ae)|0,p=p+Math.imul(re,Ee)|0;var Lt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,d=Math.imul(se,ke),a=Math.imul(se,Me),a=a+Math.imul(ae,ke)|0,p=Math.imul(ae,Me),d=d+Math.imul(ne,Ae)|0,a=a+Math.imul(ne,Ee)|0,a=a+Math.imul(ie,Ae)|0,p=p+Math.imul(ie,Ee)|0;var Gt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,d=Math.imul(se,Ae),a=Math.imul(se,Ee),a=a+Math.imul(ae,Ae)|0,p=Math.imul(ae,Ee);var Kt=(_+d|0)+((a&8191)<<13)|0;return _=(p+(a>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,m[0]=jt,m[1]=Je,m[2]=Qe,m[3]=St,m[4]=Tt,m[5]=Rt,m[6]=Ot,m[7]=It,m[8]=Nt,m[9]=Bt,m[10]=Ct,m[11]=Ut,m[12]=Dt,m[13]=Pt,m[14]=Ft,m[15]=qt,m[16]=Lt,m[17]=Gt,m[18]=Kt,_!==0&&(m[19]=_,u.length++),u};Math.imul||(B=O);function L(y,s,l){l.negative=s.negative^y.negative,l.length=y.length+s.length;for(var u=0,f=0,c=0;c<l.length-1;c++){var m=f;f=0;for(var _=u&67108863,d=Math.min(c,s.length-1),a=Math.max(0,c-y.length+1);a<=d;a++){var p=c-a,M=y.words[p]|0,x=s.words[a]|0,E=M*x,N=E&67108863;m=m+(E/67108864|0)|0,N=N+_|0,_=N&67108863,m=m+(N>>>26)|0,f+=m>>>26,m&=67108863}l.words[c]=_,u=m,m=f}return u!==0?l.words[c]=u:l.length--,l.strip()}function X(y,s,l){var u=new P;return u.mulp(y,s,l)}i.prototype.mulTo=function(s,l){var u,f=this.length+s.length;return this.length===10&&s.length===10?u=B(this,s,l):f<63?u=O(this,s,l):f<1024?u=L(this,s,l):u=X(this,s,l),u};function P(y,s){this.x=y,this.y=s}P.prototype.makeRBT=function(s){for(var l=new Array(s),u=i.prototype._countBits(s)-1,f=0;f<s;f++)l[f]=this.revBin(f,u,s);return l},P.prototype.revBin=function(s,l,u){if(s===0||s===u-1)return s;for(var f=0,c=0;c<l;c++)f|=(s&1)<<l-c-1,s>>=1;return f},P.prototype.permute=function(s,l,u,f,c,m){for(var _=0;_<m;_++)f[_]=l[s[_]],c[_]=u[s[_]]},P.prototype.transform=function(s,l,u,f,c,m){this.permute(m,s,l,u,f,c);for(var _=1;_<c;_<<=1)for(var d=_<<1,a=Math.cos(2*Math.PI/d),p=Math.sin(2*Math.PI/d),M=0;M<c;M+=d)for(var x=a,E=p,N=0;N<_;N++){var C=u[M+N],U=f[M+N],Re=u[M+N+_],F=f[M+N+_],q=x*Re-E*F;F=x*F+E*Re,Re=q,u[M+N]=C+Re,f[M+N]=U+F,u[M+N+_]=C-Re,f[M+N+_]=U-F,N!==d&&(q=a*x-p*E,E=a*E+p*x,x=q)}},P.prototype.guessLen13b=function(s,l){var u=Math.max(l,s)|1,f=u&1,c=0;for(u=u/2|0;u;u=u>>>1)c++;return 1<<c+1+f},P.prototype.conjugate=function(s,l,u){if(!(u<=1))for(var f=0;f<u/2;f++){var c=s[f];s[f]=s[u-f-1],s[u-f-1]=c,c=l[f],l[f]=-l[u-f-1],l[u-f-1]=-c}},P.prototype.normalize13b=function(s,l){for(var u=0,f=0;f<l/2;f++){var c=Math.round(s[2*f+1]/l)*8192+Math.round(s[2*f]/l)+u;s[f]=c&67108863,c<67108864?u=0:u=c/67108864|0}return s},P.prototype.convert13b=function(s,l,u,f){for(var c=0,m=0;m<l;m++)c=c+(s[m]|0),u[2*m]=c&8191,c=c>>>13,u[2*m+1]=c&8191,c=c>>>13;for(m=2*l;m<f;++m)u[m]=0;r(c===0),r((c&-8192)===0)},P.prototype.stub=function(s){for(var l=new Array(s),u=0;u<s;u++)l[u]=0;return l},P.prototype.mulp=function(s,l,u){var f=2*this.guessLen13b(s.length,l.length),c=this.makeRBT(f),m=this.stub(f),_=new Array(f),d=new Array(f),a=new Array(f),p=new Array(f),M=new Array(f),x=new Array(f),E=u.words;E.length=f,this.convert13b(s.words,s.length,_,f),this.convert13b(l.words,l.length,p,f),this.transform(_,m,d,a,f,c),this.transform(p,m,M,x,f,c);for(var N=0;N<f;N++){var C=d[N]*M[N]-a[N]*x[N];a[N]=d[N]*x[N]+a[N]*M[N],d[N]=C}return this.conjugate(d,a,f),this.transform(d,a,E,m,f,c),this.conjugate(E,m,f),this.normalize13b(E,f),u.negative=s.negative^l.negative,u.length=s.length+l.length,u.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),X(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,u=0;u<this.length;u++){var f=(this.words[u]|0)*s,c=(f&67108863)+(l&67108863);l>>=26,l+=f/67108864|0,l+=c>>>26,this.words[u]=c&67108863}return l!==0&&(this.words[u]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=R(s);if(l.length===0)return new i(1);for(var u=this,f=0;f<l.length&&l[f]===0;f++,u=u.sqr());if(++f<l.length)for(var c=u.sqr();f<l.length;f++,c=c.sqr())l[f]!==0&&(u=u.mul(c));return u},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=67108863>>>26-l<<26-l,c;if(l!==0){var m=0;for(c=0;c<this.length;c++){var _=this.words[c]&f,d=(this.words[c]|0)-_<<l;this.words[c]=d|m,m=_>>>26-l}m&&(this.words[c]=m,this.length++)}if(u!==0){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c<u;c++)this.words[c]=0;this.length+=u}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,u){r(typeof s=="number"&&s>=0);var f;l?f=(l-l%26)/26:f=0;var c=s%26,m=Math.min((s-c)/26,this.length),_=67108863^67108863>>>c<<c,d=u;if(f-=m,f=Math.max(0,f),d){for(var a=0;a<m;a++)d.words[a]=this.words[a];d.length=m}if(m!==0)if(this.length>m)for(this.length-=m,a=0;a<this.length;a++)this.words[a]=this.words[a+m];else this.words[0]=0,this.length=1;var p=0;for(a=this.length-1;a>=0&&(p!==0||a>=f);a--){var M=this.words[a]|0;this.words[a]=p<<26-c|M>>>c,p=M&_}return d&&p!==0&&(d.words[d.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,u){return r(this.negative===0),this.iushrn(s,l,u)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return!1;var c=this.words[u];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(l!==0&&u++,this.length=Math.min(u,this.length),l!==0){var f=67108863^67108863>>>l<<l;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,u){var f=s.length+u,c;this._expand(f);var m,_=0;for(c=0;c<s.length;c++){m=(this.words[c+u]|0)+_;var d=(s.words[c]|0)*l;m-=d&67108863,_=(m>>26)-(d/67108864|0),this.words[c+u]=m&67108863}for(;c<this.length-u;c++)m=(this.words[c+u]|0)+_,_=m>>26,this.words[c+u]=m&67108863;if(_===0)return this.strip();for(r(_===-1),_=0,c=0;c<this.length;c++)m=-(this.words[c]|0)+_,_=m>>26,this.words[c]=m&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var u=this.length-s.length,f=this.clone(),c=s,m=c.words[c.length-1]|0,_=this._countBits(m);u=26-_,u!==0&&(c=c.ushln(u),f.iushln(u),m=c.words[c.length-1]|0);var d=f.length-c.length,a;if(l!=="mod"){a=new i(null),a.length=d+1,a.words=new Array(a.length);for(var p=0;p<a.length;p++)a.words[p]=0}var M=f.clone()._ishlnsubmul(c,1,d);M.negative===0&&(f=M,a&&(a.words[d]=1));for(var x=d-1;x>=0;x--){var E=(f.words[c.length+x]|0)*67108864+(f.words[c.length+x-1]|0);for(E=Math.min(E/m|0,67108863),f._ishlnsubmul(c,E,x);f.negative!==0;)E--,f.negative=0,f._ishlnsubmul(c,1,x),f.isZero()||(f.negative^=1);a&&(a.words[x]=E)}return a&&a.strip(),f.strip(),l!=="div"&&u!==0&&f.iushrn(u),{div:a||null,mod:f}},i.prototype.divmod=function(s,l,u){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,m;return this.negative!==0&&s.negative===0?(m=this.neg().divmod(s,l),l!=="mod"&&(f=m.div.neg()),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(m=this.divmod(s.neg(),l),l!=="mod"&&(f=m.div.neg()),{div:f,mod:m.mod}):(this.negative&s.negative)!==0?(m=this.neg().divmod(s.neg(),l),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.isub(s)),{div:m.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var u=l.div.negative!==0?l.mod.isub(s):l.mod,f=s.ushrn(1),c=s.andln(1),m=u.cmp(f);return m<0||c===1&&m===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,u=0,f=this.length-1;f>=0;f--)u=(l*u+(this.words[f]|0))%s;return u},i.prototype.idivn=function(s){r(s<=67108863);for(var l=0,u=this.length-1;u>=0;u--){var f=(this.words[u]|0)+l*67108864;this.words[u]=f/s|0,l=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=new i(0),_=new i(1),d=0;l.isEven()&&u.isEven();)l.iushrn(1),u.iushrn(1),++d;for(var a=u.clone(),p=l.clone();!l.isZero();){for(var M=0,x=1;(l.words[0]&x)===0&&M<26;++M,x<<=1);if(M>0)for(l.iushrn(M);M-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(a),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var E=0,N=1;(u.words[0]&N)===0&&E<26;++E,N<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(m.isOdd()||_.isOdd())&&(m.iadd(a),_.isub(p)),m.iushrn(1),_.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(m),c.isub(_)):(u.isub(l),m.isub(f),_.isub(c))}return{a:m,b:_,gcd:u.iushln(d)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=u.clone();l.cmpn(1)>0&&u.cmpn(1)>0;){for(var _=0,d=1;(l.words[0]&d)===0&&_<26;++_,d<<=1);if(_>0)for(l.iushrn(_);_-- >0;)f.isOdd()&&f.iadd(m),f.iushrn(1);for(var a=0,p=1;(u.words[0]&p)===0&&a<26;++a,p<<=1);if(a>0)for(u.iushrn(a);a-- >0;)c.isOdd()&&c.iadd(m),c.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(c)):(u.isub(l),c.isub(f))}var M;return l.cmpn(1)===0?M=f:M=c,M.cmpn(0)<0&&M.iadd(s),M},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),u=s.clone();l.negative=0,u.negative=0;for(var f=0;l.isEven()&&u.isEven();f++)l.iushrn(1),u.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=l.cmp(u);if(c<0){var m=l;l=u,u=m}else if(c===0||u.cmpn(1)===0)break;l.isub(u)}while(!0);return u.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return this._expand(u+1),this.words[u]|=f,this;for(var c=f,m=u;c!==0&&m<this.length;m++){var _=this.words[m]|0;_+=c,c=_>>>26,_&=67108863,this.words[m]=_}return c!==0&&(this.words[m]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var u;if(this.length>1)u=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;u=f===s?0:f<s?-1:1}return this.negative!==0?-u|0:u},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,u=this.length-1;u>=0;u--){var f=this.words[u]|0,c=s.words[u]|0;if(f!==c){f<c?l=-1:f>c&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new j(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var H={k256:null,p224:null,p192:null,p25519:null};function D(y,s){this.name=y,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},D.prototype.ireduce=function(s){var l=s,u;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),u=l.bitLength();while(u>this.n);var f=u<this.n?-1:l.ucmp(this.p);return f===0?(l.words[0]=0,l.length=1):f>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},D.prototype.split=function(s,l){s.iushrn(this.n,0,l)},D.prototype.imulK=function(s){return s.imul(this.k)};function Se(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Se,D),Se.prototype.split=function(s,l){for(var u=4194303,f=Math.min(s.length,9),c=0;c<f;c++)l.words[c]=s.words[c];if(l.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var m=s.words[9];for(l.words[l.length++]=m&u,c=10;c<s.length;c++){var _=s.words[c]|0;s.words[c-10]=(_&u)<<4|m>>>22,m=_}m>>>=22,s.words[c-10]=m,m===0&&s.length>10?s.length-=10:s.length-=9},Se.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,u=0;u<s.length;u++){var f=s.words[u]|0;l+=f*977,s.words[u]=l&67108863,l=f*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function De(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(De,D);function Ce(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Ce,D);function Ke(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Ke,D),Ke.prototype.imulK=function(s){for(var l=0,u=0;u<s.length;u++){var f=(s.words[u]|0)*19+l,c=f&67108863;f>>>=26,s.words[u]=c,l=f}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(H[s])return H[s];var l;if(s==="k256")l=new Se;else if(s==="p224")l=new De;else if(s==="p192")l=new Ce;else if(s==="p25519")l=new Ke;else throw new Error("Unknown prime "+s);return H[s]=l,l};function j(y){if(typeof y=="string"){var s=i._prime(y);this.m=s.p,this.prime=s}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}j.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},j.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},j.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},j.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},j.prototype.add=function(s,l){this._verify2(s,l);var u=s.add(l);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},j.prototype.iadd=function(s,l){this._verify2(s,l);var u=s.iadd(l);return u.cmp(this.m)>=0&&u.isub(this.m),u},j.prototype.sub=function(s,l){this._verify2(s,l);var u=s.sub(l);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},j.prototype.isub=function(s,l){this._verify2(s,l);var u=s.isub(l);return u.cmpn(0)<0&&u.iadd(this.m),u},j.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},j.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},j.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},j.prototype.isqr=function(s){return this.imul(s,s.clone())},j.prototype.sqr=function(s){return this.mul(s,s)},j.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var u=this.m.add(new i(1)).iushrn(2);return this.pow(s,u)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var m=new i(1).toRed(this),_=m.redNeg(),d=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new i(2*a*a).toRed(this);this.pow(a,d).cmp(_)!==0;)a.redIAdd(_);for(var p=this.pow(a,f),M=this.pow(s,f.addn(1).iushrn(1)),x=this.pow(s,f),E=c;x.cmp(m)!==0;){for(var N=x,C=0;N.cmp(m)!==0;C++)N=N.redSqr();r(C<E);var U=this.pow(p,new i(1).iushln(E-C-1));M=M.redMul(U),p=U.redSqr(),x=x.redMul(p),E=C}return M},j.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},j.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var u=4,f=new Array(1<<u);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var m=f[0],_=0,d=0,a=l.bitLength()%26;for(a===0&&(a=26),c=l.length-1;c>=0;c--){for(var p=l.words[c],M=a-1;M>=0;M--){var x=p>>M&1;if(m!==f[0]&&(m=this.sqr(m)),x===0&&_===0){d=0;continue}_<<=1,_|=x,d++,!(d!==u&&(c!==0||M!==0))&&(m=this.mul(m,f[_]),d=0,_=0)}a=26}return m},j.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},j.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new Be(s)};function Be(y){j.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Be,j),Be.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Be.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},Be.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var u=s.imul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var u=s.mul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof LM>"u"||LM,Hq)});var jq=I(()=>{b()});var vg=I((kXe,HM)=>{b();var GM;HM.exports=function(t){return GM||(GM=new ll(null)),GM.generate(t)};function ll(e){this.rand=e}HM.exports.Rand=ll;ll.prototype.generate=function(t){return this._rand(t)};ll.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),n=0;n<r.length;n++)r[n]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?ll.prototype._rand=function(t){var r=new Uint8Array(t);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?ll.prototype._rand=function(t){var r=new Uint8Array(t);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(ll.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(KM=jq(),typeof KM.randomBytes!="function")throw new Error("Not supported");ll.prototype._rand=function(t){return KM.randomBytes(t)}}catch{}var KM});var zM=I((AXe,Vq)=>{b();var Ff=zq(),RSe=vg();function qf(e){this.rand=e||new RSe.Rand}Vq.exports=qf;qf.create=function(t){return new qf(t)};qf.prototype._randbelow=function(t){var r=t.bitLength(),n=Math.ceil(r/8);do var i=new Ff(this.rand.generate(n));while(i.cmp(t)>=0);return i};qf.prototype._randrange=function(t,r){var n=r.sub(t);return t.add(this._randbelow(n))};qf.prototype.test=function(t,r,n){var i=t.bitLength(),o=Ff.mont(t),h=new Ff(1).toRed(o);r||(r=Math.max(1,i/48|0));for(var g=t.subn(1),v=0;!g.testn(v);v++);for(var w=t.shrn(v),k=g.toRed(o),A=!0;r>0;r--){var R=this._randrange(new Ff(2),g);n&&n(R);var O=R.toRed(o).redPow(w);if(!(O.cmp(h)===0||O.cmp(k)===0)){for(var B=1;B<v;B++){if(O=O.redSqr(),O.cmp(h)===0)return!1;if(O.cmp(k)===0)break}if(B===v)return!1}}return A};qf.prototype.getDivisor=function(t,r){var n=t.bitLength(),i=Ff.mont(t),o=new Ff(1).toRed(i);r||(r=Math.max(1,n/48|0));for(var h=t.subn(1),g=0;!h.testn(g);g++);for(var v=t.shrn(g),w=h.toRed(i);r>0;r--){var k=this._randrange(new Ff(2),h),A=t.gcd(k);if(A.cmpn(1)!==0)return A;var R=k.toRed(i).redPow(v);if(!(R.cmp(o)===0||R.cmp(w)===0)){for(var O=1;O<g;O++){if(R=R.redSqr(),R.cmp(o)===0)return R.fromRed().subn(1).gcd(t);if(R.cmp(w)===0)break}if(O===g)return R=R.redSqr(),R.fromRed().subn(1).gcd(t)}}return!1}});var YM=I((IXe,$q)=>{b();var OSe=wf();$q.exports=$M;$M.simpleSieve=WM;$M.fermatTest=XM;var _n=qM(),ISe=new _n(24),NSe=zM(),Wq=new NSe,BSe=new _n(1),VM=new _n(2),CSe=new _n(5),SXe=new _n(16),TXe=new _n(8),USe=new _n(10),DSe=new _n(3),RXe=new _n(7),PSe=new _n(11),Xq=new _n(4),OXe=new _n(12),jM=null;function FSe(){if(jM!==null)return jM;var e=1048576,t=[];t[0]=2;for(var r=1,n=3;n<e;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<r&&t[o]<=i&&n%t[o]!==0;o++);r!==o&&t[o]<=i||(t[r++]=n)}return jM=t,t}function WM(e){for(var t=FSe(),r=0;r<t.length;r++)if(e.modn(t[r])===0)return e.cmpn(t[r])===0;return!0}function XM(e){var t=_n.mont(e);return VM.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function $M(e,t){if(e<16)return t===2||t===5?new _n([140,123]):new _n([140,39]);t=new _n(t);for(var r,n;;){for(r=new _n(OSe(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(BSe),r.testn(1)||r.iadd(VM),t.cmp(VM)){if(!t.cmp(CSe))for(;r.mod(USe).cmp(DSe);)r.iadd(Xq)}else for(;r.mod(ISe).cmp(PSe);)r.iadd(Xq);if(n=r.shrn(1),WM(n)&&WM(r)&&XM(n)&&XM(r)&&Wq.test(n)&&Wq.test(r))return r}}});var Yq=I((BXe,qSe)=>{qSe.exports={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"}}});var eL=I((CXe,Qq)=>{b();var Ui=qM(),LSe=zM(),Zq=new LSe,GSe=new Ui(24),KSe=new Ui(11),HSe=new Ui(10),zSe=new Ui(3),jSe=new Ui(7),Jq=YM(),VSe=wf();Qq.exports=Ya;function WSe(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._pub=new Ui(e),this}function XSe(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._priv=new Ui(e),this}var bg={};function $Se(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in bg)return bg[n];var i=0;if(e.isEven()||!Jq.simpleSieve||!Jq.fermatTest(e)||!Zq.test(e))return i+=1,r==="02"||r==="05"?i+=8:i+=4,bg[n]=i,i;Zq.test(e.shrn(1))||(i+=2);var o;switch(r){case"02":e.mod(GSe).cmp(KSe)&&(i+=8);break;case"05":o=e.mod(HSe),o.cmp(zSe)&&o.cmp(jSe)&&(i+=8);break;default:i+=4}return bg[n]=i,i}function Ya(e,t,r){this.setGenerator(t),this.__prime=new Ui(e),this._prime=Ui.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=WSe,this.setPrivateKey=XSe):this._primeCode=8}Object.defineProperty(Ya.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=$Se(this.__prime,this.__gen)),this._primeCode}});Ya.prototype.generateKeys=function(){return this._priv||(this._priv=new Ui(VSe(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Ya.prototype.computeSecret=function(e){e=new Ui(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),r=new Buffer(t.toArray()),n=this.getPrime();if(r.length<n.length){var i=new Buffer(n.length-r.length);i.fill(0),r=Buffer.concat([i,r])}return r};Ya.prototype.getPublicKey=function(t){return xg(this._pub,t)};Ya.prototype.getPrivateKey=function(t){return xg(this._priv,t)};Ya.prototype.getPrime=function(e){return xg(this.__prime,e)};Ya.prototype.getGenerator=function(e){return xg(this._gen,e)};Ya.prototype.setGenerator=function(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this.__gen=e,this._gen=new Ui(e),this};function xg(e,t){var r=new Buffer(e.toArray());return t?r.toString(t):r}});var nL=I(Jc=>{b();var YSe=YM(),tL=Yq(),ZM=eL();function ZSe(e){var t=new Buffer(tL[e].prime,"hex"),r=new Buffer(tL[e].gen,"hex");return new ZM(t,r)}var JSe={binary:!0,hex:!0,base64:!0};function rL(e,t,r,n){return Buffer.isBuffer(t)||JSe[t]===void 0?rL(e,"binary",t,r):(t=t||"binary",n=n||"binary",r=r||new Buffer([2]),Buffer.isBuffer(r)||(r=new Buffer(r,n)),typeof e=="number"?new ZM(YSe(e,r),r,!0):(Buffer.isBuffer(e)||(e=new Buffer(e,t)),new ZM(e,r,!0)))}Jc.DiffieHellmanGroup=Jc.createDiffieHellmanGroup=Jc.getDiffieHellman=ZSe;Jc.createDiffieHellman=Jc.DiffieHellman=rL});var wg=I((iL,JM)=>{b();(function(e,t){"use strict";function r(u,f){if(!u)throw new Error(f||"Assertion failed")}function n(u,f){u.super_=f;var c=function(){};c.prototype=f.prototype,u.prototype=new c,u.prototype.constructor=u}function i(u,f,c){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((f==="le"||f==="be")&&(c=f,f=10),this._init(u||0,f||10,c||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ol().Buffer}catch{}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,c){return f.cmp(c)>0?f:c},i.min=function(f,c){return f.cmp(c)<0?f:c},i.prototype._init=function(f,c,m){if(typeof f=="number")return this._initNumber(f,c,m);if(typeof f=="object")return this._initArray(f,c,m);c==="hex"&&(c=16),r(c===(c|0)&&c>=2&&c<=36),f=f.toString().replace(/\s+/g,"");var _=0;f[0]==="-"&&(_++,this.negative=1),_<f.length&&(c===16?this._parseHex(f,_,m):(this._parseBase(f,c,_),m==="le"&&this._initArray(this.toArray(),c,m)))},i.prototype._initNumber=function(f,c,m){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),m==="le"&&this._initArray(this.toArray(),c,m)},i.prototype._initArray=function(f,c,m){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var d,a,p=0;if(m==="be")for(_=f.length-1,d=0;_>=0;_-=3)a=f[_]|f[_-1]<<8|f[_-2]<<16,this.words[d]|=a<<p&67108863,this.words[d+1]=a>>>26-p&67108863,p+=24,p>=26&&(p-=26,d++);else if(m==="le")for(_=0,d=0;_<f.length;_+=3)a=f[_]|f[_+1]<<8|f[_+2]<<16,this.words[d]|=a<<p&67108863,this.words[d+1]=a>>>26-p&67108863,p+=24,p>=26&&(p-=26,d++);return this._strip()};function h(u,f){var c=u.charCodeAt(f);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;r(!1,"Invalid character in "+u)}function g(u,f,c){var m=h(u,c);return c-1>=f&&(m|=h(u,c-1)<<4),m}i.prototype._parseHex=function(f,c,m){this.length=Math.ceil((f.length-c)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var d=0,a=0,p;if(m==="be")for(_=f.length-1;_>=c;_-=2)p=g(f,c,_)<<d,this.words[a]|=p&67108863,d>=18?(d-=18,a+=1,this.words[a]|=p>>>26):d+=8;else{var M=f.length-c;for(_=M%2===0?c+1:c;_<f.length;_+=2)p=g(f,c,_)<<d,this.words[a]|=p&67108863,d>=18?(d-=18,a+=1,this.words[a]|=p>>>26):d+=8}this._strip()};function v(u,f,c,m){for(var _=0,d=0,a=Math.min(u.length,c),p=f;p<a;p++){var M=u.charCodeAt(p)-48;_*=m,M>=49?d=M-49+10:M>=17?d=M-17+10:d=M,r(M>=0&&d<m,"Invalid character"),_+=d}return _}i.prototype._parseBase=function(f,c,m){this.words=[0],this.length=1;for(var _=0,d=1;d<=67108863;d*=c)_++;_--,d=d/c|0;for(var a=f.length-m,p=a%_,M=Math.min(a,a-p)+m,x=0,E=m;E<M;E+=_)x=v(f,E,E+_,c),this.imuln(d),this.words[0]+x<67108864?this.words[0]+=x:this._iaddn(x);if(p!==0){var N=1;for(x=v(f,E,f.length,c),E=0;E<p;E++)N*=c;this.imuln(N),this.words[0]+x<67108864?this.words[0]+=x:this._iaddn(x)}this._strip()},i.prototype.copy=function(f){f.words=new Array(this.length);for(var c=0;c<this.length;c++)f.words[c]=this.words[c];f.length=this.length,f.negative=this.negative,f.red=this.red};function w(u,f){u.words=f.words,u.length=f.length,u.negative=f.negative,u.red=f.red}if(i.prototype._move=function(f){w(f,this)},i.prototype.clone=function(){var f=new i(null);return this.copy(f),f},i.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=k}catch{i.prototype.inspect=k}else i.prototype.inspect=k;function k(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var A=["","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"],R=[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],O=[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];i.prototype.toString=function(f,c){f=f||10,c=c|0||1;var m;if(f===16||f==="hex"){m="";for(var _=0,d=0,a=0;a<this.length;a++){var p=this.words[a],M=((p<<_|d)&16777215).toString(16);d=p>>>24-_&16777215,_+=2,_>=26&&(_-=26,a--),d!==0||a!==this.length-1?m=A[6-M.length]+M+m:m=M+m}for(d!==0&&(m=d.toString(16)+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(f===(f|0)&&f>=2&&f<=36){var x=R[f],E=O[f];m="";var N=this.clone();for(N.negative=0;!N.isZero();){var C=N.modrn(E).toString(f);N=N.idivn(E),N.isZero()?m=C+m:m=A[x-C.length]+C+m}for(this.isZero()&&(m="0"+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(f,c){return this.toArrayLike(o,f,c)}),i.prototype.toArray=function(f,c){return this.toArrayLike(Array,f,c)};var B=function(f,c){return f.allocUnsafe?f.allocUnsafe(c):new f(c)};i.prototype.toArrayLike=function(f,c,m){this._strip();var _=this.byteLength(),d=m||Math.max(1,_);r(_<=d,"byte array longer than desired length"),r(d>0,"Requested array length <= 0");var a=B(f,d),p=c==="le"?"LE":"BE";return this["_toArrayLike"+p](a,_),a},i.prototype._toArrayLikeLE=function(f,c){for(var m=0,_=0,d=0,a=0;d<this.length;d++){var p=this.words[d]<<a|_;f[m++]=p&255,m<f.length&&(f[m++]=p>>8&255),m<f.length&&(f[m++]=p>>16&255),a===6?(m<f.length&&(f[m++]=p>>24&255),_=0,a=0):(_=p>>>24,a+=2)}if(m<f.length)for(f[m++]=_;m<f.length;)f[m++]=0},i.prototype._toArrayLikeBE=function(f,c){for(var m=f.length-1,_=0,d=0,a=0;d<this.length;d++){var p=this.words[d]<<a|_;f[m--]=p&255,m>=0&&(f[m--]=p>>8&255),m>=0&&(f[m--]=p>>16&255),a===6?(m>=0&&(f[m--]=p>>24&255),_=0,a=0):(_=p>>>24,a+=2)}if(m>=0)for(f[m--]=_;m>=0;)f[m--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var c=f,m=0;return c>=4096&&(m+=13,c>>>=13),c>=64&&(m+=7,c>>>=7),c>=8&&(m+=4,c>>>=4),c>=2&&(m+=2,c>>>=2),m+c},i.prototype._zeroBits=function(f){if(f===0)return 26;var c=f,m=0;return(c&8191)===0&&(m+=13,c>>>=13),(c&127)===0&&(m+=7,c>>>=7),(c&15)===0&&(m+=4,c>>>=4),(c&3)===0&&(m+=2,c>>>=2),(c&1)===0&&m++,m},i.prototype.bitLength=function(){var f=this.words[this.length-1],c=this._countBits(f);return(this.length-1)*26+c};function L(u){for(var f=new Array(u.bitLength()),c=0;c<f.length;c++){var m=c/26|0,_=c%26;f[c]=u.words[m]>>>_&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,c=0;c<this.length;c++){var m=this._zeroBits(this.words[c]);if(f+=m,m!==26)break}return f},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},i.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var c=0;c<f.length;c++)this.words[c]=this.words[c]|f.words[c];return this._strip()},i.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},i.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var c;this.length>f.length?c=f:c=this;for(var m=0;m<c.length;m++)this.words[m]=this.words[m]&f.words[m];return this.length=c.length,this._strip()},i.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},i.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var c,m;this.length>f.length?(c=this,m=f):(c=f,m=this);for(var _=0;_<m.length;_++)this.words[_]=c.words[_]^m.words[_];if(this!==c)for(;_<c.length;_++)this.words[_]=c.words[_];return this.length=c.length,this._strip()},i.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},i.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var c=Math.ceil(f/26)|0,m=f%26;this._expand(c),m>0&&c--;for(var _=0;_<c;_++)this.words[_]=~this.words[_]&67108863;return m>0&&(this.words[_]=~this.words[_]&67108863>>26-m),this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,c){r(typeof f=="number"&&f>=0);var m=f/26|0,_=f%26;return this._expand(m+1),c?this.words[m]=this.words[m]|1<<_:this.words[m]=this.words[m]&~(1<<_),this._strip()},i.prototype.iadd=function(f){var c;if(this.negative!==0&&f.negative===0)return this.negative=0,c=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,c=this.isub(f),f.negative=1,c._normSign();var m,_;this.length>f.length?(m=this,_=f):(m=f,_=this);for(var d=0,a=0;a<_.length;a++)c=(m.words[a]|0)+(_.words[a]|0)+d,this.words[a]=c&67108863,d=c>>>26;for(;d!==0&&a<m.length;a++)c=(m.words[a]|0)+d,this.words[a]=c&67108863,d=c>>>26;if(this.length=m.length,d!==0)this.words[this.length]=d,this.length++;else if(m!==this)for(;a<m.length;a++)this.words[a]=m.words[a];return this},i.prototype.add=function(f){var c;return f.negative!==0&&this.negative===0?(f.negative=0,c=this.sub(f),f.negative^=1,c):f.negative===0&&this.negative!==0?(this.negative=0,c=f.sub(this),this.negative=1,c):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var c=this.iadd(f);return f.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var m=this.cmp(f);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,d;m>0?(_=this,d=f):(_=f,d=this);for(var a=0,p=0;p<d.length;p++)c=(_.words[p]|0)-(d.words[p]|0)+a,a=c>>26,this.words[p]=c&67108863;for(;a!==0&&p<_.length;p++)c=(_.words[p]|0)+a,a=c>>26,this.words[p]=c&67108863;if(a===0&&p<_.length&&_!==this)for(;p<_.length;p++)this.words[p]=_.words[p];return this.length=Math.max(this.length,p),_!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(f){return this.clone().isub(f)};function X(u,f,c){c.negative=f.negative^u.negative;var m=u.length+f.length|0;c.length=m,m=m-1|0;var _=u.words[0]|0,d=f.words[0]|0,a=_*d,p=a&67108863,M=a/67108864|0;c.words[0]=p;for(var x=1;x<m;x++){for(var E=M>>>26,N=M&67108863,C=Math.min(x,f.length-1),U=Math.max(0,x-u.length+1);U<=C;U++){var Re=x-U|0;_=u.words[Re]|0,d=f.words[U]|0,a=_*d+N,E+=a/67108864|0,N=a&67108863}c.words[x]=N|0,M=E|0}return M!==0?c.words[x]=M|0:c.length--,c._strip()}var P=function(f,c,m){var _=f.words,d=c.words,a=m.words,p=0,M,x,E,N=_[0]|0,C=N&8191,U=N>>>13,Re=_[1]|0,F=Re&8191,q=Re>>>13,ft=_[2]|0,V=ft&8191,W=ft>>>13,wt=_[3]|0,$=wt&8191,Y=wt>>>13,wr=_[4]|0,Z=wr&8191,J=wr>>>13,kr=_[5]|0,Q=kr&8191,ee=kr>>>13,Mr=_[6]|0,te=Mr&8191,re=Mr>>>13,Ar=_[7]|0,ne=Ar&8191,ie=Ar>>>13,Er=_[8]|0,se=Er&8191,ae=Er>>>13,Sr=_[9]|0,oe=Sr&8191,le=Sr>>>13,Tr=d[0]|0,fe=Tr&8191,ue=Tr>>>13,Rr=d[1]|0,ce=Rr&8191,he=Rr>>>13,Or=d[2]|0,de=Or&8191,pe=Or>>>13,Ir=d[3]|0,me=Ir&8191,ye=Ir>>>13,Nr=d[4]|0,ge=Nr&8191,_e=Nr>>>13,Br=d[5]|0,ve=Br&8191,be=Br>>>13,Cr=d[6]|0,xe=Cr&8191,we=Cr>>>13,Ur=d[7]|0,ke=Ur&8191,Me=Ur>>>13,Dr=d[8]|0,Ae=Dr&8191,Ee=Dr>>>13,jt=d[9]|0,Je=jt&8191,Qe=jt>>>13;m.negative=f.negative^c.negative,m.length=19,M=Math.imul(C,fe),x=Math.imul(C,ue),x=x+Math.imul(U,fe)|0,E=Math.imul(U,ue);var St=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(St>>>26)|0,St&=67108863,M=Math.imul(F,fe),x=Math.imul(F,ue),x=x+Math.imul(q,fe)|0,E=Math.imul(q,ue),M=M+Math.imul(C,ce)|0,x=x+Math.imul(C,he)|0,x=x+Math.imul(U,ce)|0,E=E+Math.imul(U,he)|0;var Tt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,M=Math.imul(V,fe),x=Math.imul(V,ue),x=x+Math.imul(W,fe)|0,E=Math.imul(W,ue),M=M+Math.imul(F,ce)|0,x=x+Math.imul(F,he)|0,x=x+Math.imul(q,ce)|0,E=E+Math.imul(q,he)|0,M=M+Math.imul(C,de)|0,x=x+Math.imul(C,pe)|0,x=x+Math.imul(U,de)|0,E=E+Math.imul(U,pe)|0;var Rt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,M=Math.imul($,fe),x=Math.imul($,ue),x=x+Math.imul(Y,fe)|0,E=Math.imul(Y,ue),M=M+Math.imul(V,ce)|0,x=x+Math.imul(V,he)|0,x=x+Math.imul(W,ce)|0,E=E+Math.imul(W,he)|0,M=M+Math.imul(F,de)|0,x=x+Math.imul(F,pe)|0,x=x+Math.imul(q,de)|0,E=E+Math.imul(q,pe)|0,M=M+Math.imul(C,me)|0,x=x+Math.imul(C,ye)|0,x=x+Math.imul(U,me)|0,E=E+Math.imul(U,ye)|0;var Ot=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,M=Math.imul(Z,fe),x=Math.imul(Z,ue),x=x+Math.imul(J,fe)|0,E=Math.imul(J,ue),M=M+Math.imul($,ce)|0,x=x+Math.imul($,he)|0,x=x+Math.imul(Y,ce)|0,E=E+Math.imul(Y,he)|0,M=M+Math.imul(V,de)|0,x=x+Math.imul(V,pe)|0,x=x+Math.imul(W,de)|0,E=E+Math.imul(W,pe)|0,M=M+Math.imul(F,me)|0,x=x+Math.imul(F,ye)|0,x=x+Math.imul(q,me)|0,E=E+Math.imul(q,ye)|0,M=M+Math.imul(C,ge)|0,x=x+Math.imul(C,_e)|0,x=x+Math.imul(U,ge)|0,E=E+Math.imul(U,_e)|0;var It=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(It>>>26)|0,It&=67108863,M=Math.imul(Q,fe),x=Math.imul(Q,ue),x=x+Math.imul(ee,fe)|0,E=Math.imul(ee,ue),M=M+Math.imul(Z,ce)|0,x=x+Math.imul(Z,he)|0,x=x+Math.imul(J,ce)|0,E=E+Math.imul(J,he)|0,M=M+Math.imul($,de)|0,x=x+Math.imul($,pe)|0,x=x+Math.imul(Y,de)|0,E=E+Math.imul(Y,pe)|0,M=M+Math.imul(V,me)|0,x=x+Math.imul(V,ye)|0,x=x+Math.imul(W,me)|0,E=E+Math.imul(W,ye)|0,M=M+Math.imul(F,ge)|0,x=x+Math.imul(F,_e)|0,x=x+Math.imul(q,ge)|0,E=E+Math.imul(q,_e)|0,M=M+Math.imul(C,ve)|0,x=x+Math.imul(C,be)|0,x=x+Math.imul(U,ve)|0,E=E+Math.imul(U,be)|0;var Nt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,M=Math.imul(te,fe),x=Math.imul(te,ue),x=x+Math.imul(re,fe)|0,E=Math.imul(re,ue),M=M+Math.imul(Q,ce)|0,x=x+Math.imul(Q,he)|0,x=x+Math.imul(ee,ce)|0,E=E+Math.imul(ee,he)|0,M=M+Math.imul(Z,de)|0,x=x+Math.imul(Z,pe)|0,x=x+Math.imul(J,de)|0,E=E+Math.imul(J,pe)|0,M=M+Math.imul($,me)|0,x=x+Math.imul($,ye)|0,x=x+Math.imul(Y,me)|0,E=E+Math.imul(Y,ye)|0,M=M+Math.imul(V,ge)|0,x=x+Math.imul(V,_e)|0,x=x+Math.imul(W,ge)|0,E=E+Math.imul(W,_e)|0,M=M+Math.imul(F,ve)|0,x=x+Math.imul(F,be)|0,x=x+Math.imul(q,ve)|0,E=E+Math.imul(q,be)|0,M=M+Math.imul(C,xe)|0,x=x+Math.imul(C,we)|0,x=x+Math.imul(U,xe)|0,E=E+Math.imul(U,we)|0;var Bt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,M=Math.imul(ne,fe),x=Math.imul(ne,ue),x=x+Math.imul(ie,fe)|0,E=Math.imul(ie,ue),M=M+Math.imul(te,ce)|0,x=x+Math.imul(te,he)|0,x=x+Math.imul(re,ce)|0,E=E+Math.imul(re,he)|0,M=M+Math.imul(Q,de)|0,x=x+Math.imul(Q,pe)|0,x=x+Math.imul(ee,de)|0,E=E+Math.imul(ee,pe)|0,M=M+Math.imul(Z,me)|0,x=x+Math.imul(Z,ye)|0,x=x+Math.imul(J,me)|0,E=E+Math.imul(J,ye)|0,M=M+Math.imul($,ge)|0,x=x+Math.imul($,_e)|0,x=x+Math.imul(Y,ge)|0,E=E+Math.imul(Y,_e)|0,M=M+Math.imul(V,ve)|0,x=x+Math.imul(V,be)|0,x=x+Math.imul(W,ve)|0,E=E+Math.imul(W,be)|0,M=M+Math.imul(F,xe)|0,x=x+Math.imul(F,we)|0,x=x+Math.imul(q,xe)|0,E=E+Math.imul(q,we)|0,M=M+Math.imul(C,ke)|0,x=x+Math.imul(C,Me)|0,x=x+Math.imul(U,ke)|0,E=E+Math.imul(U,Me)|0;var Ct=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,M=Math.imul(se,fe),x=Math.imul(se,ue),x=x+Math.imul(ae,fe)|0,E=Math.imul(ae,ue),M=M+Math.imul(ne,ce)|0,x=x+Math.imul(ne,he)|0,x=x+Math.imul(ie,ce)|0,E=E+Math.imul(ie,he)|0,M=M+Math.imul(te,de)|0,x=x+Math.imul(te,pe)|0,x=x+Math.imul(re,de)|0,E=E+Math.imul(re,pe)|0,M=M+Math.imul(Q,me)|0,x=x+Math.imul(Q,ye)|0,x=x+Math.imul(ee,me)|0,E=E+Math.imul(ee,ye)|0,M=M+Math.imul(Z,ge)|0,x=x+Math.imul(Z,_e)|0,x=x+Math.imul(J,ge)|0,E=E+Math.imul(J,_e)|0,M=M+Math.imul($,ve)|0,x=x+Math.imul($,be)|0,x=x+Math.imul(Y,ve)|0,E=E+Math.imul(Y,be)|0,M=M+Math.imul(V,xe)|0,x=x+Math.imul(V,we)|0,x=x+Math.imul(W,xe)|0,E=E+Math.imul(W,we)|0,M=M+Math.imul(F,ke)|0,x=x+Math.imul(F,Me)|0,x=x+Math.imul(q,ke)|0,E=E+Math.imul(q,Me)|0,M=M+Math.imul(C,Ae)|0,x=x+Math.imul(C,Ee)|0,x=x+Math.imul(U,Ae)|0,E=E+Math.imul(U,Ee)|0;var Ut=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,M=Math.imul(oe,fe),x=Math.imul(oe,ue),x=x+Math.imul(le,fe)|0,E=Math.imul(le,ue),M=M+Math.imul(se,ce)|0,x=x+Math.imul(se,he)|0,x=x+Math.imul(ae,ce)|0,E=E+Math.imul(ae,he)|0,M=M+Math.imul(ne,de)|0,x=x+Math.imul(ne,pe)|0,x=x+Math.imul(ie,de)|0,E=E+Math.imul(ie,pe)|0,M=M+Math.imul(te,me)|0,x=x+Math.imul(te,ye)|0,x=x+Math.imul(re,me)|0,E=E+Math.imul(re,ye)|0,M=M+Math.imul(Q,ge)|0,x=x+Math.imul(Q,_e)|0,x=x+Math.imul(ee,ge)|0,E=E+Math.imul(ee,_e)|0,M=M+Math.imul(Z,ve)|0,x=x+Math.imul(Z,be)|0,x=x+Math.imul(J,ve)|0,E=E+Math.imul(J,be)|0,M=M+Math.imul($,xe)|0,x=x+Math.imul($,we)|0,x=x+Math.imul(Y,xe)|0,E=E+Math.imul(Y,we)|0,M=M+Math.imul(V,ke)|0,x=x+Math.imul(V,Me)|0,x=x+Math.imul(W,ke)|0,E=E+Math.imul(W,Me)|0,M=M+Math.imul(F,Ae)|0,x=x+Math.imul(F,Ee)|0,x=x+Math.imul(q,Ae)|0,E=E+Math.imul(q,Ee)|0,M=M+Math.imul(C,Je)|0,x=x+Math.imul(C,Qe)|0,x=x+Math.imul(U,Je)|0,E=E+Math.imul(U,Qe)|0;var Dt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,M=Math.imul(oe,ce),x=Math.imul(oe,he),x=x+Math.imul(le,ce)|0,E=Math.imul(le,he),M=M+Math.imul(se,de)|0,x=x+Math.imul(se,pe)|0,x=x+Math.imul(ae,de)|0,E=E+Math.imul(ae,pe)|0,M=M+Math.imul(ne,me)|0,x=x+Math.imul(ne,ye)|0,x=x+Math.imul(ie,me)|0,E=E+Math.imul(ie,ye)|0,M=M+Math.imul(te,ge)|0,x=x+Math.imul(te,_e)|0,x=x+Math.imul(re,ge)|0,E=E+Math.imul(re,_e)|0,M=M+Math.imul(Q,ve)|0,x=x+Math.imul(Q,be)|0,x=x+Math.imul(ee,ve)|0,E=E+Math.imul(ee,be)|0,M=M+Math.imul(Z,xe)|0,x=x+Math.imul(Z,we)|0,x=x+Math.imul(J,xe)|0,E=E+Math.imul(J,we)|0,M=M+Math.imul($,ke)|0,x=x+Math.imul($,Me)|0,x=x+Math.imul(Y,ke)|0,E=E+Math.imul(Y,Me)|0,M=M+Math.imul(V,Ae)|0,x=x+Math.imul(V,Ee)|0,x=x+Math.imul(W,Ae)|0,E=E+Math.imul(W,Ee)|0,M=M+Math.imul(F,Je)|0,x=x+Math.imul(F,Qe)|0,x=x+Math.imul(q,Je)|0,E=E+Math.imul(q,Qe)|0;var Pt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,M=Math.imul(oe,de),x=Math.imul(oe,pe),x=x+Math.imul(le,de)|0,E=Math.imul(le,pe),M=M+Math.imul(se,me)|0,x=x+Math.imul(se,ye)|0,x=x+Math.imul(ae,me)|0,E=E+Math.imul(ae,ye)|0,M=M+Math.imul(ne,ge)|0,x=x+Math.imul(ne,_e)|0,x=x+Math.imul(ie,ge)|0,E=E+Math.imul(ie,_e)|0,M=M+Math.imul(te,ve)|0,x=x+Math.imul(te,be)|0,x=x+Math.imul(re,ve)|0,E=E+Math.imul(re,be)|0,M=M+Math.imul(Q,xe)|0,x=x+Math.imul(Q,we)|0,x=x+Math.imul(ee,xe)|0,E=E+Math.imul(ee,we)|0,M=M+Math.imul(Z,ke)|0,x=x+Math.imul(Z,Me)|0,x=x+Math.imul(J,ke)|0,E=E+Math.imul(J,Me)|0,M=M+Math.imul($,Ae)|0,x=x+Math.imul($,Ee)|0,x=x+Math.imul(Y,Ae)|0,E=E+Math.imul(Y,Ee)|0,M=M+Math.imul(V,Je)|0,x=x+Math.imul(V,Qe)|0,x=x+Math.imul(W,Je)|0,E=E+Math.imul(W,Qe)|0;var Ft=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,M=Math.imul(oe,me),x=Math.imul(oe,ye),x=x+Math.imul(le,me)|0,E=Math.imul(le,ye),M=M+Math.imul(se,ge)|0,x=x+Math.imul(se,_e)|0,x=x+Math.imul(ae,ge)|0,E=E+Math.imul(ae,_e)|0,M=M+Math.imul(ne,ve)|0,x=x+Math.imul(ne,be)|0,x=x+Math.imul(ie,ve)|0,E=E+Math.imul(ie,be)|0,M=M+Math.imul(te,xe)|0,x=x+Math.imul(te,we)|0,x=x+Math.imul(re,xe)|0,E=E+Math.imul(re,we)|0,M=M+Math.imul(Q,ke)|0,x=x+Math.imul(Q,Me)|0,x=x+Math.imul(ee,ke)|0,E=E+Math.imul(ee,Me)|0,M=M+Math.imul(Z,Ae)|0,x=x+Math.imul(Z,Ee)|0,x=x+Math.imul(J,Ae)|0,E=E+Math.imul(J,Ee)|0,M=M+Math.imul($,Je)|0,x=x+Math.imul($,Qe)|0,x=x+Math.imul(Y,Je)|0,E=E+Math.imul(Y,Qe)|0;var qt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(qt>>>26)|0,qt&=67108863,M=Math.imul(oe,ge),x=Math.imul(oe,_e),x=x+Math.imul(le,ge)|0,E=Math.imul(le,_e),M=M+Math.imul(se,ve)|0,x=x+Math.imul(se,be)|0,x=x+Math.imul(ae,ve)|0,E=E+Math.imul(ae,be)|0,M=M+Math.imul(ne,xe)|0,x=x+Math.imul(ne,we)|0,x=x+Math.imul(ie,xe)|0,E=E+Math.imul(ie,we)|0,M=M+Math.imul(te,ke)|0,x=x+Math.imul(te,Me)|0,x=x+Math.imul(re,ke)|0,E=E+Math.imul(re,Me)|0,M=M+Math.imul(Q,Ae)|0,x=x+Math.imul(Q,Ee)|0,x=x+Math.imul(ee,Ae)|0,E=E+Math.imul(ee,Ee)|0,M=M+Math.imul(Z,Je)|0,x=x+Math.imul(Z,Qe)|0,x=x+Math.imul(J,Je)|0,E=E+Math.imul(J,Qe)|0;var Lt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,M=Math.imul(oe,ve),x=Math.imul(oe,be),x=x+Math.imul(le,ve)|0,E=Math.imul(le,be),M=M+Math.imul(se,xe)|0,x=x+Math.imul(se,we)|0,x=x+Math.imul(ae,xe)|0,E=E+Math.imul(ae,we)|0,M=M+Math.imul(ne,ke)|0,x=x+Math.imul(ne,Me)|0,x=x+Math.imul(ie,ke)|0,E=E+Math.imul(ie,Me)|0,M=M+Math.imul(te,Ae)|0,x=x+Math.imul(te,Ee)|0,x=x+Math.imul(re,Ae)|0,E=E+Math.imul(re,Ee)|0,M=M+Math.imul(Q,Je)|0,x=x+Math.imul(Q,Qe)|0,x=x+Math.imul(ee,Je)|0,E=E+Math.imul(ee,Qe)|0;var Gt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,M=Math.imul(oe,xe),x=Math.imul(oe,we),x=x+Math.imul(le,xe)|0,E=Math.imul(le,we),M=M+Math.imul(se,ke)|0,x=x+Math.imul(se,Me)|0,x=x+Math.imul(ae,ke)|0,E=E+Math.imul(ae,Me)|0,M=M+Math.imul(ne,Ae)|0,x=x+Math.imul(ne,Ee)|0,x=x+Math.imul(ie,Ae)|0,E=E+Math.imul(ie,Ee)|0,M=M+Math.imul(te,Je)|0,x=x+Math.imul(te,Qe)|0,x=x+Math.imul(re,Je)|0,E=E+Math.imul(re,Qe)|0;var Kt=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,M=Math.imul(oe,ke),x=Math.imul(oe,Me),x=x+Math.imul(le,ke)|0,E=Math.imul(le,Me),M=M+Math.imul(se,Ae)|0,x=x+Math.imul(se,Ee)|0,x=x+Math.imul(ae,Ae)|0,E=E+Math.imul(ae,Ee)|0,M=M+Math.imul(ne,Je)|0,x=x+Math.imul(ne,Qe)|0,x=x+Math.imul(ie,Je)|0,E=E+Math.imul(ie,Qe)|0;var fv=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(fv>>>26)|0,fv&=67108863,M=Math.imul(oe,Ae),x=Math.imul(oe,Ee),x=x+Math.imul(le,Ae)|0,E=Math.imul(le,Ee),M=M+Math.imul(se,Je)|0,x=x+Math.imul(se,Qe)|0,x=x+Math.imul(ae,Je)|0,E=E+Math.imul(ae,Qe)|0;var uv=(p+M|0)+((x&8191)<<13)|0;p=(E+(x>>>13)|0)+(uv>>>26)|0,uv&=67108863,M=Math.imul(oe,Je),x=Math.imul(oe,Qe),x=x+Math.imul(le,Je)|0,E=Math.imul(le,Qe);var cv=(p+M|0)+((x&8191)<<13)|0;return p=(E+(x>>>13)|0)+(cv>>>26)|0,cv&=67108863,a[0]=St,a[1]=Tt,a[2]=Rt,a[3]=Ot,a[4]=It,a[5]=Nt,a[6]=Bt,a[7]=Ct,a[8]=Ut,a[9]=Dt,a[10]=Pt,a[11]=Ft,a[12]=qt,a[13]=Lt,a[14]=Gt,a[15]=Kt,a[16]=fv,a[17]=uv,a[18]=cv,p!==0&&(a[19]=p,m.length++),m};Math.imul||(P=X);function H(u,f,c){c.negative=f.negative^u.negative,c.length=u.length+f.length;for(var m=0,_=0,d=0;d<c.length-1;d++){var a=_;_=0;for(var p=m&67108863,M=Math.min(d,f.length-1),x=Math.max(0,d-u.length+1);x<=M;x++){var E=d-x,N=u.words[E]|0,C=f.words[x]|0,U=N*C,Re=U&67108863;a=a+(U/67108864|0)|0,Re=Re+p|0,p=Re&67108863,a=a+(Re>>>26)|0,_+=a>>>26,a&=67108863}c.words[d]=p,m=a,a=_}return m!==0?c.words[d]=m:c.length--,c._strip()}function D(u,f,c){return H(u,f,c)}i.prototype.mulTo=function(f,c){var m,_=this.length+f.length;return this.length===10&&f.length===10?m=P(this,f,c):_<63?m=X(this,f,c):_<1024?m=H(this,f,c):m=D(this,f,c),m};function Se(u,f){this.x=u,this.y=f}Se.prototype.makeRBT=function(f){for(var c=new Array(f),m=i.prototype._countBits(f)-1,_=0;_<f;_++)c[_]=this.revBin(_,m,f);return c},Se.prototype.revBin=function(f,c,m){if(f===0||f===m-1)return f;for(var _=0,d=0;d<c;d++)_|=(f&1)<<c-d-1,f>>=1;return _},Se.prototype.permute=function(f,c,m,_,d,a){for(var p=0;p<a;p++)_[p]=c[f[p]],d[p]=m[f[p]]},Se.prototype.transform=function(f,c,m,_,d,a){this.permute(a,f,c,m,_,d);for(var p=1;p<d;p<<=1)for(var M=p<<1,x=Math.cos(2*Math.PI/M),E=Math.sin(2*Math.PI/M),N=0;N<d;N+=M)for(var C=x,U=E,Re=0;Re<p;Re++){var F=m[N+Re],q=_[N+Re],ft=m[N+Re+p],V=_[N+Re+p],W=C*ft-U*V;V=C*V+U*ft,ft=W,m[N+Re]=F+ft,_[N+Re]=q+V,m[N+Re+p]=F-ft,_[N+Re+p]=q-V,Re!==M&&(W=x*C-E*U,U=x*U+E*C,C=W)}},Se.prototype.guessLen13b=function(f,c){var m=Math.max(c,f)|1,_=m&1,d=0;for(m=m/2|0;m;m=m>>>1)d++;return 1<<d+1+_},Se.prototype.conjugate=function(f,c,m){if(!(m<=1))for(var _=0;_<m/2;_++){var d=f[_];f[_]=f[m-_-1],f[m-_-1]=d,d=c[_],c[_]=-c[m-_-1],c[m-_-1]=-d}},Se.prototype.normalize13b=function(f,c){for(var m=0,_=0;_<c/2;_++){var d=Math.round(f[2*_+1]/c)*8192+Math.round(f[2*_]/c)+m;f[_]=d&67108863,d<67108864?m=0:m=d/67108864|0}return f},Se.prototype.convert13b=function(f,c,m,_){for(var d=0,a=0;a<c;a++)d=d+(f[a]|0),m[2*a]=d&8191,d=d>>>13,m[2*a+1]=d&8191,d=d>>>13;for(a=2*c;a<_;++a)m[a]=0;r(d===0),r((d&-8192)===0)},Se.prototype.stub=function(f){for(var c=new Array(f),m=0;m<f;m++)c[m]=0;return c},Se.prototype.mulp=function(f,c,m){var _=2*this.guessLen13b(f.length,c.length),d=this.makeRBT(_),a=this.stub(_),p=new Array(_),M=new Array(_),x=new Array(_),E=new Array(_),N=new Array(_),C=new Array(_),U=m.words;U.length=_,this.convert13b(f.words,f.length,p,_),this.convert13b(c.words,c.length,E,_),this.transform(p,a,M,x,_,d),this.transform(E,a,N,C,_,d);for(var Re=0;Re<_;Re++){var F=M[Re]*N[Re]-x[Re]*C[Re];x[Re]=M[Re]*C[Re]+x[Re]*N[Re],M[Re]=F}return this.conjugate(M,x,_),this.transform(M,x,U,a,_,d),this.conjugate(U,a,_),this.normalize13b(U,_),m.negative=f.negative^c.negative,m.length=f.length+c.length,m._strip()},i.prototype.mul=function(f){var c=new i(null);return c.words=new Array(this.length+f.length),this.mulTo(f,c)},i.prototype.mulf=function(f){var c=new i(null);return c.words=new Array(this.length+f.length),D(this,f,c)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var c=f<0;c&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var m=0,_=0;_<this.length;_++){var d=(this.words[_]|0)*f,a=(d&67108863)+(m&67108863);m>>=26,m+=d/67108864|0,m+=a>>>26,this.words[_]=a&67108863}return m!==0&&(this.words[_]=m,this.length++),this.length=f===0?1:this.length,c?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var c=L(f);if(c.length===0)return new i(1);for(var m=this,_=0;_<c.length&&c[_]===0;_++,m=m.sqr());if(++_<c.length)for(var d=m.sqr();_<c.length;_++,d=d.sqr())c[_]!==0&&(m=m.mul(d));return m},i.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var c=f%26,m=(f-c)/26,_=67108863>>>26-c<<26-c,d;if(c!==0){var a=0;for(d=0;d<this.length;d++){var p=this.words[d]&_,M=(this.words[d]|0)-p<<c;this.words[d]=M|a,a=p>>>26-c}a&&(this.words[d]=a,this.length++)}if(m!==0){for(d=this.length-1;d>=0;d--)this.words[d+m]=this.words[d];for(d=0;d<m;d++)this.words[d]=0;this.length+=m}return this._strip()},i.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},i.prototype.iushrn=function(f,c,m){r(typeof f=="number"&&f>=0);var _;c?_=(c-c%26)/26:_=0;var d=f%26,a=Math.min((f-d)/26,this.length),p=67108863^67108863>>>d<<d,M=m;if(_-=a,_=Math.max(0,_),M){for(var x=0;x<a;x++)M.words[x]=this.words[x];M.length=a}if(a!==0)if(this.length>a)for(this.length-=a,x=0;x<this.length;x++)this.words[x]=this.words[x+a];else this.words[0]=0,this.length=1;var E=0;for(x=this.length-1;x>=0&&(E!==0||x>=_);x--){var N=this.words[x]|0;this.words[x]=E<<26-d|N>>>d,E=N&p}return M&&E!==0&&(M.words[M.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,c,m){return r(this.negative===0),this.iushrn(f,c,m)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var c=f%26,m=(f-c)/26,_=1<<c;if(this.length<=m)return!1;var d=this.words[m];return!!(d&_)},i.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var c=f%26,m=(f-c)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(c!==0&&m++,this.length=Math.min(m,this.length),c!==0){var _=67108863^67108863>>>c<<c;this.words[this.length-1]&=_}return this._strip()},i.prototype.maskn=function(f){return this.clone().imaskn(f)},i.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},i.prototype._iaddn=function(f){this.words[0]+=f;for(var c=0;c<this.length&&this.words[c]>=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=67108864,this.words[c+1]-=1;return this._strip()},i.prototype.addn=function(f){return this.clone().iaddn(f)},i.prototype.subn=function(f){return this.clone().isubn(f)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(f,c,m){var _=f.length+m,d;this._expand(_);var a,p=0;for(d=0;d<f.length;d++){a=(this.words[d+m]|0)+p;var M=(f.words[d]|0)*c;a-=M&67108863,p=(a>>26)-(M/67108864|0),this.words[d+m]=a&67108863}for(;d<this.length-m;d++)a=(this.words[d+m]|0)+p,p=a>>26,this.words[d+m]=a&67108863;if(p===0)return this._strip();for(r(p===-1),p=0,d=0;d<this.length;d++)a=-(this.words[d]|0)+p,p=a>>26,this.words[d]=a&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,c){var m=this.length-f.length,_=this.clone(),d=f,a=d.words[d.length-1]|0,p=this._countBits(a);m=26-p,m!==0&&(d=d.ushln(m),_.iushln(m),a=d.words[d.length-1]|0);var M=_.length-d.length,x;if(c!=="mod"){x=new i(null),x.length=M+1,x.words=new Array(x.length);for(var E=0;E<x.length;E++)x.words[E]=0}var N=_.clone()._ishlnsubmul(d,1,M);N.negative===0&&(_=N,x&&(x.words[M]=1));for(var C=M-1;C>=0;C--){var U=(_.words[d.length+C]|0)*67108864+(_.words[d.length+C-1]|0);for(U=Math.min(U/a|0,67108863),_._ishlnsubmul(d,U,C);_.negative!==0;)U--,_.negative=0,_._ishlnsubmul(d,1,C),_.isZero()||(_.negative^=1);x&&(x.words[C]=U)}return x&&x._strip(),_._strip(),c!=="div"&&m!==0&&_.iushrn(m),{div:x||null,mod:_}},i.prototype.divmod=function(f,c,m){if(r(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var _,d,a;return this.negative!==0&&f.negative===0?(a=this.neg().divmod(f,c),c!=="mod"&&(_=a.div.neg()),c!=="div"&&(d=a.mod.neg(),m&&d.negative!==0&&d.iadd(f)),{div:_,mod:d}):this.negative===0&&f.negative!==0?(a=this.divmod(f.neg(),c),c!=="mod"&&(_=a.div.neg()),{div:_,mod:a.mod}):(this.negative&f.negative)!==0?(a=this.neg().divmod(f.neg(),c),c!=="div"&&(d=a.mod.neg(),m&&d.negative!==0&&d.isub(f)),{div:a.div,mod:d}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?c==="div"?{div:this.divn(f.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,c)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var c=this.divmod(f);if(c.mod.isZero())return c.div;var m=c.div.negative!==0?c.mod.isub(f):c.mod,_=f.ushrn(1),d=f.andln(1),a=m.cmp(_);return a<0||d===1&&a===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modrn=function(f){var c=f<0;c&&(f=-f),r(f<=67108863);for(var m=(1<<26)%f,_=0,d=this.length-1;d>=0;d--)_=(m*_+(this.words[d]|0))%f;return c?-_:_},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var c=f<0;c&&(f=-f),r(f<=67108863);for(var m=0,_=this.length-1;_>=0;_--){var d=(this.words[_]|0)+m*67108864;this.words[_]=d/f|0,m=d%f}return this._strip(),c?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var c=this,m=f.clone();c.negative!==0?c=c.umod(f):c=c.clone();for(var _=new i(1),d=new i(0),a=new i(0),p=new i(1),M=0;c.isEven()&&m.isEven();)c.iushrn(1),m.iushrn(1),++M;for(var x=m.clone(),E=c.clone();!c.isZero();){for(var N=0,C=1;(c.words[0]&C)===0&&N<26;++N,C<<=1);if(N>0)for(c.iushrn(N);N-- >0;)(_.isOdd()||d.isOdd())&&(_.iadd(x),d.isub(E)),_.iushrn(1),d.iushrn(1);for(var U=0,Re=1;(m.words[0]&Re)===0&&U<26;++U,Re<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(a.isOdd()||p.isOdd())&&(a.iadd(x),p.isub(E)),a.iushrn(1),p.iushrn(1);c.cmp(m)>=0?(c.isub(m),_.isub(a),d.isub(p)):(m.isub(c),a.isub(_),p.isub(d))}return{a,b:p,gcd:m.iushln(M)}},i.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var c=this,m=f.clone();c.negative!==0?c=c.umod(f):c=c.clone();for(var _=new i(1),d=new i(0),a=m.clone();c.cmpn(1)>0&&m.cmpn(1)>0;){for(var p=0,M=1;(c.words[0]&M)===0&&p<26;++p,M<<=1);if(p>0)for(c.iushrn(p);p-- >0;)_.isOdd()&&_.iadd(a),_.iushrn(1);for(var x=0,E=1;(m.words[0]&E)===0&&x<26;++x,E<<=1);if(x>0)for(m.iushrn(x);x-- >0;)d.isOdd()&&d.iadd(a),d.iushrn(1);c.cmp(m)>=0?(c.isub(m),_.isub(d)):(m.isub(c),d.isub(_))}var N;return c.cmpn(1)===0?N=_:N=d,N.cmpn(0)<0&&N.iadd(f),N},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var c=this.clone(),m=f.clone();c.negative=0,m.negative=0;for(var _=0;c.isEven()&&m.isEven();_++)c.iushrn(1),m.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;m.isEven();)m.iushrn(1);var d=c.cmp(m);if(d<0){var a=c;c=m,m=a}else if(d===0||m.cmpn(1)===0)break;c.isub(m)}while(!0);return m.iushln(_)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){r(typeof f=="number");var c=f%26,m=(f-c)/26,_=1<<c;if(this.length<=m)return this._expand(m+1),this.words[m]|=_,this;for(var d=_,a=m;d!==0&&a<this.length;a++){var p=this.words[a]|0;p+=d,d=p>>>26,p&=67108863,this.words[a]=p}return d!==0&&(this.words[a]=d,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var c=f<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var m;if(this.length>1)m=1;else{c&&(f=-f),r(f<=67108863,"Number is too big");var _=this.words[0]|0;m=_===f?0:_<f?-1:1}return this.negative!==0?-m|0:m},i.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var c=this.ucmp(f);return this.negative!==0?-c|0:c},i.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var c=0,m=this.length-1;m>=0;m--){var _=this.words[m]|0,d=f.words[m]|0;if(_!==d){_<d?c=-1:_>d&&(c=1);break}}return c},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new s(f)},i.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var De={k256:null,p224:null,p192:null,p25519:null};function Ce(u,f){this.name=u,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ce.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},Ce.prototype.ireduce=function(f){var c=f,m;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),m=c.bitLength();while(m>this.n);var _=m<this.n?-1:c.ucmp(this.p);return _===0?(c.words[0]=0,c.length=1):_>0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},Ce.prototype.split=function(f,c){f.iushrn(this.n,0,c)},Ce.prototype.imulK=function(f){return f.imul(this.k)};function Ke(){Ce.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Ke,Ce),Ke.prototype.split=function(f,c){for(var m=4194303,_=Math.min(f.length,9),d=0;d<_;d++)c.words[d]=f.words[d];if(c.length=_,f.length<=9){f.words[0]=0,f.length=1;return}var a=f.words[9];for(c.words[c.length++]=a&m,d=10;d<f.length;d++){var p=f.words[d]|0;f.words[d-10]=(p&m)<<4|a>>>22,a=p}a>>>=22,f.words[d-10]=a,a===0&&f.length>10?f.length-=10:f.length-=9},Ke.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var c=0,m=0;m<f.length;m++){var _=f.words[m]|0;c+=_*977,f.words[m]=c&67108863,c=_*64+(c/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function j(){Ce.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(j,Ce);function Be(){Ce.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Be,Ce);function y(){Ce.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(y,Ce),y.prototype.imulK=function(f){for(var c=0,m=0;m<f.length;m++){var _=(f.words[m]|0)*19+c,d=_&67108863;_>>>=26,f.words[m]=d,c=_}return c!==0&&(f.words[f.length++]=c),f},i._prime=function(f){if(De[f])return De[f];var c;if(f==="k256")c=new Ke;else if(f==="p224")c=new j;else if(f==="p192")c=new Be;else if(f==="p25519")c=new y;else throw new Error("Unknown prime "+f);return De[f]=c,c};function s(u){if(typeof u=="string"){var f=i._prime(u);this.m=f.p,this.prime=f}else r(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}s.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},s.prototype._verify2=function(f,c){r((f.negative|c.negative)===0,"red works only with positives"),r(f.red&&f.red===c.red,"red works only with red numbers")},s.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(w(f,f.umod(this.m)._forceRed(this)),f)},s.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},s.prototype.add=function(f,c){this._verify2(f,c);var m=f.add(c);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},s.prototype.iadd=function(f,c){this._verify2(f,c);var m=f.iadd(c);return m.cmp(this.m)>=0&&m.isub(this.m),m},s.prototype.sub=function(f,c){this._verify2(f,c);var m=f.sub(c);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},s.prototype.isub=function(f,c){this._verify2(f,c);var m=f.isub(c);return m.cmpn(0)<0&&m.iadd(this.m),m},s.prototype.shl=function(f,c){return this._verify1(f),this.imod(f.ushln(c))},s.prototype.imul=function(f,c){return this._verify2(f,c),this.imod(f.imul(c))},s.prototype.mul=function(f,c){return this._verify2(f,c),this.imod(f.mul(c))},s.prototype.isqr=function(f){return this.imul(f,f.clone())},s.prototype.sqr=function(f){return this.mul(f,f)},s.prototype.sqrt=function(f){if(f.isZero())return f.clone();var c=this.m.andln(3);if(r(c%2===1),c===3){var m=this.m.add(new i(1)).iushrn(2);return this.pow(f,m)}for(var _=this.m.subn(1),d=0;!_.isZero()&&_.andln(1)===0;)d++,_.iushrn(1);r(!_.isZero());var a=new i(1).toRed(this),p=a.redNeg(),M=this.m.subn(1).iushrn(1),x=this.m.bitLength();for(x=new i(2*x*x).toRed(this);this.pow(x,M).cmp(p)!==0;)x.redIAdd(p);for(var E=this.pow(x,_),N=this.pow(f,_.addn(1).iushrn(1)),C=this.pow(f,_),U=d;C.cmp(a)!==0;){for(var Re=C,F=0;Re.cmp(a)!==0;F++)Re=Re.redSqr();r(F<U);var q=this.pow(E,new i(1).iushln(U-F-1));N=N.redMul(q),E=q.redSqr(),C=C.redMul(E),U=F}return N},s.prototype.invm=function(f){var c=f._invmp(this.m);return c.negative!==0?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},s.prototype.pow=function(f,c){if(c.isZero())return new i(1).toRed(this);if(c.cmpn(1)===0)return f.clone();var m=4,_=new Array(1<<m);_[0]=new i(1).toRed(this),_[1]=f;for(var d=2;d<_.length;d++)_[d]=this.mul(_[d-1],f);var a=_[0],p=0,M=0,x=c.bitLength()%26;for(x===0&&(x=26),d=c.length-1;d>=0;d--){for(var E=c.words[d],N=x-1;N>=0;N--){var C=E>>N&1;if(a!==_[0]&&(a=this.sqr(a)),C===0&&p===0){M=0;continue}p<<=1,p|=C,M++,!(M!==m&&(d!==0||N!==0))&&(a=this.mul(a,_[p]),M=0,p=0)}x=26}return a},s.prototype.convertTo=function(f){var c=f.umod(this.m);return c===f?c.clone():c},s.prototype.convertFrom=function(f){var c=f.clone();return c.red=null,c},i.mont=function(f){return new l(f)};function l(u){s.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(l,s),l.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},l.prototype.convertFrom=function(f){var c=this.imod(f.mul(this.rinv));return c.red=null,c},l.prototype.imul=function(f,c){if(f.isZero()||c.isZero())return f.words[0]=0,f.length=1,f;var m=f.imul(c),_=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=m.isub(_).iushrn(this.shift),a=d;return d.cmp(this.m)>=0?a=d.isub(this.m):d.cmpn(0)<0&&(a=d.iadd(this.m)),a._forceRed(this)},l.prototype.mul=function(f,c){if(f.isZero()||c.isZero())return new i(0)._forceRed(this);var m=f.mul(c),_=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=m.isub(_).iushrn(this.shift),a=d;return d.cmp(this.m)>=0?a=d.isub(this.m):d.cmpn(0)<0&&(a=d.iadd(this.m)),a._forceRed(this)},l.prototype.invm=function(f){var c=this.imod(f._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(typeof JM>"u"||JM,iL)});var kg=I((qXe,oL)=>{"use strict";b();var Qc=wg(),QSe=wf(),e8e=rt().Buffer;function sL(e){var t=e.modulus.byteLength(),r;do r=new Qc(QSe(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function t8e(e){var t=sL(e),r=t.toRed(Qc.mont(e.modulus)).redPow(new Qc(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function aL(e,t){var r=t8e(t),n=t.modulus.byteLength(),i=new Qc(e).mul(r.blinder).umod(t.modulus),o=i.toRed(Qc.mont(t.prime1)),h=i.toRed(Qc.mont(t.prime2)),g=t.coefficient,v=t.prime1,w=t.prime2,k=o.redPow(t.exponent1).fromRed(),A=h.redPow(t.exponent2).fromRed(),R=k.isub(A).imul(g).umod(v).imul(w);return A.iadd(R).imul(r.unblinder).umod(t.modulus).toArrayLike(e8e,"be",n)}aL.getr=sL;oL.exports=aL});var lL=I((GXe,r8e)=>{r8e.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var Vs=I((fL,QM)=>{b();(function(e,t){"use strict";function r(y,s){if(!y)throw new Error(s||"Assertion failed")}function n(y,s){y.super_=s;var l=function(){};l.prototype=s.prototype,y.prototype=new l,y.prototype.constructor=y}function i(y,s,l){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(y||0,s||10,l||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ol().Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,u){if(typeof s=="number")return this._initNumber(s,l,u);if(typeof s=="object")return this._initArray(s,l,u);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(l===16?this._parseHex(s,f,u):(this._parseBase(s,l,f),u==="le"&&this._initArray(this.toArray(),l,u)))},i.prototype._initNumber=function(s,l,u){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),l,u)},i.prototype._initArray=function(s,l,u){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,m,_=0;if(u==="be")for(f=s.length-1,c=0;f>=0;f-=3)m=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);else if(u==="le")for(f=0,c=0;f<s.length;f+=3)m=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);return this.strip()};function h(y,s){var l=y.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(y,s,l){var u=h(y,l);return l-1>=s&&(u|=h(y,l-1)<<4),u}i.prototype._parseHex=function(s,l,u){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,m=0,_;if(u==="be")for(f=s.length-1;f>=l;f-=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8;else{var d=s.length-l;for(f=d%2===0?l+1:l;f<s.length;f+=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8}this.strip()};function v(y,s,l,u){for(var f=0,c=Math.min(y.length,l),m=s;m<c;m++){var _=y.charCodeAt(m)-48;f*=u,_>=49?f+=_-49+10:_>=17?f+=_-17+10:f+=_}return f}i.prototype._parseBase=function(s,l,u){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=l)f++;f--,c=c/l|0;for(var m=s.length-u,_=m%f,d=Math.min(m,m-_)+u,a=0,p=u;p<d;p+=f)a=v(s,p,p+f,l),this.imuln(c),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(_!==0){var M=1;for(a=v(s,p,s.length,l),p=0;p<_;p++)M*=l;this.imuln(M),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","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"],k=[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],A=[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];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var u;if(s===16||s==="hex"){u="";for(var f=0,c=0,m=0;m<this.length;m++){var _=this.words[m],d=((_<<f|c)&16777215).toString(16);c=_>>>24-f&16777215,f+=2,f>=26&&(f-=26,m--),c!==0||m!==this.length-1?u=w[6-d.length]+d+u:u=d+u}for(c!==0&&(u=c.toString(16)+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(s===(s|0)&&s>=2&&s<=36){var a=k[s],p=A[s];u="";var M=this.clone();for(M.negative=0;!M.isZero();){var x=M.modn(p).toString(s);M=M.idivn(p),M.isZero()?u=x+u:u=w[a-x.length]+x+u}for(this.isZero()&&(u="0"+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,u){var f=this.byteLength(),c=u||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var m=l==="le",_=new s(c),d,a,p=this.clone();if(m){for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[a]=d;for(;a<c;a++)_[a]=0}else{for(a=0;a<c-f;a++)_[a]=0;for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[c-a-1]=d}return _},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,u=0;return l>=4096&&(u+=13,l>>>=13),l>=64&&(u+=7,l>>>=7),l>=8&&(u+=4,l>>>=4),l>=2&&(u+=2,l>>>=2),u+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,u=0;return(l&8191)===0&&(u+=13,l>>>=13),(l&127)===0&&(u+=7,l>>>=7),(l&15)===0&&(u+=4,l>>>=4),(l&3)===0&&(u+=2,l>>>=2),(l&1)===0&&u++,u},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function R(y){for(var s=new Array(y.bitLength()),l=0;l<s.length;l++){var u=l/26|0,f=l%26;s[l]=(y.words[u]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var u=this._zeroBits(this.words[l]);if(s+=u,u!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var u=0;u<l.length;u++)this.words[u]=this.words[u]&s.words[u];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,u;this.length>s.length?(l=this,u=s):(l=s,u=this);for(var f=0;f<u.length;f++)this.words[f]=l.words[f]^u.words[f];if(this!==l)for(;f<l.length;f++)this.words[f]=l.words[f];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,u=s%26;this._expand(l),u>0&&l--;for(var f=0;f<l;f++)this.words[f]=~this.words[f]&67108863;return u>0&&(this.words[f]=~this.words[f]&67108863>>26-u),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var u=s/26|0,f=s%26;return this._expand(u+1),l?this.words[u]=this.words[u]|1<<f:this.words[u]=this.words[u]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var u,f;this.length>s.length?(u=this,f=s):(u=s,f=this);for(var c=0,m=0;m<f.length;m++)l=(u.words[m]|0)+(f.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;for(;c!==0&&m<u.length;m++)l=(u.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;if(this.length=u.length,c!==0)this.words[this.length]=c,this.length++;else if(u!==this)for(;m<u.length;m++)this.words[m]=u.words[m];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var u=this.cmp(s);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;u>0?(f=this,c=s):(f=s,c=this);for(var m=0,_=0;_<c.length;_++)l=(f.words[_]|0)-(c.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;for(;m!==0&&_<f.length;_++)l=(f.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;if(m===0&&_<f.length&&f!==this)for(;_<f.length;_++)this.words[_]=f.words[_];return this.length=Math.max(this.length,_),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function O(y,s,l){l.negative=s.negative^y.negative;var u=y.length+s.length|0;l.length=u,u=u-1|0;var f=y.words[0]|0,c=s.words[0]|0,m=f*c,_=m&67108863,d=m/67108864|0;l.words[0]=_;for(var a=1;a<u;a++){for(var p=d>>>26,M=d&67108863,x=Math.min(a,s.length-1),E=Math.max(0,a-y.length+1);E<=x;E++){var N=a-E|0;f=y.words[N]|0,c=s.words[E]|0,m=f*c+M,p+=m/67108864|0,M=m&67108863}l.words[a]=M|0,d=p|0}return d!==0?l.words[a]=d|0:l.length--,l.strip()}var B=function(s,l,u){var f=s.words,c=l.words,m=u.words,_=0,d,a,p,M=f[0]|0,x=M&8191,E=M>>>13,N=f[1]|0,C=N&8191,U=N>>>13,Re=f[2]|0,F=Re&8191,q=Re>>>13,ft=f[3]|0,V=ft&8191,W=ft>>>13,wt=f[4]|0,$=wt&8191,Y=wt>>>13,wr=f[5]|0,Z=wr&8191,J=wr>>>13,kr=f[6]|0,Q=kr&8191,ee=kr>>>13,Mr=f[7]|0,te=Mr&8191,re=Mr>>>13,Ar=f[8]|0,ne=Ar&8191,ie=Ar>>>13,Er=f[9]|0,se=Er&8191,ae=Er>>>13,Sr=c[0]|0,oe=Sr&8191,le=Sr>>>13,Tr=c[1]|0,fe=Tr&8191,ue=Tr>>>13,Rr=c[2]|0,ce=Rr&8191,he=Rr>>>13,Or=c[3]|0,de=Or&8191,pe=Or>>>13,Ir=c[4]|0,me=Ir&8191,ye=Ir>>>13,Nr=c[5]|0,ge=Nr&8191,_e=Nr>>>13,Br=c[6]|0,ve=Br&8191,be=Br>>>13,Cr=c[7]|0,xe=Cr&8191,we=Cr>>>13,Ur=c[8]|0,ke=Ur&8191,Me=Ur>>>13,Dr=c[9]|0,Ae=Dr&8191,Ee=Dr>>>13;u.negative=s.negative^l.negative,u.length=19,d=Math.imul(x,oe),a=Math.imul(x,le),a=a+Math.imul(E,oe)|0,p=Math.imul(E,le);var jt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(jt>>>26)|0,jt&=67108863,d=Math.imul(C,oe),a=Math.imul(C,le),a=a+Math.imul(U,oe)|0,p=Math.imul(U,le),d=d+Math.imul(x,fe)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(E,fe)|0,p=p+Math.imul(E,ue)|0;var Je=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Je>>>26)|0,Je&=67108863,d=Math.imul(F,oe),a=Math.imul(F,le),a=a+Math.imul(q,oe)|0,p=Math.imul(q,le),d=d+Math.imul(C,fe)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(U,fe)|0,p=p+Math.imul(U,ue)|0,d=d+Math.imul(x,ce)|0,a=a+Math.imul(x,he)|0,a=a+Math.imul(E,ce)|0,p=p+Math.imul(E,he)|0;var Qe=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,d=Math.imul(V,oe),a=Math.imul(V,le),a=a+Math.imul(W,oe)|0,p=Math.imul(W,le),d=d+Math.imul(F,fe)|0,a=a+Math.imul(F,ue)|0,a=a+Math.imul(q,fe)|0,p=p+Math.imul(q,ue)|0,d=d+Math.imul(C,ce)|0,a=a+Math.imul(C,he)|0,a=a+Math.imul(U,ce)|0,p=p+Math.imul(U,he)|0,d=d+Math.imul(x,de)|0,a=a+Math.imul(x,pe)|0,a=a+Math.imul(E,de)|0,p=p+Math.imul(E,pe)|0;var St=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(St>>>26)|0,St&=67108863,d=Math.imul($,oe),a=Math.imul($,le),a=a+Math.imul(Y,oe)|0,p=Math.imul(Y,le),d=d+Math.imul(V,fe)|0,a=a+Math.imul(V,ue)|0,a=a+Math.imul(W,fe)|0,p=p+Math.imul(W,ue)|0,d=d+Math.imul(F,ce)|0,a=a+Math.imul(F,he)|0,a=a+Math.imul(q,ce)|0,p=p+Math.imul(q,he)|0,d=d+Math.imul(C,de)|0,a=a+Math.imul(C,pe)|0,a=a+Math.imul(U,de)|0,p=p+Math.imul(U,pe)|0,d=d+Math.imul(x,me)|0,a=a+Math.imul(x,ye)|0,a=a+Math.imul(E,me)|0,p=p+Math.imul(E,ye)|0;var Tt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(Z,oe),a=Math.imul(Z,le),a=a+Math.imul(J,oe)|0,p=Math.imul(J,le),d=d+Math.imul($,fe)|0,a=a+Math.imul($,ue)|0,a=a+Math.imul(Y,fe)|0,p=p+Math.imul(Y,ue)|0,d=d+Math.imul(V,ce)|0,a=a+Math.imul(V,he)|0,a=a+Math.imul(W,ce)|0,p=p+Math.imul(W,he)|0,d=d+Math.imul(F,de)|0,a=a+Math.imul(F,pe)|0,a=a+Math.imul(q,de)|0,p=p+Math.imul(q,pe)|0,d=d+Math.imul(C,me)|0,a=a+Math.imul(C,ye)|0,a=a+Math.imul(U,me)|0,p=p+Math.imul(U,ye)|0,d=d+Math.imul(x,ge)|0,a=a+Math.imul(x,_e)|0,a=a+Math.imul(E,ge)|0,p=p+Math.imul(E,_e)|0;var Rt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,d=Math.imul(Q,oe),a=Math.imul(Q,le),a=a+Math.imul(ee,oe)|0,p=Math.imul(ee,le),d=d+Math.imul(Z,fe)|0,a=a+Math.imul(Z,ue)|0,a=a+Math.imul(J,fe)|0,p=p+Math.imul(J,ue)|0,d=d+Math.imul($,ce)|0,a=a+Math.imul($,he)|0,a=a+Math.imul(Y,ce)|0,p=p+Math.imul(Y,he)|0,d=d+Math.imul(V,de)|0,a=a+Math.imul(V,pe)|0,a=a+Math.imul(W,de)|0,p=p+Math.imul(W,pe)|0,d=d+Math.imul(F,me)|0,a=a+Math.imul(F,ye)|0,a=a+Math.imul(q,me)|0,p=p+Math.imul(q,ye)|0,d=d+Math.imul(C,ge)|0,a=a+Math.imul(C,_e)|0,a=a+Math.imul(U,ge)|0,p=p+Math.imul(U,_e)|0,d=d+Math.imul(x,ve)|0,a=a+Math.imul(x,be)|0,a=a+Math.imul(E,ve)|0,p=p+Math.imul(E,be)|0;var Ot=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,d=Math.imul(te,oe),a=Math.imul(te,le),a=a+Math.imul(re,oe)|0,p=Math.imul(re,le),d=d+Math.imul(Q,fe)|0,a=a+Math.imul(Q,ue)|0,a=a+Math.imul(ee,fe)|0,p=p+Math.imul(ee,ue)|0,d=d+Math.imul(Z,ce)|0,a=a+Math.imul(Z,he)|0,a=a+Math.imul(J,ce)|0,p=p+Math.imul(J,he)|0,d=d+Math.imul($,de)|0,a=a+Math.imul($,pe)|0,a=a+Math.imul(Y,de)|0,p=p+Math.imul(Y,pe)|0,d=d+Math.imul(V,me)|0,a=a+Math.imul(V,ye)|0,a=a+Math.imul(W,me)|0,p=p+Math.imul(W,ye)|0,d=d+Math.imul(F,ge)|0,a=a+Math.imul(F,_e)|0,a=a+Math.imul(q,ge)|0,p=p+Math.imul(q,_e)|0,d=d+Math.imul(C,ve)|0,a=a+Math.imul(C,be)|0,a=a+Math.imul(U,ve)|0,p=p+Math.imul(U,be)|0,d=d+Math.imul(x,xe)|0,a=a+Math.imul(x,we)|0,a=a+Math.imul(E,xe)|0,p=p+Math.imul(E,we)|0;var It=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(ne,oe),a=Math.imul(ne,le),a=a+Math.imul(ie,oe)|0,p=Math.imul(ie,le),d=d+Math.imul(te,fe)|0,a=a+Math.imul(te,ue)|0,a=a+Math.imul(re,fe)|0,p=p+Math.imul(re,ue)|0,d=d+Math.imul(Q,ce)|0,a=a+Math.imul(Q,he)|0,a=a+Math.imul(ee,ce)|0,p=p+Math.imul(ee,he)|0,d=d+Math.imul(Z,de)|0,a=a+Math.imul(Z,pe)|0,a=a+Math.imul(J,de)|0,p=p+Math.imul(J,pe)|0,d=d+Math.imul($,me)|0,a=a+Math.imul($,ye)|0,a=a+Math.imul(Y,me)|0,p=p+Math.imul(Y,ye)|0,d=d+Math.imul(V,ge)|0,a=a+Math.imul(V,_e)|0,a=a+Math.imul(W,ge)|0,p=p+Math.imul(W,_e)|0,d=d+Math.imul(F,ve)|0,a=a+Math.imul(F,be)|0,a=a+Math.imul(q,ve)|0,p=p+Math.imul(q,be)|0,d=d+Math.imul(C,xe)|0,a=a+Math.imul(C,we)|0,a=a+Math.imul(U,xe)|0,p=p+Math.imul(U,we)|0,d=d+Math.imul(x,ke)|0,a=a+Math.imul(x,Me)|0,a=a+Math.imul(E,ke)|0,p=p+Math.imul(E,Me)|0;var Nt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,d=Math.imul(se,oe),a=Math.imul(se,le),a=a+Math.imul(ae,oe)|0,p=Math.imul(ae,le),d=d+Math.imul(ne,fe)|0,a=a+Math.imul(ne,ue)|0,a=a+Math.imul(ie,fe)|0,p=p+Math.imul(ie,ue)|0,d=d+Math.imul(te,ce)|0,a=a+Math.imul(te,he)|0,a=a+Math.imul(re,ce)|0,p=p+Math.imul(re,he)|0,d=d+Math.imul(Q,de)|0,a=a+Math.imul(Q,pe)|0,a=a+Math.imul(ee,de)|0,p=p+Math.imul(ee,pe)|0,d=d+Math.imul(Z,me)|0,a=a+Math.imul(Z,ye)|0,a=a+Math.imul(J,me)|0,p=p+Math.imul(J,ye)|0,d=d+Math.imul($,ge)|0,a=a+Math.imul($,_e)|0,a=a+Math.imul(Y,ge)|0,p=p+Math.imul(Y,_e)|0,d=d+Math.imul(V,ve)|0,a=a+Math.imul(V,be)|0,a=a+Math.imul(W,ve)|0,p=p+Math.imul(W,be)|0,d=d+Math.imul(F,xe)|0,a=a+Math.imul(F,we)|0,a=a+Math.imul(q,xe)|0,p=p+Math.imul(q,we)|0,d=d+Math.imul(C,ke)|0,a=a+Math.imul(C,Me)|0,a=a+Math.imul(U,ke)|0,p=p+Math.imul(U,Me)|0,d=d+Math.imul(x,Ae)|0,a=a+Math.imul(x,Ee)|0,a=a+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ee)|0;var Bt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,d=Math.imul(se,fe),a=Math.imul(se,ue),a=a+Math.imul(ae,fe)|0,p=Math.imul(ae,ue),d=d+Math.imul(ne,ce)|0,a=a+Math.imul(ne,he)|0,a=a+Math.imul(ie,ce)|0,p=p+Math.imul(ie,he)|0,d=d+Math.imul(te,de)|0,a=a+Math.imul(te,pe)|0,a=a+Math.imul(re,de)|0,p=p+Math.imul(re,pe)|0,d=d+Math.imul(Q,me)|0,a=a+Math.imul(Q,ye)|0,a=a+Math.imul(ee,me)|0,p=p+Math.imul(ee,ye)|0,d=d+Math.imul(Z,ge)|0,a=a+Math.imul(Z,_e)|0,a=a+Math.imul(J,ge)|0,p=p+Math.imul(J,_e)|0,d=d+Math.imul($,ve)|0,a=a+Math.imul($,be)|0,a=a+Math.imul(Y,ve)|0,p=p+Math.imul(Y,be)|0,d=d+Math.imul(V,xe)|0,a=a+Math.imul(V,we)|0,a=a+Math.imul(W,xe)|0,p=p+Math.imul(W,we)|0,d=d+Math.imul(F,ke)|0,a=a+Math.imul(F,Me)|0,a=a+Math.imul(q,ke)|0,p=p+Math.imul(q,Me)|0,d=d+Math.imul(C,Ae)|0,a=a+Math.imul(C,Ee)|0,a=a+Math.imul(U,Ae)|0,p=p+Math.imul(U,Ee)|0;var Ct=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,d=Math.imul(se,ce),a=Math.imul(se,he),a=a+Math.imul(ae,ce)|0,p=Math.imul(ae,he),d=d+Math.imul(ne,de)|0,a=a+Math.imul(ne,pe)|0,a=a+Math.imul(ie,de)|0,p=p+Math.imul(ie,pe)|0,d=d+Math.imul(te,me)|0,a=a+Math.imul(te,ye)|0,a=a+Math.imul(re,me)|0,p=p+Math.imul(re,ye)|0,d=d+Math.imul(Q,ge)|0,a=a+Math.imul(Q,_e)|0,a=a+Math.imul(ee,ge)|0,p=p+Math.imul(ee,_e)|0,d=d+Math.imul(Z,ve)|0,a=a+Math.imul(Z,be)|0,a=a+Math.imul(J,ve)|0,p=p+Math.imul(J,be)|0,d=d+Math.imul($,xe)|0,a=a+Math.imul($,we)|0,a=a+Math.imul(Y,xe)|0,p=p+Math.imul(Y,we)|0,d=d+Math.imul(V,ke)|0,a=a+Math.imul(V,Me)|0,a=a+Math.imul(W,ke)|0,p=p+Math.imul(W,Me)|0,d=d+Math.imul(F,Ae)|0,a=a+Math.imul(F,Ee)|0,a=a+Math.imul(q,Ae)|0,p=p+Math.imul(q,Ee)|0;var Ut=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,d=Math.imul(se,de),a=Math.imul(se,pe),a=a+Math.imul(ae,de)|0,p=Math.imul(ae,pe),d=d+Math.imul(ne,me)|0,a=a+Math.imul(ne,ye)|0,a=a+Math.imul(ie,me)|0,p=p+Math.imul(ie,ye)|0,d=d+Math.imul(te,ge)|0,a=a+Math.imul(te,_e)|0,a=a+Math.imul(re,ge)|0,p=p+Math.imul(re,_e)|0,d=d+Math.imul(Q,ve)|0,a=a+Math.imul(Q,be)|0,a=a+Math.imul(ee,ve)|0,p=p+Math.imul(ee,be)|0,d=d+Math.imul(Z,xe)|0,a=a+Math.imul(Z,we)|0,a=a+Math.imul(J,xe)|0,p=p+Math.imul(J,we)|0,d=d+Math.imul($,ke)|0,a=a+Math.imul($,Me)|0,a=a+Math.imul(Y,ke)|0,p=p+Math.imul(Y,Me)|0,d=d+Math.imul(V,Ae)|0,a=a+Math.imul(V,Ee)|0,a=a+Math.imul(W,Ae)|0,p=p+Math.imul(W,Ee)|0;var Dt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,d=Math.imul(se,me),a=Math.imul(se,ye),a=a+Math.imul(ae,me)|0,p=Math.imul(ae,ye),d=d+Math.imul(ne,ge)|0,a=a+Math.imul(ne,_e)|0,a=a+Math.imul(ie,ge)|0,p=p+Math.imul(ie,_e)|0,d=d+Math.imul(te,ve)|0,a=a+Math.imul(te,be)|0,a=a+Math.imul(re,ve)|0,p=p+Math.imul(re,be)|0,d=d+Math.imul(Q,xe)|0,a=a+Math.imul(Q,we)|0,a=a+Math.imul(ee,xe)|0,p=p+Math.imul(ee,we)|0,d=d+Math.imul(Z,ke)|0,a=a+Math.imul(Z,Me)|0,a=a+Math.imul(J,ke)|0,p=p+Math.imul(J,Me)|0,d=d+Math.imul($,Ae)|0,a=a+Math.imul($,Ee)|0,a=a+Math.imul(Y,Ae)|0,p=p+Math.imul(Y,Ee)|0;var Pt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(se,ge),a=Math.imul(se,_e),a=a+Math.imul(ae,ge)|0,p=Math.imul(ae,_e),d=d+Math.imul(ne,ve)|0,a=a+Math.imul(ne,be)|0,a=a+Math.imul(ie,ve)|0,p=p+Math.imul(ie,be)|0,d=d+Math.imul(te,xe)|0,a=a+Math.imul(te,we)|0,a=a+Math.imul(re,xe)|0,p=p+Math.imul(re,we)|0,d=d+Math.imul(Q,ke)|0,a=a+Math.imul(Q,Me)|0,a=a+Math.imul(ee,ke)|0,p=p+Math.imul(ee,Me)|0,d=d+Math.imul(Z,Ae)|0,a=a+Math.imul(Z,Ee)|0,a=a+Math.imul(J,Ae)|0,p=p+Math.imul(J,Ee)|0;var Ft=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(se,ve),a=Math.imul(se,be),a=a+Math.imul(ae,ve)|0,p=Math.imul(ae,be),d=d+Math.imul(ne,xe)|0,a=a+Math.imul(ne,we)|0,a=a+Math.imul(ie,xe)|0,p=p+Math.imul(ie,we)|0,d=d+Math.imul(te,ke)|0,a=a+Math.imul(te,Me)|0,a=a+Math.imul(re,ke)|0,p=p+Math.imul(re,Me)|0,d=d+Math.imul(Q,Ae)|0,a=a+Math.imul(Q,Ee)|0,a=a+Math.imul(ee,Ae)|0,p=p+Math.imul(ee,Ee)|0;var qt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(qt>>>26)|0,qt&=67108863,d=Math.imul(se,xe),a=Math.imul(se,we),a=a+Math.imul(ae,xe)|0,p=Math.imul(ae,we),d=d+Math.imul(ne,ke)|0,a=a+Math.imul(ne,Me)|0,a=a+Math.imul(ie,ke)|0,p=p+Math.imul(ie,Me)|0,d=d+Math.imul(te,Ae)|0,a=a+Math.imul(te,Ee)|0,a=a+Math.imul(re,Ae)|0,p=p+Math.imul(re,Ee)|0;var Lt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,d=Math.imul(se,ke),a=Math.imul(se,Me),a=a+Math.imul(ae,ke)|0,p=Math.imul(ae,Me),d=d+Math.imul(ne,Ae)|0,a=a+Math.imul(ne,Ee)|0,a=a+Math.imul(ie,Ae)|0,p=p+Math.imul(ie,Ee)|0;var Gt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,d=Math.imul(se,Ae),a=Math.imul(se,Ee),a=a+Math.imul(ae,Ae)|0,p=Math.imul(ae,Ee);var Kt=(_+d|0)+((a&8191)<<13)|0;return _=(p+(a>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,m[0]=jt,m[1]=Je,m[2]=Qe,m[3]=St,m[4]=Tt,m[5]=Rt,m[6]=Ot,m[7]=It,m[8]=Nt,m[9]=Bt,m[10]=Ct,m[11]=Ut,m[12]=Dt,m[13]=Pt,m[14]=Ft,m[15]=qt,m[16]=Lt,m[17]=Gt,m[18]=Kt,_!==0&&(m[19]=_,u.length++),u};Math.imul||(B=O);function L(y,s,l){l.negative=s.negative^y.negative,l.length=y.length+s.length;for(var u=0,f=0,c=0;c<l.length-1;c++){var m=f;f=0;for(var _=u&67108863,d=Math.min(c,s.length-1),a=Math.max(0,c-y.length+1);a<=d;a++){var p=c-a,M=y.words[p]|0,x=s.words[a]|0,E=M*x,N=E&67108863;m=m+(E/67108864|0)|0,N=N+_|0,_=N&67108863,m=m+(N>>>26)|0,f+=m>>>26,m&=67108863}l.words[c]=_,u=m,m=f}return u!==0?l.words[c]=u:l.length--,l.strip()}function X(y,s,l){var u=new P;return u.mulp(y,s,l)}i.prototype.mulTo=function(s,l){var u,f=this.length+s.length;return this.length===10&&s.length===10?u=B(this,s,l):f<63?u=O(this,s,l):f<1024?u=L(this,s,l):u=X(this,s,l),u};function P(y,s){this.x=y,this.y=s}P.prototype.makeRBT=function(s){for(var l=new Array(s),u=i.prototype._countBits(s)-1,f=0;f<s;f++)l[f]=this.revBin(f,u,s);return l},P.prototype.revBin=function(s,l,u){if(s===0||s===u-1)return s;for(var f=0,c=0;c<l;c++)f|=(s&1)<<l-c-1,s>>=1;return f},P.prototype.permute=function(s,l,u,f,c,m){for(var _=0;_<m;_++)f[_]=l[s[_]],c[_]=u[s[_]]},P.prototype.transform=function(s,l,u,f,c,m){this.permute(m,s,l,u,f,c);for(var _=1;_<c;_<<=1)for(var d=_<<1,a=Math.cos(2*Math.PI/d),p=Math.sin(2*Math.PI/d),M=0;M<c;M+=d)for(var x=a,E=p,N=0;N<_;N++){var C=u[M+N],U=f[M+N],Re=u[M+N+_],F=f[M+N+_],q=x*Re-E*F;F=x*F+E*Re,Re=q,u[M+N]=C+Re,f[M+N]=U+F,u[M+N+_]=C-Re,f[M+N+_]=U-F,N!==d&&(q=a*x-p*E,E=a*E+p*x,x=q)}},P.prototype.guessLen13b=function(s,l){var u=Math.max(l,s)|1,f=u&1,c=0;for(u=u/2|0;u;u=u>>>1)c++;return 1<<c+1+f},P.prototype.conjugate=function(s,l,u){if(!(u<=1))for(var f=0;f<u/2;f++){var c=s[f];s[f]=s[u-f-1],s[u-f-1]=c,c=l[f],l[f]=-l[u-f-1],l[u-f-1]=-c}},P.prototype.normalize13b=function(s,l){for(var u=0,f=0;f<l/2;f++){var c=Math.round(s[2*f+1]/l)*8192+Math.round(s[2*f]/l)+u;s[f]=c&67108863,c<67108864?u=0:u=c/67108864|0}return s},P.prototype.convert13b=function(s,l,u,f){for(var c=0,m=0;m<l;m++)c=c+(s[m]|0),u[2*m]=c&8191,c=c>>>13,u[2*m+1]=c&8191,c=c>>>13;for(m=2*l;m<f;++m)u[m]=0;r(c===0),r((c&-8192)===0)},P.prototype.stub=function(s){for(var l=new Array(s),u=0;u<s;u++)l[u]=0;return l},P.prototype.mulp=function(s,l,u){var f=2*this.guessLen13b(s.length,l.length),c=this.makeRBT(f),m=this.stub(f),_=new Array(f),d=new Array(f),a=new Array(f),p=new Array(f),M=new Array(f),x=new Array(f),E=u.words;E.length=f,this.convert13b(s.words,s.length,_,f),this.convert13b(l.words,l.length,p,f),this.transform(_,m,d,a,f,c),this.transform(p,m,M,x,f,c);for(var N=0;N<f;N++){var C=d[N]*M[N]-a[N]*x[N];a[N]=d[N]*x[N]+a[N]*M[N],d[N]=C}return this.conjugate(d,a,f),this.transform(d,a,E,m,f,c),this.conjugate(E,m,f),this.normalize13b(E,f),u.negative=s.negative^l.negative,u.length=s.length+l.length,u.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),X(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,u=0;u<this.length;u++){var f=(this.words[u]|0)*s,c=(f&67108863)+(l&67108863);l>>=26,l+=f/67108864|0,l+=c>>>26,this.words[u]=c&67108863}return l!==0&&(this.words[u]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=R(s);if(l.length===0)return new i(1);for(var u=this,f=0;f<l.length&&l[f]===0;f++,u=u.sqr());if(++f<l.length)for(var c=u.sqr();f<l.length;f++,c=c.sqr())l[f]!==0&&(u=u.mul(c));return u},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=67108863>>>26-l<<26-l,c;if(l!==0){var m=0;for(c=0;c<this.length;c++){var _=this.words[c]&f,d=(this.words[c]|0)-_<<l;this.words[c]=d|m,m=_>>>26-l}m&&(this.words[c]=m,this.length++)}if(u!==0){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c<u;c++)this.words[c]=0;this.length+=u}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,u){r(typeof s=="number"&&s>=0);var f;l?f=(l-l%26)/26:f=0;var c=s%26,m=Math.min((s-c)/26,this.length),_=67108863^67108863>>>c<<c,d=u;if(f-=m,f=Math.max(0,f),d){for(var a=0;a<m;a++)d.words[a]=this.words[a];d.length=m}if(m!==0)if(this.length>m)for(this.length-=m,a=0;a<this.length;a++)this.words[a]=this.words[a+m];else this.words[0]=0,this.length=1;var p=0;for(a=this.length-1;a>=0&&(p!==0||a>=f);a--){var M=this.words[a]|0;this.words[a]=p<<26-c|M>>>c,p=M&_}return d&&p!==0&&(d.words[d.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,u){return r(this.negative===0),this.iushrn(s,l,u)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return!1;var c=this.words[u];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(l!==0&&u++,this.length=Math.min(u,this.length),l!==0){var f=67108863^67108863>>>l<<l;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,u){var f=s.length+u,c;this._expand(f);var m,_=0;for(c=0;c<s.length;c++){m=(this.words[c+u]|0)+_;var d=(s.words[c]|0)*l;m-=d&67108863,_=(m>>26)-(d/67108864|0),this.words[c+u]=m&67108863}for(;c<this.length-u;c++)m=(this.words[c+u]|0)+_,_=m>>26,this.words[c+u]=m&67108863;if(_===0)return this.strip();for(r(_===-1),_=0,c=0;c<this.length;c++)m=-(this.words[c]|0)+_,_=m>>26,this.words[c]=m&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var u=this.length-s.length,f=this.clone(),c=s,m=c.words[c.length-1]|0,_=this._countBits(m);u=26-_,u!==0&&(c=c.ushln(u),f.iushln(u),m=c.words[c.length-1]|0);var d=f.length-c.length,a;if(l!=="mod"){a=new i(null),a.length=d+1,a.words=new Array(a.length);for(var p=0;p<a.length;p++)a.words[p]=0}var M=f.clone()._ishlnsubmul(c,1,d);M.negative===0&&(f=M,a&&(a.words[d]=1));for(var x=d-1;x>=0;x--){var E=(f.words[c.length+x]|0)*67108864+(f.words[c.length+x-1]|0);for(E=Math.min(E/m|0,67108863),f._ishlnsubmul(c,E,x);f.negative!==0;)E--,f.negative=0,f._ishlnsubmul(c,1,x),f.isZero()||(f.negative^=1);a&&(a.words[x]=E)}return a&&a.strip(),f.strip(),l!=="div"&&u!==0&&f.iushrn(u),{div:a||null,mod:f}},i.prototype.divmod=function(s,l,u){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,m;return this.negative!==0&&s.negative===0?(m=this.neg().divmod(s,l),l!=="mod"&&(f=m.div.neg()),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(m=this.divmod(s.neg(),l),l!=="mod"&&(f=m.div.neg()),{div:f,mod:m.mod}):(this.negative&s.negative)!==0?(m=this.neg().divmod(s.neg(),l),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.isub(s)),{div:m.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var u=l.div.negative!==0?l.mod.isub(s):l.mod,f=s.ushrn(1),c=s.andln(1),m=u.cmp(f);return m<0||c===1&&m===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,u=0,f=this.length-1;f>=0;f--)u=(l*u+(this.words[f]|0))%s;return u},i.prototype.idivn=function(s){r(s<=67108863);for(var l=0,u=this.length-1;u>=0;u--){var f=(this.words[u]|0)+l*67108864;this.words[u]=f/s|0,l=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=new i(0),_=new i(1),d=0;l.isEven()&&u.isEven();)l.iushrn(1),u.iushrn(1),++d;for(var a=u.clone(),p=l.clone();!l.isZero();){for(var M=0,x=1;(l.words[0]&x)===0&&M<26;++M,x<<=1);if(M>0)for(l.iushrn(M);M-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(a),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var E=0,N=1;(u.words[0]&N)===0&&E<26;++E,N<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(m.isOdd()||_.isOdd())&&(m.iadd(a),_.isub(p)),m.iushrn(1),_.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(m),c.isub(_)):(u.isub(l),m.isub(f),_.isub(c))}return{a:m,b:_,gcd:u.iushln(d)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=u.clone();l.cmpn(1)>0&&u.cmpn(1)>0;){for(var _=0,d=1;(l.words[0]&d)===0&&_<26;++_,d<<=1);if(_>0)for(l.iushrn(_);_-- >0;)f.isOdd()&&f.iadd(m),f.iushrn(1);for(var a=0,p=1;(u.words[0]&p)===0&&a<26;++a,p<<=1);if(a>0)for(u.iushrn(a);a-- >0;)c.isOdd()&&c.iadd(m),c.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(c)):(u.isub(l),c.isub(f))}var M;return l.cmpn(1)===0?M=f:M=c,M.cmpn(0)<0&&M.iadd(s),M},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),u=s.clone();l.negative=0,u.negative=0;for(var f=0;l.isEven()&&u.isEven();f++)l.iushrn(1),u.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=l.cmp(u);if(c<0){var m=l;l=u,u=m}else if(c===0||u.cmpn(1)===0)break;l.isub(u)}while(!0);return u.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return this._expand(u+1),this.words[u]|=f,this;for(var c=f,m=u;c!==0&&m<this.length;m++){var _=this.words[m]|0;_+=c,c=_>>>26,_&=67108863,this.words[m]=_}return c!==0&&(this.words[m]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var u;if(this.length>1)u=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;u=f===s?0:f<s?-1:1}return this.negative!==0?-u|0:u},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,u=this.length-1;u>=0;u--){var f=this.words[u]|0,c=s.words[u]|0;if(f!==c){f<c?l=-1:f>c&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new j(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var H={k256:null,p224:null,p192:null,p25519:null};function D(y,s){this.name=y,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},D.prototype.ireduce=function(s){var l=s,u;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),u=l.bitLength();while(u>this.n);var f=u<this.n?-1:l.ucmp(this.p);return f===0?(l.words[0]=0,l.length=1):f>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},D.prototype.split=function(s,l){s.iushrn(this.n,0,l)},D.prototype.imulK=function(s){return s.imul(this.k)};function Se(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Se,D),Se.prototype.split=function(s,l){for(var u=4194303,f=Math.min(s.length,9),c=0;c<f;c++)l.words[c]=s.words[c];if(l.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var m=s.words[9];for(l.words[l.length++]=m&u,c=10;c<s.length;c++){var _=s.words[c]|0;s.words[c-10]=(_&u)<<4|m>>>22,m=_}m>>>=22,s.words[c-10]=m,m===0&&s.length>10?s.length-=10:s.length-=9},Se.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,u=0;u<s.length;u++){var f=s.words[u]|0;l+=f*977,s.words[u]=l&67108863,l=f*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function De(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(De,D);function Ce(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Ce,D);function Ke(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Ke,D),Ke.prototype.imulK=function(s){for(var l=0,u=0;u<s.length;u++){var f=(s.words[u]|0)*19+l,c=f&67108863;f>>>=26,s.words[u]=c,l=f}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(H[s])return H[s];var l;if(s==="k256")l=new Se;else if(s==="p224")l=new De;else if(s==="p192")l=new Ce;else if(s==="p25519")l=new Ke;else throw new Error("Unknown prime "+s);return H[s]=l,l};function j(y){if(typeof y=="string"){var s=i._prime(y);this.m=s.p,this.prime=s}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}j.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},j.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},j.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},j.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},j.prototype.add=function(s,l){this._verify2(s,l);var u=s.add(l);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},j.prototype.iadd=function(s,l){this._verify2(s,l);var u=s.iadd(l);return u.cmp(this.m)>=0&&u.isub(this.m),u},j.prototype.sub=function(s,l){this._verify2(s,l);var u=s.sub(l);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},j.prototype.isub=function(s,l){this._verify2(s,l);var u=s.isub(l);return u.cmpn(0)<0&&u.iadd(this.m),u},j.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},j.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},j.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},j.prototype.isqr=function(s){return this.imul(s,s.clone())},j.prototype.sqr=function(s){return this.mul(s,s)},j.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var u=this.m.add(new i(1)).iushrn(2);return this.pow(s,u)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var m=new i(1).toRed(this),_=m.redNeg(),d=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new i(2*a*a).toRed(this);this.pow(a,d).cmp(_)!==0;)a.redIAdd(_);for(var p=this.pow(a,f),M=this.pow(s,f.addn(1).iushrn(1)),x=this.pow(s,f),E=c;x.cmp(m)!==0;){for(var N=x,C=0;N.cmp(m)!==0;C++)N=N.redSqr();r(C<E);var U=this.pow(p,new i(1).iushln(E-C-1));M=M.redMul(U),p=U.redSqr(),x=x.redMul(p),E=C}return M},j.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},j.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var u=4,f=new Array(1<<u);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var m=f[0],_=0,d=0,a=l.bitLength()%26;for(a===0&&(a=26),c=l.length-1;c>=0;c--){for(var p=l.words[c],M=a-1;M>=0;M--){var x=p>>M&1;if(m!==f[0]&&(m=this.sqr(m)),x===0&&_===0){d=0;continue}_<<=1,_|=x,d++,!(d!==u&&(c!==0||M!==0))&&(m=this.mul(m,f[_]),d=0,_=0)}a=26}return m},j.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},j.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new Be(s)};function Be(y){j.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Be,j),Be.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Be.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},Be.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var u=s.imul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var u=s.mul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof QM>"u"||QM,fL)});var e6=I(hL=>{"use strict";b();var Mg=hL;function n8e(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e!="string"){for(var n=0;n<e.length;n++)r[n]=e[n]|0;return r}if(t==="hex"){e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,h=i&255;o?r.push(o,h):r.push(h)}return r}Mg.toArray=n8e;function uL(e){return e.length===1?"0"+e:e}Mg.zero2=uL;function cL(e){for(var t="",r=0;r<e.length;r++)t+=uL(e[r].toString(16));return t}Mg.toHex=cL;Mg.encode=function(t,r){return r==="hex"?cL(t):t}});var vi=I(dL=>{"use strict";b();var ss=dL,i8e=Vs(),s8e=_i(),Ag=e6();ss.assert=s8e;ss.toArray=Ag.toArray;ss.zero2=Ag.zero2;ss.toHex=Ag.toHex;ss.encode=Ag.encode;function a8e(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1),i;for(i=0;i<n.length;i+=1)n[i]=0;var o=1<<t+1,h=e.clone();for(i=0;i<n.length;i++){var g,v=h.andln(o-1);h.isOdd()?(v>(o>>1)-1?g=(o>>1)-v:g=v,h.isubn(g)):g=0,n[i]=g,h.iushrn(1)}return n}ss.getNAF=a8e;function o8e(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0,o;e.cmpn(-n)>0||t.cmpn(-i)>0;){var h=e.andln(3)+n&3,g=t.andln(3)+i&3;h===3&&(h=-1),g===3&&(g=-1);var v;(h&1)===0?v=0:(o=e.andln(7)+n&7,(o===3||o===5)&&g===2?v=-h:v=h),r[0].push(v);var w;(g&1)===0?w=0:(o=t.andln(7)+i&7,(o===3||o===5)&&h===2?w=-g:w=g),r[1].push(w),2*n===v+1&&(n=1-n),2*i===w+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}ss.getJSF=o8e;function l8e(e,t,r){var n="_"+t;e.prototype[t]=function(){return this[n]!==void 0?this[n]:this[n]=r.call(this)}}ss.cachedProperty=l8e;function f8e(e){return typeof e=="string"?ss.toArray(e,"hex"):e}ss.parseBytes=f8e;function u8e(e){return new i8e(e,"hex","le")}ss.intFromLE=u8e});var ip=I((WXe,pL)=>{"use strict";b();var Lf=Vs(),np=vi(),Eg=np.getNAF,c8e=np.getJSF,Sg=np.assert;function fl(e,t){this.type=e,this.p=new Lf(t.p,16),this.red=t.prime?Lf.red(t.prime):Lf.mont(this.p),this.zero=new Lf(0).toRed(this.red),this.one=new Lf(1).toRed(this.red),this.two=new Lf(2).toRed(this.red),this.n=t.n&&new Lf(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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}pL.exports=fl;fl.prototype.point=function(){throw new Error("Not implemented")};fl.prototype.validate=function(){throw new Error("Not implemented")};fl.prototype._fixedNafMul=function(t,r){Sg(t.precomputed);var n=t._getDoubles(),i=Eg(r,1,this._bitLength),o=(1<<n.step+1)-(n.step%2===0?2:1);o/=3;var h=[],g,v;for(g=0;g<i.length;g+=n.step){v=0;for(var w=g+n.step-1;w>=g;w--)v=(v<<1)+i[w];h.push(v)}for(var k=this.jpoint(null,null,null),A=this.jpoint(null,null,null),R=o;R>0;R--){for(g=0;g<h.length;g++)v=h[g],v===R?A=A.mixedAdd(n.points[g]):v===-R&&(A=A.mixedAdd(n.points[g].neg()));k=k.add(A)}return k.toP()};fl.prototype._wnafMul=function(t,r){var n=4,i=t._getNAFPoints(n);n=i.wnd;for(var o=i.points,h=Eg(r,n,this._bitLength),g=this.jpoint(null,null,null),v=h.length-1;v>=0;v--){for(var w=0;v>=0&&h[v]===0;v--)w++;if(v>=0&&w++,g=g.dblp(w),v<0)break;var k=h[v];Sg(k!==0),t.type==="affine"?k>0?g=g.mixedAdd(o[k-1>>1]):g=g.mixedAdd(o[-k-1>>1].neg()):k>0?g=g.add(o[k-1>>1]):g=g.add(o[-k-1>>1].neg())}return t.type==="affine"?g.toP():g};fl.prototype._wnafMulAdd=function(t,r,n,i,o){var h=this._wnafT1,g=this._wnafT2,v=this._wnafT3,w=0,k,A,R;for(k=0;k<i;k++){R=r[k];var O=R._getNAFPoints(t);h[k]=O.wnd,g[k]=O.points}for(k=i-1;k>=1;k-=2){var B=k-1,L=k;if(h[B]!==1||h[L]!==1){v[B]=Eg(n[B],h[B],this._bitLength),v[L]=Eg(n[L],h[L],this._bitLength),w=Math.max(v[B].length,w),w=Math.max(v[L].length,w);continue}var X=[r[B],null,null,r[L]];r[B].y.cmp(r[L].y)===0?(X[1]=r[B].add(r[L]),X[2]=r[B].toJ().mixedAdd(r[L].neg())):r[B].y.cmp(r[L].y.redNeg())===0?(X[1]=r[B].toJ().mixedAdd(r[L]),X[2]=r[B].add(r[L].neg())):(X[1]=r[B].toJ().mixedAdd(r[L]),X[2]=r[B].toJ().mixedAdd(r[L].neg()));var P=[-3,-1,-5,-7,0,7,5,1,3],H=c8e(n[B],n[L]);for(w=Math.max(H[0].length,w),v[B]=new Array(w),v[L]=new Array(w),A=0;A<w;A++){var D=H[0][A]|0,Se=H[1][A]|0;v[B][A]=P[(D+1)*3+(Se+1)],v[L][A]=0,g[B]=X}}var De=this.jpoint(null,null,null),Ce=this._wnafT4;for(k=w;k>=0;k--){for(var Ke=0;k>=0;){var j=!0;for(A=0;A<i;A++)Ce[A]=v[A][k]|0,Ce[A]!==0&&(j=!1);if(!j)break;Ke++,k--}if(k>=0&&Ke++,De=De.dblp(Ke),k<0)break;for(A=0;A<i;A++){var Be=Ce[A];Be!==0&&(Be>0?R=g[A][Be-1>>1]:Be<0&&(R=g[A][-Be-1>>1].neg()),R.type==="affine"?De=De.mixedAdd(R):De=De.add(R))}}for(k=0;k<i;k++)g[k]=null;return o?De:De.toP()};function Di(e,t){this.curve=e,this.type=t,this.precomputed=null}fl.BasePoint=Di;Di.prototype.eq=function(){throw new Error("Not implemented")};Di.prototype.validate=function(){return this.curve.validate(this)};fl.prototype.decodePoint=function(t,r){t=np.toArray(t,r);var n=this.p.byteLength();if((t[0]===4||t[0]===6||t[0]===7)&&t.length-1===2*n){t[0]===6?Sg(t[t.length-1]%2===0):t[0]===7&&Sg(t[t.length-1]%2===1);var i=this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));return i}else if((t[0]===2||t[0]===3)&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),t[0]===3);throw new Error("Unknown point format")};Di.prototype.encodeCompressed=function(t){return this.encode(t,!0)};Di.prototype._encode=function(t){var r=this.curve.p.byteLength(),n=this.getX().toArray("be",r);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",r))};Di.prototype.encode=function(t,r){return np.encode(this._encode(r),t)};Di.prototype.precompute=function(t){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,t),r.beta=this._getBeta(),this.precomputed=r,this};Di.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((t.bitLength()+1)/r.step):!1};Di.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o<r;o+=t){for(var h=0;h<t;h++)i=i.dbl();n.push(i)}return{step:t,points:n}};Di.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],n=(1<<t)-1,i=n===1?null:this.dbl(),o=1;o<n;o++)r[o]=r[o-1].add(i);return{wnd:t,points:r}};Di.prototype._getBeta=function(){return null};Di.prototype.dblp=function(t){for(var r=this,n=0;n<t;n++)r=r.dbl();return r}});var yL=I(($Xe,mL)=>{"use strict";b();var h8e=vi(),yr=Vs(),t6=Ye(),e0=ip(),d8e=h8e.assert;function Pi(e){e0.call(this,"short",e),this.a=new yr(e.a,16).toRed(this.red),this.b=new yr(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}t6(Pi,e0);mL.exports=Pi;Pi.prototype._getEndomorphism=function(t){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,n;if(t.beta)r=new yr(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);r=i[0].cmp(i[1])<0?i[0]:i[1],r=r.toRed(this.red)}if(t.lambda)n=new yr(t.lambda,16);else{var o=this._getEndoRoots(this.n);this.g.mul(o[0]).x.cmp(this.g.x.redMul(r))===0?n=o[0]:(n=o[1],d8e(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0))}var h;return t.basis?h=t.basis.map(function(g){return{a:new yr(g.a,16),b:new yr(g.b,16)}}):h=this._getEndoBasis(n),{beta:r,lambda:n,basis:h}}};Pi.prototype._getEndoRoots=function(t){var r=t===this.p?this.red:yr.mont(t),n=new yr(2).toRed(r).redInvm(),i=n.redNeg(),o=new yr(3).toRed(r).redNeg().redSqrt().redMul(n),h=i.redAdd(o).fromRed(),g=i.redSub(o).fromRed();return[h,g]};Pi.prototype._getEndoBasis=function(t){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=t,i=this.n.clone(),o=new yr(1),h=new yr(0),g=new yr(0),v=new yr(1),w,k,A,R,O,B,L,X=0,P,H;n.cmpn(0)!==0;){var D=i.div(n);P=i.sub(D.mul(n)),H=g.sub(D.mul(o));var Se=v.sub(D.mul(h));if(!A&&P.cmp(r)<0)w=L.neg(),k=o,A=P.neg(),R=H;else if(A&&++X===2)break;L=P,i=n,n=P,g=o,o=H,v=h,h=Se}O=P.neg(),B=H;var De=A.sqr().add(R.sqr()),Ce=O.sqr().add(B.sqr());return Ce.cmp(De)>=0&&(O=w,B=k),A.negative&&(A=A.neg(),R=R.neg()),O.negative&&(O=O.neg(),B=B.neg()),[{a:A,b:R},{a:O,b:B}]};Pi.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],i=r[1],o=i.b.mul(t).divRound(this.n),h=n.b.neg().mul(t).divRound(this.n),g=o.mul(n.a),v=h.mul(i.a),w=o.mul(n.b),k=h.mul(i.b),A=t.sub(g).sub(v),R=w.add(k).neg();return{k1:A,k2:R}};Pi.prototype.pointFromX=function(t,r){t=new yr(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var o=i.fromRed().isOdd();return(r&&!o||!r&&o)&&(i=i.redNeg()),this.point(t,i)};Pi.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,i=this.a.redMul(r),o=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(o).cmpn(0)===0};Pi.prototype._endoWnafMulAdd=function(t,r,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,h=0;h<t.length;h++){var g=this._endoSplit(r[h]),v=t[h],w=v._getBeta();g.k1.negative&&(g.k1.ineg(),v=v.neg(!0)),g.k2.negative&&(g.k2.ineg(),w=w.neg(!0)),i[h*2]=v,i[h*2+1]=w,o[h*2]=g.k1,o[h*2+1]=g.k2}for(var k=this._wnafMulAdd(1,i,o,h*2,n),A=0;A<h*2;A++)i[A]=null,o[A]=null;return k};function un(e,t,r,n){e0.BasePoint.call(this,e,"affine"),t===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new yr(t,16),this.y=new yr(r,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)}t6(un,e0.BasePoint);Pi.prototype.point=function(t,r,n){return new un(this,t,r,n)};Pi.prototype.pointFromJSON=function(t,r){return un.fromJSON(this,t,r)};un.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,i=function(o){return n.point(o.x.redMul(n.endo.beta),o.y)};t.beta=r,r.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return r}};un.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]};un.fromJSON=function(t,r,n){typeof r=="string"&&(r=JSON.parse(r));var i=t.point(r[0],r[1],n);if(!r[2])return i;function o(g){return t.point(g[0],g[1],n)}var h=r[2];return i.precomputed={beta:null,doubles:h.doubles&&{step:h.doubles.step,points:[i].concat(h.doubles.points.map(o))},naf:h.naf&&{wnd:h.naf.wnd,points:[i].concat(h.naf.points.map(o))}},i};un.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)+">"};un.prototype.isInfinity=function(){return this.inf};un.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(t.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};un.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),h=o.redSqr().redISub(this.x.redAdd(this.x)),g=o.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,g)};un.prototype.getX=function(){return this.x.fromRed()};un.prototype.getY=function(){return this.y.fromRed()};un.prototype.mul=function(t){return t=new yr(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};un.prototype.mulAdd=function(t,r,n){var i=[this,r],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)};un.prototype.jmulAdd=function(t,r,n){var i=[this,r],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)};un.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};un.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(o){return o.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};un.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function vn(e,t,r,n){e0.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new yr(0)):(this.x=new yr(t,16),this.y=new yr(r,16),this.z=new yr(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}t6(vn,e0.BasePoint);Pi.prototype.jpoint=function(t,r,n){return new vn(this,t,r,n)};vn.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(t);return this.curve.point(n,i)};vn.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};vn.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),o=t.x.redMul(n),h=this.y.redMul(r.redMul(t.z)),g=t.y.redMul(n.redMul(this.z)),v=i.redSub(o),w=h.redSub(g);if(v.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var k=v.redSqr(),A=k.redMul(v),R=i.redMul(k),O=w.redSqr().redIAdd(A).redISub(R).redISub(R),B=w.redMul(R.redISub(O)).redISub(h.redMul(A)),L=this.z.redMul(t.z).redMul(v);return this.curve.jpoint(O,B,L)};vn.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=t.x.redMul(r),o=this.y,h=t.y.redMul(r).redMul(this.z),g=n.redSub(i),v=o.redSub(h);if(g.cmpn(0)===0)return v.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=g.redSqr(),k=w.redMul(g),A=n.redMul(w),R=v.redSqr().redIAdd(k).redISub(A).redISub(A),O=v.redMul(A.redISub(R)).redISub(o.redMul(k)),B=this.z.redMul(g);return this.curve.jpoint(R,O,B)};vn.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r<t;r++)n=n.dbl();return n}var i=this.curve.a,o=this.curve.tinv,h=this.x,g=this.y,v=this.z,w=v.redSqr().redSqr(),k=g.redAdd(g);for(r=0;r<t;r++){var A=h.redSqr(),R=k.redSqr(),O=R.redSqr(),B=A.redAdd(A).redIAdd(A).redIAdd(i.redMul(w)),L=h.redMul(R),X=B.redSqr().redISub(L.redAdd(L)),P=L.redISub(X),H=B.redMul(P);H=H.redIAdd(H).redISub(O);var D=k.redMul(v);r+1<t&&(w=w.redMul(O)),h=X,v=D,k=H}return this.curve.jpoint(h,k.redMul(o),v)};vn.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};vn.prototype._zeroDbl=function(){var t,r,n;if(this.zOne){var i=this.x.redSqr(),o=this.y.redSqr(),h=o.redSqr(),g=this.x.redAdd(o).redSqr().redISub(i).redISub(h);g=g.redIAdd(g);var v=i.redAdd(i).redIAdd(i),w=v.redSqr().redISub(g).redISub(g),k=h.redIAdd(h);k=k.redIAdd(k),k=k.redIAdd(k),t=w,r=v.redMul(g.redISub(w)).redISub(k),n=this.y.redAdd(this.y)}else{var A=this.x.redSqr(),R=this.y.redSqr(),O=R.redSqr(),B=this.x.redAdd(R).redSqr().redISub(A).redISub(O);B=B.redIAdd(B);var L=A.redAdd(A).redIAdd(A),X=L.redSqr(),P=O.redIAdd(O);P=P.redIAdd(P),P=P.redIAdd(P),t=X.redISub(B).redISub(B),r=L.redMul(B.redISub(t)).redISub(P),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(t,r,n)};vn.prototype._threeDbl=function(){var t,r,n;if(this.zOne){var i=this.x.redSqr(),o=this.y.redSqr(),h=o.redSqr(),g=this.x.redAdd(o).redSqr().redISub(i).redISub(h);g=g.redIAdd(g);var v=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),w=v.redSqr().redISub(g).redISub(g);t=w;var k=h.redIAdd(h);k=k.redIAdd(k),k=k.redIAdd(k),r=v.redMul(g.redISub(w)).redISub(k),n=this.y.redAdd(this.y)}else{var A=this.z.redSqr(),R=this.y.redSqr(),O=this.x.redMul(R),B=this.x.redSub(A).redMul(this.x.redAdd(A));B=B.redAdd(B).redIAdd(B);var L=O.redIAdd(O);L=L.redIAdd(L);var X=L.redAdd(L);t=B.redSqr().redISub(X),n=this.y.redAdd(this.z).redSqr().redISub(R).redISub(A);var P=R.redSqr();P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P),r=B.redMul(L.redISub(t)).redISub(P)}return this.curve.jpoint(t,r,n)};vn.prototype._dbl=function(){var t=this.curve.a,r=this.x,n=this.y,i=this.z,o=i.redSqr().redSqr(),h=r.redSqr(),g=n.redSqr(),v=h.redAdd(h).redIAdd(h).redIAdd(t.redMul(o)),w=r.redAdd(r);w=w.redIAdd(w);var k=w.redMul(g),A=v.redSqr().redISub(k.redAdd(k)),R=k.redISub(A),O=g.redSqr();O=O.redIAdd(O),O=O.redIAdd(O),O=O.redIAdd(O);var B=v.redMul(R).redISub(O),L=n.redAdd(n).redMul(i);return this.curve.jpoint(A,B,L)};vn.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr(),i=r.redSqr(),o=t.redAdd(t).redIAdd(t),h=o.redSqr(),g=this.x.redAdd(r).redSqr().redISub(t).redISub(i);g=g.redIAdd(g),g=g.redAdd(g).redIAdd(g),g=g.redISub(h);var v=g.redSqr(),w=i.redIAdd(i);w=w.redIAdd(w),w=w.redIAdd(w),w=w.redIAdd(w);var k=o.redIAdd(g).redSqr().redISub(h).redISub(v).redISub(w),A=r.redMul(k);A=A.redIAdd(A),A=A.redIAdd(A);var R=this.x.redMul(v).redISub(A);R=R.redIAdd(R),R=R.redIAdd(R);var O=this.y.redMul(k.redMul(w.redISub(k)).redISub(g.redMul(v)));O=O.redIAdd(O),O=O.redIAdd(O),O=O.redIAdd(O);var B=this.z.redAdd(g).redSqr().redISub(n).redISub(v);return this.curve.jpoint(R,O,B)};vn.prototype.mul=function(t,r){return t=new yr(t,r),this.curve._wnafMul(this,t)};vn.prototype.eq=function(t){if(t.type==="affine")return this.eq(t.toJ());if(this===t)return!0;var r=this.z.redSqr(),n=t.z.redSqr();if(this.x.redMul(n).redISub(t.x.redMul(r)).cmpn(0)!==0)return!1;var i=r.redMul(this.z),o=n.redMul(t.z);return this.y.redMul(o).redISub(t.y.redMul(i)).cmpn(0)===0};vn.prototype.eqXToP=function(t){var r=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(r);if(this.x.cmp(n)===0)return!0;for(var i=t.clone(),o=this.curve.redN.redMul(r);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),this.x.cmp(n)===0)return!0}};vn.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)+">"};vn.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var vL=I((ZXe,_L)=>{"use strict";b();var t0=Vs(),gL=Ye(),Tg=ip(),p8e=vi();function r0(e){Tg.call(this,"mont",e),this.a=new t0(e.a,16).toRed(this.red),this.b=new t0(e.b,16).toRed(this.red),this.i4=new t0(4).toRed(this.red).redInvm(),this.two=new t0(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}gL(r0,Tg);_L.exports=r0;r0.prototype.validate=function(t){var r=t.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),o=i.redSqrt();return o.redSqr().cmp(i)===0};function cn(e,t,r){Tg.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t0(t,16),this.z=new t0(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}gL(cn,Tg.BasePoint);r0.prototype.decodePoint=function(t,r){return this.point(p8e.toArray(t,r),1)};r0.prototype.point=function(t,r){return new cn(this,t,r)};r0.prototype.pointFromJSON=function(t){return cn.fromJSON(this,t)};cn.prototype.precompute=function(){};cn.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};cn.fromJSON=function(t,r){return new cn(t,r[0],r[1]||t.one)};cn.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)+">"};cn.prototype.isInfinity=function(){return this.z.cmpn(0)===0};cn.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),o=r.redSub(i),h=r.redMul(i),g=o.redMul(i.redAdd(this.curve.a24.redMul(o)));return this.curve.point(h,g)};cn.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};cn.prototype.diffAdd=function(t,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),o=t.x.redAdd(t.z),h=t.x.redSub(t.z),g=h.redMul(n),v=o.redMul(i),w=r.z.redMul(g.redAdd(v).redSqr()),k=r.x.redMul(g.redISub(v).redSqr());return this.curve.point(w,k)};cn.prototype.mul=function(t){for(var r=t.clone(),n=this,i=this.curve.point(null,null),o=this,h=[];r.cmpn(0)!==0;r.iushrn(1))h.push(r.andln(1));for(var g=h.length-1;g>=0;g--)h[g]===0?(n=n.diffAdd(i,o),i=i.dbl()):(i=n.diffAdd(i,o),n=n.dbl());return i};cn.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};cn.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};cn.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};cn.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};cn.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var wL=I((QXe,xL)=>{"use strict";b();var m8e=vi(),Za=Vs(),bL=Ye(),Rg=ip(),y8e=m8e.assert;function Ws(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,Rg.call(this,"edwards",e),this.a=new Za(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Za(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Za(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),y8e(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}bL(Ws,Rg);xL.exports=Ws;Ws.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};Ws.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};Ws.prototype.jpoint=function(t,r,n,i){return this.point(t,r,n,i)};Ws.prototype.pointFromX=function(t,r){t=new Za(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),h=i.redMul(o.redInvm()),g=h.redSqrt();if(g.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var v=g.fromRed().isOdd();return(r&&!v||!r&&v)&&(g=g.redNeg()),this.point(t,g)};Ws.prototype.pointFromY=function(t,r){t=new Za(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),h=i.redMul(o.redInvm());if(h.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var g=h.redSqrt();if(g.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");return g.fromRed().isOdd()!==r&&(g=g.redNeg()),this.point(g,t)};Ws.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),n=t.y.redSqr(),i=r.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(o)===0};function $t(e,t,r,n,i){Rg.BasePoint.call(this,e,"projective"),t===null&&r===null&&n===null?(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 Za(t,16),this.y=new Za(r,16),this.z=n?new Za(n,16):this.curve.one,this.t=i&&new Za(i,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()))))}bL($t,Rg.BasePoint);Ws.prototype.pointFromJSON=function(t){return $t.fromJSON(this,t)};Ws.prototype.point=function(t,r,n,i){return new $t(this,t,r,n,i)};$t.fromJSON=function(t,r){return new $t(t,r[0],r[1],r[2])};$t.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)+">"};$t.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};$t.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),o=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),h=i.redAdd(r),g=h.redSub(n),v=i.redSub(r),w=o.redMul(g),k=h.redMul(v),A=o.redMul(v),R=g.redMul(h);return this.curve.point(w,k,R,A)};$t.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,o,h,g,v,w;if(this.curve.twisted){g=this.curve._mulA(r);var k=g.redAdd(n);this.zOne?(i=t.redSub(r).redSub(n).redMul(k.redSub(this.curve.two)),o=k.redMul(g.redSub(n)),h=k.redSqr().redSub(k).redSub(k)):(v=this.z.redSqr(),w=k.redSub(v).redISub(v),i=t.redSub(r).redISub(n).redMul(w),o=k.redMul(g.redSub(n)),h=k.redMul(w))}else g=r.redAdd(n),v=this.curve._mulC(this.z).redSqr(),w=g.redSub(v).redSub(v),i=this.curve._mulC(t.redISub(g)).redMul(w),o=this.curve._mulC(g).redMul(r.redISub(n)),h=g.redMul(w);return this.curve.point(i,o,h)};$t.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};$t.prototype._extAdd=function(t){var r=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),o=this.z.redMul(t.z.redAdd(t.z)),h=n.redSub(r),g=o.redSub(i),v=o.redAdd(i),w=n.redAdd(r),k=h.redMul(g),A=v.redMul(w),R=h.redMul(w),O=g.redMul(v);return this.curve.point(k,A,O,R)};$t.prototype._projAdd=function(t){var r=this.z.redMul(t.z),n=r.redSqr(),i=this.x.redMul(t.x),o=this.y.redMul(t.y),h=this.curve.d.redMul(i).redMul(o),g=n.redSub(h),v=n.redAdd(h),w=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(i).redISub(o),k=r.redMul(g).redMul(w),A,R;return this.curve.twisted?(A=r.redMul(v).redMul(o.redSub(this.curve._mulA(i))),R=g.redMul(v)):(A=r.redMul(v).redMul(o.redSub(i)),R=this.curve._mulC(g).redMul(v)),this.curve.point(k,A,R)};$t.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};$t.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};$t.prototype.mulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!1)};$t.prototype.jmulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!0)};$t.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};$t.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};$t.prototype.getX=function(){return this.normalize(),this.x.fromRed()};$t.prototype.getY=function(){return this.normalize(),this.y.fromRed()};$t.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};$t.prototype.eqXToP=function(t){var r=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=t.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};$t.prototype.toP=$t.prototype.normalize;$t.prototype.mixedAdd=$t.prototype.add});var r6=I(kL=>{"use strict";b();var Og=kL;Og.base=ip();Og.short=yL();Og.mont=vL();Og.edwards=wL()});var as=I(zt=>{"use strict";b();var g8e=_i(),_8e=Ye();zt.inherits=_8e;function v8e(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function b8e(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):v8e(e,i)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++i)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(i=0;i<e.length;i++)r[i]=e[i]|0;return r}zt.toArray=b8e;function x8e(e){for(var t="",r=0;r<e.length;r++)t+=AL(e[r].toString(16));return t}zt.toHex=x8e;function ML(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}zt.htonl=ML;function w8e(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];t==="little"&&(i=ML(i)),r+=EL(i.toString(16))}return r}zt.toHex32=w8e;function AL(e){return e.length===1?"0"+e:e}zt.zero2=AL;function EL(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}zt.zero8=EL;function k8e(e,t,r,n){var i=r-t;g8e(i%4===0);for(var o=new Array(i/4),h=0,g=t;h<o.length;h++,g+=4){var v;n==="big"?v=e[g]<<24|e[g+1]<<16|e[g+2]<<8|e[g+3]:v=e[g+3]<<24|e[g+2]<<16|e[g+1]<<8|e[g],o[h]=v>>>0}return o}zt.join32=k8e;function M8e(e,t){for(var r=new Array(e.length*4),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];t==="big"?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=o&255)}return r}zt.split32=M8e;function A8e(e,t){return e>>>t|e<<32-t}zt.rotr32=A8e;function E8e(e,t){return e<<t|e>>>32-t}zt.rotl32=E8e;function S8e(e,t){return e+t>>>0}zt.sum32=S8e;function T8e(e,t,r){return e+t+r>>>0}zt.sum32_3=T8e;function R8e(e,t,r,n){return e+t+r+n>>>0}zt.sum32_4=R8e;function O8e(e,t,r,n,i){return e+t+r+n+i>>>0}zt.sum32_5=O8e;function I8e(e,t,r,n){var i=e[t],o=e[t+1],h=n+o>>>0,g=(h<n?1:0)+r+i;e[t]=g>>>0,e[t+1]=h}zt.sum64=I8e;function N8e(e,t,r,n){var i=t+n>>>0,o=(i<t?1:0)+e+r;return o>>>0}zt.sum64_hi=N8e;function B8e(e,t,r,n){var i=t+n;return i>>>0}zt.sum64_lo=B8e;function C8e(e,t,r,n,i,o,h,g){var v=0,w=t;w=w+n>>>0,v+=w<t?1:0,w=w+o>>>0,v+=w<o?1:0,w=w+g>>>0,v+=w<g?1:0;var k=e+r+i+h+v;return k>>>0}zt.sum64_4_hi=C8e;function U8e(e,t,r,n,i,o,h,g){var v=t+n+o+g;return v>>>0}zt.sum64_4_lo=U8e;function D8e(e,t,r,n,i,o,h,g,v,w){var k=0,A=t;A=A+n>>>0,k+=A<t?1:0,A=A+o>>>0,k+=A<o?1:0,A=A+g>>>0,k+=A<g?1:0,A=A+w>>>0,k+=A<w?1:0;var R=e+r+i+h+v+k;return R>>>0}zt.sum64_5_hi=D8e;function P8e(e,t,r,n,i,o,h,g,v,w){var k=t+n+o+g+w;return k>>>0}zt.sum64_5_lo=P8e;function F8e(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}zt.rotr64_hi=F8e;function q8e(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}zt.rotr64_lo=q8e;function L8e(e,t,r){return e>>>r}zt.shr64_hi=L8e;function G8e(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}zt.shr64_lo=G8e});var n0=I(TL=>{"use strict";b();var SL=as(),K8e=_i();function Ig(){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}TL.BlockHash=Ig;Ig.prototype.update=function(t,r){if(t=SL.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=SL.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this};Ig.prototype.digest=function(t){return this.update(this._pad()),K8e(this.pending===null),this._digest(t)};Ig.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,i=new Array(n+this.padLength);i[0]=128;for(var o=1;o<n;o++)i[o]=0;if(t<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)i[o++]=0;i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=t>>>24&255,i[o++]=t>>>16&255,i[o++]=t>>>8&255,i[o++]=t&255}else for(i[o++]=t&255,i[o++]=t>>>8&255,i[o++]=t>>>16&255,i[o++]=t>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,h=8;h<this.padLength;h++)i[o++]=0;return i}});var n6=I(Ja=>{"use strict";b();var H8e=as(),Xs=H8e.rotr32;function z8e(e,t,r,n){if(e===0)return RL(t,r,n);if(e===1||e===3)return IL(t,r,n);if(e===2)return OL(t,r,n)}Ja.ft_1=z8e;function RL(e,t,r){return e&t^~e&r}Ja.ch32=RL;function OL(e,t,r){return e&t^e&r^t&r}Ja.maj32=OL;function IL(e,t,r){return e^t^r}Ja.p32=IL;function j8e(e){return Xs(e,2)^Xs(e,13)^Xs(e,22)}Ja.s0_256=j8e;function V8e(e){return Xs(e,6)^Xs(e,11)^Xs(e,25)}Ja.s1_256=V8e;function W8e(e){return Xs(e,7)^Xs(e,18)^e>>>3}Ja.g0_256=W8e;function X8e(e){return Xs(e,17)^Xs(e,19)^e>>>10}Ja.g1_256=X8e});var CL=I((f$e,BL)=>{"use strict";b();var i0=as(),$8e=n0(),Y8e=n6(),i6=i0.rotl32,sp=i0.sum32,Z8e=i0.sum32_5,J8e=Y8e.ft_1,NL=$8e.BlockHash,Q8e=[1518500249,1859775393,2400959708,3395469782];function $s(){if(!(this instanceof $s))return new $s;NL.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i0.inherits($s,NL);BL.exports=$s;$s.blockSize=512;$s.outSize=160;$s.hmacStrength=80;$s.padLength=64;$s.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;i<n.length;i++)n[i]=i6(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var o=this.h[0],h=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4];for(i=0;i<n.length;i++){var k=~~(i/20),A=Z8e(i6(o,5),J8e(k,h,g,v),w,n[i],Q8e[k]);w=v,v=g,g=i6(h,30),h=o,o=A}this.h[0]=sp(this.h[0],o),this.h[1]=sp(this.h[1],h),this.h[2]=sp(this.h[2],g),this.h[3]=sp(this.h[3],v),this.h[4]=sp(this.h[4],w)};$s.prototype._digest=function(t){return t==="hex"?i0.toHex32(this.h,"big"):i0.split32(this.h,"big")}});var s6=I((c$e,DL)=>{"use strict";b();var s0=as(),e5e=n0(),a0=n6(),t5e=_i(),os=s0.sum32,r5e=s0.sum32_4,n5e=s0.sum32_5,i5e=a0.ch32,s5e=a0.maj32,a5e=a0.s0_256,o5e=a0.s1_256,l5e=a0.g0_256,f5e=a0.g1_256,UL=e5e.BlockHash,u5e=[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 Ys(){if(!(this instanceof Ys))return new Ys;UL.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=u5e,this.W=new Array(64)}s0.inherits(Ys,UL);DL.exports=Ys;Ys.blockSize=512;Ys.outSize=256;Ys.hmacStrength=192;Ys.padLength=64;Ys.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;i<n.length;i++)n[i]=r5e(f5e(n[i-2]),n[i-7],l5e(n[i-15]),n[i-16]);var o=this.h[0],h=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],k=this.h[5],A=this.h[6],R=this.h[7];for(t5e(this.k.length===n.length),i=0;i<n.length;i++){var O=n5e(R,o5e(w),i5e(w,k,A),this.k[i],n[i]),B=os(a5e(o),s5e(o,h,g));R=A,A=k,k=w,w=os(v,O),v=g,g=h,h=o,o=os(O,B)}this.h[0]=os(this.h[0],o),this.h[1]=os(this.h[1],h),this.h[2]=os(this.h[2],g),this.h[3]=os(this.h[3],v),this.h[4]=os(this.h[4],w),this.h[5]=os(this.h[5],k),this.h[6]=os(this.h[6],A),this.h[7]=os(this.h[7],R)};Ys.prototype._digest=function(t){return t==="hex"?s0.toHex32(this.h,"big"):s0.split32(this.h,"big")}});var qL=I((d$e,FL)=>{"use strict";b();var a6=as(),PL=s6();function Qa(){if(!(this instanceof Qa))return new Qa;PL.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a6.inherits(Qa,PL);FL.exports=Qa;Qa.blockSize=512;Qa.outSize=224;Qa.hmacStrength=192;Qa.padLength=64;Qa.prototype._digest=function(t){return t==="hex"?a6.toHex32(this.h.slice(0,7),"big"):a6.split32(this.h.slice(0,7),"big")}});var f6=I((m$e,HL)=>{"use strict";b();var ei=as(),c5e=n0(),h5e=_i(),Zs=ei.rotr64_hi,Js=ei.rotr64_lo,LL=ei.shr64_hi,GL=ei.shr64_lo,ul=ei.sum64,o6=ei.sum64_hi,l6=ei.sum64_lo,d5e=ei.sum64_4_hi,p5e=ei.sum64_4_lo,m5e=ei.sum64_5_hi,y5e=ei.sum64_5_lo,KL=c5e.BlockHash,g5e=[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 ls(){if(!(this instanceof ls))return new ls;KL.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g5e,this.W=new Array(160)}ei.inherits(ls,KL);HL.exports=ls;ls.blockSize=1024;ls.outSize=512;ls.hmacStrength=192;ls.padLength=128;ls.prototype._prepareBlock=function(t,r){for(var n=this.W,i=0;i<32;i++)n[i]=t[r+i];for(;i<n.length;i+=2){var o=T5e(n[i-4],n[i-3]),h=R5e(n[i-4],n[i-3]),g=n[i-14],v=n[i-13],w=E5e(n[i-30],n[i-29]),k=S5e(n[i-30],n[i-29]),A=n[i-32],R=n[i-31];n[i]=d5e(o,h,g,v,w,k,A,R),n[i+1]=p5e(o,h,g,v,w,k,A,R)}};ls.prototype._update=function(t,r){this._prepareBlock(t,r);var n=this.W,i=this.h[0],o=this.h[1],h=this.h[2],g=this.h[3],v=this.h[4],w=this.h[5],k=this.h[6],A=this.h[7],R=this.h[8],O=this.h[9],B=this.h[10],L=this.h[11],X=this.h[12],P=this.h[13],H=this.h[14],D=this.h[15];h5e(this.k.length===n.length);for(var Se=0;Se<n.length;Se+=2){var De=H,Ce=D,Ke=M5e(R,O),j=A5e(R,O),Be=_5e(R,O,B,L,X,P),y=v5e(R,O,B,L,X,P),s=this.k[Se],l=this.k[Se+1],u=n[Se],f=n[Se+1],c=m5e(De,Ce,Ke,j,Be,y,s,l,u,f),m=y5e(De,Ce,Ke,j,Be,y,s,l,u,f);De=w5e(i,o),Ce=k5e(i,o),Ke=b5e(i,o,h,g,v,w),j=x5e(i,o,h,g,v,w);var _=o6(De,Ce,Ke,j),d=l6(De,Ce,Ke,j);H=X,D=P,X=B,P=L,B=R,L=O,R=o6(k,A,c,m),O=l6(A,A,c,m),k=v,A=w,v=h,w=g,h=i,g=o,i=o6(c,m,_,d),o=l6(c,m,_,d)}ul(this.h,0,i,o),ul(this.h,2,h,g),ul(this.h,4,v,w),ul(this.h,6,k,A),ul(this.h,8,R,O),ul(this.h,10,B,L),ul(this.h,12,X,P),ul(this.h,14,H,D)};ls.prototype._digest=function(t){return t==="hex"?ei.toHex32(this.h,"big"):ei.split32(this.h,"big")};function _5e(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function v5e(e,t,r,n,i,o){var h=t&n^~t&o;return h<0&&(h+=4294967296),h}function b5e(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function x5e(e,t,r,n,i,o){var h=t&n^t&o^n&o;return h<0&&(h+=4294967296),h}function w5e(e,t){var r=Zs(e,t,28),n=Zs(t,e,2),i=Zs(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function k5e(e,t){var r=Js(e,t,28),n=Js(t,e,2),i=Js(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function M5e(e,t){var r=Zs(e,t,14),n=Zs(e,t,18),i=Zs(t,e,9),o=r^n^i;return o<0&&(o+=4294967296),o}function A5e(e,t){var r=Js(e,t,14),n=Js(e,t,18),i=Js(t,e,9),o=r^n^i;return o<0&&(o+=4294967296),o}function E5e(e,t){var r=Zs(e,t,1),n=Zs(e,t,8),i=LL(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function S5e(e,t){var r=Js(e,t,1),n=Js(e,t,8),i=GL(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function T5e(e,t){var r=Zs(e,t,19),n=Zs(t,e,29),i=LL(e,t,6),o=r^n^i;return o<0&&(o+=4294967296),o}function R5e(e,t){var r=Js(e,t,19),n=Js(t,e,29),i=GL(e,t,6),o=r^n^i;return o<0&&(o+=4294967296),o}});var VL=I((g$e,jL)=>{"use strict";b();var u6=as(),zL=f6();function eo(){if(!(this instanceof eo))return new eo;zL.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}u6.inherits(eo,zL);jL.exports=eo;eo.blockSize=1024;eo.outSize=384;eo.hmacStrength=192;eo.padLength=128;eo.prototype._digest=function(t){return t==="hex"?u6.toHex32(this.h.slice(0,12),"big"):u6.split32(this.h.slice(0,12),"big")}});var WL=I(o0=>{"use strict";b();o0.sha1=CL();o0.sha224=qL();o0.sha256=s6();o0.sha384=VL();o0.sha512=f6()});var QL=I(JL=>{"use strict";b();var Gf=as(),O5e=n0(),Ng=Gf.rotl32,XL=Gf.sum32,ap=Gf.sum32_3,$L=Gf.sum32_4,ZL=O5e.BlockHash;function Qs(){if(!(this instanceof Qs))return new Qs;ZL.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Gf.inherits(Qs,ZL);JL.ripemd160=Qs;Qs.blockSize=512;Qs.outSize=160;Qs.hmacStrength=192;Qs.padLength=64;Qs.prototype._update=function(t,r){for(var n=this.h[0],i=this.h[1],o=this.h[2],h=this.h[3],g=this.h[4],v=n,w=i,k=o,A=h,R=g,O=0;O<80;O++){var B=XL(Ng($L(n,YL(O,i,o,h),t[B5e[O]+r],I5e(O)),U5e[O]),g);n=g,g=h,h=Ng(o,10),o=i,i=B,B=XL(Ng($L(v,YL(79-O,w,k,A),t[C5e[O]+r],N5e(O)),D5e[O]),R),v=R,R=A,A=Ng(k,10),k=w,w=B}B=ap(this.h[1],o,A),this.h[1]=ap(this.h[2],h,R),this.h[2]=ap(this.h[3],g,v),this.h[3]=ap(this.h[4],n,w),this.h[4]=ap(this.h[0],i,k),this.h[0]=B};Qs.prototype._digest=function(t){return t==="hex"?Gf.toHex32(this.h,"little"):Gf.split32(this.h,"little")};function YL(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function I5e(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function N5e(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var B5e=[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],C5e=[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],U5e=[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],D5e=[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]});var tG=I((k$e,eG)=>{"use strict";b();var P5e=as(),F5e=_i();function l0(e,t,r){if(!(this instanceof l0))return new l0(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(P5e.toArray(t,r))}eG.exports=l0;l0.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),F5e(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};l0.prototype.update=function(t,r){return this.inner.update(t,r),this};l0.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}});var Bg=I(rG=>{b();var bn=rG;bn.utils=as();bn.common=n0();bn.sha=WL();bn.ripemd=QL();bn.hmac=tG();bn.sha1=bn.sha.sha1;bn.sha256=bn.sha.sha256;bn.sha224=bn.sha.sha224;bn.sha384=bn.sha.sha384;bn.sha512=bn.sha.sha512;bn.ripemd160=bn.ripemd.ripemd160});var iG=I((S$e,nG)=>{b();nG.exports={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"]]}}});var Cg=I(oG=>{"use strict";b();var h6=oG,cl=Bg(),c6=r6(),q5e=vi(),sG=q5e.assert;function aG(e){e.type==="short"?this.curve=new c6.short(e):e.type==="edwards"?this.curve=new c6.edwards(e):this.curve=new c6.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,sG(this.g.validate(),"Invalid curve"),sG(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}h6.PresetCurve=aG;function hl(e,t){Object.defineProperty(h6,e,{configurable:!0,enumerable:!0,get:function(){var r=new aG(t);return Object.defineProperty(h6,e,{configurable:!0,enumerable:!0,value:r}),r}})}hl("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:cl.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});hl("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:cl.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});hl("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:cl.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});hl("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:cl.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"]});hl("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:cl.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"]});hl("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:cl.sha256,gRed:!1,g:["9"]});hl("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:cl.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var d6;try{d6=iG()}catch{d6=void 0}hl("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:cl.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d6]})});var uG=I((I$e,fG)=>{"use strict";b();var L5e=Bg(),Kf=e6(),lG=_i();function dl(e){if(!(this instanceof dl))return new dl(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=Kf.toArray(e.entropy,e.entropyEnc||"hex"),r=Kf.toArray(e.nonce,e.nonceEnc||"hex"),n=Kf.toArray(e.pers,e.persEnc||"hex");lG(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}fG.exports=dl;dl.prototype._init=function(t,r,n){var i=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656};dl.prototype._hmac=function(){return new L5e.hmac(this.hash,this.K)};dl.prototype._update=function(t){var r=this._hmac().update(this.V).update([0]);t&&(r=r.update(t)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())};dl.prototype.reseed=function(t,r,n,i){typeof r!="string"&&(i=n,n=r,r=null),t=Kf.toArray(t,r),n=Kf.toArray(n,i),lG(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};dl.prototype.generate=function(t,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Kf.toArray(n,i||"hex"),this._update(n));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var h=o.slice(0,t);return this._update(n),this._reseed++,Kf.encode(h,r)}});var hG=I((B$e,cG)=>{"use strict";b();var G5e=Vs(),K5e=vi(),p6=K5e.assert;function On(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)}cG.exports=On;On.fromPublic=function(t,r,n){return r instanceof On?r:new On(t,{pub:r,pubEnc:n})};On.fromPrivate=function(t,r,n){return r instanceof On?r:new On(t,{priv:r,privEnc:n})};On.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}};On.prototype.getPublic=function(t,r){return typeof t=="string"&&(r=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,t):this.pub};On.prototype.getPrivate=function(t){return t==="hex"?this.priv.toString(16,2):this.priv};On.prototype._importPrivate=function(t,r){this.priv=new G5e(t,r||16),this.priv=this.priv.umod(this.ec.curve.n)};On.prototype._importPublic=function(t,r){if(t.x||t.y){this.ec.curve.type==="mont"?p6(t.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&p6(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,r)};On.prototype.derive=function(t){return t.validate()||p6(t.validate(),"public point not validated"),t.mul(this.priv).getX()};On.prototype.sign=function(t,r,n){return this.ec.sign(t,this,r,n)};On.prototype.verify=function(t,r,n){return this.ec.verify(t,r,this,void 0,n)};On.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var mG=I((U$e,pG)=>{"use strict";b();var Ug=Vs(),g6=vi(),H5e=g6.assert;function Dg(e,t){if(e instanceof Dg)return e;this._importDER(e,t)||(H5e(e.r&&e.s,"Signature without r or s"),this.r=new Ug(e.r,16),this.s=new Ug(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}pG.exports=Dg;function z5e(){this.place=0}function m6(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4||e[t.place]===0)return!1;for(var i=0,o=0,h=t.place;o<n;o++,h++)i<<=8,i|=e[h],i>>>=0;return i<=127?!1:(t.place=h,i)}function dG(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t<r;)t++;return t===0?e:e.slice(t)}Dg.prototype._importDER=function(t,r){t=g6.toArray(t,r);var n=new z5e;if(t[n.place++]!==48)return!1;var i=m6(t,n);if(i===!1||i+n.place!==t.length||t[n.place++]!==2)return!1;var o=m6(t,n);if(o===!1||(t[n.place]&128)!==0)return!1;var h=t.slice(n.place,o+n.place);if(n.place+=o,t[n.place++]!==2)return!1;var g=m6(t,n);if(g===!1||t.length!==g+n.place||(t[n.place]&128)!==0)return!1;var v=t.slice(n.place,g+n.place);if(h[0]===0)if(h[1]&128)h=h.slice(1);else return!1;if(v[0]===0)if(v[1]&128)v=v.slice(1);else return!1;return this.r=new Ug(h),this.s=new Ug(v),this.recoveryParam=null,!0};function y6(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}Dg.prototype.toDER=function(t){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=dG(r),n=dG(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];y6(i,r.length),i=i.concat(r),i.push(2),y6(i,n.length);var o=i.concat(n),h=[48];return y6(h,o.length),h=h.concat(o),g6.encode(h,t)}});var _G=I((P$e,gG)=>{"use strict";b();var fs=Vs(),yG=uG(),j5e=vi(),_6=Cg(),V5e=vg(),Hf=j5e.assert,v6=hG(),Pg=mG();function Fi(e){if(!(this instanceof Fi))return new Fi(e);typeof e=="string"&&(Hf(Object.prototype.hasOwnProperty.call(_6,e),"Unknown curve "+e),e=_6[e]),e instanceof _6.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}gG.exports=Fi;Fi.prototype.keyPair=function(t){return new v6(this,t)};Fi.prototype.keyFromPrivate=function(t,r){return v6.fromPrivate(this,t,r)};Fi.prototype.keyFromPublic=function(t,r){return v6.fromPublic(this,t,r)};Fi.prototype.genKeyPair=function(t){t||(t={});for(var r=new yG({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||V5e(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new fs(2));;){var o=new fs(r.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}};Fi.prototype._truncateToN=function(t,r,n){var i;if(fs.isBN(t)||typeof t=="number")t=new fs(t,16),i=t.byteLength();else if(typeof t=="object")i=t.length,t=new fs(t,16);else{var o=t.toString();i=o.length+1>>>1,t=new fs(o,16)}typeof n!="number"&&(n=i*8);var h=n-this.n.bitLength();return h>0&&(t=t.ushrn(h)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};Fi.prototype.sign=function(t,r,n,i){if(typeof n=="object"&&(i=n,n=null),i||(i={}),typeof t!="string"&&typeof t!="number"&&!fs.isBN(t)){Hf(typeof t=="object"&&t&&typeof t.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),Hf(t.length>>>0===t.length);for(var o=0;o<t.length;o++)Hf((t[o]&255)===t[o])}r=this.keyFromPrivate(r,n),t=this._truncateToN(t,!1,i.msgBitLength),Hf(!t.isNeg(),"Can not sign a negative message");var h=this.n.byteLength(),g=r.getPrivate().toArray("be",h),v=t.toArray("be",h);Hf(new fs(v).eq(t),"Can not sign message");for(var w=new yG({hash:this.hash,entropy:g,nonce:v,pers:i.pers,persEnc:i.persEnc||"utf8"}),k=this.n.sub(new fs(1)),A=0;;A++){var R=i.k?i.k(A):new fs(w.generate(this.n.byteLength()));if(R=this._truncateToN(R,!0),!(R.cmpn(1)<=0||R.cmp(k)>=0)){var O=this.g.mul(R);if(!O.isInfinity()){var B=O.getX(),L=B.umod(this.n);if(L.cmpn(0)!==0){var X=R.invm(this.n).mul(L.mul(r.getPrivate()).iadd(t));if(X=X.umod(this.n),X.cmpn(0)!==0){var P=(O.getY().isOdd()?1:0)|(B.cmp(L)!==0?2:0);return i.canonical&&X.cmp(this.nh)>0&&(X=this.n.sub(X),P^=1),new Pg({r:L,s:X,recoveryParam:P})}}}}}};Fi.prototype.verify=function(t,r,n,i,o){o||(o={}),t=this._truncateToN(t,!1,o.msgBitLength),n=this.keyFromPublic(n,i),r=new Pg(r,"hex");var h=r.r,g=r.s;if(h.cmpn(1)<0||h.cmp(this.n)>=0||g.cmpn(1)<0||g.cmp(this.n)>=0)return!1;var v=g.invm(this.n),w=v.mul(t).umod(this.n),k=v.mul(h).umod(this.n),A;return this.curve._maxwellTrick?(A=this.g.jmulAdd(w,n.getPublic(),k),A.isInfinity()?!1:A.eqXToP(h)):(A=this.g.mulAdd(w,n.getPublic(),k),A.isInfinity()?!1:A.getX().umod(this.n).cmp(h)===0)};Fi.prototype.recoverPubKey=function(e,t,r,n){Hf((3&r)===r,"The recovery param is more than two bits"),t=new Pg(t,n);var i=this.n,o=new fs(e),h=t.r,g=t.s,v=r&1,w=r>>1;if(h.cmp(this.curve.p.umod(this.curve.n))>=0&&w)throw new Error("Unable to find sencond key candinate");w?h=this.curve.pointFromX(h.add(this.curve.n),v):h=this.curve.pointFromX(h,v);var k=t.r.invm(i),A=i.sub(o).mul(k).umod(i),R=g.mul(k).umod(i);return this.g.mulAdd(A,h,R)};Fi.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new Pg(t,n),t.recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch{continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}});var wG=I((q$e,xG)=>{"use strict";b();var op=vi(),bG=op.assert,vG=op.parseBytes,f0=op.cachedProperty;function hn(e,t){this.eddsa=e,this._secret=vG(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=vG(t.pub)}hn.fromPublic=function(t,r){return r instanceof hn?r:new hn(t,{pub:r})};hn.fromSecret=function(t,r){return r instanceof hn?r:new hn(t,{secret:r})};hn.prototype.secret=function(){return this._secret};f0(hn,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});f0(hn,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});f0(hn,"privBytes",function(){var t=this.eddsa,r=this.hash(),n=t.encodingLength-1,i=r.slice(0,t.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});f0(hn,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});f0(hn,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});f0(hn,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});hn.prototype.sign=function(t){return bG(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};hn.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};hn.prototype.getSecret=function(t){return bG(this._secret,"KeyPair is public only"),op.encode(this.secret(),t)};hn.prototype.getPublic=function(t){return op.encode(this.pubBytes(),t)};xG.exports=hn});var AG=I((G$e,MG)=>{"use strict";b();var W5e=Vs(),Fg=vi(),kG=Fg.assert,qg=Fg.cachedProperty,X5e=Fg.parseBytes;function zf(e,t){this.eddsa=e,typeof t!="object"&&(t=X5e(t)),Array.isArray(t)&&(kG(t.length===e.encodingLength*2,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),kG(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof W5e&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}qg(zf,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});qg(zf,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});qg(zf,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});qg(zf,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});zf.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};zf.prototype.toHex=function(){return Fg.encode(this.toBytes(),"hex").toUpperCase()};MG.exports=zf});var OG=I((H$e,RG)=>{"use strict";b();var $5e=Bg(),Y5e=Cg(),u0=vi(),Z5e=u0.assert,SG=u0.parseBytes,TG=wG(),EG=AG();function ti(e){if(Z5e(e==="ed25519","only tested with ed25519 so far"),!(this instanceof ti))return new ti(e);e=Y5e[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=$5e.sha512}RG.exports=ti;ti.prototype.sign=function(t,r){t=SG(t);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),t),o=this.g.mul(i),h=this.encodePoint(o),g=this.hashInt(h,n.pubBytes(),t).mul(n.priv()),v=i.add(g).umod(this.curve.n);return this.makeSignature({R:o,S:v,Rencoded:h})};ti.prototype.verify=function(t,r,n){if(t=SG(t),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var i=this.keyFromPublic(n),o=this.hashInt(r.Rencoded(),i.pubBytes(),t),h=this.g.mul(r.S()),g=r.R().add(i.pub().mul(o));return g.eq(h)};ti.prototype.hashInt=function(){for(var t=this.hash(),r=0;r<arguments.length;r++)t.update(arguments[r]);return u0.intFromLE(t.digest()).umod(this.curve.n)};ti.prototype.keyFromPublic=function(t){return TG.fromPublic(this,t)};ti.prototype.keyFromSecret=function(t){return TG.fromSecret(this,t)};ti.prototype.makeSignature=function(t){return t instanceof EG?t:new EG(this,t)};ti.prototype.encodePoint=function(t){var r=t.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=t.getX().isOdd()?128:0,r};ti.prototype.decodePoint=function(t){t=u0.parseBytes(t);var r=t.length-1,n=t.slice(0,r).concat(t[r]&-129),i=(t[r]&128)!==0,o=u0.intFromLE(n);return this.curve.pointFromY(o,i)};ti.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)};ti.prototype.decodeInt=function(t){return u0.intFromLE(t)};ti.prototype.isPoint=function(t){return t instanceof this.pointClass}});var Lg=I(IG=>{"use strict";b();var jf=IG;jf.version=lL().version;jf.utils=vi();jf.rand=vg();jf.curve=r6();jf.curves=Cg();jf.ec=_G();jf.eddsa=OG()});var BG=I((NG,b6)=>{b();(function(e,t){"use strict";function r(y,s){if(!y)throw new Error(s||"Assertion failed")}function n(y,s){y.super_=s;var l=function(){};l.prototype=s.prototype,y.prototype=new l,y.prototype.constructor=y}function i(y,s,l){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(y||0,s||10,l||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ol().Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,u){if(typeof s=="number")return this._initNumber(s,l,u);if(typeof s=="object")return this._initArray(s,l,u);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(l===16?this._parseHex(s,f,u):(this._parseBase(s,l,f),u==="le"&&this._initArray(this.toArray(),l,u)))},i.prototype._initNumber=function(s,l,u){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),l,u)},i.prototype._initArray=function(s,l,u){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,m,_=0;if(u==="be")for(f=s.length-1,c=0;f>=0;f-=3)m=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);else if(u==="le")for(f=0,c=0;f<s.length;f+=3)m=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);return this.strip()};function h(y,s){var l=y.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(y,s,l){var u=h(y,l);return l-1>=s&&(u|=h(y,l-1)<<4),u}i.prototype._parseHex=function(s,l,u){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,m=0,_;if(u==="be")for(f=s.length-1;f>=l;f-=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8;else{var d=s.length-l;for(f=d%2===0?l+1:l;f<s.length;f+=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8}this.strip()};function v(y,s,l,u){for(var f=0,c=Math.min(y.length,l),m=s;m<c;m++){var _=y.charCodeAt(m)-48;f*=u,_>=49?f+=_-49+10:_>=17?f+=_-17+10:f+=_}return f}i.prototype._parseBase=function(s,l,u){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=l)f++;f--,c=c/l|0;for(var m=s.length-u,_=m%f,d=Math.min(m,m-_)+u,a=0,p=u;p<d;p+=f)a=v(s,p,p+f,l),this.imuln(c),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(_!==0){var M=1;for(a=v(s,p,s.length,l),p=0;p<_;p++)M*=l;this.imuln(M),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","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"],k=[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],A=[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];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var u;if(s===16||s==="hex"){u="";for(var f=0,c=0,m=0;m<this.length;m++){var _=this.words[m],d=((_<<f|c)&16777215).toString(16);c=_>>>24-f&16777215,f+=2,f>=26&&(f-=26,m--),c!==0||m!==this.length-1?u=w[6-d.length]+d+u:u=d+u}for(c!==0&&(u=c.toString(16)+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(s===(s|0)&&s>=2&&s<=36){var a=k[s],p=A[s];u="";var M=this.clone();for(M.negative=0;!M.isZero();){var x=M.modn(p).toString(s);M=M.idivn(p),M.isZero()?u=x+u:u=w[a-x.length]+x+u}for(this.isZero()&&(u="0"+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,u){var f=this.byteLength(),c=u||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var m=l==="le",_=new s(c),d,a,p=this.clone();if(m){for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[a]=d;for(;a<c;a++)_[a]=0}else{for(a=0;a<c-f;a++)_[a]=0;for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[c-a-1]=d}return _},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,u=0;return l>=4096&&(u+=13,l>>>=13),l>=64&&(u+=7,l>>>=7),l>=8&&(u+=4,l>>>=4),l>=2&&(u+=2,l>>>=2),u+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,u=0;return(l&8191)===0&&(u+=13,l>>>=13),(l&127)===0&&(u+=7,l>>>=7),(l&15)===0&&(u+=4,l>>>=4),(l&3)===0&&(u+=2,l>>>=2),(l&1)===0&&u++,u},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function R(y){for(var s=new Array(y.bitLength()),l=0;l<s.length;l++){var u=l/26|0,f=l%26;s[l]=(y.words[u]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var u=this._zeroBits(this.words[l]);if(s+=u,u!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var u=0;u<l.length;u++)this.words[u]=this.words[u]&s.words[u];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,u;this.length>s.length?(l=this,u=s):(l=s,u=this);for(var f=0;f<u.length;f++)this.words[f]=l.words[f]^u.words[f];if(this!==l)for(;f<l.length;f++)this.words[f]=l.words[f];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,u=s%26;this._expand(l),u>0&&l--;for(var f=0;f<l;f++)this.words[f]=~this.words[f]&67108863;return u>0&&(this.words[f]=~this.words[f]&67108863>>26-u),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var u=s/26|0,f=s%26;return this._expand(u+1),l?this.words[u]=this.words[u]|1<<f:this.words[u]=this.words[u]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var u,f;this.length>s.length?(u=this,f=s):(u=s,f=this);for(var c=0,m=0;m<f.length;m++)l=(u.words[m]|0)+(f.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;for(;c!==0&&m<u.length;m++)l=(u.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;if(this.length=u.length,c!==0)this.words[this.length]=c,this.length++;else if(u!==this)for(;m<u.length;m++)this.words[m]=u.words[m];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var u=this.cmp(s);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;u>0?(f=this,c=s):(f=s,c=this);for(var m=0,_=0;_<c.length;_++)l=(f.words[_]|0)-(c.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;for(;m!==0&&_<f.length;_++)l=(f.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;if(m===0&&_<f.length&&f!==this)for(;_<f.length;_++)this.words[_]=f.words[_];return this.length=Math.max(this.length,_),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function O(y,s,l){l.negative=s.negative^y.negative;var u=y.length+s.length|0;l.length=u,u=u-1|0;var f=y.words[0]|0,c=s.words[0]|0,m=f*c,_=m&67108863,d=m/67108864|0;l.words[0]=_;for(var a=1;a<u;a++){for(var p=d>>>26,M=d&67108863,x=Math.min(a,s.length-1),E=Math.max(0,a-y.length+1);E<=x;E++){var N=a-E|0;f=y.words[N]|0,c=s.words[E]|0,m=f*c+M,p+=m/67108864|0,M=m&67108863}l.words[a]=M|0,d=p|0}return d!==0?l.words[a]=d|0:l.length--,l.strip()}var B=function(s,l,u){var f=s.words,c=l.words,m=u.words,_=0,d,a,p,M=f[0]|0,x=M&8191,E=M>>>13,N=f[1]|0,C=N&8191,U=N>>>13,Re=f[2]|0,F=Re&8191,q=Re>>>13,ft=f[3]|0,V=ft&8191,W=ft>>>13,wt=f[4]|0,$=wt&8191,Y=wt>>>13,wr=f[5]|0,Z=wr&8191,J=wr>>>13,kr=f[6]|0,Q=kr&8191,ee=kr>>>13,Mr=f[7]|0,te=Mr&8191,re=Mr>>>13,Ar=f[8]|0,ne=Ar&8191,ie=Ar>>>13,Er=f[9]|0,se=Er&8191,ae=Er>>>13,Sr=c[0]|0,oe=Sr&8191,le=Sr>>>13,Tr=c[1]|0,fe=Tr&8191,ue=Tr>>>13,Rr=c[2]|0,ce=Rr&8191,he=Rr>>>13,Or=c[3]|0,de=Or&8191,pe=Or>>>13,Ir=c[4]|0,me=Ir&8191,ye=Ir>>>13,Nr=c[5]|0,ge=Nr&8191,_e=Nr>>>13,Br=c[6]|0,ve=Br&8191,be=Br>>>13,Cr=c[7]|0,xe=Cr&8191,we=Cr>>>13,Ur=c[8]|0,ke=Ur&8191,Me=Ur>>>13,Dr=c[9]|0,Ae=Dr&8191,Ee=Dr>>>13;u.negative=s.negative^l.negative,u.length=19,d=Math.imul(x,oe),a=Math.imul(x,le),a=a+Math.imul(E,oe)|0,p=Math.imul(E,le);var jt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(jt>>>26)|0,jt&=67108863,d=Math.imul(C,oe),a=Math.imul(C,le),a=a+Math.imul(U,oe)|0,p=Math.imul(U,le),d=d+Math.imul(x,fe)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(E,fe)|0,p=p+Math.imul(E,ue)|0;var Je=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Je>>>26)|0,Je&=67108863,d=Math.imul(F,oe),a=Math.imul(F,le),a=a+Math.imul(q,oe)|0,p=Math.imul(q,le),d=d+Math.imul(C,fe)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(U,fe)|0,p=p+Math.imul(U,ue)|0,d=d+Math.imul(x,ce)|0,a=a+Math.imul(x,he)|0,a=a+Math.imul(E,ce)|0,p=p+Math.imul(E,he)|0;var Qe=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,d=Math.imul(V,oe),a=Math.imul(V,le),a=a+Math.imul(W,oe)|0,p=Math.imul(W,le),d=d+Math.imul(F,fe)|0,a=a+Math.imul(F,ue)|0,a=a+Math.imul(q,fe)|0,p=p+Math.imul(q,ue)|0,d=d+Math.imul(C,ce)|0,a=a+Math.imul(C,he)|0,a=a+Math.imul(U,ce)|0,p=p+Math.imul(U,he)|0,d=d+Math.imul(x,de)|0,a=a+Math.imul(x,pe)|0,a=a+Math.imul(E,de)|0,p=p+Math.imul(E,pe)|0;var St=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(St>>>26)|0,St&=67108863,d=Math.imul($,oe),a=Math.imul($,le),a=a+Math.imul(Y,oe)|0,p=Math.imul(Y,le),d=d+Math.imul(V,fe)|0,a=a+Math.imul(V,ue)|0,a=a+Math.imul(W,fe)|0,p=p+Math.imul(W,ue)|0,d=d+Math.imul(F,ce)|0,a=a+Math.imul(F,he)|0,a=a+Math.imul(q,ce)|0,p=p+Math.imul(q,he)|0,d=d+Math.imul(C,de)|0,a=a+Math.imul(C,pe)|0,a=a+Math.imul(U,de)|0,p=p+Math.imul(U,pe)|0,d=d+Math.imul(x,me)|0,a=a+Math.imul(x,ye)|0,a=a+Math.imul(E,me)|0,p=p+Math.imul(E,ye)|0;var Tt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(Z,oe),a=Math.imul(Z,le),a=a+Math.imul(J,oe)|0,p=Math.imul(J,le),d=d+Math.imul($,fe)|0,a=a+Math.imul($,ue)|0,a=a+Math.imul(Y,fe)|0,p=p+Math.imul(Y,ue)|0,d=d+Math.imul(V,ce)|0,a=a+Math.imul(V,he)|0,a=a+Math.imul(W,ce)|0,p=p+Math.imul(W,he)|0,d=d+Math.imul(F,de)|0,a=a+Math.imul(F,pe)|0,a=a+Math.imul(q,de)|0,p=p+Math.imul(q,pe)|0,d=d+Math.imul(C,me)|0,a=a+Math.imul(C,ye)|0,a=a+Math.imul(U,me)|0,p=p+Math.imul(U,ye)|0,d=d+Math.imul(x,ge)|0,a=a+Math.imul(x,_e)|0,a=a+Math.imul(E,ge)|0,p=p+Math.imul(E,_e)|0;var Rt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,d=Math.imul(Q,oe),a=Math.imul(Q,le),a=a+Math.imul(ee,oe)|0,p=Math.imul(ee,le),d=d+Math.imul(Z,fe)|0,a=a+Math.imul(Z,ue)|0,a=a+Math.imul(J,fe)|0,p=p+Math.imul(J,ue)|0,d=d+Math.imul($,ce)|0,a=a+Math.imul($,he)|0,a=a+Math.imul(Y,ce)|0,p=p+Math.imul(Y,he)|0,d=d+Math.imul(V,de)|0,a=a+Math.imul(V,pe)|0,a=a+Math.imul(W,de)|0,p=p+Math.imul(W,pe)|0,d=d+Math.imul(F,me)|0,a=a+Math.imul(F,ye)|0,a=a+Math.imul(q,me)|0,p=p+Math.imul(q,ye)|0,d=d+Math.imul(C,ge)|0,a=a+Math.imul(C,_e)|0,a=a+Math.imul(U,ge)|0,p=p+Math.imul(U,_e)|0,d=d+Math.imul(x,ve)|0,a=a+Math.imul(x,be)|0,a=a+Math.imul(E,ve)|0,p=p+Math.imul(E,be)|0;var Ot=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,d=Math.imul(te,oe),a=Math.imul(te,le),a=a+Math.imul(re,oe)|0,p=Math.imul(re,le),d=d+Math.imul(Q,fe)|0,a=a+Math.imul(Q,ue)|0,a=a+Math.imul(ee,fe)|0,p=p+Math.imul(ee,ue)|0,d=d+Math.imul(Z,ce)|0,a=a+Math.imul(Z,he)|0,a=a+Math.imul(J,ce)|0,p=p+Math.imul(J,he)|0,d=d+Math.imul($,de)|0,a=a+Math.imul($,pe)|0,a=a+Math.imul(Y,de)|0,p=p+Math.imul(Y,pe)|0,d=d+Math.imul(V,me)|0,a=a+Math.imul(V,ye)|0,a=a+Math.imul(W,me)|0,p=p+Math.imul(W,ye)|0,d=d+Math.imul(F,ge)|0,a=a+Math.imul(F,_e)|0,a=a+Math.imul(q,ge)|0,p=p+Math.imul(q,_e)|0,d=d+Math.imul(C,ve)|0,a=a+Math.imul(C,be)|0,a=a+Math.imul(U,ve)|0,p=p+Math.imul(U,be)|0,d=d+Math.imul(x,xe)|0,a=a+Math.imul(x,we)|0,a=a+Math.imul(E,xe)|0,p=p+Math.imul(E,we)|0;var It=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(ne,oe),a=Math.imul(ne,le),a=a+Math.imul(ie,oe)|0,p=Math.imul(ie,le),d=d+Math.imul(te,fe)|0,a=a+Math.imul(te,ue)|0,a=a+Math.imul(re,fe)|0,p=p+Math.imul(re,ue)|0,d=d+Math.imul(Q,ce)|0,a=a+Math.imul(Q,he)|0,a=a+Math.imul(ee,ce)|0,p=p+Math.imul(ee,he)|0,d=d+Math.imul(Z,de)|0,a=a+Math.imul(Z,pe)|0,a=a+Math.imul(J,de)|0,p=p+Math.imul(J,pe)|0,d=d+Math.imul($,me)|0,a=a+Math.imul($,ye)|0,a=a+Math.imul(Y,me)|0,p=p+Math.imul(Y,ye)|0,d=d+Math.imul(V,ge)|0,a=a+Math.imul(V,_e)|0,a=a+Math.imul(W,ge)|0,p=p+Math.imul(W,_e)|0,d=d+Math.imul(F,ve)|0,a=a+Math.imul(F,be)|0,a=a+Math.imul(q,ve)|0,p=p+Math.imul(q,be)|0,d=d+Math.imul(C,xe)|0,a=a+Math.imul(C,we)|0,a=a+Math.imul(U,xe)|0,p=p+Math.imul(U,we)|0,d=d+Math.imul(x,ke)|0,a=a+Math.imul(x,Me)|0,a=a+Math.imul(E,ke)|0,p=p+Math.imul(E,Me)|0;var Nt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,d=Math.imul(se,oe),a=Math.imul(se,le),a=a+Math.imul(ae,oe)|0,p=Math.imul(ae,le),d=d+Math.imul(ne,fe)|0,a=a+Math.imul(ne,ue)|0,a=a+Math.imul(ie,fe)|0,p=p+Math.imul(ie,ue)|0,d=d+Math.imul(te,ce)|0,a=a+Math.imul(te,he)|0,a=a+Math.imul(re,ce)|0,p=p+Math.imul(re,he)|0,d=d+Math.imul(Q,de)|0,a=a+Math.imul(Q,pe)|0,a=a+Math.imul(ee,de)|0,p=p+Math.imul(ee,pe)|0,d=d+Math.imul(Z,me)|0,a=a+Math.imul(Z,ye)|0,a=a+Math.imul(J,me)|0,p=p+Math.imul(J,ye)|0,d=d+Math.imul($,ge)|0,a=a+Math.imul($,_e)|0,a=a+Math.imul(Y,ge)|0,p=p+Math.imul(Y,_e)|0,d=d+Math.imul(V,ve)|0,a=a+Math.imul(V,be)|0,a=a+Math.imul(W,ve)|0,p=p+Math.imul(W,be)|0,d=d+Math.imul(F,xe)|0,a=a+Math.imul(F,we)|0,a=a+Math.imul(q,xe)|0,p=p+Math.imul(q,we)|0,d=d+Math.imul(C,ke)|0,a=a+Math.imul(C,Me)|0,a=a+Math.imul(U,ke)|0,p=p+Math.imul(U,Me)|0,d=d+Math.imul(x,Ae)|0,a=a+Math.imul(x,Ee)|0,a=a+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ee)|0;var Bt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,d=Math.imul(se,fe),a=Math.imul(se,ue),a=a+Math.imul(ae,fe)|0,p=Math.imul(ae,ue),d=d+Math.imul(ne,ce)|0,a=a+Math.imul(ne,he)|0,a=a+Math.imul(ie,ce)|0,p=p+Math.imul(ie,he)|0,d=d+Math.imul(te,de)|0,a=a+Math.imul(te,pe)|0,a=a+Math.imul(re,de)|0,p=p+Math.imul(re,pe)|0,d=d+Math.imul(Q,me)|0,a=a+Math.imul(Q,ye)|0,a=a+Math.imul(ee,me)|0,p=p+Math.imul(ee,ye)|0,d=d+Math.imul(Z,ge)|0,a=a+Math.imul(Z,_e)|0,a=a+Math.imul(J,ge)|0,p=p+Math.imul(J,_e)|0,d=d+Math.imul($,ve)|0,a=a+Math.imul($,be)|0,a=a+Math.imul(Y,ve)|0,p=p+Math.imul(Y,be)|0,d=d+Math.imul(V,xe)|0,a=a+Math.imul(V,we)|0,a=a+Math.imul(W,xe)|0,p=p+Math.imul(W,we)|0,d=d+Math.imul(F,ke)|0,a=a+Math.imul(F,Me)|0,a=a+Math.imul(q,ke)|0,p=p+Math.imul(q,Me)|0,d=d+Math.imul(C,Ae)|0,a=a+Math.imul(C,Ee)|0,a=a+Math.imul(U,Ae)|0,p=p+Math.imul(U,Ee)|0;var Ct=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,d=Math.imul(se,ce),a=Math.imul(se,he),a=a+Math.imul(ae,ce)|0,p=Math.imul(ae,he),d=d+Math.imul(ne,de)|0,a=a+Math.imul(ne,pe)|0,a=a+Math.imul(ie,de)|0,p=p+Math.imul(ie,pe)|0,d=d+Math.imul(te,me)|0,a=a+Math.imul(te,ye)|0,a=a+Math.imul(re,me)|0,p=p+Math.imul(re,ye)|0,d=d+Math.imul(Q,ge)|0,a=a+Math.imul(Q,_e)|0,a=a+Math.imul(ee,ge)|0,p=p+Math.imul(ee,_e)|0,d=d+Math.imul(Z,ve)|0,a=a+Math.imul(Z,be)|0,a=a+Math.imul(J,ve)|0,p=p+Math.imul(J,be)|0,d=d+Math.imul($,xe)|0,a=a+Math.imul($,we)|0,a=a+Math.imul(Y,xe)|0,p=p+Math.imul(Y,we)|0,d=d+Math.imul(V,ke)|0,a=a+Math.imul(V,Me)|0,a=a+Math.imul(W,ke)|0,p=p+Math.imul(W,Me)|0,d=d+Math.imul(F,Ae)|0,a=a+Math.imul(F,Ee)|0,a=a+Math.imul(q,Ae)|0,p=p+Math.imul(q,Ee)|0;var Ut=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,d=Math.imul(se,de),a=Math.imul(se,pe),a=a+Math.imul(ae,de)|0,p=Math.imul(ae,pe),d=d+Math.imul(ne,me)|0,a=a+Math.imul(ne,ye)|0,a=a+Math.imul(ie,me)|0,p=p+Math.imul(ie,ye)|0,d=d+Math.imul(te,ge)|0,a=a+Math.imul(te,_e)|0,a=a+Math.imul(re,ge)|0,p=p+Math.imul(re,_e)|0,d=d+Math.imul(Q,ve)|0,a=a+Math.imul(Q,be)|0,a=a+Math.imul(ee,ve)|0,p=p+Math.imul(ee,be)|0,d=d+Math.imul(Z,xe)|0,a=a+Math.imul(Z,we)|0,a=a+Math.imul(J,xe)|0,p=p+Math.imul(J,we)|0,d=d+Math.imul($,ke)|0,a=a+Math.imul($,Me)|0,a=a+Math.imul(Y,ke)|0,p=p+Math.imul(Y,Me)|0,d=d+Math.imul(V,Ae)|0,a=a+Math.imul(V,Ee)|0,a=a+Math.imul(W,Ae)|0,p=p+Math.imul(W,Ee)|0;var Dt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,d=Math.imul(se,me),a=Math.imul(se,ye),a=a+Math.imul(ae,me)|0,p=Math.imul(ae,ye),d=d+Math.imul(ne,ge)|0,a=a+Math.imul(ne,_e)|0,a=a+Math.imul(ie,ge)|0,p=p+Math.imul(ie,_e)|0,d=d+Math.imul(te,ve)|0,a=a+Math.imul(te,be)|0,a=a+Math.imul(re,ve)|0,p=p+Math.imul(re,be)|0,d=d+Math.imul(Q,xe)|0,a=a+Math.imul(Q,we)|0,a=a+Math.imul(ee,xe)|0,p=p+Math.imul(ee,we)|0,d=d+Math.imul(Z,ke)|0,a=a+Math.imul(Z,Me)|0,a=a+Math.imul(J,ke)|0,p=p+Math.imul(J,Me)|0,d=d+Math.imul($,Ae)|0,a=a+Math.imul($,Ee)|0,a=a+Math.imul(Y,Ae)|0,p=p+Math.imul(Y,Ee)|0;var Pt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(se,ge),a=Math.imul(se,_e),a=a+Math.imul(ae,ge)|0,p=Math.imul(ae,_e),d=d+Math.imul(ne,ve)|0,a=a+Math.imul(ne,be)|0,a=a+Math.imul(ie,ve)|0,p=p+Math.imul(ie,be)|0,d=d+Math.imul(te,xe)|0,a=a+Math.imul(te,we)|0,a=a+Math.imul(re,xe)|0,p=p+Math.imul(re,we)|0,d=d+Math.imul(Q,ke)|0,a=a+Math.imul(Q,Me)|0,a=a+Math.imul(ee,ke)|0,p=p+Math.imul(ee,Me)|0,d=d+Math.imul(Z,Ae)|0,a=a+Math.imul(Z,Ee)|0,a=a+Math.imul(J,Ae)|0,p=p+Math.imul(J,Ee)|0;var Ft=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(se,ve),a=Math.imul(se,be),a=a+Math.imul(ae,ve)|0,p=Math.imul(ae,be),d=d+Math.imul(ne,xe)|0,a=a+Math.imul(ne,we)|0,a=a+Math.imul(ie,xe)|0,p=p+Math.imul(ie,we)|0,d=d+Math.imul(te,ke)|0,a=a+Math.imul(te,Me)|0,a=a+Math.imul(re,ke)|0,p=p+Math.imul(re,Me)|0,d=d+Math.imul(Q,Ae)|0,a=a+Math.imul(Q,Ee)|0,a=a+Math.imul(ee,Ae)|0,p=p+Math.imul(ee,Ee)|0;var qt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(qt>>>26)|0,qt&=67108863,d=Math.imul(se,xe),a=Math.imul(se,we),a=a+Math.imul(ae,xe)|0,p=Math.imul(ae,we),d=d+Math.imul(ne,ke)|0,a=a+Math.imul(ne,Me)|0,a=a+Math.imul(ie,ke)|0,p=p+Math.imul(ie,Me)|0,d=d+Math.imul(te,Ae)|0,a=a+Math.imul(te,Ee)|0,a=a+Math.imul(re,Ae)|0,p=p+Math.imul(re,Ee)|0;var Lt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,d=Math.imul(se,ke),a=Math.imul(se,Me),a=a+Math.imul(ae,ke)|0,p=Math.imul(ae,Me),d=d+Math.imul(ne,Ae)|0,a=a+Math.imul(ne,Ee)|0,a=a+Math.imul(ie,Ae)|0,p=p+Math.imul(ie,Ee)|0;var Gt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,d=Math.imul(se,Ae),a=Math.imul(se,Ee),a=a+Math.imul(ae,Ae)|0,p=Math.imul(ae,Ee);var Kt=(_+d|0)+((a&8191)<<13)|0;return _=(p+(a>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,m[0]=jt,m[1]=Je,m[2]=Qe,m[3]=St,m[4]=Tt,m[5]=Rt,m[6]=Ot,m[7]=It,m[8]=Nt,m[9]=Bt,m[10]=Ct,m[11]=Ut,m[12]=Dt,m[13]=Pt,m[14]=Ft,m[15]=qt,m[16]=Lt,m[17]=Gt,m[18]=Kt,_!==0&&(m[19]=_,u.length++),u};Math.imul||(B=O);function L(y,s,l){l.negative=s.negative^y.negative,l.length=y.length+s.length;for(var u=0,f=0,c=0;c<l.length-1;c++){var m=f;f=0;for(var _=u&67108863,d=Math.min(c,s.length-1),a=Math.max(0,c-y.length+1);a<=d;a++){var p=c-a,M=y.words[p]|0,x=s.words[a]|0,E=M*x,N=E&67108863;m=m+(E/67108864|0)|0,N=N+_|0,_=N&67108863,m=m+(N>>>26)|0,f+=m>>>26,m&=67108863}l.words[c]=_,u=m,m=f}return u!==0?l.words[c]=u:l.length--,l.strip()}function X(y,s,l){var u=new P;return u.mulp(y,s,l)}i.prototype.mulTo=function(s,l){var u,f=this.length+s.length;return this.length===10&&s.length===10?u=B(this,s,l):f<63?u=O(this,s,l):f<1024?u=L(this,s,l):u=X(this,s,l),u};function P(y,s){this.x=y,this.y=s}P.prototype.makeRBT=function(s){for(var l=new Array(s),u=i.prototype._countBits(s)-1,f=0;f<s;f++)l[f]=this.revBin(f,u,s);return l},P.prototype.revBin=function(s,l,u){if(s===0||s===u-1)return s;for(var f=0,c=0;c<l;c++)f|=(s&1)<<l-c-1,s>>=1;return f},P.prototype.permute=function(s,l,u,f,c,m){for(var _=0;_<m;_++)f[_]=l[s[_]],c[_]=u[s[_]]},P.prototype.transform=function(s,l,u,f,c,m){this.permute(m,s,l,u,f,c);for(var _=1;_<c;_<<=1)for(var d=_<<1,a=Math.cos(2*Math.PI/d),p=Math.sin(2*Math.PI/d),M=0;M<c;M+=d)for(var x=a,E=p,N=0;N<_;N++){var C=u[M+N],U=f[M+N],Re=u[M+N+_],F=f[M+N+_],q=x*Re-E*F;F=x*F+E*Re,Re=q,u[M+N]=C+Re,f[M+N]=U+F,u[M+N+_]=C-Re,f[M+N+_]=U-F,N!==d&&(q=a*x-p*E,E=a*E+p*x,x=q)}},P.prototype.guessLen13b=function(s,l){var u=Math.max(l,s)|1,f=u&1,c=0;for(u=u/2|0;u;u=u>>>1)c++;return 1<<c+1+f},P.prototype.conjugate=function(s,l,u){if(!(u<=1))for(var f=0;f<u/2;f++){var c=s[f];s[f]=s[u-f-1],s[u-f-1]=c,c=l[f],l[f]=-l[u-f-1],l[u-f-1]=-c}},P.prototype.normalize13b=function(s,l){for(var u=0,f=0;f<l/2;f++){var c=Math.round(s[2*f+1]/l)*8192+Math.round(s[2*f]/l)+u;s[f]=c&67108863,c<67108864?u=0:u=c/67108864|0}return s},P.prototype.convert13b=function(s,l,u,f){for(var c=0,m=0;m<l;m++)c=c+(s[m]|0),u[2*m]=c&8191,c=c>>>13,u[2*m+1]=c&8191,c=c>>>13;for(m=2*l;m<f;++m)u[m]=0;r(c===0),r((c&-8192)===0)},P.prototype.stub=function(s){for(var l=new Array(s),u=0;u<s;u++)l[u]=0;return l},P.prototype.mulp=function(s,l,u){var f=2*this.guessLen13b(s.length,l.length),c=this.makeRBT(f),m=this.stub(f),_=new Array(f),d=new Array(f),a=new Array(f),p=new Array(f),M=new Array(f),x=new Array(f),E=u.words;E.length=f,this.convert13b(s.words,s.length,_,f),this.convert13b(l.words,l.length,p,f),this.transform(_,m,d,a,f,c),this.transform(p,m,M,x,f,c);for(var N=0;N<f;N++){var C=d[N]*M[N]-a[N]*x[N];a[N]=d[N]*x[N]+a[N]*M[N],d[N]=C}return this.conjugate(d,a,f),this.transform(d,a,E,m,f,c),this.conjugate(E,m,f),this.normalize13b(E,f),u.negative=s.negative^l.negative,u.length=s.length+l.length,u.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),X(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,u=0;u<this.length;u++){var f=(this.words[u]|0)*s,c=(f&67108863)+(l&67108863);l>>=26,l+=f/67108864|0,l+=c>>>26,this.words[u]=c&67108863}return l!==0&&(this.words[u]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=R(s);if(l.length===0)return new i(1);for(var u=this,f=0;f<l.length&&l[f]===0;f++,u=u.sqr());if(++f<l.length)for(var c=u.sqr();f<l.length;f++,c=c.sqr())l[f]!==0&&(u=u.mul(c));return u},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=67108863>>>26-l<<26-l,c;if(l!==0){var m=0;for(c=0;c<this.length;c++){var _=this.words[c]&f,d=(this.words[c]|0)-_<<l;this.words[c]=d|m,m=_>>>26-l}m&&(this.words[c]=m,this.length++)}if(u!==0){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c<u;c++)this.words[c]=0;this.length+=u}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,u){r(typeof s=="number"&&s>=0);var f;l?f=(l-l%26)/26:f=0;var c=s%26,m=Math.min((s-c)/26,this.length),_=67108863^67108863>>>c<<c,d=u;if(f-=m,f=Math.max(0,f),d){for(var a=0;a<m;a++)d.words[a]=this.words[a];d.length=m}if(m!==0)if(this.length>m)for(this.length-=m,a=0;a<this.length;a++)this.words[a]=this.words[a+m];else this.words[0]=0,this.length=1;var p=0;for(a=this.length-1;a>=0&&(p!==0||a>=f);a--){var M=this.words[a]|0;this.words[a]=p<<26-c|M>>>c,p=M&_}return d&&p!==0&&(d.words[d.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,u){return r(this.negative===0),this.iushrn(s,l,u)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return!1;var c=this.words[u];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(l!==0&&u++,this.length=Math.min(u,this.length),l!==0){var f=67108863^67108863>>>l<<l;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,u){var f=s.length+u,c;this._expand(f);var m,_=0;for(c=0;c<s.length;c++){m=(this.words[c+u]|0)+_;var d=(s.words[c]|0)*l;m-=d&67108863,_=(m>>26)-(d/67108864|0),this.words[c+u]=m&67108863}for(;c<this.length-u;c++)m=(this.words[c+u]|0)+_,_=m>>26,this.words[c+u]=m&67108863;if(_===0)return this.strip();for(r(_===-1),_=0,c=0;c<this.length;c++)m=-(this.words[c]|0)+_,_=m>>26,this.words[c]=m&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var u=this.length-s.length,f=this.clone(),c=s,m=c.words[c.length-1]|0,_=this._countBits(m);u=26-_,u!==0&&(c=c.ushln(u),f.iushln(u),m=c.words[c.length-1]|0);var d=f.length-c.length,a;if(l!=="mod"){a=new i(null),a.length=d+1,a.words=new Array(a.length);for(var p=0;p<a.length;p++)a.words[p]=0}var M=f.clone()._ishlnsubmul(c,1,d);M.negative===0&&(f=M,a&&(a.words[d]=1));for(var x=d-1;x>=0;x--){var E=(f.words[c.length+x]|0)*67108864+(f.words[c.length+x-1]|0);for(E=Math.min(E/m|0,67108863),f._ishlnsubmul(c,E,x);f.negative!==0;)E--,f.negative=0,f._ishlnsubmul(c,1,x),f.isZero()||(f.negative^=1);a&&(a.words[x]=E)}return a&&a.strip(),f.strip(),l!=="div"&&u!==0&&f.iushrn(u),{div:a||null,mod:f}},i.prototype.divmod=function(s,l,u){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,m;return this.negative!==0&&s.negative===0?(m=this.neg().divmod(s,l),l!=="mod"&&(f=m.div.neg()),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(m=this.divmod(s.neg(),l),l!=="mod"&&(f=m.div.neg()),{div:f,mod:m.mod}):(this.negative&s.negative)!==0?(m=this.neg().divmod(s.neg(),l),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.isub(s)),{div:m.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var u=l.div.negative!==0?l.mod.isub(s):l.mod,f=s.ushrn(1),c=s.andln(1),m=u.cmp(f);return m<0||c===1&&m===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,u=0,f=this.length-1;f>=0;f--)u=(l*u+(this.words[f]|0))%s;return u},i.prototype.idivn=function(s){r(s<=67108863);for(var l=0,u=this.length-1;u>=0;u--){var f=(this.words[u]|0)+l*67108864;this.words[u]=f/s|0,l=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=new i(0),_=new i(1),d=0;l.isEven()&&u.isEven();)l.iushrn(1),u.iushrn(1),++d;for(var a=u.clone(),p=l.clone();!l.isZero();){for(var M=0,x=1;(l.words[0]&x)===0&&M<26;++M,x<<=1);if(M>0)for(l.iushrn(M);M-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(a),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var E=0,N=1;(u.words[0]&N)===0&&E<26;++E,N<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(m.isOdd()||_.isOdd())&&(m.iadd(a),_.isub(p)),m.iushrn(1),_.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(m),c.isub(_)):(u.isub(l),m.isub(f),_.isub(c))}return{a:m,b:_,gcd:u.iushln(d)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=u.clone();l.cmpn(1)>0&&u.cmpn(1)>0;){for(var _=0,d=1;(l.words[0]&d)===0&&_<26;++_,d<<=1);if(_>0)for(l.iushrn(_);_-- >0;)f.isOdd()&&f.iadd(m),f.iushrn(1);for(var a=0,p=1;(u.words[0]&p)===0&&a<26;++a,p<<=1);if(a>0)for(u.iushrn(a);a-- >0;)c.isOdd()&&c.iadd(m),c.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(c)):(u.isub(l),c.isub(f))}var M;return l.cmpn(1)===0?M=f:M=c,M.cmpn(0)<0&&M.iadd(s),M},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),u=s.clone();l.negative=0,u.negative=0;for(var f=0;l.isEven()&&u.isEven();f++)l.iushrn(1),u.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=l.cmp(u);if(c<0){var m=l;l=u,u=m}else if(c===0||u.cmpn(1)===0)break;l.isub(u)}while(!0);return u.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return this._expand(u+1),this.words[u]|=f,this;for(var c=f,m=u;c!==0&&m<this.length;m++){var _=this.words[m]|0;_+=c,c=_>>>26,_&=67108863,this.words[m]=_}return c!==0&&(this.words[m]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var u;if(this.length>1)u=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;u=f===s?0:f<s?-1:1}return this.negative!==0?-u|0:u},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,u=this.length-1;u>=0;u--){var f=this.words[u]|0,c=s.words[u]|0;if(f!==c){f<c?l=-1:f>c&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new j(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var H={k256:null,p224:null,p192:null,p25519:null};function D(y,s){this.name=y,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},D.prototype.ireduce=function(s){var l=s,u;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),u=l.bitLength();while(u>this.n);var f=u<this.n?-1:l.ucmp(this.p);return f===0?(l.words[0]=0,l.length=1):f>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},D.prototype.split=function(s,l){s.iushrn(this.n,0,l)},D.prototype.imulK=function(s){return s.imul(this.k)};function Se(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Se,D),Se.prototype.split=function(s,l){for(var u=4194303,f=Math.min(s.length,9),c=0;c<f;c++)l.words[c]=s.words[c];if(l.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var m=s.words[9];for(l.words[l.length++]=m&u,c=10;c<s.length;c++){var _=s.words[c]|0;s.words[c-10]=(_&u)<<4|m>>>22,m=_}m>>>=22,s.words[c-10]=m,m===0&&s.length>10?s.length-=10:s.length-=9},Se.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,u=0;u<s.length;u++){var f=s.words[u]|0;l+=f*977,s.words[u]=l&67108863,l=f*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function De(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(De,D);function Ce(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Ce,D);function Ke(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Ke,D),Ke.prototype.imulK=function(s){for(var l=0,u=0;u<s.length;u++){var f=(s.words[u]|0)*19+l,c=f&67108863;f>>>=26,s.words[u]=c,l=f}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(H[s])return H[s];var l;if(s==="k256")l=new Se;else if(s==="p224")l=new De;else if(s==="p192")l=new Ce;else if(s==="p25519")l=new Ke;else throw new Error("Unknown prime "+s);return H[s]=l,l};function j(y){if(typeof y=="string"){var s=i._prime(y);this.m=s.p,this.prime=s}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}j.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},j.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},j.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},j.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},j.prototype.add=function(s,l){this._verify2(s,l);var u=s.add(l);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},j.prototype.iadd=function(s,l){this._verify2(s,l);var u=s.iadd(l);return u.cmp(this.m)>=0&&u.isub(this.m),u},j.prototype.sub=function(s,l){this._verify2(s,l);var u=s.sub(l);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},j.prototype.isub=function(s,l){this._verify2(s,l);var u=s.isub(l);return u.cmpn(0)<0&&u.iadd(this.m),u},j.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},j.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},j.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},j.prototype.isqr=function(s){return this.imul(s,s.clone())},j.prototype.sqr=function(s){return this.mul(s,s)},j.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var u=this.m.add(new i(1)).iushrn(2);return this.pow(s,u)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var m=new i(1).toRed(this),_=m.redNeg(),d=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new i(2*a*a).toRed(this);this.pow(a,d).cmp(_)!==0;)a.redIAdd(_);for(var p=this.pow(a,f),M=this.pow(s,f.addn(1).iushrn(1)),x=this.pow(s,f),E=c;x.cmp(m)!==0;){for(var N=x,C=0;N.cmp(m)!==0;C++)N=N.redSqr();r(C<E);var U=this.pow(p,new i(1).iushln(E-C-1));M=M.redMul(U),p=U.redSqr(),x=x.redMul(p),E=C}return M},j.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},j.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var u=4,f=new Array(1<<u);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var m=f[0],_=0,d=0,a=l.bitLength()%26;for(a===0&&(a=26),c=l.length-1;c>=0;c--){for(var p=l.words[c],M=a-1;M>=0;M--){var x=p>>M&1;if(m!==f[0]&&(m=this.sqr(m)),x===0&&_===0){d=0;continue}_<<=1,_|=x,d++,!(d!==u&&(c!==0||M!==0))&&(m=this.mul(m,f[_]),d=0,_=0)}a=26}return m},j.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},j.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new Be(s)};function Be(y){j.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Be,j),Be.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Be.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},Be.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var u=s.imul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var u=s.mul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof b6>"u"||b6,NG)});var DG=I(UG=>{b();var CG=h0(),J5e=Ye(),Q5e=UG;Q5e.define=function(t,r){return new c0(t,r)};function c0(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}c0.prototype._createNamed=function(t){var r;try{r=Lp("vm").runInThisContext("(function "+this.name+`(entity) {
190
+ this._initNamed(entity);
191
+ })`)}catch{r=function(i){this._initNamed(i)}}return J5e(r,t),r.prototype._initNamed=function(i){t.call(this,i)},new r(this)};c0.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(CG.decoders[t])),this.decoders[t]};c0.prototype.decode=function(t,r,n){return this._getDecoder(r).decode(t,n)};c0.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(CG.encoders[t])),this.encoders[t]};c0.prototype.encode=function(t,r,n){return this._getEncoder(r).encode(t,n)}});var FG=I(PG=>{b();var eTe=Ye();function qi(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}PG.Reporter=qi;qi.prototype.isError=function(t){return t instanceof d0};qi.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};qi.prototype.restore=function(t){var r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};qi.prototype.enterKey=function(t){return this._reporterState.path.push(t)};qi.prototype.exitKey=function(t){var r=this._reporterState;r.path=r.path.slice(0,t-1)};qi.prototype.leaveKey=function(t,r,n){var i=this._reporterState;this.exitKey(t),i.obj!==null&&(i.obj[r]=n)};qi.prototype.path=function(){return this._reporterState.path.join("/")};qi.prototype.enterObject=function(){var t=this._reporterState,r=t.obj;return t.obj={},r};qi.prototype.leaveObject=function(t){var r=this._reporterState,n=r.obj;return r.obj=t,n};qi.prototype.error=function(t){var r,n=this._reporterState,i=t instanceof d0;if(i?r=t:r=new d0(n.path.map(function(o){return"["+JSON.stringify(o)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw r;return i||n.errors.push(r),r};qi.prototype.wrapResult=function(t){var r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function d0(e,t){this.path=e,this.rethrow(t)}eTe(d0,Error);d0.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,d0),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var w6=I(x6=>{b();var tTe=Ye(),Kg=p0().Reporter,lp=ii().Buffer;function ea(e,t){if(Kg.call(this,t),!lp.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}tTe(ea,Kg);x6.DecoderBuffer=ea;ea.prototype.save=function(){return{offset:this.offset,reporter:Kg.prototype.save.call(this)}};ea.prototype.restore=function(t){var r=new ea(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,Kg.prototype.restore.call(this,t.reporter),r};ea.prototype.isEmpty=function(){return this.offset===this.length};ea.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};ea.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");var n=new ea(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n};ea.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function Gg(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return r instanceof Gg||(r=new Gg(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=lp.byteLength(e);else if(lp.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}x6.EncoderBuffer=Gg;Gg.prototype.join=function(t,r){return t||(t=new lp(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(t,r),r+=n.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):lp.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}});var GG=I((eYe,LG)=>{b();var rTe=p0().Reporter,nTe=p0().EncoderBuffer,iTe=p0().DecoderBuffer,Gn=_i(),qG=["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"],sTe=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(qG),aTe=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Et(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}LG.exports=Et;var oTe=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Et.prototype.clone=function(){var t=this._baseState,r={};oTe.forEach(function(i){r[i]=t[i]});var n=new this.constructor(r.parent);return n._baseState=r,n};Et.prototype._wrap=function(){var t=this._baseState;sTe.forEach(function(r){this[r]=function(){var i=new this.constructor(this);return t.children.push(i),i[r].apply(i,arguments)}},this)};Et.prototype._init=function(t){var r=this._baseState;Gn(r.parent===null),t.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),Gn.equal(r.children.length,1,"Root node can have only one child")};Et.prototype._useArgs=function(t){var r=this._baseState,n=t.filter(function(i){return i instanceof this.constructor},this);t=t.filter(function(i){return!(i instanceof this.constructor)},this),n.length!==0&&(Gn(r.children===null),r.children=n,n.forEach(function(i){i._baseState.parent=this},this)),t.length!==0&&(Gn(r.args===null),r.args=t,r.reverseArgs=t.map(function(i){if(typeof i!="object"||i.constructor!==Object)return i;var o={};return Object.keys(i).forEach(function(h){h==(h|0)&&(h|=0);var g=i[h];o[g]=h}),o}))};aTe.forEach(function(e){Et.prototype[e]=function(){var r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});qG.forEach(function(e){Et.prototype[e]=function(){var r=this._baseState,n=Array.prototype.slice.call(arguments);return Gn(r.tag===null),r.tag=e,this._useArgs(n),this}});Et.prototype.use=function(t){Gn(t);var r=this._baseState;return Gn(r.use===null),r.use=t,this};Et.prototype.optional=function(){var t=this._baseState;return t.optional=!0,this};Et.prototype.def=function(t){var r=this._baseState;return Gn(r.default===null),r.default=t,r.optional=!0,this};Et.prototype.explicit=function(t){var r=this._baseState;return Gn(r.explicit===null&&r.implicit===null),r.explicit=t,this};Et.prototype.implicit=function(t){var r=this._baseState;return Gn(r.explicit===null&&r.implicit===null),r.implicit=t,this};Et.prototype.obj=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};Et.prototype.key=function(t){var r=this._baseState;return Gn(r.key===null),r.key=t,this};Et.prototype.any=function(){var t=this._baseState;return t.any=!0,this};Et.prototype.choice=function(t){var r=this._baseState;return Gn(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(n){return t[n]})),this};Et.prototype.contains=function(t){var r=this._baseState;return Gn(r.use===null),r.contains=t,this};Et.prototype._decode=function(t,r){var n=this._baseState;if(n.parent===null)return t.wrapResult(n.children[0]._decode(t,r));var i=n.default,o=!0,h=null;if(n.key!==null&&(h=t.enterKey(n.key)),n.optional){var g=null;if(n.explicit!==null?g=n.explicit:n.implicit!==null?g=n.implicit:n.tag!==null&&(g=n.tag),g===null&&!n.any){var v=t.save();try{n.choice===null?this._decodeGeneric(n.tag,t,r):this._decodeChoice(t,r),o=!0}catch{o=!1}t.restore(v)}else if(o=this._peekTag(t,g,n.any),t.isError(o))return o}var w;if(n.obj&&o&&(w=t.enterObject()),o){if(n.explicit!==null){var k=this._decodeTag(t,n.explicit);if(t.isError(k))return k;t=k}var A=t.offset;if(n.use===null&&n.choice===null){if(n.any)var v=t.save();var R=this._decodeTag(t,n.implicit!==null?n.implicit:n.tag,n.any);if(t.isError(R))return R;n.any?i=t.raw(v):t=R}if(r&&r.track&&n.tag!==null&&r.track(t.path(),A,t.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),n.any?i=i:n.choice===null?i=this._decodeGeneric(n.tag,t,r):i=this._decodeChoice(t,r),t.isError(i))return i;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(L){L._decode(t,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){var O=new iTe(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(O,r)}}return n.obj&&o&&(i=t.leaveObject(w)),n.key!==null&&(i!==null||o===!0)?t.leaveKey(h,n.key,i):h!==null&&t.exitKey(h),i};Et.prototype._decodeGeneric=function(t,r,n){var i=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,i.args[0],n):/str$/.test(t)?this._decodeStr(r,t,n):t==="objid"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],n):t==="objid"?this._decodeObjid(r,null,null,n):t==="gentime"||t==="utctime"?this._decodeTime(r,t,n):t==="null_"?this._decodeNull(r,n):t==="bool"?this._decodeBool(r,n):t==="objDesc"?this._decodeStr(r,t,n):t==="int"||t==="enum"?this._decodeInt(r,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+t)};Et.prototype._getUse=function(t,r){var n=this._baseState;return n.useDecoder=this._use(t,r),Gn(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};Et.prototype._decodeChoice=function(t,r){var n=this._baseState,i=null,o=!1;return Object.keys(n.choice).some(function(h){var g=t.save(),v=n.choice[h];try{var w=v._decode(t,r);if(t.isError(w))return!1;i={type:h,value:w},o=!0}catch{return t.restore(g),!1}return!0},this),o?i:t.error("Choice not matched")};Et.prototype._createEncoderBuffer=function(t){return new nTe(t,this.reporter)};Et.prototype._encode=function(t,r,n){var i=this._baseState;if(!(i.default!==null&&i.default===t)){var o=this._encodeValue(t,r,n);if(o!==void 0&&!this._skipDefault(o,r,n))return o}};Et.prototype._encodeValue=function(t,r,n){var i=this._baseState;if(i.parent===null)return i.children[0]._encode(t,r||new rTe);var v=null;if(this.reporter=r,i.optional&&t===void 0)if(i.default!==null)t=i.default;else return;var o=null,h=!1;if(i.any)v=this._createEncoderBuffer(t);else if(i.choice)v=this._encodeChoice(t,r);else if(i.contains)o=this._getUse(i.contains,n)._encode(t,r),h=!0;else if(i.children)o=i.children.map(function(A){if(A._baseState.tag==="null_")return A._encode(null,r,t);if(A._baseState.key===null)return r.error("Child should have a key");var R=r.enterKey(A._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");var O=A._encode(t[A._baseState.key],r,t);return r.leaveKey(R),O},this).filter(function(A){return A}),o=this._createEncoderBuffer(o);else if(i.tag==="seqof"||i.tag==="setof"){if(!(i.args&&i.args.length===1))return r.error("Too many args for : "+i.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");var g=this.clone();g._baseState.implicit=null,o=this._createEncoderBuffer(t.map(function(A){var R=this._baseState;return this._getUse(R.args[0],t)._encode(A,r)},g))}else i.use!==null?v=this._getUse(i.use,n)._encode(t,r):(o=this._encodePrimitive(i.tag,t),h=!0);var v;if(!i.any&&i.choice===null){var w=i.implicit!==null?i.implicit:i.tag,k=i.implicit===null?"universal":"context";w===null?i.use===null&&r.error("Tag could be omitted only for .use()"):i.use===null&&(v=this._encodeComposite(w,h,k,o))}return i.explicit!==null&&(v=this._encodeComposite(i.explicit,!1,"context",v)),v};Et.prototype._encodeChoice=function(t,r){var n=this._baseState,i=n.choice[t.type];return i||Gn(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,r)};Et.prototype._encodePrimitive=function(t,r){var n=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,n.args&&n.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};Et.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};Et.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}});var p0=I(KG=>{b();var Hg=KG;Hg.Reporter=FG().Reporter;Hg.DecoderBuffer=w6().DecoderBuffer;Hg.EncoderBuffer=w6().EncoderBuffer;Hg.Node=GG()});var zG=I(Vf=>{b();var HG=k6();Vf.tagClass={0:"universal",1:"application",2:"context",3:"private"};Vf.tagClassByName=HG._reverse(Vf.tagClass);Vf.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"};Vf.tagByName=HG._reverse(Vf.tag)});var k6=I(VG=>{b();var jG=VG;jG._reverse=function(t){var r={};return Object.keys(t).forEach(function(n){(n|0)==n&&(n=n|0);var i=t[n];r[i]=n}),r};jG.der=zG()});var E6=I((lYe,YG)=>{b();var lTe=Ye(),M6=h0(),zg=M6.base,fTe=M6.bignum,WG=M6.constants.der;function XG(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new bi,this.tree._init(e.body)}YG.exports=XG;XG.prototype.decode=function(t,r){return t instanceof zg.DecoderBuffer||(t=new zg.DecoderBuffer(t,r)),this.tree._decode(t,r)};function bi(e){zg.Node.call(this,"der",e)}lTe(bi,zg.Node);bi.prototype._peekTag=function(t,r,n){if(t.isEmpty())return!1;var i=t.save(),o=A6(t,'Failed to peek tag: "'+r+'"');return t.isError(o)?o:(t.restore(i),o.tag===r||o.tagStr===r||o.tagStr+"of"===r||n)};bi.prototype._decodeTag=function(t,r,n){var i=A6(t,'Failed to decode tag of "'+r+'"');if(t.isError(i))return i;var o=$G(t,i.primitive,'Failed to get length of "'+r+'"');if(t.isError(o))return o;if(!n&&i.tag!==r&&i.tagStr!==r&&i.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(i.primitive||o!==null)return t.skip(o,'Failed to match body of: "'+r+'"');var h=t.save(),g=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(g)?g:(o=t.offset-h.offset,t.restore(h),t.skip(o,'Failed to match body of: "'+r+'"'))};bi.prototype._skipUntilEnd=function(t,r){for(;;){var n=A6(t,r);if(t.isError(n))return n;var i=$G(t,n.primitive,r);if(t.isError(i))return i;var o;if(n.primitive||i!==null?o=t.skip(i):o=this._skipUntilEnd(t,r),t.isError(o))return o;if(n.tagStr==="end")break}};bi.prototype._decodeList=function(t,r,n,i){for(var o=[];!t.isEmpty();){var h=this._peekTag(t,"end");if(t.isError(h))return h;var g=n.decode(t,"der",i);if(t.isError(g)&&h)break;o.push(g)}return o};bi.prototype._decodeStr=function(t,r){if(r==="bitstr"){var n=t.readUInt8();return t.isError(n)?n:{unused:n,data:t.raw()}}else if(r==="bmpstr"){var i=t.raw();if(i.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var o="",h=0;h<i.length/2;h++)o+=String.fromCharCode(i.readUInt16BE(h*2));return o}else if(r==="numstr"){var g=t.raw().toString("ascii");return this._isNumstr(g)?g:t.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return t.raw();if(r==="objDesc")return t.raw();if(r==="printstr"){var v=t.raw().toString("ascii");return this._isPrintstr(v)?v:t.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")}};bi.prototype._decodeObjid=function(t,r,n){for(var i,o=[],h=0;!t.isEmpty();){var g=t.readUInt8();h<<=7,h|=g&127,(g&128)===0&&(o.push(h),h=0)}g&128&&o.push(h);var v=o[0]/40|0,w=o[0]%40;if(n?i=o:i=[v,w].concat(o.slice(1)),r){var k=r[i.join(" ")];k===void 0&&(k=r[i.join(".")]),k!==void 0&&(i=k)}return i};bi.prototype._decodeTime=function(t,r){var n=t.raw().toString();if(r==="gentime")var i=n.slice(0,4)|0,o=n.slice(4,6)|0,h=n.slice(6,8)|0,g=n.slice(8,10)|0,v=n.slice(10,12)|0,w=n.slice(12,14)|0;else if(r==="utctime"){var i=n.slice(0,2)|0,o=n.slice(2,4)|0,h=n.slice(4,6)|0,g=n.slice(6,8)|0,v=n.slice(8,10)|0,w=n.slice(10,12)|0;i<70?i=2e3+i:i=1900+i}else return t.error("Decoding "+r+" time is not supported yet");return Date.UTC(i,o-1,h,g,v,w,0)};bi.prototype._decodeNull=function(t){return null};bi.prototype._decodeBool=function(t){var r=t.readUInt8();return t.isError(r)?r:r!==0};bi.prototype._decodeInt=function(t,r){var n=t.raw(),i=new fTe(n);return r&&(i=r[i.toString(10)]||i),i};bi.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getDecoder("der").tree};function A6(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=WG.tagClass[r>>6],i=(r&32)===0;if((r&31)===31){var o=r;for(r=0;(o&128)===128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=o&127}}else r&=31;var h=WG.tag[r];return{cls:n,primitive:i,tag:r,tagStr:h}}function $G(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&n===128)return null;if((n&128)===0)return n;var i=n&127;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var h=e.readUInt8(r);if(e.isError(h))return h;n|=h}return n}});var JG=I((uYe,ZG)=>{b();var uTe=Ye(),cTe=ii().Buffer,S6=E6();function T6(e){S6.call(this,e),this.enc="pem"}uTe(T6,S6);ZG.exports=T6;T6.prototype.decode=function(t,r){for(var n=t.toString().split(/[\r\n]+/g),i=r.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,h=-1,g=-1,v=0;v<n.length;v++){var w=n[v].match(o);if(w!==null&&w[2]===i)if(h===-1){if(w[1]!=="BEGIN")break;h=v}else{if(w[1]!=="END")break;g=v;break}}if(h===-1||g===-1)throw new Error("PEM section not found for: "+i);var k=n.slice(h+1,g).join("");k.replace(/[^a-z0-9\+\/=]+/gi,"");var A=new cTe(k,"base64");return S6.prototype.decode.call(this,A,r)}});var tK=I(eK=>{b();var QG=eK;QG.der=E6();QG.pem=JG()});var O6=I((pYe,sK)=>{b();var hTe=Ye(),to=ii().Buffer,rK=h0(),nK=rK.base,R6=rK.constants.der;function iK(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new us,this.tree._init(e.body)}sK.exports=iK;iK.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function us(e){nK.Node.call(this,"der",e)}hTe(us,nK.Node);us.prototype._encodeComposite=function(t,r,n,i){var o=dTe(t,r,n,this.reporter);if(i.length<128){var v=new to(2);return v[0]=o,v[1]=i.length,this._createEncoderBuffer([v,i])}for(var h=1,g=i.length;g>=256;g>>=8)h++;var v=new to(2+h);v[0]=o,v[1]=128|h;for(var g=1+h,w=i.length;w>0;g--,w>>=8)v[g]=w&255;return this._createEncoderBuffer([v,i])};us.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){for(var n=new to(t.length*2),i=0;i<t.length;i++)n.writeUInt16BE(t.charCodeAt(i),i*2);return this._createEncoderBuffer(n)}else return r==="numstr"?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(t)?this._createEncoderBuffer(t):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(r)?this._createEncoderBuffer(t):r==="objDesc"?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")};us.prototype._encodeObjid=function(t,r,n){if(typeof t=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s\.]+/g);for(var i=0;i<t.length;i++)t[i]|=0}else if(Array.isArray(t)){t=t.slice();for(var i=0;i<t.length;i++)t[i]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}for(var o=0,i=0;i<t.length;i++){var h=t[i];for(o++;h>=128;h>>=7)o++}for(var g=new to(o),v=g.length-1,i=t.length-1;i>=0;i--){var h=t[i];for(g[v--]=h&127;(h>>=7)>0;)g[v--]=128|h&127}return this._createEncoderBuffer(g)};function Li(e){return e<10?"0"+e:e}us.prototype._encodeTime=function(t,r){var n,i=new Date(t);return r==="gentime"?n=[Li(i.getFullYear()),Li(i.getUTCMonth()+1),Li(i.getUTCDate()),Li(i.getUTCHours()),Li(i.getUTCMinutes()),Li(i.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[Li(i.getFullYear()%100),Li(i.getUTCMonth()+1),Li(i.getUTCDate()),Li(i.getUTCHours()),Li(i.getUTCMinutes()),Li(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};us.prototype._encodeNull=function(){return this._createEncoderBuffer("")};us.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!to.isBuffer(t)){var n=t.toArray();!t.sign&&n[0]&128&&n.unshift(0),t=new to(n)}if(to.isBuffer(t)){var i=t.length;t.length===0&&i++;var h=new to(i);return t.copy(h),t.length===0&&(h[0]=0),this._createEncoderBuffer(h)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var i=1,o=t;o>=256;o>>=8)i++;for(var h=new Array(i),o=h.length-1;o>=0;o--)h[o]=t&255,t>>=8;return h[0]&128&&h.unshift(0),this._createEncoderBuffer(new to(h))};us.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};us.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};us.prototype._skipDefault=function(t,r,n){var i=this._baseState,o;if(i.default===null)return!1;var h=t.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,n).join()),h.length!==i.defaultBuffer.length)return!1;for(o=0;o<h.length;o++)if(h[o]!==i.defaultBuffer[o])return!1;return!0};function dTe(e,t,r,n){var i;if(e==="seqof"?e="seq":e==="setof"&&(e="set"),R6.tagByName.hasOwnProperty(e))i=R6.tagByName[e];else if(typeof e=="number"&&(e|0)===e)i=e;else return n.error("Unknown tag: "+e);return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=R6.tagClassByName[r||"universal"]<<6,i)}});var oK=I((yYe,aK)=>{b();var pTe=Ye(),I6=O6();function N6(e){I6.call(this,e),this.enc="pem"}pTe(N6,I6);aK.exports=N6;N6.prototype.encode=function(t,r){for(var n=I6.prototype.encode.call(this,t),i=n.toString("base64"),o=["-----BEGIN "+r.label+"-----"],h=0;h<i.length;h+=64)o.push(i.slice(h,h+64));return o.push("-----END "+r.label+"-----"),o.join(`
192
+ `)}});var uK=I(fK=>{b();var lK=fK;lK.der=O6();lK.pem=oK()});var h0=I(cK=>{b();var m0=cK;m0.bignum=BG();m0.define=DG().define;m0.base=p0();m0.constants=k6();m0.decoders=tK();m0.encoders=uK()});var mK=I((wYe,pK)=>{"use strict";b();var cs=h0(),hK=cs.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),mTe=cs.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),B6=cs.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),yTe=cs.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(B6),this.key("subjectPublicKey").bitstr())}),gTe=cs.define("RelativeDistinguishedName",function(){this.setof(mTe)}),_Te=cs.define("RDNSequence",function(){this.seqof(gTe)}),dK=cs.define("Name",function(){this.choice({rdnSequence:this.use(_Te)})}),vTe=cs.define("Validity",function(){this.seq().obj(this.key("notBefore").use(hK),this.key("notAfter").use(hK))}),bTe=cs.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),xTe=cs.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(B6),this.key("issuer").use(dK),this.key("validity").use(vTe),this.key("subject").use(dK),this.key("subjectPublicKeyInfo").use(yTe),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(bTe).optional())}),wTe=cs.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(xTe),this.key("signatureAlgorithm").use(B6),this.key("signatureValue").bitstr())});pK.exports=wTe});var gK=I(ds=>{"use strict";b();var hs=h0();ds.certificate=mK();var kTe=hs.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())});ds.RSAPrivateKey=kTe;var MTe=hs.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});ds.RSAPublicKey=MTe;var yK=hs.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())}),ATe=hs.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(yK),this.key("subjectPublicKey").bitstr())});ds.PublicKey=ATe;var ETe=hs.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(yK),this.key("subjectPrivateKey").octstr())});ds.PrivateKey=ETe;var STe=hs.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())});ds.EncryptedPrivateKey=STe;var TTe=hs.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())});ds.DSAPrivateKey=TTe;ds.DSAparam=hs.define("DSAparam",function(){this.int()});var RTe=hs.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),OTe=hs.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(RTe),this.key("publicKey").optional().explicit(1).bitstr())});ds.ECPrivateKey=OTe;ds.signature=hs.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var _K=I((EYe,ITe)=>{ITe.exports={"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 bK=I((SYe,vK)=>{"use strict";b();var NTe=/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,BTe=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,CTe=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,UTe=ep(),DTe=_g(),jg=rt().Buffer;vK.exports=function(e,t){var r=e.toString(),n=r.match(NTe),i;if(n){var h="aes"+n[1],g=jg.from(n[2],"hex"),v=jg.from(n[3].replace(/[\r\n]/g,""),"base64"),w=UTe(t,g.slice(0,8),parseInt(n[1],10)).key,k=[],A=DTe.createDecipheriv(h,w,g);k.push(A.update(v)),k.push(A.final()),i=jg.concat(k)}else{var o=r.match(CTe);i=jg.from(o[2].replace(/[\r\n]/g,""),"base64")}var R=r.match(BTe)[1];return{tag:R,data:i}}});var fp=I((RYe,wK)=>{"use strict";b();var ri=gK(),PTe=_K(),FTe=bK(),qTe=_g(),LTe=vM().pbkdf2Sync,C6=rt().Buffer;function GTe(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=PTe[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,h=e.subjectPrivateKey,g=parseInt(i.split("-")[1],10)/8,v=LTe(t,r,n,g,"sha1"),w=qTe.createDecipheriv(i,v,o),k=[];return k.push(w.update(h)),k.push(w.final()),C6.concat(k)}function xK(e){var t;typeof e=="object"&&!C6.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e=="string"&&(e=C6.from(e));var r=FTe(e,t),n=r.tag,i=r.data,o,h;switch(n){case"CERTIFICATE":h=ri.certificate.decode(i,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=ri.PublicKey.decode(i,"der")),o=h.algorithm.algorithm.join("."),o){case"1.2.840.113549.1.1.1":return ri.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=ri.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+o)}case"ENCRYPTED PRIVATE KEY":i=ri.EncryptedPrivateKey.decode(i,"der"),i=GTe(i,t);case"PRIVATE KEY":switch(h=ri.PrivateKey.decode(i,"der"),o=h.algorithm.algorithm.join("."),o){case"1.2.840.113549.1.1.1":return ri.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:ri.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=ri.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+o)}case"RSA PUBLIC KEY":return ri.RSAPublicKey.decode(i,"der");case"RSA PRIVATE KEY":return ri.RSAPrivateKey.decode(i,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:ri.DSAPrivateKey.decode(i,"der")};case"EC PRIVATE KEY":return i=ri.ECPrivateKey.decode(i,"der"),{curve:i.parameters.value,privateKey:i.privateKey};default:throw new Error("unknown key type "+n)}}xK.signature=ri.signature;wK.exports=xK});var U6=I((IYe,KTe)=>{KTe.exports={"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 AK=I((NYe,Wg)=>{"use strict";b();var In=rt().Buffer,Wf=uM(),HTe=kg(),zTe=Lg().ec,Vg=wg(),jTe=fp(),VTe=U6(),WTe=1;function XTe(e,t,r,n,i){var o=jTe(t);if(o.curve){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");return $Te(e,o)}else if(o.type==="dsa"){if(n!=="dsa")throw new Error("wrong private key type");return YTe(e,o,r)}if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");if(t.padding!==void 0&&t.padding!==WTe)throw new Error("illegal or unsupported padding mode");e=In.concat([i,e]);for(var h=o.modulus.byteLength(),g=[0,1];e.length+g.length+1<h;)g.push(255);g.push(0);for(var v=-1;++v<e.length;)g.push(e[v]);var w=HTe(g,o);return w}function $Te(e,t){var r=VTe[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var n=new zTe(r),i=n.keyFromPrivate(t.privateKey),o=i.sign(e);return In.from(o.toDER())}function YTe(e,t,r){for(var n=t.params.priv_key,i=t.params.p,o=t.params.q,h=t.params.g,g=new Vg(0),v,w=D6(e,o).mod(o),k=!1,A=kK(n,o,e,r);k===!1;)v=MK(o,A,r),g=QTe(h,v,i,o),k=v.invm(o).imul(w.add(n.mul(g))).mod(o),k.cmpn(0)===0&&(k=!1,g=new Vg(0));return ZTe(g,k)}function ZTe(e,t){e=e.toArray(),t=t.toArray(),e[0]&128&&(e=[0].concat(e)),t[0]&128&&(t=[0].concat(t));var r=e.length+t.length+4,n=[48,r,2,e.length];return n=n.concat(e,[2,t.length],t),In.from(n)}function kK(e,t,r,n){if(e=In.from(e.toArray()),e.length<t.byteLength()){var i=In.alloc(t.byteLength()-e.length);e=In.concat([i,e])}var o=r.length,h=JTe(r,t),g=In.alloc(o);g.fill(1);var v=In.alloc(o);return v=Wf(n,v).update(g).update(In.from([0])).update(e).update(h).digest(),g=Wf(n,v).update(g).digest(),v=Wf(n,v).update(g).update(In.from([1])).update(e).update(h).digest(),g=Wf(n,v).update(g).digest(),{k:v,v:g}}function D6(e,t){var r=new Vg(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function JTe(e,t){e=D6(e,t),e=e.mod(t);var r=In.from(e.toArray());if(r.length<t.byteLength()){var n=In.alloc(t.byteLength()-r.length);r=In.concat([n,r])}return r}function MK(e,t,r){var n,i;do{for(n=In.alloc(0);n.length*8<e.bitLength();)t.v=Wf(r,t.k).update(t.v).digest(),n=In.concat([n,t.v]);i=D6(n,e),t.k=Wf(r,t.k).update(t.v).update(In.from([0])).digest(),t.v=Wf(r,t.k).update(t.v).digest()}while(i.cmp(e)!==-1);return i}function QTe(e,t,r,n){return e.toRed(Vg.mont(r)).redPow(t).fromRed().mod(n)}Wg.exports=XTe;Wg.exports.getKey=kK;Wg.exports.makeKey=MK});var RK=I((CYe,TK)=>{"use strict";b();var P6=rt().Buffer,up=wg(),e7e=Lg().ec,SK=fp(),t7e=U6();function r7e(e,t,r,n,i){var o=SK(r);if(o.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return n7e(e,t,o)}else if(o.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return i7e(e,t,o)}if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");t=P6.concat([i,t]);for(var h=o.modulus.byteLength(),g=[1],v=0;t.length+g.length+2<h;)g.push(255),v+=1;g.push(0);for(var w=-1;++w<t.length;)g.push(t[w]);g=P6.from(g);var k=up.mont(o.modulus);e=new up(e).toRed(k),e=e.redPow(new up(o.publicExponent)),e=P6.from(e.fromRed().toArray());var A=v<8?1:0;for(h=Math.min(e.length,g.length),e.length!==g.length&&(A=1),w=-1;++w<h;)A|=e[w]^g[w];return A===0}function n7e(e,t,r){var n=t7e[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new e7e(n),o=r.data.subjectPrivateKey.data;return i.verify(t,e,o)}function i7e(e,t,r){var n=r.data.p,i=r.data.q,o=r.data.g,h=r.data.pub_key,g=SK.signature.decode(e,"der"),v=g.s,w=g.r;EK(v,i),EK(w,i);var k=up.mont(n),A=v.invm(i),R=o.toRed(k).redPow(new up(t).mul(A).mod(i)).fromRed().mul(h.toRed(k).redPow(w.mul(A).mod(i)).fromRed()).mod(n).mod(i);return R.cmp(w)===0}function EK(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}TK.exports=r7e});var UK=I((DYe,CK)=>{"use strict";b();var Xg=rt().Buffer,NK=jc(),$g=nM(),BK=Ye(),s7e=AK(),a7e=RK(),Xf=cM();Object.keys(Xf).forEach(function(e){Xf[e].id=Xg.from(Xf[e].id,"hex"),Xf[e.toLowerCase()]=Xf[e]});function cp(e){$g.Writable.call(this);var t=Xf[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=NK(t.hash),this._tag=t.id,this._signType=t.sign}BK(cp,$g.Writable);cp.prototype._write=function(t,r,n){this._hash.update(t),n()};cp.prototype.update=function(t,r){return this._hash.update(typeof t=="string"?Xg.from(t,r):t),this};cp.prototype.sign=function(t,r){this.end();var n=this._hash.digest(),i=s7e(n,t,this._hashType,this._signType,this._tag);return r?i.toString(r):i};function hp(e){$g.Writable.call(this);var t=Xf[e];if(!t)throw new Error("Unknown message digest");this._hash=NK(t.hash),this._tag=t.id,this._signType=t.sign}BK(hp,$g.Writable);hp.prototype._write=function(t,r,n){this._hash.update(t),n()};hp.prototype.update=function(t,r){return this._hash.update(typeof t=="string"?Xg.from(t,r):t),this};hp.prototype.verify=function(t,r,n){var i=typeof r=="string"?Xg.from(r,n):r;this.end();var o=this._hash.digest();return a7e(i,o,t,this._signType,this._tag)};function OK(e){return new cp(e)}function IK(e){return new hp(e)}CK.exports={Sign:OK,Verify:IK,createSign:OK,createVerify:IK}});var PK=I((DK,F6)=>{b();(function(e,t){"use strict";function r(y,s){if(!y)throw new Error(s||"Assertion failed")}function n(y,s){y.super_=s;var l=function(){};l.prototype=s.prototype,y.prototype=new l,y.prototype.constructor=y}function i(y,s,l){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(y||0,s||10,l||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ol().Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,u){if(typeof s=="number")return this._initNumber(s,l,u);if(typeof s=="object")return this._initArray(s,l,u);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(l===16?this._parseHex(s,f,u):(this._parseBase(s,l,f),u==="le"&&this._initArray(this.toArray(),l,u)))},i.prototype._initNumber=function(s,l,u){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),l,u)},i.prototype._initArray=function(s,l,u){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,m,_=0;if(u==="be")for(f=s.length-1,c=0;f>=0;f-=3)m=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);else if(u==="le")for(f=0,c=0;f<s.length;f+=3)m=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);return this.strip()};function h(y,s){var l=y.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(y,s,l){var u=h(y,l);return l-1>=s&&(u|=h(y,l-1)<<4),u}i.prototype._parseHex=function(s,l,u){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,m=0,_;if(u==="be")for(f=s.length-1;f>=l;f-=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8;else{var d=s.length-l;for(f=d%2===0?l+1:l;f<s.length;f+=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8}this.strip()};function v(y,s,l,u){for(var f=0,c=Math.min(y.length,l),m=s;m<c;m++){var _=y.charCodeAt(m)-48;f*=u,_>=49?f+=_-49+10:_>=17?f+=_-17+10:f+=_}return f}i.prototype._parseBase=function(s,l,u){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=l)f++;f--,c=c/l|0;for(var m=s.length-u,_=m%f,d=Math.min(m,m-_)+u,a=0,p=u;p<d;p+=f)a=v(s,p,p+f,l),this.imuln(c),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(_!==0){var M=1;for(a=v(s,p,s.length,l),p=0;p<_;p++)M*=l;this.imuln(M),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","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"],k=[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],A=[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];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var u;if(s===16||s==="hex"){u="";for(var f=0,c=0,m=0;m<this.length;m++){var _=this.words[m],d=((_<<f|c)&16777215).toString(16);c=_>>>24-f&16777215,f+=2,f>=26&&(f-=26,m--),c!==0||m!==this.length-1?u=w[6-d.length]+d+u:u=d+u}for(c!==0&&(u=c.toString(16)+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(s===(s|0)&&s>=2&&s<=36){var a=k[s],p=A[s];u="";var M=this.clone();for(M.negative=0;!M.isZero();){var x=M.modn(p).toString(s);M=M.idivn(p),M.isZero()?u=x+u:u=w[a-x.length]+x+u}for(this.isZero()&&(u="0"+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,u){var f=this.byteLength(),c=u||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var m=l==="le",_=new s(c),d,a,p=this.clone();if(m){for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[a]=d;for(;a<c;a++)_[a]=0}else{for(a=0;a<c-f;a++)_[a]=0;for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[c-a-1]=d}return _},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,u=0;return l>=4096&&(u+=13,l>>>=13),l>=64&&(u+=7,l>>>=7),l>=8&&(u+=4,l>>>=4),l>=2&&(u+=2,l>>>=2),u+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,u=0;return(l&8191)===0&&(u+=13,l>>>=13),(l&127)===0&&(u+=7,l>>>=7),(l&15)===0&&(u+=4,l>>>=4),(l&3)===0&&(u+=2,l>>>=2),(l&1)===0&&u++,u},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function R(y){for(var s=new Array(y.bitLength()),l=0;l<s.length;l++){var u=l/26|0,f=l%26;s[l]=(y.words[u]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var u=this._zeroBits(this.words[l]);if(s+=u,u!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var u=0;u<l.length;u++)this.words[u]=this.words[u]&s.words[u];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,u;this.length>s.length?(l=this,u=s):(l=s,u=this);for(var f=0;f<u.length;f++)this.words[f]=l.words[f]^u.words[f];if(this!==l)for(;f<l.length;f++)this.words[f]=l.words[f];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,u=s%26;this._expand(l),u>0&&l--;for(var f=0;f<l;f++)this.words[f]=~this.words[f]&67108863;return u>0&&(this.words[f]=~this.words[f]&67108863>>26-u),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var u=s/26|0,f=s%26;return this._expand(u+1),l?this.words[u]=this.words[u]|1<<f:this.words[u]=this.words[u]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var u,f;this.length>s.length?(u=this,f=s):(u=s,f=this);for(var c=0,m=0;m<f.length;m++)l=(u.words[m]|0)+(f.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;for(;c!==0&&m<u.length;m++)l=(u.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;if(this.length=u.length,c!==0)this.words[this.length]=c,this.length++;else if(u!==this)for(;m<u.length;m++)this.words[m]=u.words[m];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var u=this.cmp(s);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;u>0?(f=this,c=s):(f=s,c=this);for(var m=0,_=0;_<c.length;_++)l=(f.words[_]|0)-(c.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;for(;m!==0&&_<f.length;_++)l=(f.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;if(m===0&&_<f.length&&f!==this)for(;_<f.length;_++)this.words[_]=f.words[_];return this.length=Math.max(this.length,_),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function O(y,s,l){l.negative=s.negative^y.negative;var u=y.length+s.length|0;l.length=u,u=u-1|0;var f=y.words[0]|0,c=s.words[0]|0,m=f*c,_=m&67108863,d=m/67108864|0;l.words[0]=_;for(var a=1;a<u;a++){for(var p=d>>>26,M=d&67108863,x=Math.min(a,s.length-1),E=Math.max(0,a-y.length+1);E<=x;E++){var N=a-E|0;f=y.words[N]|0,c=s.words[E]|0,m=f*c+M,p+=m/67108864|0,M=m&67108863}l.words[a]=M|0,d=p|0}return d!==0?l.words[a]=d|0:l.length--,l.strip()}var B=function(s,l,u){var f=s.words,c=l.words,m=u.words,_=0,d,a,p,M=f[0]|0,x=M&8191,E=M>>>13,N=f[1]|0,C=N&8191,U=N>>>13,Re=f[2]|0,F=Re&8191,q=Re>>>13,ft=f[3]|0,V=ft&8191,W=ft>>>13,wt=f[4]|0,$=wt&8191,Y=wt>>>13,wr=f[5]|0,Z=wr&8191,J=wr>>>13,kr=f[6]|0,Q=kr&8191,ee=kr>>>13,Mr=f[7]|0,te=Mr&8191,re=Mr>>>13,Ar=f[8]|0,ne=Ar&8191,ie=Ar>>>13,Er=f[9]|0,se=Er&8191,ae=Er>>>13,Sr=c[0]|0,oe=Sr&8191,le=Sr>>>13,Tr=c[1]|0,fe=Tr&8191,ue=Tr>>>13,Rr=c[2]|0,ce=Rr&8191,he=Rr>>>13,Or=c[3]|0,de=Or&8191,pe=Or>>>13,Ir=c[4]|0,me=Ir&8191,ye=Ir>>>13,Nr=c[5]|0,ge=Nr&8191,_e=Nr>>>13,Br=c[6]|0,ve=Br&8191,be=Br>>>13,Cr=c[7]|0,xe=Cr&8191,we=Cr>>>13,Ur=c[8]|0,ke=Ur&8191,Me=Ur>>>13,Dr=c[9]|0,Ae=Dr&8191,Ee=Dr>>>13;u.negative=s.negative^l.negative,u.length=19,d=Math.imul(x,oe),a=Math.imul(x,le),a=a+Math.imul(E,oe)|0,p=Math.imul(E,le);var jt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(jt>>>26)|0,jt&=67108863,d=Math.imul(C,oe),a=Math.imul(C,le),a=a+Math.imul(U,oe)|0,p=Math.imul(U,le),d=d+Math.imul(x,fe)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(E,fe)|0,p=p+Math.imul(E,ue)|0;var Je=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Je>>>26)|0,Je&=67108863,d=Math.imul(F,oe),a=Math.imul(F,le),a=a+Math.imul(q,oe)|0,p=Math.imul(q,le),d=d+Math.imul(C,fe)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(U,fe)|0,p=p+Math.imul(U,ue)|0,d=d+Math.imul(x,ce)|0,a=a+Math.imul(x,he)|0,a=a+Math.imul(E,ce)|0,p=p+Math.imul(E,he)|0;var Qe=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,d=Math.imul(V,oe),a=Math.imul(V,le),a=a+Math.imul(W,oe)|0,p=Math.imul(W,le),d=d+Math.imul(F,fe)|0,a=a+Math.imul(F,ue)|0,a=a+Math.imul(q,fe)|0,p=p+Math.imul(q,ue)|0,d=d+Math.imul(C,ce)|0,a=a+Math.imul(C,he)|0,a=a+Math.imul(U,ce)|0,p=p+Math.imul(U,he)|0,d=d+Math.imul(x,de)|0,a=a+Math.imul(x,pe)|0,a=a+Math.imul(E,de)|0,p=p+Math.imul(E,pe)|0;var St=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(St>>>26)|0,St&=67108863,d=Math.imul($,oe),a=Math.imul($,le),a=a+Math.imul(Y,oe)|0,p=Math.imul(Y,le),d=d+Math.imul(V,fe)|0,a=a+Math.imul(V,ue)|0,a=a+Math.imul(W,fe)|0,p=p+Math.imul(W,ue)|0,d=d+Math.imul(F,ce)|0,a=a+Math.imul(F,he)|0,a=a+Math.imul(q,ce)|0,p=p+Math.imul(q,he)|0,d=d+Math.imul(C,de)|0,a=a+Math.imul(C,pe)|0,a=a+Math.imul(U,de)|0,p=p+Math.imul(U,pe)|0,d=d+Math.imul(x,me)|0,a=a+Math.imul(x,ye)|0,a=a+Math.imul(E,me)|0,p=p+Math.imul(E,ye)|0;var Tt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(Z,oe),a=Math.imul(Z,le),a=a+Math.imul(J,oe)|0,p=Math.imul(J,le),d=d+Math.imul($,fe)|0,a=a+Math.imul($,ue)|0,a=a+Math.imul(Y,fe)|0,p=p+Math.imul(Y,ue)|0,d=d+Math.imul(V,ce)|0,a=a+Math.imul(V,he)|0,a=a+Math.imul(W,ce)|0,p=p+Math.imul(W,he)|0,d=d+Math.imul(F,de)|0,a=a+Math.imul(F,pe)|0,a=a+Math.imul(q,de)|0,p=p+Math.imul(q,pe)|0,d=d+Math.imul(C,me)|0,a=a+Math.imul(C,ye)|0,a=a+Math.imul(U,me)|0,p=p+Math.imul(U,ye)|0,d=d+Math.imul(x,ge)|0,a=a+Math.imul(x,_e)|0,a=a+Math.imul(E,ge)|0,p=p+Math.imul(E,_e)|0;var Rt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,d=Math.imul(Q,oe),a=Math.imul(Q,le),a=a+Math.imul(ee,oe)|0,p=Math.imul(ee,le),d=d+Math.imul(Z,fe)|0,a=a+Math.imul(Z,ue)|0,a=a+Math.imul(J,fe)|0,p=p+Math.imul(J,ue)|0,d=d+Math.imul($,ce)|0,a=a+Math.imul($,he)|0,a=a+Math.imul(Y,ce)|0,p=p+Math.imul(Y,he)|0,d=d+Math.imul(V,de)|0,a=a+Math.imul(V,pe)|0,a=a+Math.imul(W,de)|0,p=p+Math.imul(W,pe)|0,d=d+Math.imul(F,me)|0,a=a+Math.imul(F,ye)|0,a=a+Math.imul(q,me)|0,p=p+Math.imul(q,ye)|0,d=d+Math.imul(C,ge)|0,a=a+Math.imul(C,_e)|0,a=a+Math.imul(U,ge)|0,p=p+Math.imul(U,_e)|0,d=d+Math.imul(x,ve)|0,a=a+Math.imul(x,be)|0,a=a+Math.imul(E,ve)|0,p=p+Math.imul(E,be)|0;var Ot=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,d=Math.imul(te,oe),a=Math.imul(te,le),a=a+Math.imul(re,oe)|0,p=Math.imul(re,le),d=d+Math.imul(Q,fe)|0,a=a+Math.imul(Q,ue)|0,a=a+Math.imul(ee,fe)|0,p=p+Math.imul(ee,ue)|0,d=d+Math.imul(Z,ce)|0,a=a+Math.imul(Z,he)|0,a=a+Math.imul(J,ce)|0,p=p+Math.imul(J,he)|0,d=d+Math.imul($,de)|0,a=a+Math.imul($,pe)|0,a=a+Math.imul(Y,de)|0,p=p+Math.imul(Y,pe)|0,d=d+Math.imul(V,me)|0,a=a+Math.imul(V,ye)|0,a=a+Math.imul(W,me)|0,p=p+Math.imul(W,ye)|0,d=d+Math.imul(F,ge)|0,a=a+Math.imul(F,_e)|0,a=a+Math.imul(q,ge)|0,p=p+Math.imul(q,_e)|0,d=d+Math.imul(C,ve)|0,a=a+Math.imul(C,be)|0,a=a+Math.imul(U,ve)|0,p=p+Math.imul(U,be)|0,d=d+Math.imul(x,xe)|0,a=a+Math.imul(x,we)|0,a=a+Math.imul(E,xe)|0,p=p+Math.imul(E,we)|0;var It=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(ne,oe),a=Math.imul(ne,le),a=a+Math.imul(ie,oe)|0,p=Math.imul(ie,le),d=d+Math.imul(te,fe)|0,a=a+Math.imul(te,ue)|0,a=a+Math.imul(re,fe)|0,p=p+Math.imul(re,ue)|0,d=d+Math.imul(Q,ce)|0,a=a+Math.imul(Q,he)|0,a=a+Math.imul(ee,ce)|0,p=p+Math.imul(ee,he)|0,d=d+Math.imul(Z,de)|0,a=a+Math.imul(Z,pe)|0,a=a+Math.imul(J,de)|0,p=p+Math.imul(J,pe)|0,d=d+Math.imul($,me)|0,a=a+Math.imul($,ye)|0,a=a+Math.imul(Y,me)|0,p=p+Math.imul(Y,ye)|0,d=d+Math.imul(V,ge)|0,a=a+Math.imul(V,_e)|0,a=a+Math.imul(W,ge)|0,p=p+Math.imul(W,_e)|0,d=d+Math.imul(F,ve)|0,a=a+Math.imul(F,be)|0,a=a+Math.imul(q,ve)|0,p=p+Math.imul(q,be)|0,d=d+Math.imul(C,xe)|0,a=a+Math.imul(C,we)|0,a=a+Math.imul(U,xe)|0,p=p+Math.imul(U,we)|0,d=d+Math.imul(x,ke)|0,a=a+Math.imul(x,Me)|0,a=a+Math.imul(E,ke)|0,p=p+Math.imul(E,Me)|0;var Nt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,d=Math.imul(se,oe),a=Math.imul(se,le),a=a+Math.imul(ae,oe)|0,p=Math.imul(ae,le),d=d+Math.imul(ne,fe)|0,a=a+Math.imul(ne,ue)|0,a=a+Math.imul(ie,fe)|0,p=p+Math.imul(ie,ue)|0,d=d+Math.imul(te,ce)|0,a=a+Math.imul(te,he)|0,a=a+Math.imul(re,ce)|0,p=p+Math.imul(re,he)|0,d=d+Math.imul(Q,de)|0,a=a+Math.imul(Q,pe)|0,a=a+Math.imul(ee,de)|0,p=p+Math.imul(ee,pe)|0,d=d+Math.imul(Z,me)|0,a=a+Math.imul(Z,ye)|0,a=a+Math.imul(J,me)|0,p=p+Math.imul(J,ye)|0,d=d+Math.imul($,ge)|0,a=a+Math.imul($,_e)|0,a=a+Math.imul(Y,ge)|0,p=p+Math.imul(Y,_e)|0,d=d+Math.imul(V,ve)|0,a=a+Math.imul(V,be)|0,a=a+Math.imul(W,ve)|0,p=p+Math.imul(W,be)|0,d=d+Math.imul(F,xe)|0,a=a+Math.imul(F,we)|0,a=a+Math.imul(q,xe)|0,p=p+Math.imul(q,we)|0,d=d+Math.imul(C,ke)|0,a=a+Math.imul(C,Me)|0,a=a+Math.imul(U,ke)|0,p=p+Math.imul(U,Me)|0,d=d+Math.imul(x,Ae)|0,a=a+Math.imul(x,Ee)|0,a=a+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ee)|0;var Bt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,d=Math.imul(se,fe),a=Math.imul(se,ue),a=a+Math.imul(ae,fe)|0,p=Math.imul(ae,ue),d=d+Math.imul(ne,ce)|0,a=a+Math.imul(ne,he)|0,a=a+Math.imul(ie,ce)|0,p=p+Math.imul(ie,he)|0,d=d+Math.imul(te,de)|0,a=a+Math.imul(te,pe)|0,a=a+Math.imul(re,de)|0,p=p+Math.imul(re,pe)|0,d=d+Math.imul(Q,me)|0,a=a+Math.imul(Q,ye)|0,a=a+Math.imul(ee,me)|0,p=p+Math.imul(ee,ye)|0,d=d+Math.imul(Z,ge)|0,a=a+Math.imul(Z,_e)|0,a=a+Math.imul(J,ge)|0,p=p+Math.imul(J,_e)|0,d=d+Math.imul($,ve)|0,a=a+Math.imul($,be)|0,a=a+Math.imul(Y,ve)|0,p=p+Math.imul(Y,be)|0,d=d+Math.imul(V,xe)|0,a=a+Math.imul(V,we)|0,a=a+Math.imul(W,xe)|0,p=p+Math.imul(W,we)|0,d=d+Math.imul(F,ke)|0,a=a+Math.imul(F,Me)|0,a=a+Math.imul(q,ke)|0,p=p+Math.imul(q,Me)|0,d=d+Math.imul(C,Ae)|0,a=a+Math.imul(C,Ee)|0,a=a+Math.imul(U,Ae)|0,p=p+Math.imul(U,Ee)|0;var Ct=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,d=Math.imul(se,ce),a=Math.imul(se,he),a=a+Math.imul(ae,ce)|0,p=Math.imul(ae,he),d=d+Math.imul(ne,de)|0,a=a+Math.imul(ne,pe)|0,a=a+Math.imul(ie,de)|0,p=p+Math.imul(ie,pe)|0,d=d+Math.imul(te,me)|0,a=a+Math.imul(te,ye)|0,a=a+Math.imul(re,me)|0,p=p+Math.imul(re,ye)|0,d=d+Math.imul(Q,ge)|0,a=a+Math.imul(Q,_e)|0,a=a+Math.imul(ee,ge)|0,p=p+Math.imul(ee,_e)|0,d=d+Math.imul(Z,ve)|0,a=a+Math.imul(Z,be)|0,a=a+Math.imul(J,ve)|0,p=p+Math.imul(J,be)|0,d=d+Math.imul($,xe)|0,a=a+Math.imul($,we)|0,a=a+Math.imul(Y,xe)|0,p=p+Math.imul(Y,we)|0,d=d+Math.imul(V,ke)|0,a=a+Math.imul(V,Me)|0,a=a+Math.imul(W,ke)|0,p=p+Math.imul(W,Me)|0,d=d+Math.imul(F,Ae)|0,a=a+Math.imul(F,Ee)|0,a=a+Math.imul(q,Ae)|0,p=p+Math.imul(q,Ee)|0;var Ut=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,d=Math.imul(se,de),a=Math.imul(se,pe),a=a+Math.imul(ae,de)|0,p=Math.imul(ae,pe),d=d+Math.imul(ne,me)|0,a=a+Math.imul(ne,ye)|0,a=a+Math.imul(ie,me)|0,p=p+Math.imul(ie,ye)|0,d=d+Math.imul(te,ge)|0,a=a+Math.imul(te,_e)|0,a=a+Math.imul(re,ge)|0,p=p+Math.imul(re,_e)|0,d=d+Math.imul(Q,ve)|0,a=a+Math.imul(Q,be)|0,a=a+Math.imul(ee,ve)|0,p=p+Math.imul(ee,be)|0,d=d+Math.imul(Z,xe)|0,a=a+Math.imul(Z,we)|0,a=a+Math.imul(J,xe)|0,p=p+Math.imul(J,we)|0,d=d+Math.imul($,ke)|0,a=a+Math.imul($,Me)|0,a=a+Math.imul(Y,ke)|0,p=p+Math.imul(Y,Me)|0,d=d+Math.imul(V,Ae)|0,a=a+Math.imul(V,Ee)|0,a=a+Math.imul(W,Ae)|0,p=p+Math.imul(W,Ee)|0;var Dt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,d=Math.imul(se,me),a=Math.imul(se,ye),a=a+Math.imul(ae,me)|0,p=Math.imul(ae,ye),d=d+Math.imul(ne,ge)|0,a=a+Math.imul(ne,_e)|0,a=a+Math.imul(ie,ge)|0,p=p+Math.imul(ie,_e)|0,d=d+Math.imul(te,ve)|0,a=a+Math.imul(te,be)|0,a=a+Math.imul(re,ve)|0,p=p+Math.imul(re,be)|0,d=d+Math.imul(Q,xe)|0,a=a+Math.imul(Q,we)|0,a=a+Math.imul(ee,xe)|0,p=p+Math.imul(ee,we)|0,d=d+Math.imul(Z,ke)|0,a=a+Math.imul(Z,Me)|0,a=a+Math.imul(J,ke)|0,p=p+Math.imul(J,Me)|0,d=d+Math.imul($,Ae)|0,a=a+Math.imul($,Ee)|0,a=a+Math.imul(Y,Ae)|0,p=p+Math.imul(Y,Ee)|0;var Pt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(se,ge),a=Math.imul(se,_e),a=a+Math.imul(ae,ge)|0,p=Math.imul(ae,_e),d=d+Math.imul(ne,ve)|0,a=a+Math.imul(ne,be)|0,a=a+Math.imul(ie,ve)|0,p=p+Math.imul(ie,be)|0,d=d+Math.imul(te,xe)|0,a=a+Math.imul(te,we)|0,a=a+Math.imul(re,xe)|0,p=p+Math.imul(re,we)|0,d=d+Math.imul(Q,ke)|0,a=a+Math.imul(Q,Me)|0,a=a+Math.imul(ee,ke)|0,p=p+Math.imul(ee,Me)|0,d=d+Math.imul(Z,Ae)|0,a=a+Math.imul(Z,Ee)|0,a=a+Math.imul(J,Ae)|0,p=p+Math.imul(J,Ee)|0;var Ft=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(se,ve),a=Math.imul(se,be),a=a+Math.imul(ae,ve)|0,p=Math.imul(ae,be),d=d+Math.imul(ne,xe)|0,a=a+Math.imul(ne,we)|0,a=a+Math.imul(ie,xe)|0,p=p+Math.imul(ie,we)|0,d=d+Math.imul(te,ke)|0,a=a+Math.imul(te,Me)|0,a=a+Math.imul(re,ke)|0,p=p+Math.imul(re,Me)|0,d=d+Math.imul(Q,Ae)|0,a=a+Math.imul(Q,Ee)|0,a=a+Math.imul(ee,Ae)|0,p=p+Math.imul(ee,Ee)|0;var qt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(qt>>>26)|0,qt&=67108863,d=Math.imul(se,xe),a=Math.imul(se,we),a=a+Math.imul(ae,xe)|0,p=Math.imul(ae,we),d=d+Math.imul(ne,ke)|0,a=a+Math.imul(ne,Me)|0,a=a+Math.imul(ie,ke)|0,p=p+Math.imul(ie,Me)|0,d=d+Math.imul(te,Ae)|0,a=a+Math.imul(te,Ee)|0,a=a+Math.imul(re,Ae)|0,p=p+Math.imul(re,Ee)|0;var Lt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,d=Math.imul(se,ke),a=Math.imul(se,Me),a=a+Math.imul(ae,ke)|0,p=Math.imul(ae,Me),d=d+Math.imul(ne,Ae)|0,a=a+Math.imul(ne,Ee)|0,a=a+Math.imul(ie,Ae)|0,p=p+Math.imul(ie,Ee)|0;var Gt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,d=Math.imul(se,Ae),a=Math.imul(se,Ee),a=a+Math.imul(ae,Ae)|0,p=Math.imul(ae,Ee);var Kt=(_+d|0)+((a&8191)<<13)|0;return _=(p+(a>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,m[0]=jt,m[1]=Je,m[2]=Qe,m[3]=St,m[4]=Tt,m[5]=Rt,m[6]=Ot,m[7]=It,m[8]=Nt,m[9]=Bt,m[10]=Ct,m[11]=Ut,m[12]=Dt,m[13]=Pt,m[14]=Ft,m[15]=qt,m[16]=Lt,m[17]=Gt,m[18]=Kt,_!==0&&(m[19]=_,u.length++),u};Math.imul||(B=O);function L(y,s,l){l.negative=s.negative^y.negative,l.length=y.length+s.length;for(var u=0,f=0,c=0;c<l.length-1;c++){var m=f;f=0;for(var _=u&67108863,d=Math.min(c,s.length-1),a=Math.max(0,c-y.length+1);a<=d;a++){var p=c-a,M=y.words[p]|0,x=s.words[a]|0,E=M*x,N=E&67108863;m=m+(E/67108864|0)|0,N=N+_|0,_=N&67108863,m=m+(N>>>26)|0,f+=m>>>26,m&=67108863}l.words[c]=_,u=m,m=f}return u!==0?l.words[c]=u:l.length--,l.strip()}function X(y,s,l){var u=new P;return u.mulp(y,s,l)}i.prototype.mulTo=function(s,l){var u,f=this.length+s.length;return this.length===10&&s.length===10?u=B(this,s,l):f<63?u=O(this,s,l):f<1024?u=L(this,s,l):u=X(this,s,l),u};function P(y,s){this.x=y,this.y=s}P.prototype.makeRBT=function(s){for(var l=new Array(s),u=i.prototype._countBits(s)-1,f=0;f<s;f++)l[f]=this.revBin(f,u,s);return l},P.prototype.revBin=function(s,l,u){if(s===0||s===u-1)return s;for(var f=0,c=0;c<l;c++)f|=(s&1)<<l-c-1,s>>=1;return f},P.prototype.permute=function(s,l,u,f,c,m){for(var _=0;_<m;_++)f[_]=l[s[_]],c[_]=u[s[_]]},P.prototype.transform=function(s,l,u,f,c,m){this.permute(m,s,l,u,f,c);for(var _=1;_<c;_<<=1)for(var d=_<<1,a=Math.cos(2*Math.PI/d),p=Math.sin(2*Math.PI/d),M=0;M<c;M+=d)for(var x=a,E=p,N=0;N<_;N++){var C=u[M+N],U=f[M+N],Re=u[M+N+_],F=f[M+N+_],q=x*Re-E*F;F=x*F+E*Re,Re=q,u[M+N]=C+Re,f[M+N]=U+F,u[M+N+_]=C-Re,f[M+N+_]=U-F,N!==d&&(q=a*x-p*E,E=a*E+p*x,x=q)}},P.prototype.guessLen13b=function(s,l){var u=Math.max(l,s)|1,f=u&1,c=0;for(u=u/2|0;u;u=u>>>1)c++;return 1<<c+1+f},P.prototype.conjugate=function(s,l,u){if(!(u<=1))for(var f=0;f<u/2;f++){var c=s[f];s[f]=s[u-f-1],s[u-f-1]=c,c=l[f],l[f]=-l[u-f-1],l[u-f-1]=-c}},P.prototype.normalize13b=function(s,l){for(var u=0,f=0;f<l/2;f++){var c=Math.round(s[2*f+1]/l)*8192+Math.round(s[2*f]/l)+u;s[f]=c&67108863,c<67108864?u=0:u=c/67108864|0}return s},P.prototype.convert13b=function(s,l,u,f){for(var c=0,m=0;m<l;m++)c=c+(s[m]|0),u[2*m]=c&8191,c=c>>>13,u[2*m+1]=c&8191,c=c>>>13;for(m=2*l;m<f;++m)u[m]=0;r(c===0),r((c&-8192)===0)},P.prototype.stub=function(s){for(var l=new Array(s),u=0;u<s;u++)l[u]=0;return l},P.prototype.mulp=function(s,l,u){var f=2*this.guessLen13b(s.length,l.length),c=this.makeRBT(f),m=this.stub(f),_=new Array(f),d=new Array(f),a=new Array(f),p=new Array(f),M=new Array(f),x=new Array(f),E=u.words;E.length=f,this.convert13b(s.words,s.length,_,f),this.convert13b(l.words,l.length,p,f),this.transform(_,m,d,a,f,c),this.transform(p,m,M,x,f,c);for(var N=0;N<f;N++){var C=d[N]*M[N]-a[N]*x[N];a[N]=d[N]*x[N]+a[N]*M[N],d[N]=C}return this.conjugate(d,a,f),this.transform(d,a,E,m,f,c),this.conjugate(E,m,f),this.normalize13b(E,f),u.negative=s.negative^l.negative,u.length=s.length+l.length,u.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),X(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,u=0;u<this.length;u++){var f=(this.words[u]|0)*s,c=(f&67108863)+(l&67108863);l>>=26,l+=f/67108864|0,l+=c>>>26,this.words[u]=c&67108863}return l!==0&&(this.words[u]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=R(s);if(l.length===0)return new i(1);for(var u=this,f=0;f<l.length&&l[f]===0;f++,u=u.sqr());if(++f<l.length)for(var c=u.sqr();f<l.length;f++,c=c.sqr())l[f]!==0&&(u=u.mul(c));return u},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=67108863>>>26-l<<26-l,c;if(l!==0){var m=0;for(c=0;c<this.length;c++){var _=this.words[c]&f,d=(this.words[c]|0)-_<<l;this.words[c]=d|m,m=_>>>26-l}m&&(this.words[c]=m,this.length++)}if(u!==0){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c<u;c++)this.words[c]=0;this.length+=u}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,u){r(typeof s=="number"&&s>=0);var f;l?f=(l-l%26)/26:f=0;var c=s%26,m=Math.min((s-c)/26,this.length),_=67108863^67108863>>>c<<c,d=u;if(f-=m,f=Math.max(0,f),d){for(var a=0;a<m;a++)d.words[a]=this.words[a];d.length=m}if(m!==0)if(this.length>m)for(this.length-=m,a=0;a<this.length;a++)this.words[a]=this.words[a+m];else this.words[0]=0,this.length=1;var p=0;for(a=this.length-1;a>=0&&(p!==0||a>=f);a--){var M=this.words[a]|0;this.words[a]=p<<26-c|M>>>c,p=M&_}return d&&p!==0&&(d.words[d.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,u){return r(this.negative===0),this.iushrn(s,l,u)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return!1;var c=this.words[u];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(l!==0&&u++,this.length=Math.min(u,this.length),l!==0){var f=67108863^67108863>>>l<<l;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,u){var f=s.length+u,c;this._expand(f);var m,_=0;for(c=0;c<s.length;c++){m=(this.words[c+u]|0)+_;var d=(s.words[c]|0)*l;m-=d&67108863,_=(m>>26)-(d/67108864|0),this.words[c+u]=m&67108863}for(;c<this.length-u;c++)m=(this.words[c+u]|0)+_,_=m>>26,this.words[c+u]=m&67108863;if(_===0)return this.strip();for(r(_===-1),_=0,c=0;c<this.length;c++)m=-(this.words[c]|0)+_,_=m>>26,this.words[c]=m&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var u=this.length-s.length,f=this.clone(),c=s,m=c.words[c.length-1]|0,_=this._countBits(m);u=26-_,u!==0&&(c=c.ushln(u),f.iushln(u),m=c.words[c.length-1]|0);var d=f.length-c.length,a;if(l!=="mod"){a=new i(null),a.length=d+1,a.words=new Array(a.length);for(var p=0;p<a.length;p++)a.words[p]=0}var M=f.clone()._ishlnsubmul(c,1,d);M.negative===0&&(f=M,a&&(a.words[d]=1));for(var x=d-1;x>=0;x--){var E=(f.words[c.length+x]|0)*67108864+(f.words[c.length+x-1]|0);for(E=Math.min(E/m|0,67108863),f._ishlnsubmul(c,E,x);f.negative!==0;)E--,f.negative=0,f._ishlnsubmul(c,1,x),f.isZero()||(f.negative^=1);a&&(a.words[x]=E)}return a&&a.strip(),f.strip(),l!=="div"&&u!==0&&f.iushrn(u),{div:a||null,mod:f}},i.prototype.divmod=function(s,l,u){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,m;return this.negative!==0&&s.negative===0?(m=this.neg().divmod(s,l),l!=="mod"&&(f=m.div.neg()),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(m=this.divmod(s.neg(),l),l!=="mod"&&(f=m.div.neg()),{div:f,mod:m.mod}):(this.negative&s.negative)!==0?(m=this.neg().divmod(s.neg(),l),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.isub(s)),{div:m.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var u=l.div.negative!==0?l.mod.isub(s):l.mod,f=s.ushrn(1),c=s.andln(1),m=u.cmp(f);return m<0||c===1&&m===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,u=0,f=this.length-1;f>=0;f--)u=(l*u+(this.words[f]|0))%s;return u},i.prototype.idivn=function(s){r(s<=67108863);for(var l=0,u=this.length-1;u>=0;u--){var f=(this.words[u]|0)+l*67108864;this.words[u]=f/s|0,l=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=new i(0),_=new i(1),d=0;l.isEven()&&u.isEven();)l.iushrn(1),u.iushrn(1),++d;for(var a=u.clone(),p=l.clone();!l.isZero();){for(var M=0,x=1;(l.words[0]&x)===0&&M<26;++M,x<<=1);if(M>0)for(l.iushrn(M);M-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(a),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var E=0,N=1;(u.words[0]&N)===0&&E<26;++E,N<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(m.isOdd()||_.isOdd())&&(m.iadd(a),_.isub(p)),m.iushrn(1),_.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(m),c.isub(_)):(u.isub(l),m.isub(f),_.isub(c))}return{a:m,b:_,gcd:u.iushln(d)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=u.clone();l.cmpn(1)>0&&u.cmpn(1)>0;){for(var _=0,d=1;(l.words[0]&d)===0&&_<26;++_,d<<=1);if(_>0)for(l.iushrn(_);_-- >0;)f.isOdd()&&f.iadd(m),f.iushrn(1);for(var a=0,p=1;(u.words[0]&p)===0&&a<26;++a,p<<=1);if(a>0)for(u.iushrn(a);a-- >0;)c.isOdd()&&c.iadd(m),c.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(c)):(u.isub(l),c.isub(f))}var M;return l.cmpn(1)===0?M=f:M=c,M.cmpn(0)<0&&M.iadd(s),M},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),u=s.clone();l.negative=0,u.negative=0;for(var f=0;l.isEven()&&u.isEven();f++)l.iushrn(1),u.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=l.cmp(u);if(c<0){var m=l;l=u,u=m}else if(c===0||u.cmpn(1)===0)break;l.isub(u)}while(!0);return u.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return this._expand(u+1),this.words[u]|=f,this;for(var c=f,m=u;c!==0&&m<this.length;m++){var _=this.words[m]|0;_+=c,c=_>>>26,_&=67108863,this.words[m]=_}return c!==0&&(this.words[m]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var u;if(this.length>1)u=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;u=f===s?0:f<s?-1:1}return this.negative!==0?-u|0:u},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,u=this.length-1;u>=0;u--){var f=this.words[u]|0,c=s.words[u]|0;if(f!==c){f<c?l=-1:f>c&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new j(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var H={k256:null,p224:null,p192:null,p25519:null};function D(y,s){this.name=y,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},D.prototype.ireduce=function(s){var l=s,u;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),u=l.bitLength();while(u>this.n);var f=u<this.n?-1:l.ucmp(this.p);return f===0?(l.words[0]=0,l.length=1):f>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},D.prototype.split=function(s,l){s.iushrn(this.n,0,l)},D.prototype.imulK=function(s){return s.imul(this.k)};function Se(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Se,D),Se.prototype.split=function(s,l){for(var u=4194303,f=Math.min(s.length,9),c=0;c<f;c++)l.words[c]=s.words[c];if(l.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var m=s.words[9];for(l.words[l.length++]=m&u,c=10;c<s.length;c++){var _=s.words[c]|0;s.words[c-10]=(_&u)<<4|m>>>22,m=_}m>>>=22,s.words[c-10]=m,m===0&&s.length>10?s.length-=10:s.length-=9},Se.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,u=0;u<s.length;u++){var f=s.words[u]|0;l+=f*977,s.words[u]=l&67108863,l=f*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function De(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(De,D);function Ce(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Ce,D);function Ke(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Ke,D),Ke.prototype.imulK=function(s){for(var l=0,u=0;u<s.length;u++){var f=(s.words[u]|0)*19+l,c=f&67108863;f>>>=26,s.words[u]=c,l=f}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(H[s])return H[s];var l;if(s==="k256")l=new Se;else if(s==="p224")l=new De;else if(s==="p192")l=new Ce;else if(s==="p25519")l=new Ke;else throw new Error("Unknown prime "+s);return H[s]=l,l};function j(y){if(typeof y=="string"){var s=i._prime(y);this.m=s.p,this.prime=s}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}j.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},j.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},j.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},j.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},j.prototype.add=function(s,l){this._verify2(s,l);var u=s.add(l);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},j.prototype.iadd=function(s,l){this._verify2(s,l);var u=s.iadd(l);return u.cmp(this.m)>=0&&u.isub(this.m),u},j.prototype.sub=function(s,l){this._verify2(s,l);var u=s.sub(l);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},j.prototype.isub=function(s,l){this._verify2(s,l);var u=s.isub(l);return u.cmpn(0)<0&&u.iadd(this.m),u},j.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},j.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},j.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},j.prototype.isqr=function(s){return this.imul(s,s.clone())},j.prototype.sqr=function(s){return this.mul(s,s)},j.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var u=this.m.add(new i(1)).iushrn(2);return this.pow(s,u)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var m=new i(1).toRed(this),_=m.redNeg(),d=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new i(2*a*a).toRed(this);this.pow(a,d).cmp(_)!==0;)a.redIAdd(_);for(var p=this.pow(a,f),M=this.pow(s,f.addn(1).iushrn(1)),x=this.pow(s,f),E=c;x.cmp(m)!==0;){for(var N=x,C=0;N.cmp(m)!==0;C++)N=N.redSqr();r(C<E);var U=this.pow(p,new i(1).iushln(E-C-1));M=M.redMul(U),p=U.redSqr(),x=x.redMul(p),E=C}return M},j.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},j.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var u=4,f=new Array(1<<u);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var m=f[0],_=0,d=0,a=l.bitLength()%26;for(a===0&&(a=26),c=l.length-1;c>=0;c--){for(var p=l.words[c],M=a-1;M>=0;M--){var x=p>>M&1;if(m!==f[0]&&(m=this.sqr(m)),x===0&&_===0){d=0;continue}_<<=1,_|=x,d++,!(d!==u&&(c!==0||M!==0))&&(m=this.mul(m,f[_]),d=0,_=0)}a=26}return m},j.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},j.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new Be(s)};function Be(y){j.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Be,j),Be.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Be.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},Be.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var u=s.imul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var u=s.mul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof F6>"u"||F6,DK)});var qK=I((qYe,FK)=>{b();var o7e=Lg(),l7e=PK();FK.exports=function(t){return new $f(t)};var xi={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}};xi.p224=xi.secp224r1;xi.p256=xi.secp256r1=xi.prime256v1;xi.p192=xi.secp192r1=xi.prime192v1;xi.p384=xi.secp384r1;xi.p521=xi.secp521r1;function $f(e){this.curveType=xi[e],this.curveType||(this.curveType={name:e}),this.curve=new o7e.ec(this.curveType.name),this.keys=void 0}$f.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)};$f.prototype.computeSecret=function(e,t,r){t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t));var n=this.curve.keyFromPublic(e).getPublic(),i=n.mul(this.keys.getPrivate()).getX();return q6(i,r,this.curveType.byteLength)};$f.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic(t==="compressed",!0);return t==="hybrid"&&(r[r.length-1]%2?r[0]=7:r[0]=6),q6(r,e)};$f.prototype.getPrivateKey=function(e){return q6(this.keys.getPrivate(),e)};$f.prototype.setPublicKey=function(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this.keys._importPublic(e),this};$f.prototype.setPrivateKey=function(e,t){t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t));var r=new l7e(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this};function q6(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new Buffer(e);if(r&&n.length<r){var i=new Buffer(r-n.length);i.fill(0),n=Buffer.concat([i,n])}return t?n.toString(t):n}});var G6=I((GYe,LK)=>{b();var f7e=jc(),L6=rt().Buffer;LK.exports=function(e,t){for(var r=L6.alloc(0),n=0,i;r.length<t;)i=u7e(n++),r=L6.concat([r,f7e("sha1").update(e).update(i).digest()]);return r.slice(0,t)};function u7e(e){var t=L6.allocUnsafe(4);return t.writeUInt32BE(e,0),t}});var K6=I((HYe,GK)=>{b();GK.exports=function(t,r){for(var n=t.length,i=-1;++i<n;)t[i]^=r[i];return t}});var Yg=I((KK,H6)=>{b();(function(e,t){"use strict";function r(y,s){if(!y)throw new Error(s||"Assertion failed")}function n(y,s){y.super_=s;var l=function(){};l.prototype=s.prototype,y.prototype=new l,y.prototype.constructor=y}function i(y,s,l){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(y||0,s||10,l||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ol().Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,u){if(typeof s=="number")return this._initNumber(s,l,u);if(typeof s=="object")return this._initArray(s,l,u);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(l===16?this._parseHex(s,f,u):(this._parseBase(s,l,f),u==="le"&&this._initArray(this.toArray(),l,u)))},i.prototype._initNumber=function(s,l,u){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),l,u)},i.prototype._initArray=function(s,l,u){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,m,_=0;if(u==="be")for(f=s.length-1,c=0;f>=0;f-=3)m=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);else if(u==="le")for(f=0,c=0;f<s.length;f+=3)m=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=m<<_&67108863,this.words[c+1]=m>>>26-_&67108863,_+=24,_>=26&&(_-=26,c++);return this.strip()};function h(y,s){var l=y.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function g(y,s,l){var u=h(y,l);return l-1>=s&&(u|=h(y,l-1)<<4),u}i.prototype._parseHex=function(s,l,u){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,m=0,_;if(u==="be")for(f=s.length-1;f>=l;f-=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8;else{var d=s.length-l;for(f=d%2===0?l+1:l;f<s.length;f+=2)_=g(s,l,f)<<c,this.words[m]|=_&67108863,c>=18?(c-=18,m+=1,this.words[m]|=_>>>26):c+=8}this.strip()};function v(y,s,l,u){for(var f=0,c=Math.min(y.length,l),m=s;m<c;m++){var _=y.charCodeAt(m)-48;f*=u,_>=49?f+=_-49+10:_>=17?f+=_-17+10:f+=_}return f}i.prototype._parseBase=function(s,l,u){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=l)f++;f--,c=c/l|0;for(var m=s.length-u,_=m%f,d=Math.min(m,m-_)+u,a=0,p=u;p<d;p+=f)a=v(s,p,p+f,l),this.imuln(c),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(_!==0){var M=1;for(a=v(s,p,s.length,l),p=0;p<_;p++)M*=l;this.imuln(M),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","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"],k=[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],A=[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];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var u;if(s===16||s==="hex"){u="";for(var f=0,c=0,m=0;m<this.length;m++){var _=this.words[m],d=((_<<f|c)&16777215).toString(16);c=_>>>24-f&16777215,f+=2,f>=26&&(f-=26,m--),c!==0||m!==this.length-1?u=w[6-d.length]+d+u:u=d+u}for(c!==0&&(u=c.toString(16)+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(s===(s|0)&&s>=2&&s<=36){var a=k[s],p=A[s];u="";var M=this.clone();for(M.negative=0;!M.isZero();){var x=M.modn(p).toString(s);M=M.idivn(p),M.isZero()?u=x+u:u=w[a-x.length]+x+u}for(this.isZero()&&(u="0"+u);u.length%l!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return r(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,u){var f=this.byteLength(),c=u||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var m=l==="le",_=new s(c),d,a,p=this.clone();if(m){for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[a]=d;for(;a<c;a++)_[a]=0}else{for(a=0;a<c-f;a++)_[a]=0;for(a=0;!p.isZero();a++)d=p.andln(255),p.iushrn(8),_[c-a-1]=d}return _},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,u=0;return l>=4096&&(u+=13,l>>>=13),l>=64&&(u+=7,l>>>=7),l>=8&&(u+=4,l>>>=4),l>=2&&(u+=2,l>>>=2),u+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,u=0;return(l&8191)===0&&(u+=13,l>>>=13),(l&127)===0&&(u+=7,l>>>=7),(l&15)===0&&(u+=4,l>>>=4),(l&3)===0&&(u+=2,l>>>=2),(l&1)===0&&u++,u},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function R(y){for(var s=new Array(y.bitLength()),l=0;l<s.length;l++){var u=l/26|0,f=l%26;s[l]=(y.words[u]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var u=this._zeroBits(this.words[l]);if(s+=u,u!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var u=0;u<l.length;u++)this.words[u]=this.words[u]&s.words[u];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,u;this.length>s.length?(l=this,u=s):(l=s,u=this);for(var f=0;f<u.length;f++)this.words[f]=l.words[f]^u.words[f];if(this!==l)for(;f<l.length;f++)this.words[f]=l.words[f];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,u=s%26;this._expand(l),u>0&&l--;for(var f=0;f<l;f++)this.words[f]=~this.words[f]&67108863;return u>0&&(this.words[f]=~this.words[f]&67108863>>26-u),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){r(typeof s=="number"&&s>=0);var u=s/26|0,f=s%26;return this._expand(u+1),l?this.words[u]=this.words[u]|1<<f:this.words[u]=this.words[u]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var u,f;this.length>s.length?(u=this,f=s):(u=s,f=this);for(var c=0,m=0;m<f.length;m++)l=(u.words[m]|0)+(f.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;for(;c!==0&&m<u.length;m++)l=(u.words[m]|0)+c,this.words[m]=l&67108863,c=l>>>26;if(this.length=u.length,c!==0)this.words[this.length]=c,this.length++;else if(u!==this)for(;m<u.length;m++)this.words[m]=u.words[m];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var u=this.cmp(s);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;u>0?(f=this,c=s):(f=s,c=this);for(var m=0,_=0;_<c.length;_++)l=(f.words[_]|0)-(c.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;for(;m!==0&&_<f.length;_++)l=(f.words[_]|0)+m,m=l>>26,this.words[_]=l&67108863;if(m===0&&_<f.length&&f!==this)for(;_<f.length;_++)this.words[_]=f.words[_];return this.length=Math.max(this.length,_),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function O(y,s,l){l.negative=s.negative^y.negative;var u=y.length+s.length|0;l.length=u,u=u-1|0;var f=y.words[0]|0,c=s.words[0]|0,m=f*c,_=m&67108863,d=m/67108864|0;l.words[0]=_;for(var a=1;a<u;a++){for(var p=d>>>26,M=d&67108863,x=Math.min(a,s.length-1),E=Math.max(0,a-y.length+1);E<=x;E++){var N=a-E|0;f=y.words[N]|0,c=s.words[E]|0,m=f*c+M,p+=m/67108864|0,M=m&67108863}l.words[a]=M|0,d=p|0}return d!==0?l.words[a]=d|0:l.length--,l.strip()}var B=function(s,l,u){var f=s.words,c=l.words,m=u.words,_=0,d,a,p,M=f[0]|0,x=M&8191,E=M>>>13,N=f[1]|0,C=N&8191,U=N>>>13,Re=f[2]|0,F=Re&8191,q=Re>>>13,ft=f[3]|0,V=ft&8191,W=ft>>>13,wt=f[4]|0,$=wt&8191,Y=wt>>>13,wr=f[5]|0,Z=wr&8191,J=wr>>>13,kr=f[6]|0,Q=kr&8191,ee=kr>>>13,Mr=f[7]|0,te=Mr&8191,re=Mr>>>13,Ar=f[8]|0,ne=Ar&8191,ie=Ar>>>13,Er=f[9]|0,se=Er&8191,ae=Er>>>13,Sr=c[0]|0,oe=Sr&8191,le=Sr>>>13,Tr=c[1]|0,fe=Tr&8191,ue=Tr>>>13,Rr=c[2]|0,ce=Rr&8191,he=Rr>>>13,Or=c[3]|0,de=Or&8191,pe=Or>>>13,Ir=c[4]|0,me=Ir&8191,ye=Ir>>>13,Nr=c[5]|0,ge=Nr&8191,_e=Nr>>>13,Br=c[6]|0,ve=Br&8191,be=Br>>>13,Cr=c[7]|0,xe=Cr&8191,we=Cr>>>13,Ur=c[8]|0,ke=Ur&8191,Me=Ur>>>13,Dr=c[9]|0,Ae=Dr&8191,Ee=Dr>>>13;u.negative=s.negative^l.negative,u.length=19,d=Math.imul(x,oe),a=Math.imul(x,le),a=a+Math.imul(E,oe)|0,p=Math.imul(E,le);var jt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(jt>>>26)|0,jt&=67108863,d=Math.imul(C,oe),a=Math.imul(C,le),a=a+Math.imul(U,oe)|0,p=Math.imul(U,le),d=d+Math.imul(x,fe)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(E,fe)|0,p=p+Math.imul(E,ue)|0;var Je=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Je>>>26)|0,Je&=67108863,d=Math.imul(F,oe),a=Math.imul(F,le),a=a+Math.imul(q,oe)|0,p=Math.imul(q,le),d=d+Math.imul(C,fe)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(U,fe)|0,p=p+Math.imul(U,ue)|0,d=d+Math.imul(x,ce)|0,a=a+Math.imul(x,he)|0,a=a+Math.imul(E,ce)|0,p=p+Math.imul(E,he)|0;var Qe=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,d=Math.imul(V,oe),a=Math.imul(V,le),a=a+Math.imul(W,oe)|0,p=Math.imul(W,le),d=d+Math.imul(F,fe)|0,a=a+Math.imul(F,ue)|0,a=a+Math.imul(q,fe)|0,p=p+Math.imul(q,ue)|0,d=d+Math.imul(C,ce)|0,a=a+Math.imul(C,he)|0,a=a+Math.imul(U,ce)|0,p=p+Math.imul(U,he)|0,d=d+Math.imul(x,de)|0,a=a+Math.imul(x,pe)|0,a=a+Math.imul(E,de)|0,p=p+Math.imul(E,pe)|0;var St=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(St>>>26)|0,St&=67108863,d=Math.imul($,oe),a=Math.imul($,le),a=a+Math.imul(Y,oe)|0,p=Math.imul(Y,le),d=d+Math.imul(V,fe)|0,a=a+Math.imul(V,ue)|0,a=a+Math.imul(W,fe)|0,p=p+Math.imul(W,ue)|0,d=d+Math.imul(F,ce)|0,a=a+Math.imul(F,he)|0,a=a+Math.imul(q,ce)|0,p=p+Math.imul(q,he)|0,d=d+Math.imul(C,de)|0,a=a+Math.imul(C,pe)|0,a=a+Math.imul(U,de)|0,p=p+Math.imul(U,pe)|0,d=d+Math.imul(x,me)|0,a=a+Math.imul(x,ye)|0,a=a+Math.imul(E,me)|0,p=p+Math.imul(E,ye)|0;var Tt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(Z,oe),a=Math.imul(Z,le),a=a+Math.imul(J,oe)|0,p=Math.imul(J,le),d=d+Math.imul($,fe)|0,a=a+Math.imul($,ue)|0,a=a+Math.imul(Y,fe)|0,p=p+Math.imul(Y,ue)|0,d=d+Math.imul(V,ce)|0,a=a+Math.imul(V,he)|0,a=a+Math.imul(W,ce)|0,p=p+Math.imul(W,he)|0,d=d+Math.imul(F,de)|0,a=a+Math.imul(F,pe)|0,a=a+Math.imul(q,de)|0,p=p+Math.imul(q,pe)|0,d=d+Math.imul(C,me)|0,a=a+Math.imul(C,ye)|0,a=a+Math.imul(U,me)|0,p=p+Math.imul(U,ye)|0,d=d+Math.imul(x,ge)|0,a=a+Math.imul(x,_e)|0,a=a+Math.imul(E,ge)|0,p=p+Math.imul(E,_e)|0;var Rt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,d=Math.imul(Q,oe),a=Math.imul(Q,le),a=a+Math.imul(ee,oe)|0,p=Math.imul(ee,le),d=d+Math.imul(Z,fe)|0,a=a+Math.imul(Z,ue)|0,a=a+Math.imul(J,fe)|0,p=p+Math.imul(J,ue)|0,d=d+Math.imul($,ce)|0,a=a+Math.imul($,he)|0,a=a+Math.imul(Y,ce)|0,p=p+Math.imul(Y,he)|0,d=d+Math.imul(V,de)|0,a=a+Math.imul(V,pe)|0,a=a+Math.imul(W,de)|0,p=p+Math.imul(W,pe)|0,d=d+Math.imul(F,me)|0,a=a+Math.imul(F,ye)|0,a=a+Math.imul(q,me)|0,p=p+Math.imul(q,ye)|0,d=d+Math.imul(C,ge)|0,a=a+Math.imul(C,_e)|0,a=a+Math.imul(U,ge)|0,p=p+Math.imul(U,_e)|0,d=d+Math.imul(x,ve)|0,a=a+Math.imul(x,be)|0,a=a+Math.imul(E,ve)|0,p=p+Math.imul(E,be)|0;var Ot=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,d=Math.imul(te,oe),a=Math.imul(te,le),a=a+Math.imul(re,oe)|0,p=Math.imul(re,le),d=d+Math.imul(Q,fe)|0,a=a+Math.imul(Q,ue)|0,a=a+Math.imul(ee,fe)|0,p=p+Math.imul(ee,ue)|0,d=d+Math.imul(Z,ce)|0,a=a+Math.imul(Z,he)|0,a=a+Math.imul(J,ce)|0,p=p+Math.imul(J,he)|0,d=d+Math.imul($,de)|0,a=a+Math.imul($,pe)|0,a=a+Math.imul(Y,de)|0,p=p+Math.imul(Y,pe)|0,d=d+Math.imul(V,me)|0,a=a+Math.imul(V,ye)|0,a=a+Math.imul(W,me)|0,p=p+Math.imul(W,ye)|0,d=d+Math.imul(F,ge)|0,a=a+Math.imul(F,_e)|0,a=a+Math.imul(q,ge)|0,p=p+Math.imul(q,_e)|0,d=d+Math.imul(C,ve)|0,a=a+Math.imul(C,be)|0,a=a+Math.imul(U,ve)|0,p=p+Math.imul(U,be)|0,d=d+Math.imul(x,xe)|0,a=a+Math.imul(x,we)|0,a=a+Math.imul(E,xe)|0,p=p+Math.imul(E,we)|0;var It=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(ne,oe),a=Math.imul(ne,le),a=a+Math.imul(ie,oe)|0,p=Math.imul(ie,le),d=d+Math.imul(te,fe)|0,a=a+Math.imul(te,ue)|0,a=a+Math.imul(re,fe)|0,p=p+Math.imul(re,ue)|0,d=d+Math.imul(Q,ce)|0,a=a+Math.imul(Q,he)|0,a=a+Math.imul(ee,ce)|0,p=p+Math.imul(ee,he)|0,d=d+Math.imul(Z,de)|0,a=a+Math.imul(Z,pe)|0,a=a+Math.imul(J,de)|0,p=p+Math.imul(J,pe)|0,d=d+Math.imul($,me)|0,a=a+Math.imul($,ye)|0,a=a+Math.imul(Y,me)|0,p=p+Math.imul(Y,ye)|0,d=d+Math.imul(V,ge)|0,a=a+Math.imul(V,_e)|0,a=a+Math.imul(W,ge)|0,p=p+Math.imul(W,_e)|0,d=d+Math.imul(F,ve)|0,a=a+Math.imul(F,be)|0,a=a+Math.imul(q,ve)|0,p=p+Math.imul(q,be)|0,d=d+Math.imul(C,xe)|0,a=a+Math.imul(C,we)|0,a=a+Math.imul(U,xe)|0,p=p+Math.imul(U,we)|0,d=d+Math.imul(x,ke)|0,a=a+Math.imul(x,Me)|0,a=a+Math.imul(E,ke)|0,p=p+Math.imul(E,Me)|0;var Nt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,d=Math.imul(se,oe),a=Math.imul(se,le),a=a+Math.imul(ae,oe)|0,p=Math.imul(ae,le),d=d+Math.imul(ne,fe)|0,a=a+Math.imul(ne,ue)|0,a=a+Math.imul(ie,fe)|0,p=p+Math.imul(ie,ue)|0,d=d+Math.imul(te,ce)|0,a=a+Math.imul(te,he)|0,a=a+Math.imul(re,ce)|0,p=p+Math.imul(re,he)|0,d=d+Math.imul(Q,de)|0,a=a+Math.imul(Q,pe)|0,a=a+Math.imul(ee,de)|0,p=p+Math.imul(ee,pe)|0,d=d+Math.imul(Z,me)|0,a=a+Math.imul(Z,ye)|0,a=a+Math.imul(J,me)|0,p=p+Math.imul(J,ye)|0,d=d+Math.imul($,ge)|0,a=a+Math.imul($,_e)|0,a=a+Math.imul(Y,ge)|0,p=p+Math.imul(Y,_e)|0,d=d+Math.imul(V,ve)|0,a=a+Math.imul(V,be)|0,a=a+Math.imul(W,ve)|0,p=p+Math.imul(W,be)|0,d=d+Math.imul(F,xe)|0,a=a+Math.imul(F,we)|0,a=a+Math.imul(q,xe)|0,p=p+Math.imul(q,we)|0,d=d+Math.imul(C,ke)|0,a=a+Math.imul(C,Me)|0,a=a+Math.imul(U,ke)|0,p=p+Math.imul(U,Me)|0,d=d+Math.imul(x,Ae)|0,a=a+Math.imul(x,Ee)|0,a=a+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ee)|0;var Bt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,d=Math.imul(se,fe),a=Math.imul(se,ue),a=a+Math.imul(ae,fe)|0,p=Math.imul(ae,ue),d=d+Math.imul(ne,ce)|0,a=a+Math.imul(ne,he)|0,a=a+Math.imul(ie,ce)|0,p=p+Math.imul(ie,he)|0,d=d+Math.imul(te,de)|0,a=a+Math.imul(te,pe)|0,a=a+Math.imul(re,de)|0,p=p+Math.imul(re,pe)|0,d=d+Math.imul(Q,me)|0,a=a+Math.imul(Q,ye)|0,a=a+Math.imul(ee,me)|0,p=p+Math.imul(ee,ye)|0,d=d+Math.imul(Z,ge)|0,a=a+Math.imul(Z,_e)|0,a=a+Math.imul(J,ge)|0,p=p+Math.imul(J,_e)|0,d=d+Math.imul($,ve)|0,a=a+Math.imul($,be)|0,a=a+Math.imul(Y,ve)|0,p=p+Math.imul(Y,be)|0,d=d+Math.imul(V,xe)|0,a=a+Math.imul(V,we)|0,a=a+Math.imul(W,xe)|0,p=p+Math.imul(W,we)|0,d=d+Math.imul(F,ke)|0,a=a+Math.imul(F,Me)|0,a=a+Math.imul(q,ke)|0,p=p+Math.imul(q,Me)|0,d=d+Math.imul(C,Ae)|0,a=a+Math.imul(C,Ee)|0,a=a+Math.imul(U,Ae)|0,p=p+Math.imul(U,Ee)|0;var Ct=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,d=Math.imul(se,ce),a=Math.imul(se,he),a=a+Math.imul(ae,ce)|0,p=Math.imul(ae,he),d=d+Math.imul(ne,de)|0,a=a+Math.imul(ne,pe)|0,a=a+Math.imul(ie,de)|0,p=p+Math.imul(ie,pe)|0,d=d+Math.imul(te,me)|0,a=a+Math.imul(te,ye)|0,a=a+Math.imul(re,me)|0,p=p+Math.imul(re,ye)|0,d=d+Math.imul(Q,ge)|0,a=a+Math.imul(Q,_e)|0,a=a+Math.imul(ee,ge)|0,p=p+Math.imul(ee,_e)|0,d=d+Math.imul(Z,ve)|0,a=a+Math.imul(Z,be)|0,a=a+Math.imul(J,ve)|0,p=p+Math.imul(J,be)|0,d=d+Math.imul($,xe)|0,a=a+Math.imul($,we)|0,a=a+Math.imul(Y,xe)|0,p=p+Math.imul(Y,we)|0,d=d+Math.imul(V,ke)|0,a=a+Math.imul(V,Me)|0,a=a+Math.imul(W,ke)|0,p=p+Math.imul(W,Me)|0,d=d+Math.imul(F,Ae)|0,a=a+Math.imul(F,Ee)|0,a=a+Math.imul(q,Ae)|0,p=p+Math.imul(q,Ee)|0;var Ut=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,d=Math.imul(se,de),a=Math.imul(se,pe),a=a+Math.imul(ae,de)|0,p=Math.imul(ae,pe),d=d+Math.imul(ne,me)|0,a=a+Math.imul(ne,ye)|0,a=a+Math.imul(ie,me)|0,p=p+Math.imul(ie,ye)|0,d=d+Math.imul(te,ge)|0,a=a+Math.imul(te,_e)|0,a=a+Math.imul(re,ge)|0,p=p+Math.imul(re,_e)|0,d=d+Math.imul(Q,ve)|0,a=a+Math.imul(Q,be)|0,a=a+Math.imul(ee,ve)|0,p=p+Math.imul(ee,be)|0,d=d+Math.imul(Z,xe)|0,a=a+Math.imul(Z,we)|0,a=a+Math.imul(J,xe)|0,p=p+Math.imul(J,we)|0,d=d+Math.imul($,ke)|0,a=a+Math.imul($,Me)|0,a=a+Math.imul(Y,ke)|0,p=p+Math.imul(Y,Me)|0,d=d+Math.imul(V,Ae)|0,a=a+Math.imul(V,Ee)|0,a=a+Math.imul(W,Ae)|0,p=p+Math.imul(W,Ee)|0;var Dt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,d=Math.imul(se,me),a=Math.imul(se,ye),a=a+Math.imul(ae,me)|0,p=Math.imul(ae,ye),d=d+Math.imul(ne,ge)|0,a=a+Math.imul(ne,_e)|0,a=a+Math.imul(ie,ge)|0,p=p+Math.imul(ie,_e)|0,d=d+Math.imul(te,ve)|0,a=a+Math.imul(te,be)|0,a=a+Math.imul(re,ve)|0,p=p+Math.imul(re,be)|0,d=d+Math.imul(Q,xe)|0,a=a+Math.imul(Q,we)|0,a=a+Math.imul(ee,xe)|0,p=p+Math.imul(ee,we)|0,d=d+Math.imul(Z,ke)|0,a=a+Math.imul(Z,Me)|0,a=a+Math.imul(J,ke)|0,p=p+Math.imul(J,Me)|0,d=d+Math.imul($,Ae)|0,a=a+Math.imul($,Ee)|0,a=a+Math.imul(Y,Ae)|0,p=p+Math.imul(Y,Ee)|0;var Pt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(se,ge),a=Math.imul(se,_e),a=a+Math.imul(ae,ge)|0,p=Math.imul(ae,_e),d=d+Math.imul(ne,ve)|0,a=a+Math.imul(ne,be)|0,a=a+Math.imul(ie,ve)|0,p=p+Math.imul(ie,be)|0,d=d+Math.imul(te,xe)|0,a=a+Math.imul(te,we)|0,a=a+Math.imul(re,xe)|0,p=p+Math.imul(re,we)|0,d=d+Math.imul(Q,ke)|0,a=a+Math.imul(Q,Me)|0,a=a+Math.imul(ee,ke)|0,p=p+Math.imul(ee,Me)|0,d=d+Math.imul(Z,Ae)|0,a=a+Math.imul(Z,Ee)|0,a=a+Math.imul(J,Ae)|0,p=p+Math.imul(J,Ee)|0;var Ft=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(se,ve),a=Math.imul(se,be),a=a+Math.imul(ae,ve)|0,p=Math.imul(ae,be),d=d+Math.imul(ne,xe)|0,a=a+Math.imul(ne,we)|0,a=a+Math.imul(ie,xe)|0,p=p+Math.imul(ie,we)|0,d=d+Math.imul(te,ke)|0,a=a+Math.imul(te,Me)|0,a=a+Math.imul(re,ke)|0,p=p+Math.imul(re,Me)|0,d=d+Math.imul(Q,Ae)|0,a=a+Math.imul(Q,Ee)|0,a=a+Math.imul(ee,Ae)|0,p=p+Math.imul(ee,Ee)|0;var qt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(qt>>>26)|0,qt&=67108863,d=Math.imul(se,xe),a=Math.imul(se,we),a=a+Math.imul(ae,xe)|0,p=Math.imul(ae,we),d=d+Math.imul(ne,ke)|0,a=a+Math.imul(ne,Me)|0,a=a+Math.imul(ie,ke)|0,p=p+Math.imul(ie,Me)|0,d=d+Math.imul(te,Ae)|0,a=a+Math.imul(te,Ee)|0,a=a+Math.imul(re,Ae)|0,p=p+Math.imul(re,Ee)|0;var Lt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,d=Math.imul(se,ke),a=Math.imul(se,Me),a=a+Math.imul(ae,ke)|0,p=Math.imul(ae,Me),d=d+Math.imul(ne,Ae)|0,a=a+Math.imul(ne,Ee)|0,a=a+Math.imul(ie,Ae)|0,p=p+Math.imul(ie,Ee)|0;var Gt=(_+d|0)+((a&8191)<<13)|0;_=(p+(a>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,d=Math.imul(se,Ae),a=Math.imul(se,Ee),a=a+Math.imul(ae,Ae)|0,p=Math.imul(ae,Ee);var Kt=(_+d|0)+((a&8191)<<13)|0;return _=(p+(a>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,m[0]=jt,m[1]=Je,m[2]=Qe,m[3]=St,m[4]=Tt,m[5]=Rt,m[6]=Ot,m[7]=It,m[8]=Nt,m[9]=Bt,m[10]=Ct,m[11]=Ut,m[12]=Dt,m[13]=Pt,m[14]=Ft,m[15]=qt,m[16]=Lt,m[17]=Gt,m[18]=Kt,_!==0&&(m[19]=_,u.length++),u};Math.imul||(B=O);function L(y,s,l){l.negative=s.negative^y.negative,l.length=y.length+s.length;for(var u=0,f=0,c=0;c<l.length-1;c++){var m=f;f=0;for(var _=u&67108863,d=Math.min(c,s.length-1),a=Math.max(0,c-y.length+1);a<=d;a++){var p=c-a,M=y.words[p]|0,x=s.words[a]|0,E=M*x,N=E&67108863;m=m+(E/67108864|0)|0,N=N+_|0,_=N&67108863,m=m+(N>>>26)|0,f+=m>>>26,m&=67108863}l.words[c]=_,u=m,m=f}return u!==0?l.words[c]=u:l.length--,l.strip()}function X(y,s,l){var u=new P;return u.mulp(y,s,l)}i.prototype.mulTo=function(s,l){var u,f=this.length+s.length;return this.length===10&&s.length===10?u=B(this,s,l):f<63?u=O(this,s,l):f<1024?u=L(this,s,l):u=X(this,s,l),u};function P(y,s){this.x=y,this.y=s}P.prototype.makeRBT=function(s){for(var l=new Array(s),u=i.prototype._countBits(s)-1,f=0;f<s;f++)l[f]=this.revBin(f,u,s);return l},P.prototype.revBin=function(s,l,u){if(s===0||s===u-1)return s;for(var f=0,c=0;c<l;c++)f|=(s&1)<<l-c-1,s>>=1;return f},P.prototype.permute=function(s,l,u,f,c,m){for(var _=0;_<m;_++)f[_]=l[s[_]],c[_]=u[s[_]]},P.prototype.transform=function(s,l,u,f,c,m){this.permute(m,s,l,u,f,c);for(var _=1;_<c;_<<=1)for(var d=_<<1,a=Math.cos(2*Math.PI/d),p=Math.sin(2*Math.PI/d),M=0;M<c;M+=d)for(var x=a,E=p,N=0;N<_;N++){var C=u[M+N],U=f[M+N],Re=u[M+N+_],F=f[M+N+_],q=x*Re-E*F;F=x*F+E*Re,Re=q,u[M+N]=C+Re,f[M+N]=U+F,u[M+N+_]=C-Re,f[M+N+_]=U-F,N!==d&&(q=a*x-p*E,E=a*E+p*x,x=q)}},P.prototype.guessLen13b=function(s,l){var u=Math.max(l,s)|1,f=u&1,c=0;for(u=u/2|0;u;u=u>>>1)c++;return 1<<c+1+f},P.prototype.conjugate=function(s,l,u){if(!(u<=1))for(var f=0;f<u/2;f++){var c=s[f];s[f]=s[u-f-1],s[u-f-1]=c,c=l[f],l[f]=-l[u-f-1],l[u-f-1]=-c}},P.prototype.normalize13b=function(s,l){for(var u=0,f=0;f<l/2;f++){var c=Math.round(s[2*f+1]/l)*8192+Math.round(s[2*f]/l)+u;s[f]=c&67108863,c<67108864?u=0:u=c/67108864|0}return s},P.prototype.convert13b=function(s,l,u,f){for(var c=0,m=0;m<l;m++)c=c+(s[m]|0),u[2*m]=c&8191,c=c>>>13,u[2*m+1]=c&8191,c=c>>>13;for(m=2*l;m<f;++m)u[m]=0;r(c===0),r((c&-8192)===0)},P.prototype.stub=function(s){for(var l=new Array(s),u=0;u<s;u++)l[u]=0;return l},P.prototype.mulp=function(s,l,u){var f=2*this.guessLen13b(s.length,l.length),c=this.makeRBT(f),m=this.stub(f),_=new Array(f),d=new Array(f),a=new Array(f),p=new Array(f),M=new Array(f),x=new Array(f),E=u.words;E.length=f,this.convert13b(s.words,s.length,_,f),this.convert13b(l.words,l.length,p,f),this.transform(_,m,d,a,f,c),this.transform(p,m,M,x,f,c);for(var N=0;N<f;N++){var C=d[N]*M[N]-a[N]*x[N];a[N]=d[N]*x[N]+a[N]*M[N],d[N]=C}return this.conjugate(d,a,f),this.transform(d,a,E,m,f,c),this.conjugate(E,m,f),this.normalize13b(E,f),u.negative=s.negative^l.negative,u.length=s.length+l.length,u.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),X(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var l=0,u=0;u<this.length;u++){var f=(this.words[u]|0)*s,c=(f&67108863)+(l&67108863);l>>=26,l+=f/67108864|0,l+=c>>>26,this.words[u]=c&67108863}return l!==0&&(this.words[u]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=R(s);if(l.length===0)return new i(1);for(var u=this,f=0;f<l.length&&l[f]===0;f++,u=u.sqr());if(++f<l.length)for(var c=u.sqr();f<l.length;f++,c=c.sqr())l[f]!==0&&(u=u.mul(c));return u},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=67108863>>>26-l<<26-l,c;if(l!==0){var m=0;for(c=0;c<this.length;c++){var _=this.words[c]&f,d=(this.words[c]|0)-_<<l;this.words[c]=d|m,m=_>>>26-l}m&&(this.words[c]=m,this.length++)}if(u!==0){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c<u;c++)this.words[c]=0;this.length+=u}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,u){r(typeof s=="number"&&s>=0);var f;l?f=(l-l%26)/26:f=0;var c=s%26,m=Math.min((s-c)/26,this.length),_=67108863^67108863>>>c<<c,d=u;if(f-=m,f=Math.max(0,f),d){for(var a=0;a<m;a++)d.words[a]=this.words[a];d.length=m}if(m!==0)if(this.length>m)for(this.length-=m,a=0;a<this.length;a++)this.words[a]=this.words[a+m];else this.words[0]=0,this.length=1;var p=0;for(a=this.length-1;a>=0&&(p!==0||a>=f);a--){var M=this.words[a]|0;this.words[a]=p<<26-c|M>>>c,p=M&_}return d&&p!==0&&(d.words[d.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,u){return r(this.negative===0),this.iushrn(s,l,u)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return!1;var c=this.words[u];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var l=s%26,u=(s-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(l!==0&&u++,this.length=Math.min(u,this.length),l!==0){var f=67108863^67108863>>>l<<l;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,u){var f=s.length+u,c;this._expand(f);var m,_=0;for(c=0;c<s.length;c++){m=(this.words[c+u]|0)+_;var d=(s.words[c]|0)*l;m-=d&67108863,_=(m>>26)-(d/67108864|0),this.words[c+u]=m&67108863}for(;c<this.length-u;c++)m=(this.words[c+u]|0)+_,_=m>>26,this.words[c+u]=m&67108863;if(_===0)return this.strip();for(r(_===-1),_=0,c=0;c<this.length;c++)m=-(this.words[c]|0)+_,_=m>>26,this.words[c]=m&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var u=this.length-s.length,f=this.clone(),c=s,m=c.words[c.length-1]|0,_=this._countBits(m);u=26-_,u!==0&&(c=c.ushln(u),f.iushln(u),m=c.words[c.length-1]|0);var d=f.length-c.length,a;if(l!=="mod"){a=new i(null),a.length=d+1,a.words=new Array(a.length);for(var p=0;p<a.length;p++)a.words[p]=0}var M=f.clone()._ishlnsubmul(c,1,d);M.negative===0&&(f=M,a&&(a.words[d]=1));for(var x=d-1;x>=0;x--){var E=(f.words[c.length+x]|0)*67108864+(f.words[c.length+x-1]|0);for(E=Math.min(E/m|0,67108863),f._ishlnsubmul(c,E,x);f.negative!==0;)E--,f.negative=0,f._ishlnsubmul(c,1,x),f.isZero()||(f.negative^=1);a&&(a.words[x]=E)}return a&&a.strip(),f.strip(),l!=="div"&&u!==0&&f.iushrn(u),{div:a||null,mod:f}},i.prototype.divmod=function(s,l,u){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,m;return this.negative!==0&&s.negative===0?(m=this.neg().divmod(s,l),l!=="mod"&&(f=m.div.neg()),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(m=this.divmod(s.neg(),l),l!=="mod"&&(f=m.div.neg()),{div:f,mod:m.mod}):(this.negative&s.negative)!==0?(m=this.neg().divmod(s.neg(),l),l!=="div"&&(c=m.mod.neg(),u&&c.negative!==0&&c.isub(s)),{div:m.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var u=l.div.negative!==0?l.mod.isub(s):l.mod,f=s.ushrn(1),c=s.andln(1),m=u.cmp(f);return m<0||c===1&&m===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var l=(1<<26)%s,u=0,f=this.length-1;f>=0;f--)u=(l*u+(this.words[f]|0))%s;return u},i.prototype.idivn=function(s){r(s<=67108863);for(var l=0,u=this.length-1;u>=0;u--){var f=(this.words[u]|0)+l*67108864;this.words[u]=f/s|0,l=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=new i(0),_=new i(1),d=0;l.isEven()&&u.isEven();)l.iushrn(1),u.iushrn(1),++d;for(var a=u.clone(),p=l.clone();!l.isZero();){for(var M=0,x=1;(l.words[0]&x)===0&&M<26;++M,x<<=1);if(M>0)for(l.iushrn(M);M-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(a),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var E=0,N=1;(u.words[0]&N)===0&&E<26;++E,N<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(m.isOdd()||_.isOdd())&&(m.iadd(a),_.isub(p)),m.iushrn(1),_.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(m),c.isub(_)):(u.isub(l),m.isub(f),_.isub(c))}return{a:m,b:_,gcd:u.iushln(d)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var l=this,u=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var f=new i(1),c=new i(0),m=u.clone();l.cmpn(1)>0&&u.cmpn(1)>0;){for(var _=0,d=1;(l.words[0]&d)===0&&_<26;++_,d<<=1);if(_>0)for(l.iushrn(_);_-- >0;)f.isOdd()&&f.iadd(m),f.iushrn(1);for(var a=0,p=1;(u.words[0]&p)===0&&a<26;++a,p<<=1);if(a>0)for(u.iushrn(a);a-- >0;)c.isOdd()&&c.iadd(m),c.iushrn(1);l.cmp(u)>=0?(l.isub(u),f.isub(c)):(u.isub(l),c.isub(f))}var M;return l.cmpn(1)===0?M=f:M=c,M.cmpn(0)<0&&M.iadd(s),M},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),u=s.clone();l.negative=0,u.negative=0;for(var f=0;l.isEven()&&u.isEven();f++)l.iushrn(1),u.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=l.cmp(u);if(c<0){var m=l;l=u,u=m}else if(c===0||u.cmpn(1)===0)break;l.isub(u)}while(!0);return u.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var l=s%26,u=(s-l)/26,f=1<<l;if(this.length<=u)return this._expand(u+1),this.words[u]|=f,this;for(var c=f,m=u;c!==0&&m<this.length;m++){var _=this.words[m]|0;_+=c,c=_>>>26,_&=67108863,this.words[m]=_}return c!==0&&(this.words[m]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var u;if(this.length>1)u=1;else{l&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;u=f===s?0:f<s?-1:1}return this.negative!==0?-u|0:u},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,u=this.length-1;u>=0;u--){var f=this.words[u]|0,c=s.words[u]|0;if(f!==c){f<c?l=-1:f>c&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new j(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var H={k256:null,p224:null,p192:null,p25519:null};function D(y,s){this.name=y,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},D.prototype.ireduce=function(s){var l=s,u;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),u=l.bitLength();while(u>this.n);var f=u<this.n?-1:l.ucmp(this.p);return f===0?(l.words[0]=0,l.length=1):f>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},D.prototype.split=function(s,l){s.iushrn(this.n,0,l)},D.prototype.imulK=function(s){return s.imul(this.k)};function Se(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Se,D),Se.prototype.split=function(s,l){for(var u=4194303,f=Math.min(s.length,9),c=0;c<f;c++)l.words[c]=s.words[c];if(l.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var m=s.words[9];for(l.words[l.length++]=m&u,c=10;c<s.length;c++){var _=s.words[c]|0;s.words[c-10]=(_&u)<<4|m>>>22,m=_}m>>>=22,s.words[c-10]=m,m===0&&s.length>10?s.length-=10:s.length-=9},Se.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,u=0;u<s.length;u++){var f=s.words[u]|0;l+=f*977,s.words[u]=l&67108863,l=f*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function De(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(De,D);function Ce(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Ce,D);function Ke(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Ke,D),Ke.prototype.imulK=function(s){for(var l=0,u=0;u<s.length;u++){var f=(s.words[u]|0)*19+l,c=f&67108863;f>>>=26,s.words[u]=c,l=f}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(H[s])return H[s];var l;if(s==="k256")l=new Se;else if(s==="p224")l=new De;else if(s==="p192")l=new Ce;else if(s==="p25519")l=new Ke;else throw new Error("Unknown prime "+s);return H[s]=l,l};function j(y){if(typeof y=="string"){var s=i._prime(y);this.m=s.p,this.prime=s}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}j.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},j.prototype._verify2=function(s,l){r((s.negative|l.negative)===0,"red works only with positives"),r(s.red&&s.red===l.red,"red works only with red numbers")},j.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},j.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},j.prototype.add=function(s,l){this._verify2(s,l);var u=s.add(l);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},j.prototype.iadd=function(s,l){this._verify2(s,l);var u=s.iadd(l);return u.cmp(this.m)>=0&&u.isub(this.m),u},j.prototype.sub=function(s,l){this._verify2(s,l);var u=s.sub(l);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},j.prototype.isub=function(s,l){this._verify2(s,l);var u=s.isub(l);return u.cmpn(0)<0&&u.iadd(this.m),u},j.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},j.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},j.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},j.prototype.isqr=function(s){return this.imul(s,s.clone())},j.prototype.sqr=function(s){return this.mul(s,s)},j.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var u=this.m.add(new i(1)).iushrn(2);return this.pow(s,u)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var m=new i(1).toRed(this),_=m.redNeg(),d=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new i(2*a*a).toRed(this);this.pow(a,d).cmp(_)!==0;)a.redIAdd(_);for(var p=this.pow(a,f),M=this.pow(s,f.addn(1).iushrn(1)),x=this.pow(s,f),E=c;x.cmp(m)!==0;){for(var N=x,C=0;N.cmp(m)!==0;C++)N=N.redSqr();r(C<E);var U=this.pow(p,new i(1).iushln(E-C-1));M=M.redMul(U),p=U.redSqr(),x=x.redMul(p),E=C}return M},j.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},j.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var u=4,f=new Array(1<<u);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var m=f[0],_=0,d=0,a=l.bitLength()%26;for(a===0&&(a=26),c=l.length-1;c>=0;c--){for(var p=l.words[c],M=a-1;M>=0;M--){var x=p>>M&1;if(m!==f[0]&&(m=this.sqr(m)),x===0&&_===0){d=0;continue}_<<=1,_|=x,d++,!(d!==u&&(c!==0||M!==0))&&(m=this.mul(m,f[_]),d=0,_=0)}a=26}return m},j.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},j.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new Be(s)};function Be(y){j.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Be,j),Be.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Be.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},Be.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var u=s.imul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var u=s.mul(l),f=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(f).iushrn(this.shift),m=c;return c.cmp(this.m)>=0?m=c.isub(this.m):c.cmpn(0)<0&&(m=c.iadd(this.m)),m._forceRed(this)},Be.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof H6>"u"||H6,KK)});var z6=I((VYe,zK)=>{b();var HK=Yg(),c7e=rt().Buffer;function h7e(e,t){return c7e.from(e.toRed(HK.mont(t.modulus)).redPow(new HK(t.publicExponent)).fromRed().toArray())}zK.exports=h7e});var XK=I((XYe,WK)=>{b();var d7e=fp(),j6=wf(),p7e=jc(),jK=G6(),VK=K6(),V6=Yg(),m7e=z6(),y7e=kg(),ps=rt().Buffer;WK.exports=function(t,r,n){var i;t.padding?i=t.padding:n?i=1:i=4;var o=d7e(t),h;if(i===4)h=g7e(o,r);else if(i===1)h=_7e(o,r,n);else if(i===3){if(h=new V6(r),h.cmp(o.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?y7e(h,o):m7e(h,o)};function g7e(e,t){var r=e.modulus.byteLength(),n=t.length,i=p7e("sha1").update(ps.alloc(0)).digest(),o=i.length,h=2*o;if(n>r-h-2)throw new Error("message too long");var g=ps.alloc(r-n-h-2),v=r-o-1,w=j6(o),k=VK(ps.concat([i,g,ps.alloc(1,1),t],v),jK(w,v)),A=VK(w,jK(k,o));return new V6(ps.concat([ps.alloc(1),A,k],r))}function _7e(e,t,r){var n=t.length,i=e.modulus.byteLength();if(n>i-11)throw new Error("message too long");var o;return r?o=ps.alloc(i-n-3,255):o=v7e(i-n-3),new V6(ps.concat([ps.from([0,r?1:2]),o,ps.alloc(1),t],i))}function v7e(e){for(var t=ps.allocUnsafe(e),r=0,n=j6(e*2),i=0,o;r<e;)i===n.length&&(n=j6(e*2),i=0),o=n[i++],o&&(t[r++]=o);return t}});var QK=I((YYe,JK)=>{b();var b7e=fp(),$K=G6(),YK=K6(),ZK=Yg(),x7e=kg(),w7e=jc(),k7e=z6(),dp=rt().Buffer;JK.exports=function(t,r,n){var i;t.padding?i=t.padding:n?i=1:i=4;var o=b7e(t),h=o.modulus.byteLength();if(r.length>h||new ZK(r).cmp(o.modulus)>=0)throw new Error("decryption error");var g;n?g=k7e(new ZK(r),o):g=x7e(r,o);var v=dp.alloc(h-g.length);if(g=dp.concat([v,g],h),i===4)return M7e(o,g);if(i===1)return A7e(o,g,n);if(i===3)return g;throw new Error("unknown padding")};function M7e(e,t){var r=e.modulus.byteLength(),n=w7e("sha1").update(dp.alloc(0)).digest(),i=n.length;if(t[0]!==0)throw new Error("decryption error");var o=t.slice(1,i+1),h=t.slice(i+1),g=YK(o,$K(h,i)),v=YK(h,$K(g,r-i-1));if(E7e(n,v.slice(0,i)))throw new Error("decryption error");for(var w=i;v[w]===0;)w++;if(v[w++]!==1)throw new Error("decryption error");return v.slice(w)}function A7e(e,t,r){for(var n=t.slice(0,2),i=2,o=0;t[i++]!==0;)if(i>=t.length){o++;break}var h=t.slice(2,i-1);if((n.toString("hex")!=="0002"&&!r||n.toString("hex")!=="0001"&&r)&&o++,h.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}function E7e(e,t){e=dp.from(e),t=dp.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}});var eH=I(Yf=>{b();Yf.publicEncrypt=XK();Yf.privateDecrypt=QK();Yf.privateEncrypt=function(t,r){return Yf.publicEncrypt(t,r,!0)};Yf.publicDecrypt=function(t,r){return Yf.privateDecrypt(t,r,!0)}});var uH=I(pp=>{"use strict";b();function tH(){throw new Error(`secure random number generation not supported by this browser
193
+ use chrome, FireFox or Internet Explorer 11`)}var nH=rt(),rH=wf(),iH=nH.Buffer,sH=nH.kMaxLength,W6=window.crypto||window.msCrypto,aH=Math.pow(2,32)-1;function oH(e,t){if(typeof e!="number"||e!==e)throw new TypeError("offset must be a number");if(e>aH||e<0)throw new TypeError("offset must be a uint32");if(e>sH||e>t)throw new RangeError("offset out of range")}function lH(e,t,r){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>aH||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>sH)throw new RangeError("buffer too small")}W6&&W6.getRandomValues?(pp.randomFill=S7e,pp.randomFillSync=T7e):(pp.randomFill=tH,pp.randomFillSync=tH);function S7e(e,t,r,n){if(!iH.isBuffer(e)&&!(e instanceof window.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")n=t,t=0,r=e.length;else if(typeof r=="function")n=r,r=e.length-t;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return oH(t,e.length),lH(r,t,e.length),fH(e,t,r,n)}function fH(e,t,r,n){var i=e.buffer,o=new Uint8Array(i,t,r);if(W6.getRandomValues(o),n){S(function(){n(null,e)});return}return e;var h}function T7e(e,t,r){if(typeof t>"u"&&(t=0),!iH.isBuffer(e)&&!(e instanceof window.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return oH(t,e.length),r===void 0&&(r=e.length-t),lH(r,t,e.length),fH(e,t,r)}});var dH=I(lt=>{"use strict";b();lt.randomBytes=lt.rng=lt.pseudoRandomBytes=lt.prng=wf();lt.createHash=lt.Hash=jc();lt.createHmac=lt.Hmac=uM();var R7e=gF(),O7e=Object.keys(R7e),I7e=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(O7e);lt.getHashes=function(){return I7e};var cH=vM();lt.pbkdf2=cH.pbkdf2;lt.pbkdf2Sync=cH.pbkdf2Sync;var ta=Gq();lt.Cipher=ta.Cipher;lt.createCipher=ta.createCipher;lt.Cipheriv=ta.Cipheriv;lt.createCipheriv=ta.createCipheriv;lt.Decipher=ta.Decipher;lt.createDecipher=ta.createDecipher;lt.Decipheriv=ta.Decipheriv;lt.createDecipheriv=ta.createDecipheriv;lt.getCiphers=ta.getCiphers;lt.listCiphers=ta.listCiphers;var mp=nL();lt.DiffieHellmanGroup=mp.DiffieHellmanGroup;lt.createDiffieHellmanGroup=mp.createDiffieHellmanGroup;lt.getDiffieHellman=mp.getDiffieHellman;lt.createDiffieHellman=mp.createDiffieHellman;lt.DiffieHellman=mp.DiffieHellman;var Zg=UK();lt.createSign=Zg.createSign;lt.Sign=Zg.Sign;lt.createVerify=Zg.createVerify;lt.Verify=Zg.Verify;lt.createECDH=qK();var Jg=eH();lt.publicEncrypt=Jg.publicEncrypt;lt.privateEncrypt=Jg.privateEncrypt;lt.publicDecrypt=Jg.publicDecrypt;lt.privateDecrypt=Jg.privateDecrypt;var hH=uH();lt.randomFill=hH.randomFill;lt.randomFillSync=hH.randomFillSync;lt.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
194
+ we accept pull requests
195
+ https://github.com/browserify/crypto-browserify`)};lt.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}});function X6(e){let t=pH.default.createHash("sha1");return t.update(e),t.digest("hex")}var pH,mH=K(()=>{b();pH=mt(dH())});function yH(e,t,...r){let n=X6(e);return this.shaScripts[n]=e,ca(Ic(t,e).bind(this),"",this)(...r)}async function N7e(...e){let t=await yH.apply(this,e);return z(t)}var gH=K(()=>{b();Iu();Ne();mH();u1()});function _H(e,t,...r){if(!(e in this.shaScripts)||!this.shaScripts[e])throw new Error("NOSCRIPT No matching script. Please use EVAL.");let n=this.shaScripts[e];return ca(Ic(t,n).bind(this),"",this)(...r)}async function B7e(...e){let t=await _H.apply(this,e);return z(t)}var vH=K(()=>{b();Iu();Ne();u1()});function bH(...e){return e.reduce((t,r)=>this.data.has(r)?t+1:t,0)}var C7e,xH=K(()=>{b();C7e=bH});function pl(e,t){return this.data.has(e)?(this.expires.set(e,t*1e3+Date.now()),bf(this,"g",e,"expire"),1):0}var U7e,wH=K(()=>{b();bd();U7e=pl});function y0(e,t){return this.data.has(e)?(this.expires.set(e,t*1e3),1):0}var D7e,kH=K(()=>{b();D7e=y0});function MH(e){return this.data.has(e)?this.expires.has(e)?Math.round(this.expires.get(e)/1e3):-1:-2}var P7e,AH=K(()=>{b();P7e=MH});function EH(){throw new Error("ERR FAILOVER requires connected replicas.")}function F7e(...e){let t=EH.apply(this,e);return z(t)}var SH=K(()=>{b();Ne()});function TH(){return this.expires.clear(),this.data.clear(),"OK"}function q7e(){let e=TH.call(this);return z(e)}var RH=K(()=>{b();Ne()});function OH(){return this.flushall(),"OK"}function L7e(){let e=OH.call(this);return z(e)}var IH=K(()=>{b();Ne()});function $6(e){let t=this.data.has(e)?this.data.get(e):null;return Buffer.isBuffer(t)?t.toString():t}function G7e(e){return this.data.has(e)?z(this.data.get(e)):null}var NH=K(()=>{b();Ne()});function BH(e,t){if(t>4294967295)throw new Error("ERR bit offset is not an integer or out of range");if(!this.data.has(e))return 0;let r=this.data.get(e);if(t>r.length*8)return 0;let n=parseInt(t/8,10),i=7-t%8;return r.charCodeAt(n)>>i&1}var K7e,CH=K(()=>{b();K7e=BH});function UH(e){if(!this.data.has(e))return null;if(g0.call(this,e)!=="string")throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");let t=this.data.get(e);return this.data.delete(e),this.expires.delete(e),t}function H7e(...e){let t=UH.apply(this,e);return z(t)}var DH=K(()=>{b();Ne();xr()});function PH(e,t,r){let n=t?.toUpperCase();if(!(["EX","PX","EXAT","PXAT"].indexOf(n)!==-1&&r!==void 0)&&!(n==="PERSIST"&&r===void 0)&&n)throw new Error("ERR syntax error");if(!this.data.has(e))return null;switch(n){case"PERSIST":Qg.call(this,e);break;case"EX":pl.call(this,e,r);break;case"PX":ml.call(this,e,r);break;case"EXAT":y0.call(this,e,r);break;case"PXAT":_0.call(this,e,r);break}return $6.call(this,e)}function z7e(...e){let t=PH.apply(this,e);return z(t)}var FH=K(()=>{b();Ne();xr()});function Y6(e,t,r){let n=this.data.get(e),i=parseInt(t,10),o=parseInt(r,10);return o===-1?n.slice(i):n.slice(i,o+1)}function qH(...e){let t=Y6.apply(this,e);return z(t)}var j7e,V7e,LH=K(()=>{b();Ne();j7e=Y6,V7e=qH});function GH(e,t){let r=this.data.has(e)?this.data.get(e):null;return this.data.set(e,t),this.expires.delete(e),r}function W7e(...e){let t=GH.apply(this,e);return z(t)}var KH=K(()=>{b();Ne()});function HH(e,...t){let r=this.data.get(e);if(!r)return 0;let n=t.filter(o=>({}).hasOwnProperty.call(r,o)?(delete r[o],!0):!1).length;return Object.getOwnPropertyNames(r).length>0?this.data.set(e,r):this.data.delete(e),n}var X7e,zH=K(()=>{b();X7e=HH});function jH(e,t){let r=this.data.get(e);return!r||r[t]===void 0?0:{}.hasOwnProperty.call(r,t)?1:0}var $7e,VH=K(()=>{b();$7e=jH});function WH(e,t){let r=this.data.get(e);return!r||r[t]===void 0?null:r[t]}function Y7e(e,t){let r=WH.apply(this,[e,t]);return z(r)}var XH=K(()=>{b();Ne()});function $H(e){return this.data.get(e)||{}}function Z7e(e){let t=$H.apply(this,[e]);return Object.keys(t).forEach(r=>{t[r]=z(t[r])}),t}var YH=K(()=>{b();Ne()});function ZH(e,t,r=0){this.data.has(e)||this.data.set(e,{[t]:"0"});let n=this.data.get(e);({}).hasOwnProperty.call(n,t)||(n[t]="0");let o=Number(n[t])+parseInt(r,10);return n[t]=o.toString(),this.data.set(e,n),o}var J7e,JH=K(()=>{b();J7e=ZH});function QH(e,t,r){this.data.has(e)||this.data.set(e,{[t]:"0"});let n=this.data.get(e);({}).hasOwnProperty.call(n,t)||(n[t]="0");let i=parseFloat(n[t]);return n[t]=(i+parseFloat(r)).toString(),this.data.set(e,n),n[t]}var Q7e,ez=K(()=>{b();Q7e=QH});function tz(e){return this.data.has(e)?Object.keys(this.data.get(e)):[]}function eRe(e){let t=tz.call(this,e);return z(t)}var rz=K(()=>{b();Ne()});function nz(e){return this.data.has(e)?Object.keys(this.data.get(e)).length:0}var tRe,iz=K(()=>{b();tRe=nz});function sz(e,...t){let r=this.data.get(e);return t.map(n=>!r||r[n]===void 0?null:r[n])}function rRe(...e){let t=sz.apply(this,e);return z(t)}var az=K(()=>{b();Ne()});function oz(e,...t){this.data.has(e)||this.data.set(e,{});let r=this.data.get(e);for(let n=0;n<t.length;n+=2)r[t[n]]=t[n+1];return this.data.set(e,r),"OK"}function nRe(...e){let t=oz.apply(this,e);return z(t)}var lz=K(()=>{b();Ne()});var n_=I((AJe,Oz)=>{b();var fz=1/0,yz=9007199254740991,iRe=17976931348623157e292,uz=NaN,sRe=4294967295,aRe="[object Arguments]",oRe="[object Function]",lRe="[object GeneratorFunction]",Q6="[object Map]",fRe="[object Object]",cz="[object Promise]",e4="[object Set]",uRe="[object String]",cRe="[object Symbol]",hz="[object WeakMap]",dz="[object DataView]",hRe=/[\\^$.*+?()[\]{}|]/g,dRe=/^\s+|\s+$/g,pRe=/^[-+]0x[0-9a-f]+$/i,mRe=/^0b[01]+$/i,yRe=/^\[object .+?Constructor\]$/,gRe=/^0o[0-7]+$/i,_Re=/^(?:0|[1-9]\d*)$/,l4="\\ud800-\\udfff",gz="\\u0300-\\u036f\\ufe20-\\ufe23",_z="\\u20d0-\\u20f0",vz="\\ufe0e\\ufe0f",vRe="["+l4+"]",t4="["+gz+_z+"]",r4="\\ud83c[\\udffb-\\udfff]",bRe="(?:"+t4+"|"+r4+")",bz="[^"+l4+"]",xz="(?:\\ud83c[\\udde6-\\uddff]){2}",wz="[\\ud800-\\udbff][\\udc00-\\udfff]",kz="\\u200d",Mz=bRe+"?",Az="["+vz+"]?",xRe="(?:"+kz+"(?:"+[bz,xz,wz].join("|")+")"+Az+Mz+")*",wRe=Az+Mz+xRe,kRe="(?:"+[bz+t4+"?",t4,xz,wz,vRe].join("|")+")",MRe=RegExp(r4+"(?="+r4+")|"+kRe+wRe,"g"),ARe=RegExp("["+kz+l4+gz+_z+vz+"]"),ERe=parseInt,SRe=typeof window=="object"&&window&&window.Object===Object&&window,TRe=typeof self=="object"&&self&&self.Object===Object&&self,Jf=SRe||TRe||Function("return this")();function RRe(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function ORe(e){return e.split("")}function IRe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function NRe(e,t){return RRe(t,function(r){return e[r]})}function BRe(e,t){return e?.[t]}function CRe(e){return ARe.test(e)}function URe(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function DRe(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function PRe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function FRe(e,t){return function(r){return e(t(r))}}function qRe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}function LRe(e){return CRe(e)?GRe(e):ORe(e)}function GRe(e){return e.match(MRe)||[]}var KRe=Function.prototype,e_=Object.prototype,Z6=Jf["__core-js_shared__"],pz=(function(){var e=/[^.]+$/.exec(Z6&&Z6.keys&&Z6.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Ez=KRe.toString,t_=e_.hasOwnProperty,v0=e_.toString,HRe=RegExp("^"+Ez.call(t_).replace(hRe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mz=Jf.Symbol,J6=mz?mz.iterator:void 0,zRe=e_.propertyIsEnumerable,jRe=Math.floor,VRe=FRe(Object.keys,Object),WRe=Math.random,n4=gp(Jf,"DataView"),i4=gp(Jf,"Map"),s4=gp(Jf,"Promise"),a4=gp(Jf,"Set"),o4=gp(Jf,"WeakMap"),XRe=Qf(n4),$Re=Qf(i4),YRe=Qf(s4),ZRe=Qf(a4),JRe=Qf(o4);function QRe(e,t){var r=Tz(e)||hOe(e)?IRe(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||t_.call(e,o))&&!(i&&(o=="length"||Sz(o,n)))&&r.push(o);return r}function eOe(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function tOe(e){return v0.call(e)}function rOe(e){if(!yp(e)||oOe(e))return!1;var t=Rz(e)||URe(e)?HRe:yRe;return t.test(Qf(e))}function nOe(e){if(!lOe(e))return VRe(e);var t=[];for(var r in Object(e))t_.call(e,r)&&r!="constructor"&&t.push(r);return t}function iOe(e,t){return e+jRe(WRe()*(t-e+1))}function sOe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function gp(e,t){var r=BRe(e,t);return rOe(r)?r:void 0}var Zf=tOe;(n4&&Zf(new n4(new ArrayBuffer(1)))!=dz||i4&&Zf(new i4)!=Q6||s4&&Zf(s4.resolve())!=cz||a4&&Zf(new a4)!=e4||o4&&Zf(new o4)!=hz)&&(Zf=function(e){var t=v0.call(e),r=t==fRe?e.constructor:void 0,n=r?Qf(r):void 0;if(n)switch(n){case XRe:return dz;case $Re:return Q6;case YRe:return cz;case ZRe:return e4;case JRe:return hz}return t});function Sz(e,t){return t=t??yz,!!t&&(typeof e=="number"||_Re.test(e))&&e>-1&&e%1==0&&e<t}function aOe(e,t,r){if(!yp(r))return!1;var n=typeof t;return(n=="number"?r_(r)&&Sz(t,r.length):n=="string"&&t in r)?cOe(r[t],e):!1}function oOe(e){return!!pz&&pz in e}function lOe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||e_;return e===r}function Qf(e){if(e!=null){try{return Ez.call(e)}catch{}try{return e+""}catch{}}return""}function fOe(e,t,r){var n=-1,i=gOe(e),o=i.length,h=o-1;for((r?aOe(e,t,r):t===void 0)?t=1:t=eOe(vOe(t),0,o);++n<t;){var g=iOe(n,h),v=i[g];i[g]=i[n],i[n]=v}return i.length=t,i}function uOe(e){return fOe(e,sRe)}function cOe(e,t){return e===t||e!==e&&t!==t}function hOe(e){return dOe(e)&&t_.call(e,"callee")&&(!zRe.call(e,"callee")||v0.call(e)==aRe)}var Tz=Array.isArray;function r_(e){return e!=null&&pOe(e.length)&&!Rz(e)}function dOe(e){return f4(e)&&r_(e)}function Rz(e){var t=yp(e)?v0.call(e):"";return t==oRe||t==lRe}function pOe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yz}function yp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function f4(e){return!!e&&typeof e=="object"}function mOe(e){return typeof e=="string"||!Tz(e)&&f4(e)&&v0.call(e)==uRe}function yOe(e){return typeof e=="symbol"||f4(e)&&v0.call(e)==cRe}function gOe(e){if(!e)return[];if(r_(e))return mOe(e)?LRe(e):sOe(e);if(J6&&e[J6])return DRe(e[J6]());var t=Zf(e),r=t==Q6?PRe:t==e4?qRe:wOe;return r(e)}function _Oe(e){if(!e)return e===0?e:0;if(e=bOe(e),e===fz||e===-fz){var t=e<0?-1:1;return t*iRe}return e===e?e:0}function vOe(e){var t=_Oe(e),r=t%1;return t===t?r?t-r:t:0}function bOe(e){if(typeof e=="number")return e;if(yOe(e))return uz;if(yp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=yp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(dRe,"");var r=mRe.test(e);return r||gRe.test(e)?ERe(e.slice(2),r?2:8):pRe.test(e)?uz:+e}function xOe(e){return r_(e)?QRe(e):nOe(e)}function wOe(e){return e?NRe(e,xOe(e)):[]}Oz.exports=uOe});function b0(e){let t=e==null?0:e.length;return t?e[Math.floor(Math.random()*t)]:void 0}var u4=K(()=>{b()});function Nz(e,t,r){if(!e)throw new Error("ERR wrong number of arguments for 'hrandfield' command");if(!this.data.has(e))return null;if(g0.call(this,e)!=="hash")throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");let n=this.data.get(e),i=Object.keys(n);if(!t)return b0(i);let o=[];if(t>0&&(o=(0,Iz.default)(i).slice(0,t)),t<0){let h=t*-1;for(let g=0;g<h;g++)o.push(b0(i))}return r&&r.toUpperCase()==="WITHVALUES"?o.reduce((h,g)=>h.concat(g,n[g]),[]):o}function kOe(...e){let t=Nz.apply(this,e);return z(t)}var Iz,Bz=K(()=>{b();Iz=mt(n_());Ne();u4();xr()});function Cz(e){let t=e.replace(/([+{($^|.\\])/g,"\\$1");t=t.replace(/(^|[^\\])([*?])/g,"$1.$2"),t=`^${t}$`;let r=new RegExp(t);return r.test.bind(r)}function MOe(e){if(e.length>4)throw new Error("Too many arguments");if(e.length%2!==0)throw new Error("Args should be provided by pair (name & value)");let t=10,r=null,n=`${e[0]}${e[2]}`.toUpperCase();if(n==="UNDEFINEDUNDEFINED")return[t,r];if(n==="MATCHUNDEFINED")r=Cz(e[1]);else if(n==="COUNTUNDEFINED")t=parseInt(e[1],10);else if(n==="MATCHCOUNT")r=Cz(e[1]),t=parseInt(e[3],10);else throw n.startsWith("MATCH")||n.startsWith("COUNT")?new Error("BAD Syntax"):new Error(`Uknown option ${e[0]}`);if(Number.isNaN(t))throw new Error("count must be integer");return[t,r]}function yl(e,t,r,...n){let i=parseInt(r,10);if(Number.isNaN(i))throw new Error("Cursor must be integer");let[o,h]=MOe(n),g=i+o,v=e.slice(i,g);if(h){let w=0;for(;w<v.length;)h(v[w])?w+=t:v.splice(w,t)}return g>=e.length&&(g=0),[String(g),v]}var _p=K(()=>{b()});function Uz(e,t,...r){if(!this.data.has(e))return["0",[]];let n=Object.entries(this.data.get(e)),[i,o]=yl(n,1,t,...r);return[i,o.flat()]}function AOe(...e){let t=Uz.apply(this,e);return z(t)}var Dz=K(()=>{b();Ne();_p()});function Pz(e,...t){this.data.has(e)||this.data.set(e,{});let r=this.data.get(e),n=0;for(let i=0;i<t.length;i+=2){let o=t[i],h=t[i+1];({}).hasOwnProperty.call(r,o)||n++,r[o]=h}return this.data.set(e,r),n}var EOe,Fz=K(()=>{b();EOe=Pz});function qz(e,t,r){if(this.data.has(e)||this.data.set(e,{}),!{}.hasOwnProperty.call(this.data.get(e),t)){let n=this.data.get(e);return n[t]=r,this.data.set(e,n),1}return 0}var SOe,Lz=K(()=>{b();SOe=qz});function Gz(e,t){if(!e||!t)throw new Error("ERR wrong number of arguments for 'hstrlen' command");return this.data.has(e)&&{}.hasOwnProperty.call(this.data.get(e),t)?this.data.get(e)[t].length:0}var TOe,Kz=K(()=>{b();TOe=Gz});function Hz(e){return this.data.has(e)?Object.values(this.data.get(e)):[]}function ROe(e){let t=Hz.call(this,e);return z(t)}var zz=K(()=>{b();Ne()});function jz(e){this.data.has(e)||this.data.set(e,"0");let r=Number(this.data.get(e))+1;return this.data.set(e,r.toString()),r}var OOe,Vz=K(()=>{b();OOe=jz});function Wz(e,t=0){this.data.has(e)||this.data.set(e,"0");let n=Number(this.data.get(e))+parseInt(t,10);return this.data.set(e,n.toString()),n}var IOe,Xz=K(()=>{b();IOe=Wz});function $z(e,t){this.data.has(e)||this.data.set(e,"0");let r=parseFloat(this.data.get(e));return this.data.set(e,(r+parseFloat(t)).toString()),this.data.get(e)}var NOe,Yz=K(()=>{b();NOe=$z});var c4=I((tQe,BOe)=>{BOe.exports=`# Server\r
196
+ redis_version:8.2.1\r
197
+ redis_git_sha1:00000000\r
198
+ redis_git_dirty:1\r
199
+ redis_build_id:b793b67ab490064b\r
200
+ redis_mode:standalone\r
201
+ os:Linux 6.11.0-1018-azure x86_64\r
202
+ arch_bits:64\r
203
+ monotonic_clock:POSIX clock_gettime\r
204
+ multiplexing_api:epoll\r
205
+ atomicvar_api:c11-builtin\r
206
+ gcc_version:12.2.0\r
207
+ process_id:1\r
208
+ process_supervised:no\r
209
+ run_id:556514a650f1caea3bd6d85cfe9e7ebb8420d8f8\r
210
+ tcp_port:6379\r
211
+ server_time_usec:1758901048395474\r
212
+ uptime_in_seconds:78\r
213
+ uptime_in_days:0\r
214
+ hz:10\r
215
+ configured_hz:10\r
216
+ lru_clock:14070584\r
217
+ executable:/tmp/redis-server\r
218
+ config_file:\r
219
+ io_threads_active:0\r
220
+ listener0:name=tcp,bind=*,bind=-::*,port=6379\r
221
+ \r
222
+ # Clients\r
223
+ connected_clients:1\r
224
+ cluster_connections:0\r
225
+ maxclients:10000\r
226
+ client_recent_max_input_buffer:40\r
227
+ client_recent_max_output_buffer:0\r
228
+ blocked_clients:0\r
229
+ tracking_clients:0\r
230
+ pubsub_clients:0\r
231
+ watching_clients:0\r
232
+ clients_in_timeout_table:0\r
233
+ total_watched_keys:0\r
234
+ total_blocking_keys:0\r
235
+ total_blocking_keys_on_nokey:0\r
236
+ \r
237
+ # Memory\r
238
+ used_memory:4303544\r
239
+ used_memory_human:4.10M\r
240
+ used_memory_rss:27099136\r
241
+ used_memory_rss_human:25.84M\r
242
+ used_memory_peak:4372592\r
243
+ used_memory_peak_human:4.17M\r
244
+ used_memory_peak_time:1758901048\r
245
+ used_memory_peak_perc:98.42%\r
246
+ used_memory_overhead:1041952\r
247
+ used_memory_startup:964480\r
248
+ used_memory_dataset:3261592\r
249
+ used_memory_dataset_perc:97.68%\r
250
+ allocator_allocated:5010048\r
251
+ allocator_active:5423104\r
252
+ allocator_resident:8687616\r
253
+ allocator_muzzy:0\r
254
+ total_system_memory:16772579328\r
255
+ total_system_memory_human:15.62G\r
256
+ used_memory_lua:41984\r
257
+ used_memory_vm_eval:41984\r
258
+ used_memory_lua_human:41.00K\r
259
+ used_memory_scripts_eval:2528\r
260
+ number_of_cached_scripts:11\r
261
+ number_of_functions:0\r
262
+ number_of_libraries:0\r
263
+ used_memory_vm_functions:32768\r
264
+ used_memory_vm_total:74752\r
265
+ used_memory_vm_total_human:73.00K\r
266
+ used_memory_functions:192\r
267
+ used_memory_scripts:2720\r
268
+ used_memory_scripts_human:2.66K\r
269
+ maxmemory:0\r
270
+ maxmemory_human:0B\r
271
+ maxmemory_policy:noeviction\r
272
+ allocator_frag_ratio:1.07\r
273
+ allocator_frag_bytes:320864\r
274
+ allocator_rss_ratio:1.60\r
275
+ allocator_rss_bytes:3264512\r
276
+ rss_overhead_ratio:3.12\r
277
+ rss_overhead_bytes:18411520\r
278
+ mem_fragmentation_ratio:6.33\r
279
+ mem_fragmentation_bytes:22815192\r
280
+ mem_not_counted_for_evict:0\r
281
+ mem_replication_backlog:0\r
282
+ mem_total_replication_buffers:0\r
283
+ mem_replica_full_sync_buffer:0\r
284
+ mem_clients_slaves:0\r
285
+ mem_clients_normal:0\r
286
+ mem_cluster_links:0\r
287
+ mem_aof_buffer:0\r
288
+ mem_allocator:jemalloc-5.3.0\r
289
+ mem_overhead_db_hashtable_rehashing:0\r
290
+ active_defrag_running:0\r
291
+ lazyfree_pending_objects:0\r
292
+ lazyfreed_objects:473\r
293
+ \r
294
+ # Persistence\r
295
+ loading:0\r
296
+ async_loading:0\r
297
+ current_cow_peak:0\r
298
+ current_cow_size:0\r
299
+ current_cow_size_age:0\r
300
+ current_fork_perc:0.00\r
301
+ current_save_keys_processed:0\r
302
+ current_save_keys_total:0\r
303
+ rdb_changes_since_last_save:0\r
304
+ rdb_bgsave_in_progress:0\r
305
+ rdb_last_save_time:1758901048\r
306
+ rdb_last_bgsave_status:ok\r
307
+ rdb_last_bgsave_time_sec:0\r
308
+ rdb_current_bgsave_time_sec:-1\r
309
+ rdb_saves:3\r
310
+ rdb_last_cow_size:385024\r
311
+ rdb_last_load_keys_expired:0\r
312
+ rdb_last_load_keys_loaded:0\r
313
+ aof_enabled:0\r
314
+ aof_rewrite_in_progress:0\r
315
+ aof_rewrite_scheduled:0\r
316
+ aof_last_rewrite_time_sec:0\r
317
+ aof_current_rewrite_time_sec:-1\r
318
+ aof_last_bgrewrite_status:ok\r
319
+ aof_rewrites:1\r
320
+ aof_rewrites_consecutive_failures:0\r
321
+ aof_last_write_status:ok\r
322
+ aof_last_cow_size:487424\r
323
+ module_fork_in_progress:0\r
324
+ module_fork_last_cow_size:0\r
325
+ \r
326
+ # Threads\r
327
+ io_thread_0:clients=1,reads=5705,writes=4392\r
328
+ \r
329
+ # Stats\r
330
+ total_connections_received:1036\r
331
+ total_commands_processed:5137\r
332
+ instantaneous_ops_per_sec:269\r
333
+ total_net_input_bytes:196570\r
334
+ total_net_output_bytes:6632358\r
335
+ total_net_repl_input_bytes:0\r
336
+ total_net_repl_output_bytes:0\r
337
+ instantaneous_input_kbps:9.38\r
338
+ instantaneous_output_kbps:393.60\r
339
+ instantaneous_input_repl_kbps:0.00\r
340
+ instantaneous_output_repl_kbps:0.00\r
341
+ rejected_connections:0\r
342
+ sync_full:0\r
343
+ sync_partial_ok:0\r
344
+ sync_partial_err:0\r
345
+ expired_subkeys:0\r
346
+ expired_keys:17\r
347
+ expired_stale_perc:3.10\r
348
+ expired_time_cap_reached_count:0\r
349
+ expire_cycle_cpu_milliseconds:0\r
350
+ evicted_keys:0\r
351
+ evicted_clients:0\r
352
+ evicted_scripts:0\r
353
+ total_eviction_exceeded_time:0\r
354
+ current_eviction_exceeded_time:0\r
355
+ keyspace_hits:436\r
356
+ keyspace_misses:162\r
357
+ pubsub_channels:0\r
358
+ pubsub_patterns:0\r
359
+ pubsubshard_channels:0\r
360
+ latest_fork_usec:429\r
361
+ total_forks:2\r
362
+ migrate_cached_sockets:0\r
363
+ slave_expires_tracked_keys:0\r
364
+ active_defrag_hits:0\r
365
+ active_defrag_misses:0\r
366
+ active_defrag_key_hits:0\r
367
+ active_defrag_key_misses:0\r
368
+ total_active_defrag_time:0\r
369
+ current_active_defrag_time:0\r
370
+ tracking_total_keys:0\r
371
+ tracking_total_items:0\r
372
+ tracking_total_prefixes:0\r
373
+ unexpected_error_replies:0\r
374
+ total_error_replies:110\r
375
+ dump_payload_sanitizations:0\r
376
+ total_reads_processed:5705\r
377
+ total_writes_processed:4392\r
378
+ io_threaded_reads_processed:0\r
379
+ io_threaded_writes_processed:0\r
380
+ io_threaded_total_prefetch_batches:0\r
381
+ io_threaded_total_prefetch_entries:0\r
382
+ client_query_buffer_limit_disconnections:0\r
383
+ client_output_buffer_limit_disconnections:0\r
384
+ reply_buffer_shrinks:16\r
385
+ reply_buffer_expands:0\r
386
+ eventloop_cycles:7395\r
387
+ eventloop_duration_sum:964245\r
388
+ eventloop_duration_cmd_sum:651704\r
389
+ instantaneous_eventloop_cycles_per_sec:408\r
390
+ instantaneous_eventloop_duration_usec:218\r
391
+ acl_access_denied_auth:0\r
392
+ acl_access_denied_cmd:0\r
393
+ acl_access_denied_key:0\r
394
+ acl_access_denied_channel:0\r
395
+ \r
396
+ # Replication\r
397
+ role:master\r
398
+ connected_slaves:0\r
399
+ master_failover_state:no-failover\r
400
+ master_replid:bd22f6d1bed9fdce04031c891ad5e29e55ceb3db\r
401
+ master_replid2:0000000000000000000000000000000000000000\r
402
+ master_repl_offset:0\r
403
+ second_repl_offset:-1\r
404
+ repl_backlog_active:0\r
405
+ repl_backlog_size:1048576\r
406
+ repl_backlog_first_byte_offset:0\r
407
+ repl_backlog_histlen:0\r
408
+ \r
409
+ # CPU\r
410
+ used_cpu_sys:0.585126\r
411
+ used_cpu_user:0.451766\r
412
+ used_cpu_sys_children:0.013692\r
413
+ used_cpu_user_children:0.008200\r
414
+ used_cpu_sys_main_thread:0.542288\r
415
+ used_cpu_user_main_thread:0.392513\r
416
+ \r
417
+ # Modules\r
418
+ module:name=search,ver=80201,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]\r
419
+ module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors|handle-repl-async-load]\r
420
+ module:name=timeseries,ver=80200,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors]\r
421
+ module:name=bf,ver=80200,api=1,filters=0,usedby=[],using=[],options=[]\r
422
+ module:name=ReJSON,ver=80200,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]\r
423
+ \r
424
+ # Errorstats\r
425
+ errorstat_ERR:count=89\r
426
+ errorstat_NOSCRIPT:count=2\r
427
+ errorstat_WRONGTYPE:count=19\r
428
+ \r
429
+ # Cluster\r
430
+ cluster_enabled:0\r
431
+ \r
432
+ # Keyspace\r
433
+ \r
434
+ # Keysizes\r
435
+ `});async function Zz(){let e=await Promise.resolve().then(()=>mt(c4()));return e.default||e}async function COe(){let e=await Zz.call(this);return z(e)}var Jz=K(()=>{b();Ne()});function Qz(e,t,r,n,i,o,h){for(;r&&o;){switch(e[t]){case"*":for(;r&&e[t+1]==="*";)t++,r--;if(r===1)return!0;for(;o;){if(Qz(e,t+1,r-1,n,i,o,h))return!0;i++,o--}return!1;case"?":i++,o--;break;case"[":{let g=!1;t++,r--;let v=e[t]==="^";for(v&&(t++,r--);;){if(e[t]==="\\"&&r>=2)t++,r--,e[t]===n[i]&&(g=!0);else{if(e[t]==="]")break;if(r===0){t--,r++;break}else if(r>=3&&e[t+1]==="-"){let w=e[t],k=e[t+2],A=n[i];if(w>k){let R=w;w=k,k=R}h&&(w=w.toLowerCase(),k=k.toLowerCase(),A=A.toLowerCase()),t+=2,r-=2,A>=w&&A<=k&&(g=!0)}else h?e[t].toLowerCase()===n[i].toLowerCase()&&(g=!0):e[t]===n[i]&&(g=!0)}t++,r--}if(v&&(g=!g),!g)return!1;i++,o--;break}case"\\":r>=2&&(t++,r--);default:if(h){if(e[t].toLowerCase()!==n[i].toLowerCase())return!1}else if(e[t]!==n[i])return!1;i++,o--;break}if(t++,r--,o===0){for(;e[t]==="*";)t++,r--;break}}return r===0&&o===0}function UOe(e,t,r){return Qz(e,0,e.length,t,0,t.length,r)}function eu(e,t){return UOe(e,t,!1)}var i_=K(()=>{b()});function ej(e){return this.data.keys().filter(t=>eu(e,t))}function DOe(e){let t=ej.call(this,e);return z(t)}var tj=K(()=>{b();Ne();i_()});function rj(){return Math.floor(new Date().getTime()/1e3)}var POe,nj=K(()=>{b();POe=rj});function ij(e,t){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let r=parseInt(t,10),n=this.data.get(e)||[],i=n[r<0?n.length+r:r];return i!==void 0?i:null}function FOe(...e){let t=ij.apply(this,e);return z(t)}var sj=K(()=>{b();Ne()});function aj(e,t,r,n){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let i=this.data.get(e)||[],o=i.indexOf(r);if(o<0)return-1;let h=o;switch(t){case"BEFORE":h=o;break;case"AFTER":h=o+1;break;default:throw new Error("The position of the new element must be BEFORE the pivot or AFTER the pivot")}i.splice(h,0,n);let{length:g}=i;return this.data.set(e,i),g}var qOe,oj=K(()=>{b();qOe=aj});function lj(e){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);return(this.data.get(e)||[]).length}var LOe,fj=K(()=>{b();LOe=lj});function uj(e,t,r,n){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");if(this.data.has(t)&&!(this.data.get(t)instanceof Array))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");if(r!=="LEFT"&&r!=="RIGHT")throw new Error("Position1 argument must be 'LEFT' or 'RIGHT'");if(n!=="LEFT"&&n!=="RIGHT")throw new Error("Position2 argument must be 'LEFT' or 'RIGHT'");let i=this.data.get(e)||[],o=i;if(e!==t&&(o=this.data.get(t)||[]),i.length===0)return null;let h;return r==="LEFT"?h=i.shift():h=i.pop(),n==="LEFT"?o.unshift(h):o.push(h),this.data.set(e,i),t!==e&&this.data.set(t,o),h}function GOe(...e){let t=uj.apply(this,e);return z(t)}var cj=K(()=>{b();Ne()});function hj(...e){if(e.length<3)throw new Error("ERR wrong number of arguments for 'lmpop' command");let t=parseInt(e[0],10);if(Number.isNaN(t)||t<1)throw new Error("ERR numkeys should be greater than 0");if(e.length<t+2)throw new Error("ERR wrong number of arguments for 'lmpop' command");let r=e.slice(1,t+1),n=e[t+1]?.toLowerCase();if(n!=="left"&&n!=="right")throw new Error("ERR syntax error");let i=1,o=e.slice(t+2);if(o.length>0)if(o[0]?.toLowerCase()==="count"){if(o.length<2)throw new Error("ERR syntax error");let h=parseInt(o[1],10);if(Number.isNaN(h)||h<1)throw new Error("ERR count should be greater than 0");if(i=h,o.length>2)throw new Error("ERR syntax error")}else throw new Error("ERR syntax error");for(let h of r){if(this.data.has(h)&&!(this.data.get(h)instanceof Array))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");let g=this.data.get(h)||[];if(g.length>0){let v=Math.min(i,g.length),w=[];for(let k=0;k<v;k++)n==="left"?w.push(g.shift()):w.push(g.pop());return g.length>0?this.data.set(h,g):this.data.delete(h),[h,w]}}return null}function KOe(...e){let t=hj.apply(this,e);return z(t)}var dj=K(()=>{b();Ne()});var vp=I((EQe,pj)=>{"use strict";b();var HOe="2.0.0",zOe=Number.MAX_SAFE_INTEGER||9007199254740991,jOe=16,VOe=250,WOe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];pj.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:jOe,MAX_SAFE_BUILD_LENGTH:VOe,MAX_SAFE_INTEGER:zOe,RELEASE_TYPES:WOe,SEMVER_SPEC_VERSION:HOe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var bp=I((TQe,mj)=>{"use strict";b();var XOe=()=>{};mj.exports=XOe});var x0=I((ra,yj)=>{"use strict";b();var{MAX_SAFE_COMPONENT_LENGTH:h4,MAX_SAFE_BUILD_LENGTH:$Oe,MAX_LENGTH:YOe}=vp(),ZOe=bp();ra=yj.exports={};var JOe=ra.re=[],QOe=ra.safeRe=[],Fe=ra.src=[],e9e=ra.safeSrc=[],qe=ra.t={},t9e=0,d4="[a-zA-Z0-9-]",r9e=[["\\s",1],["\\d",YOe],[d4,$Oe]],n9e=e=>{for(let[t,r]of r9e)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},nt=(e,t,r)=>{let n=n9e(t),i=t9e++;ZOe(e,i,t),qe[e]=i,Fe[i]=t,e9e[i]=n,JOe[i]=new RegExp(t,r?"g":void 0),QOe[i]=new RegExp(n,r?"g":void 0)};nt("NUMERICIDENTIFIER","0|[1-9]\\d*");nt("NUMERICIDENTIFIERLOOSE","\\d+");nt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d4}*`);nt("MAINVERSION",`(${Fe[qe.NUMERICIDENTIFIER]})\\.(${Fe[qe.NUMERICIDENTIFIER]})\\.(${Fe[qe.NUMERICIDENTIFIER]})`);nt("MAINVERSIONLOOSE",`(${Fe[qe.NUMERICIDENTIFIERLOOSE]})\\.(${Fe[qe.NUMERICIDENTIFIERLOOSE]})\\.(${Fe[qe.NUMERICIDENTIFIERLOOSE]})`);nt("PRERELEASEIDENTIFIER",`(?:${Fe[qe.NONNUMERICIDENTIFIER]}|${Fe[qe.NUMERICIDENTIFIER]})`);nt("PRERELEASEIDENTIFIERLOOSE",`(?:${Fe[qe.NONNUMERICIDENTIFIER]}|${Fe[qe.NUMERICIDENTIFIERLOOSE]})`);nt("PRERELEASE",`(?:-(${Fe[qe.PRERELEASEIDENTIFIER]}(?:\\.${Fe[qe.PRERELEASEIDENTIFIER]})*))`);nt("PRERELEASELOOSE",`(?:-?(${Fe[qe.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Fe[qe.PRERELEASEIDENTIFIERLOOSE]})*))`);nt("BUILDIDENTIFIER",`${d4}+`);nt("BUILD",`(?:\\+(${Fe[qe.BUILDIDENTIFIER]}(?:\\.${Fe[qe.BUILDIDENTIFIER]})*))`);nt("FULLPLAIN",`v?${Fe[qe.MAINVERSION]}${Fe[qe.PRERELEASE]}?${Fe[qe.BUILD]}?`);nt("FULL",`^${Fe[qe.FULLPLAIN]}$`);nt("LOOSEPLAIN",`[v=\\s]*${Fe[qe.MAINVERSIONLOOSE]}${Fe[qe.PRERELEASELOOSE]}?${Fe[qe.BUILD]}?`);nt("LOOSE",`^${Fe[qe.LOOSEPLAIN]}$`);nt("GTLT","((?:<|>)?=?)");nt("XRANGEIDENTIFIERLOOSE",`${Fe[qe.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);nt("XRANGEIDENTIFIER",`${Fe[qe.NUMERICIDENTIFIER]}|x|X|\\*`);nt("XRANGEPLAIN",`[v=\\s]*(${Fe[qe.XRANGEIDENTIFIER]})(?:\\.(${Fe[qe.XRANGEIDENTIFIER]})(?:\\.(${Fe[qe.XRANGEIDENTIFIER]})(?:${Fe[qe.PRERELEASE]})?${Fe[qe.BUILD]}?)?)?`);nt("XRANGEPLAINLOOSE",`[v=\\s]*(${Fe[qe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Fe[qe.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Fe[qe.XRANGEIDENTIFIERLOOSE]})(?:${Fe[qe.PRERELEASELOOSE]})?${Fe[qe.BUILD]}?)?)?`);nt("XRANGE",`^${Fe[qe.GTLT]}\\s*${Fe[qe.XRANGEPLAIN]}$`);nt("XRANGELOOSE",`^${Fe[qe.GTLT]}\\s*${Fe[qe.XRANGEPLAINLOOSE]}$`);nt("COERCEPLAIN",`(^|[^\\d])(\\d{1,${h4}})(?:\\.(\\d{1,${h4}}))?(?:\\.(\\d{1,${h4}}))?`);nt("COERCE",`${Fe[qe.COERCEPLAIN]}(?:$|[^\\d])`);nt("COERCEFULL",Fe[qe.COERCEPLAIN]+`(?:${Fe[qe.PRERELEASE]})?(?:${Fe[qe.BUILD]})?(?:$|[^\\d])`);nt("COERCERTL",Fe[qe.COERCE],!0);nt("COERCERTLFULL",Fe[qe.COERCEFULL],!0);nt("LONETILDE","(?:~>?)");nt("TILDETRIM",`(\\s*)${Fe[qe.LONETILDE]}\\s+`,!0);ra.tildeTrimReplace="$1~";nt("TILDE",`^${Fe[qe.LONETILDE]}${Fe[qe.XRANGEPLAIN]}$`);nt("TILDELOOSE",`^${Fe[qe.LONETILDE]}${Fe[qe.XRANGEPLAINLOOSE]}$`);nt("LONECARET","(?:\\^)");nt("CARETTRIM",`(\\s*)${Fe[qe.LONECARET]}\\s+`,!0);ra.caretTrimReplace="$1^";nt("CARET",`^${Fe[qe.LONECARET]}${Fe[qe.XRANGEPLAIN]}$`);nt("CARETLOOSE",`^${Fe[qe.LONECARET]}${Fe[qe.XRANGEPLAINLOOSE]}$`);nt("COMPARATORLOOSE",`^${Fe[qe.GTLT]}\\s*(${Fe[qe.LOOSEPLAIN]})$|^$`);nt("COMPARATOR",`^${Fe[qe.GTLT]}\\s*(${Fe[qe.FULLPLAIN]})$|^$`);nt("COMPARATORTRIM",`(\\s*)${Fe[qe.GTLT]}\\s*(${Fe[qe.LOOSEPLAIN]}|${Fe[qe.XRANGEPLAIN]})`,!0);ra.comparatorTrimReplace="$1$2$3";nt("HYPHENRANGE",`^\\s*(${Fe[qe.XRANGEPLAIN]})\\s+-\\s+(${Fe[qe.XRANGEPLAIN]})\\s*$`);nt("HYPHENRANGELOOSE",`^\\s*(${Fe[qe.XRANGEPLAINLOOSE]})\\s+-\\s+(${Fe[qe.XRANGEPLAINLOOSE]})\\s*$`);nt("STAR","(<|>)?=?\\s*\\*");nt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");nt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var s_=I((IQe,gj)=>{"use strict";b();var i9e=Object.freeze({loose:!0}),s9e=Object.freeze({}),a9e=e=>e?typeof e!="object"?i9e:e:s9e;gj.exports=a9e});var p4=I((BQe,bj)=>{"use strict";b();var _j=/^[0-9]+$/,vj=(e,t)=>{let r=_j.test(e),n=_j.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},o9e=(e,t)=>vj(t,e);bj.exports={compareIdentifiers:vj,rcompareIdentifiers:o9e}});var Nn=I((UQe,wj)=>{"use strict";b();var a_=bp(),{MAX_LENGTH:xj,MAX_SAFE_INTEGER:o_}=vp(),{safeRe:l_,t:f_}=x0(),l9e=s_(),{compareIdentifiers:w0}=p4(),m4=class e{constructor(t,r){if(r=l9e(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>xj)throw new TypeError(`version is longer than ${xj} characters`);a_("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?l_[f_.LOOSE]:l_[f_.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o_||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o_||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o_||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let o=+i;if(o>=0&&o<o_)return o}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(a_("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),w0(this.major,t.major)||w0(this.minor,t.minor)||w0(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(a_("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return w0(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(a_("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return w0(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?l_[f_.PRERELEASELOOSE]:l_[f_.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let o=[r,i];n===!1&&(o=[r]),w0(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};wj.exports=m4});var tu=I((PQe,Mj)=>{"use strict";b();var kj=Nn(),f9e=(e,t,r=!1)=>{if(e instanceof kj)return e;try{return new kj(e,t)}catch(n){if(!r)return null;throw n}};Mj.exports=f9e});var Ej=I((qQe,Aj)=>{"use strict";b();var u9e=tu(),c9e=(e,t)=>{let r=u9e(e,t);return r?r.version:null};Aj.exports=c9e});var Tj=I((GQe,Sj)=>{"use strict";b();var h9e=tu(),d9e=(e,t)=>{let r=h9e(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};Sj.exports=d9e});var Ij=I((HQe,Oj)=>{"use strict";b();var Rj=Nn(),p9e=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Rj(e instanceof Rj?e.version:e,r).inc(t,n,i).version}catch{return null}};Oj.exports=p9e});var Cj=I((jQe,Bj)=>{"use strict";b();var Nj=tu(),m9e=(e,t)=>{let r=Nj(e,null,!0),n=Nj(t,null,!0),i=r.compare(n);if(i===0)return null;let o=i>0,h=o?r:n,g=o?n:r,v=!!h.prerelease.length;if(!!g.prerelease.length&&!v){if(!g.patch&&!g.minor)return"major";if(g.compareMain(h)===0)return g.minor&&!g.patch?"minor":"patch"}let k=v?"pre":"";return r.major!==n.major?k+"major":r.minor!==n.minor?k+"minor":r.patch!==n.patch?k+"patch":"prerelease"};Bj.exports=m9e});var Dj=I((WQe,Uj)=>{"use strict";b();var y9e=Nn(),g9e=(e,t)=>new y9e(e,t).major;Uj.exports=g9e});var Fj=I(($Qe,Pj)=>{"use strict";b();var _9e=Nn(),v9e=(e,t)=>new _9e(e,t).minor;Pj.exports=v9e});var Lj=I((ZQe,qj)=>{"use strict";b();var b9e=Nn(),x9e=(e,t)=>new b9e(e,t).patch;qj.exports=x9e});var Kj=I((QQe,Gj)=>{"use strict";b();var w9e=tu(),k9e=(e,t)=>{let r=w9e(e,t);return r&&r.prerelease.length?r.prerelease:null};Gj.exports=k9e});var Gi=I((tet,zj)=>{"use strict";b();var Hj=Nn(),M9e=(e,t,r)=>new Hj(e,r).compare(new Hj(t,r));zj.exports=M9e});var Vj=I((net,jj)=>{"use strict";b();var A9e=Gi(),E9e=(e,t,r)=>A9e(t,e,r);jj.exports=E9e});var Xj=I((set,Wj)=>{"use strict";b();var S9e=Gi(),T9e=(e,t)=>S9e(e,t,!0);Wj.exports=T9e});var u_=I((oet,Yj)=>{"use strict";b();var $j=Nn(),R9e=(e,t,r)=>{let n=new $j(e,r),i=new $j(t,r);return n.compare(i)||n.compareBuild(i)};Yj.exports=R9e});var Jj=I((uet,Zj)=>{"use strict";b();var O9e=u_(),I9e=(e,t)=>e.sort((r,n)=>O9e(r,n,t));Zj.exports=I9e});var eV=I((het,Qj)=>{"use strict";b();var N9e=u_(),B9e=(e,t)=>e.sort((r,n)=>N9e(n,r,t));Qj.exports=B9e});var xp=I((pet,tV)=>{"use strict";b();var C9e=Gi(),U9e=(e,t,r)=>C9e(e,t,r)>0;tV.exports=U9e});var c_=I((yet,rV)=>{"use strict";b();var D9e=Gi(),P9e=(e,t,r)=>D9e(e,t,r)<0;rV.exports=P9e});var y4=I((_et,nV)=>{"use strict";b();var F9e=Gi(),q9e=(e,t,r)=>F9e(e,t,r)===0;nV.exports=q9e});var g4=I((bet,iV)=>{"use strict";b();var L9e=Gi(),G9e=(e,t,r)=>L9e(e,t,r)!==0;iV.exports=G9e});var h_=I((wet,sV)=>{"use strict";b();var K9e=Gi(),H9e=(e,t,r)=>K9e(e,t,r)>=0;sV.exports=H9e});var d_=I((Met,aV)=>{"use strict";b();var z9e=Gi(),j9e=(e,t,r)=>z9e(e,t,r)<=0;aV.exports=j9e});var _4=I((Eet,oV)=>{"use strict";b();var V9e=y4(),W9e=g4(),X9e=xp(),$9e=h_(),Y9e=c_(),Z9e=d_(),J9e=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return V9e(e,r,n);case"!=":return W9e(e,r,n);case">":return X9e(e,r,n);case">=":return $9e(e,r,n);case"<":return Y9e(e,r,n);case"<=":return Z9e(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};oV.exports=J9e});var fV=I((Ret,lV)=>{"use strict";b();var Q9e=Nn(),eIe=tu(),{safeRe:p_,t:m_}=x0(),tIe=(e,t)=>{if(e instanceof Q9e)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?p_[m_.COERCEFULL]:p_[m_.COERCE]);else{let v=t.includePrerelease?p_[m_.COERCERTLFULL]:p_[m_.COERCERTL],w;for(;(w=v.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||w.index+w[0].length!==r.index+r[0].length)&&(r=w),v.lastIndex=w.index+w[1].length+w[2].length;v.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",o=r[4]||"0",h=t.includePrerelease&&r[5]?`-${r[5]}`:"",g=t.includePrerelease&&r[6]?`+${r[6]}`:"";return eIe(`${n}.${i}.${o}${h}${g}`,t)};lV.exports=tIe});var cV=I((Iet,uV)=>{"use strict";b();var v4=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};uV.exports=v4});var Ki=I((Bet,mV)=>{"use strict";b();var rIe=/\s+/g,b4=class e{constructor(t,r){if(r=iIe(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof x4)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(rIe," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!dV(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&cIe(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&fIe)|(this.options.loose&&uIe))+":"+t,i=hV.get(n);if(i)return i;let o=this.options.loose,h=o?ni[Kn.HYPHENRANGELOOSE]:ni[Kn.HYPHENRANGE];t=t.replace(h,xIe(this.options.includePrerelease)),tr("hyphen replace",t),t=t.replace(ni[Kn.COMPARATORTRIM],aIe),tr("comparator trim",t),t=t.replace(ni[Kn.TILDETRIM],oIe),tr("tilde trim",t),t=t.replace(ni[Kn.CARETTRIM],lIe),tr("caret trim",t);let g=t.split(" ").map(A=>hIe(A,this.options)).join(" ").split(/\s+/).map(A=>bIe(A,this.options));o&&(g=g.filter(A=>(tr("loose invalid filter",A,this.options),!!A.match(ni[Kn.COMPARATORLOOSE])))),tr("range list",g);let v=new Map,w=g.map(A=>new x4(A,this.options));for(let A of w){if(dV(A))return[A];v.set(A.value,A)}v.size>1&&v.has("")&&v.delete("");let k=[...v.values()];return hV.set(n,k),k}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>pV(n,r)&&t.set.some(i=>pV(i,r)&&n.every(o=>i.every(h=>o.intersects(h,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new sIe(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(wIe(this.set[r],t,this.options))return!0;return!1}};mV.exports=b4;var nIe=cV(),hV=new nIe,iIe=s_(),x4=wp(),tr=bp(),sIe=Nn(),{safeRe:ni,t:Kn,comparatorTrimReplace:aIe,tildeTrimReplace:oIe,caretTrimReplace:lIe}=x0(),{FLAG_INCLUDE_PRERELEASE:fIe,FLAG_LOOSE:uIe}=vp(),dV=e=>e.value==="<0.0.0-0",cIe=e=>e.value==="",pV=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(o=>i.intersects(o,t)),i=n.pop();return r},hIe=(e,t)=>(tr("comp",e,t),e=mIe(e,t),tr("caret",e),e=dIe(e,t),tr("tildes",e),e=gIe(e,t),tr("xrange",e),e=vIe(e,t),tr("stars",e),e),Hn=e=>!e||e.toLowerCase()==="x"||e==="*",dIe=(e,t)=>e.trim().split(/\s+/).map(r=>pIe(r,t)).join(" "),pIe=(e,t)=>{let r=t.loose?ni[Kn.TILDELOOSE]:ni[Kn.TILDE];return e.replace(r,(n,i,o,h,g)=>{tr("tilde",e,n,i,o,h,g);let v;return Hn(i)?v="":Hn(o)?v=`>=${i}.0.0 <${+i+1}.0.0-0`:Hn(h)?v=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`:g?(tr("replaceTilde pr",g),v=`>=${i}.${o}.${h}-${g} <${i}.${+o+1}.0-0`):v=`>=${i}.${o}.${h} <${i}.${+o+1}.0-0`,tr("tilde return",v),v})},mIe=(e,t)=>e.trim().split(/\s+/).map(r=>yIe(r,t)).join(" "),yIe=(e,t)=>{tr("caret",e,t);let r=t.loose?ni[Kn.CARETLOOSE]:ni[Kn.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,o,h,g,v)=>{tr("caret",e,i,o,h,g,v);let w;return Hn(o)?w="":Hn(h)?w=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Hn(g)?o==="0"?w=`>=${o}.${h}.0${n} <${o}.${+h+1}.0-0`:w=`>=${o}.${h}.0${n} <${+o+1}.0.0-0`:v?(tr("replaceCaret pr",v),o==="0"?h==="0"?w=`>=${o}.${h}.${g}-${v} <${o}.${h}.${+g+1}-0`:w=`>=${o}.${h}.${g}-${v} <${o}.${+h+1}.0-0`:w=`>=${o}.${h}.${g}-${v} <${+o+1}.0.0-0`):(tr("no pr"),o==="0"?h==="0"?w=`>=${o}.${h}.${g}${n} <${o}.${h}.${+g+1}-0`:w=`>=${o}.${h}.${g}${n} <${o}.${+h+1}.0-0`:w=`>=${o}.${h}.${g} <${+o+1}.0.0-0`),tr("caret return",w),w})},gIe=(e,t)=>(tr("replaceXRanges",e,t),e.split(/\s+/).map(r=>_Ie(r,t)).join(" ")),_Ie=(e,t)=>{e=e.trim();let r=t.loose?ni[Kn.XRANGELOOSE]:ni[Kn.XRANGE];return e.replace(r,(n,i,o,h,g,v)=>{tr("xRange",e,n,i,o,h,g,v);let w=Hn(o),k=w||Hn(h),A=k||Hn(g),R=A;return i==="="&&R&&(i=""),v=t.includePrerelease?"-0":"",w?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&R?(k&&(h=0),g=0,i===">"?(i=">=",k?(o=+o+1,h=0,g=0):(h=+h+1,g=0)):i==="<="&&(i="<",k?o=+o+1:h=+h+1),i==="<"&&(v="-0"),n=`${i+o}.${h}.${g}${v}`):k?n=`>=${o}.0.0${v} <${+o+1}.0.0-0`:A&&(n=`>=${o}.${h}.0${v} <${o}.${+h+1}.0-0`),tr("xRange return",n),n})},vIe=(e,t)=>(tr("replaceStars",e,t),e.trim().replace(ni[Kn.STAR],"")),bIe=(e,t)=>(tr("replaceGTE0",e,t),e.trim().replace(ni[t.includePrerelease?Kn.GTE0PRE:Kn.GTE0],"")),xIe=e=>(t,r,n,i,o,h,g,v,w,k,A,R)=>(Hn(n)?r="":Hn(i)?r=`>=${n}.0.0${e?"-0":""}`:Hn(o)?r=`>=${n}.${i}.0${e?"-0":""}`:h?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Hn(w)?v="":Hn(k)?v=`<${+w+1}.0.0-0`:Hn(A)?v=`<${w}.${+k+1}.0-0`:R?v=`<=${w}.${k}.${A}-${R}`:e?v=`<${w}.${k}.${+A+1}-0`:v=`<=${v}`,`${r} ${v}`.trim()),wIe=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(tr(e[n].semver),e[n].semver!==x4.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var wp=I((Uet,xV)=>{"use strict";b();var kp=Symbol("SemVer ANY"),M4=class e{static get ANY(){return kp}constructor(t,r){if(r=yV(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),k4("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===kp?this.value="":this.value=this.operator+this.semver.version,k4("comp",this)}parse(t){let r=this.options.loose?gV[_V.COMPARATORLOOSE]:gV[_V.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new vV(n[2],this.options.loose):this.semver=kp}toString(){return this.value}test(t){if(k4("Comparator.test",t,this.options.loose),this.semver===kp||t===kp)return!0;if(typeof t=="string")try{t=new vV(t,this.options)}catch{return!1}return w4(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new bV(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new bV(this.value,r).test(t.semver):(r=yV(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||w4(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||w4(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};xV.exports=M4;var yV=s_(),{safeRe:gV,t:_V}=x0(),w4=_4(),k4=bp(),vV=Nn(),bV=Ki()});var Mp=I((Pet,wV)=>{"use strict";b();var kIe=Ki(),MIe=(e,t,r)=>{try{t=new kIe(t,r)}catch{return!1}return t.test(e)};wV.exports=MIe});var MV=I((qet,kV)=>{"use strict";b();var AIe=Ki(),EIe=(e,t)=>new AIe(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));kV.exports=EIe});var EV=I((Get,AV)=>{"use strict";b();var SIe=Nn(),TIe=Ki(),RIe=(e,t,r)=>{let n=null,i=null,o=null;try{o=new TIe(t,r)}catch{return null}return e.forEach(h=>{o.test(h)&&(!n||i.compare(h)===-1)&&(n=h,i=new SIe(n,r))}),n};AV.exports=RIe});var TV=I((Het,SV)=>{"use strict";b();var OIe=Nn(),IIe=Ki(),NIe=(e,t,r)=>{let n=null,i=null,o=null;try{o=new IIe(t,r)}catch{return null}return e.forEach(h=>{o.test(h)&&(!n||i.compare(h)===1)&&(n=h,i=new OIe(n,r))}),n};SV.exports=NIe});var IV=I((jet,OV)=>{"use strict";b();var A4=Nn(),BIe=Ki(),RV=xp(),CIe=(e,t)=>{e=new BIe(e,t);let r=new A4("0.0.0");if(e.test(r)||(r=new A4("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],o=null;i.forEach(h=>{let g=new A4(h.semver.version);switch(h.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||RV(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),o&&(!r||RV(r,o))&&(r=o)}return r&&e.test(r)?r:null};OV.exports=CIe});var BV=I((Wet,NV)=>{"use strict";b();var UIe=Ki(),DIe=(e,t)=>{try{return new UIe(e,t).range||"*"}catch{return null}};NV.exports=DIe});var y_=I(($et,PV)=>{"use strict";b();var PIe=Nn(),DV=wp(),{ANY:FIe}=DV,qIe=Ki(),LIe=Mp(),CV=xp(),UV=c_(),GIe=d_(),KIe=h_(),HIe=(e,t,r,n)=>{e=new PIe(e,n),t=new qIe(t,n);let i,o,h,g,v;switch(r){case">":i=CV,o=GIe,h=UV,g=">",v=">=";break;case"<":i=UV,o=KIe,h=CV,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(LIe(e,t,n))return!1;for(let w=0;w<t.set.length;++w){let k=t.set[w],A=null,R=null;if(k.forEach(O=>{O.semver===FIe&&(O=new DV(">=0.0.0")),A=A||O,R=R||O,i(O.semver,A.semver,n)?A=O:h(O.semver,R.semver,n)&&(R=O)}),A.operator===g||A.operator===v||(!R.operator||R.operator===g)&&o(e,R.semver))return!1;if(R.operator===v&&h(e,R.semver))return!1}return!0};PV.exports=HIe});var qV=I((Zet,FV)=>{"use strict";b();var zIe=y_(),jIe=(e,t,r)=>zIe(e,t,">",r);FV.exports=jIe});var GV=I((Qet,LV)=>{"use strict";b();var VIe=y_(),WIe=(e,t,r)=>VIe(e,t,"<",r);LV.exports=WIe});var zV=I((ttt,HV)=>{"use strict";b();var KV=Ki(),XIe=(e,t,r)=>(e=new KV(e,r),t=new KV(t,r),e.intersects(t,r));HV.exports=XIe});var VV=I((ntt,jV)=>{"use strict";b();var $Ie=Mp(),YIe=Gi();jV.exports=(e,t,r)=>{let n=[],i=null,o=null,h=e.sort((k,A)=>YIe(k,A,r));for(let k of h)$Ie(k,t,r)?(o=k,i||(i=k)):(o&&n.push([i,o]),o=null,i=null);i&&n.push([i,null]);let g=[];for(let[k,A]of n)k===A?g.push(k):!A&&k===h[0]?g.push("*"):A?k===h[0]?g.push(`<=${A}`):g.push(`${k} - ${A}`):g.push(`>=${k}`);let v=g.join(" || "),w=typeof t.raw=="string"?t.raw:String(t);return v.length<w.length?v:t}});var JV=I((stt,ZV)=>{"use strict";b();var WV=Ki(),S4=wp(),{ANY:E4}=S4,Ap=Mp(),T4=Gi(),ZIe=(e,t,r={})=>{if(e===t)return!0;e=new WV(e,r),t=new WV(t,r);let n=!1;e:for(let i of e.set){for(let o of t.set){let h=QIe(i,o,r);if(n=n||h!==null,h)continue e}if(n)return!1}return!0},JIe=[new S4(">=0.0.0-0")],XV=[new S4(">=0.0.0")],QIe=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===E4){if(t.length===1&&t[0].semver===E4)return!0;r.includePrerelease?e=JIe:e=XV}if(t.length===1&&t[0].semver===E4){if(r.includePrerelease)return!0;t=XV}let n=new Set,i,o;for(let O of e)O.operator===">"||O.operator===">="?i=$V(i,O,r):O.operator==="<"||O.operator==="<="?o=YV(o,O,r):n.add(O.semver);if(n.size>1)return null;let h;if(i&&o){if(h=T4(i.semver,o.semver,r),h>0)return null;if(h===0&&(i.operator!==">="||o.operator!=="<="))return null}for(let O of n){if(i&&!Ap(O,String(i),r)||o&&!Ap(O,String(o),r))return null;for(let B of t)if(!Ap(O,String(B),r))return!1;return!0}let g,v,w,k,A=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,R=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;A&&A.prerelease.length===1&&o.operator==="<"&&A.prerelease[0]===0&&(A=!1);for(let O of t){if(k=k||O.operator===">"||O.operator===">=",w=w||O.operator==="<"||O.operator==="<=",i){if(R&&O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===R.major&&O.semver.minor===R.minor&&O.semver.patch===R.patch&&(R=!1),O.operator===">"||O.operator===">="){if(g=$V(i,O,r),g===O&&g!==i)return!1}else if(i.operator===">="&&!Ap(i.semver,String(O),r))return!1}if(o){if(A&&O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===A.major&&O.semver.minor===A.minor&&O.semver.patch===A.patch&&(A=!1),O.operator==="<"||O.operator==="<="){if(v=YV(o,O,r),v===O&&v!==o)return!1}else if(o.operator==="<="&&!Ap(o.semver,String(O),r))return!1}if(!O.operator&&(o||i)&&h!==0)return!1}return!(i&&w&&!o&&h!==0||o&&k&&!i&&h!==0||R||A)},$V=(e,t,r)=>{if(!e)return t;let n=T4(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},YV=(e,t,r)=>{if(!e)return t;let n=T4(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};ZV.exports=ZIe});var rW=I((ott,tW)=>{"use strict";b();var R4=x0(),QV=vp(),eNe=Nn(),eW=p4(),tNe=tu(),rNe=Ej(),nNe=Tj(),iNe=Ij(),sNe=Cj(),aNe=Dj(),oNe=Fj(),lNe=Lj(),fNe=Kj(),uNe=Gi(),cNe=Vj(),hNe=Xj(),dNe=u_(),pNe=Jj(),mNe=eV(),yNe=xp(),gNe=c_(),_Ne=y4(),vNe=g4(),bNe=h_(),xNe=d_(),wNe=_4(),kNe=fV(),MNe=wp(),ANe=Ki(),ENe=Mp(),SNe=MV(),TNe=EV(),RNe=TV(),ONe=IV(),INe=BV(),NNe=y_(),BNe=qV(),CNe=GV(),UNe=zV(),DNe=VV(),PNe=JV();tW.exports={parse:tNe,valid:rNe,clean:nNe,inc:iNe,diff:sNe,major:aNe,minor:oNe,patch:lNe,prerelease:fNe,compare:uNe,rcompare:cNe,compareLoose:hNe,compareBuild:dNe,sort:pNe,rsort:mNe,gt:yNe,lt:gNe,eq:_Ne,neq:vNe,gte:bNe,lte:xNe,cmp:wNe,coerce:kNe,Comparator:MNe,Range:ANe,satisfies:ENe,toComparators:SNe,maxSatisfying:TNe,minSatisfying:RNe,minVersion:ONe,validRange:INe,outside:NNe,gtr:BNe,ltr:CNe,intersects:UNe,simplifyRange:DNe,subset:PNe,SemVer:eNe,re:R4.re,src:R4.src,tokens:R4.t,SEMVER_SPEC_VERSION:QV.SEMVER_SPEC_VERSION,RELEASE_TYPES:QV.RELEASE_TYPES,compareIdentifiers:eW.compareIdentifiers,rcompareIdentifiers:eW.rcompareIdentifiers}});async function FNe(e){return`\u28B0\u2812\u28B2\u2812\u28B2\u2812\u28F6\u2812\u2856\u28B2\u2856\u28B2\u2812\u28F6\u2812\u2856\u2812\u2856\u2812\u2846
436
+ \u28B8\u2812\u28BA\u2812\u28BA\u2812\u28FF\u2812\u2857\u28BA\u2857\u28BA\u2812\u28FF\u2812\u2857\u2812\u2857\u2812\u2847
437
+ \u285E\u2812\u28FE\u28DB\u28FB\u28DB\u28FF\u28BB\u285F\u28BB\u281B\u28FF\u28BB\u285F\u28BB\u2813\u28B2\u28D7\u28D2\u2847
438
+ \u28FB\u283F\u28FF\u28C9\u28EF\u28F9\u28CF\u28F9\u28EF\u28F9\u28CF\u28F9\u28C9\u28FF\u28B9\u28DF\u28FB\u28D3\u28FA\u2803
439
+ \u28CC\u28C9\u28FF\u282D\u28E7\u28F8\u28CF\u28F9\u28EF\u28EF\u28EF\u28EF\u28FD\u28EF\u28FF\u28C9\u28F9\u28C4\u28F8\u2800
440
+ \u28EF\u28C1\u28FF\u28ED\u28FD\u28FC\u28FC\u287C\u28FF\u28EC\u28C7\u28F9\u286E\u28FF\u28FB\u28D7\u28FD\u28D2\u287C\u2845
441
+ \u2897\u28C9\u28BF\u28E6\u28FF\u28FF\u28E7\u28B7\u28F7\u28EF\u28E7\u28DF\u28F7\u28FE\u28FC\u28D7\u28FF\u2897\u28F9\u2887
442
+ \u28B3\u281E\u28BA\u2836\u28FF\u283E\u28DF\u28FB\u28FE\u281F\u28B7\u28DF\u28BE\u28B7\u28FF\u28D3\u28A7\u2867\u2834\u284E
443
+ \u287C\u2836\u285E\u2892\u287E\u283E\u285D\u28B2\u2877\u287D\u28BE\u28FF\u28BC\u28FE\u28BF\u2812\u28FE\u287F\u2836\u2867
444
+ \u28B7\u2836\u28F7\u28FA\u28B7\u28F9\u289F\u28F2\u28AB\u2837\u286F\u28BF\u28BD\u28BF\u28BE\u285F\u28BA\u28B3\u28B2\u2801
445
+ \u2878\u283A\u287A\u28FA\u287B\u28BE\u281E\u289B\u28B6\u287B\u289E\u283E\u28F9\u28BF\u28FE\u2819\u28FB\u281B\u283A\u2840
446
+ \u2808\u2822\u280A\u281A\u2812\u281A\u2811\u2814\u2811\u281C\u2823\u281B\u283C\u2825\u283C\u2809\u280B\u2822\u280A\u2800
447
+
448
+ Georg Nees - schotter, plotter on paper, 1968. Redis ver. ${e}`}function qNe(e){return`\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m
449
+ \x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m
450
+ \x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m
451
+ \x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m
452
+ \x1B[0;97;107m \x1B[0m\x1B[0;97;107m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m
453
+ \x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m
454
+ \x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m
455
+ \x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m
456
+ \x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m
457
+ \x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;37;47m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;90;100m \x1B[0m\x1B[0;30;40m \x1B[0m\x1B[0;30;40m \x1B[0m
458
+ Dedicated to the 8 bit game developers of past and present.
459
+ Original 8 bit image from Plaguemon by hikikomori. Redis ver. ${e}`}function LNe(e){return`Redis ver. ${e}`}function GNe(){return` TRYING TO GRASP
460
+ THE BLINDING GLOBE OF FIRE
461
+ THEY ALL RETURN TO THEIR ROOTS
462
+ WHEN IT REACHES THE STRATOSPHERE
463
+ THE HAIR BETWEEN THE LIPS
464
+ IT EXPANDS RAPIDLY
465
+ THEY LAY MOTIONLESS WITHOUT SPEAKING
466
+ ASSUMES THE WELL-KNOWN SHAPE OF A MUSHROOM
467
+ TILL HE MOVED HIS FINGERS SLOWLY
468
+ THE SUMMIT OF THE CLOUD
469
+
470
+ In 1961, Nanni Balestrini created one of the first computer-generated poems, TAPE MARK I, using an IBM 7090 mainframe. Each execution combined verses from three literary sources following algorithmic rules based on metrical compatibility and group constraints. This LOLWUT command reproduces Balestrini's original algorithm, generating new stanzas through the same computational poetry process described in Almanacco Letterario Bompiani, 1962.
471
+
472
+ https://en.wikipedia.org/wiki/Digital_poetry
473
+ https://www.youtube.com/watch?v=8i7uFCK7G0o (English subs)
474
+
475
+ Use: LOLWUT IT for the original Italian output.`}async function iW(e="VERSION",t){let r=await Promise.resolve().then(()=>mt(c4())),i=(r.default||r).split(`
476
+ `).find(h=>h.indexOf("redis_version")!==-1),o=(0,nW.coerce)(i).version;if(e&&e.toUpperCase()!=="VERSION")throw new Error("ERR value is not an integer or out of range");return t==7?LNe(o):t==6?qNe(o):t==5?FNe(o):GNe()}async function KNe(...e){let t=await iW.apply(this,e);return z(t)}var nW,sW=K(()=>{b();nW=mt(rW());Ne()});function aW(e,t){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let r=this.data.get(e)||[];if(r.length===0)return null;if(t){let i=r.slice(0,t),o=r.slice(t);return o.length>0?this.data.set(e,o):this.data.delete(e),i}let n=r.shift();return r.length>0?this.data.set(e,r):this.data.delete(e),n}function HNe(e,t){let r=aW.apply(this,[e,t]);return z(r)}var oW=K(()=>{b();Ne()});function lW(e,t,...r){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let n=this.data.get(e)||[],i=1,o=null,h=n.length;for(let k=0;k<r.length;k++){let A=String(r[k]).toUpperCase();if(A==="RANK"&&k+1<r.length){if(i=parseInt(r[k+1],10),i===0)throw new Error("ERR RANK can not be zero: use 1 to start from the first match, 2 from the second ... or use negative to start from the end of the list");k++}else if(A==="COUNT"&&k+1<r.length){if(o=parseInt(r[k+1],10),o<0)throw new Error("ERR COUNT can not be negative");k++}else if(A==="MAXLEN"&&k+1<r.length){if(h=parseInt(r[k+1],10),h<0)throw new Error("ERR MAXLEN can not be negative");k++}}let g=[],v=Math.min(h,n.length);for(let k=0;k<v;k++)n[k]===t&&g.push(k);if(g.length===0)return o!==null?[]:null;let w;if(i>0){if(i>g.length)return o!==null?[]:null;w=g.slice(i-1)}else{let k=Math.abs(i);if(k>g.length)return o!==null?[]:null;w=g.slice(0,g.length-k+1).reverse()}return o!==null?o===0?w:w.slice(0,o):w.length>0?w[0]:null}function zNe(...e){let t=lW.apply(this,e);return z(t)}var fW=K(()=>{b();Ne()});function g_(e,...t){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let r=this.data.get(e)||[],n=r.unshift(...t.reverse());return this.data.set(e,r),n}var jNe,uW=K(()=>{b();jNe=g_});function cW(e,t){return this.data.has(e)?g_.call(this,e,t):0}var VNe,hW=K(()=>{b();xr();VNe=cW});function dW(e,t,r){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let n=parseInt(t,10),i=parseInt(r,10),o=this.data.get(e)||[];return n<0&&(n=o.length+n),i<0&&(i=o.length+i),o.slice(n,i+1)}function WNe(...e){let t=dW.apply(this,e);return z(t)}var pW=K(()=>{b();Ne()});function mW(e,t,r){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))return 0;let n=parseInt(t,10),i=[...this.data.get(e)||[]],o=n<0?"lastIndexOf":"indexOf",h=n===0?i.length:Math.abs(n),g=0,v=i[o](r);for(;v!==-1&&g<h;)g++,i.splice(v,1),v=i[o](r);return this.data.set(e,i),g}var XNe,yW=K(()=>{b();XNe=mW});function gW(e,t,r){if(!this.data.has(e))throw new Error("no such key");if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let n=parseInt(t,10),i=this.data.get(e)||[];return i[n<0?i.length+n:n]=r,this.data.set(e,i),"OK"}function $Ne(...e){let t=gW.apply(this,e);return z(t)}var _W=K(()=>{b();Ne()});function vW(e,t,r){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let n=parseInt(t,10),i=parseInt(r,10),o=this.data.get(e)||[];return this.data.set(e,o.slice(n,i+1||void 0)),"OK"}function YNe(...e){let t=vW.apply(this,e);return z(t)}var bW=K(()=>{b();Ne()});function xW(...e){if(e.length===0)throw new Error("ERR wrong number of arguments for 'mget' command");return e.map(t=>this.data.has(t)?this.data.get(t):null)}function ZNe(...e){let t=xW.apply(this,e);return z(t)}var wW=K(()=>{b();Ne()});function kW(...e){if(e.length===0)throw new Error("ERR wrong number of arguments for 'mset' command");for(let t=0;t<e.length;t+=2)na.call(this,e[t],e[t+1]);return"OK"}function JNe(...e){let t=kW.apply(this,e);return z(t)}var MW=K(()=>{b();Ne();xr()});function AW(...e){for(let t=0;t<e.length;t+=2)if(this.data.has(e[t]))return 0;for(let t=0;t<e.length;t+=2)na.call(this,e[t],e[t+1]);return 1}var QNe,EW=K(()=>{b();xr();QNe=AW});function eBe(e){let t=this.data.get(e);return t instanceof Set?[...t].every(r=>r===parseInt(r,10).toString())?"intset":"listpack":t instanceof Map||Array.isArray(t)?"listpack":typeof t.valueOf()=="string"?t===parseInt(t,10).toString()?"int":"embstr":"listpack"}function SW(e,t,...r){if(!e)throw new Error("ERR wrong number of arguments for 'object' command");let n=e.toUpperCase();if(n==="HELP"&&!t)return["OBJECT <subcommand> [<arg> [value] [opt] ...]. Subcommands are:","ENCODING <key>"," Return the kind of internal representation used in order to store the value"," associated with a <key>.","FREQ <key>"," Return the access frequency index of the <key>. The returned integer is"," proportional to the logarithm of the recent access frequency of the key.","IDLETIME <key>"," Return the idle time of the <key>, that is the approximated number of"," seconds elapsed since the last access to the key.","REFCOUNT <key>"," Return the number of references of the value associated with the specified"," <key>.","HELP"," Print this help."];if(!t||r.length>0)switch(n){case"REFCOUNT":case"IDLETIME":case"HELP":case"FREQ":case"ENCODING":throw new Error(`ERR wrong number of arguments for 'object|${e.toLowerCase()}' command`);default:throw new Error(`ERR unknown subcommand '${e.toLowerCase()}'. Try OBJECT HELP.`)}if(n!=="HELP"&&!this.data.has(t))return null;switch(n){case"ENCODING":return eBe.call(this,t);case"FREQ":throw new Error("ERR An LFU maxmemory policy is not selected, access frequency not tracked. Please note that when switching between policies at runtime LRU and LFU data will take some time to adjust.");case"HELP":throw new Error(`ERR wrong number of arguments for 'object|${e.toLowerCase()}' command`);case"IDLETIME":return 0;case"REFCOUNT":return 1;default:throw new Error(`ERR unknown subcommand '${e.toLowerCase()}'. Try OBJECT HELP.`)}}function tBe(...e){let t=SW.apply(this,e);return z(t)}var TW=K(()=>{b();Ne()});function Qg(e){return!this.data.has(e)||!this.expires.has(e)?0:(this.expires.delete(e),1)}var rBe,RW=K(()=>{b();rBe=Qg});function ml(e,t){return this.data.has(e)?(this.expires.set(e,+t+Date.now()),1):0}var nBe,OW=K(()=>{b();nBe=ml});function _0(e,t){return this.data.has(e)?(this.expires.set(e,t),1):0}var iBe,IW=K(()=>{b();iBe=_0});function NW(e){return this.data.has(e)?this.expires.has(e)?this.expires.get(e):-1:-2}var sBe,BW=K(()=>{b();sBe=NW});function CW(e="PONG"){return e}function aBe(e){let t=CW.call(this,e);return z(t)}var UW=K(()=>{b();Ne()});function DW(e,t,r){return na.call(this,e,r),ml.call(this,e,t),"OK"}function oBe(...e){let t=DW.apply(this,e);return z(t)}var PW=K(()=>{b();Ne();xr()});function O4(e,t,r,n){S(()=>{let[i,o,h]=Buffer.isBuffer(r)?["pmessageBuffer","messageBuffer",Buffer.from(t)]:["pmessage","message",t];n?e.emit(i,n,h,r):e.emit(o,h,r)})}var FW=K(()=>{b()});function Hi(e,t){let r=[];return t.instanceListeners?(t.instanceListeners.forEach((n,i)=>{n.has(e)&&r.push(i)}),r):[]}function __(e,t,r,n){if(r.instanceListeners.has(t)||r.instanceListeners.set(t,new Map),r.instanceListeners.get(t).has(e))return;let i=(o,h)=>O4(e,n?h:t,o,n?t:void 0);r.on(t,i),r.instanceListeners.get(t).set(e,i)}function k0(e,t,r){if(!r.instanceListeners||r.instanceListeners.has(t)===!1)return;let n=r.instanceListeners.get(t);if(n.has(e)===!1)return;let i=n.get(e);r.removeListener(t,i),n.delete(e),n.size===0&&r.instanceListeners.delete(t)}var Ep=K(()=>{b();FW()});function qW(...e){e.forEach(r=>{this.patternChannels.instanceListeners||(this.patternChannels.instanceListeners=new Map),__(this,r,this.patternChannels,!0)});let t=Hi(this,this.patternChannels).length;return t>0&&(this.subscriberMode=!0),t}var lBe,LW=K(()=>{b();Ep();lBe=qW});function GW(e){return this.data.has(e)?this.expires.has(e)?Math.ceil(this.expires.get(e)-Date.now()):-1:-2}var fBe,KW=K(()=>{b();fBe=GW});function HW(e,t){this.channels.emit(e,t);let r=this.patternChannels.eventNames().filter(i=>eu(i,e));return r.forEach(i=>this.patternChannels.emit(i,t,e)),r.length+this.channels.listenerCount(e)}var uBe,zW=K(()=>{b();i_();uBe=HW});function jW(e,...t){switch(e){case"CHANNELS":{let r=[],n=t[0];return this.channels?.instanceListeners?.forEach((i,o)=>{r.push(o)}),n&&(r=r.filter(i=>eu(n,i))),r}case"NUMSUB":{let r=[];return t.forEach(n=>{r.push(n),r.push(this.channels?.instanceListeners?.get(n)?.size||0)}),r}default:throw new Error("Currently not implemented as a mock")}}var cBe,VW=K(()=>{b();i_();cBe=jW});function WW(...e){e.length===0&&Hi(this,this.patternChannels).forEach(r=>{k0(this,r,this.patternChannels)}),e.forEach(r=>{k0(this,r,this.patternChannels)});let t=Hi(this,this.patternChannels).length;return t+Hi(this,this.channels).length===0&&(this.subscriberMode=!1),t}var hBe,XW=K(()=>{b();Ep();hBe=WW});function $W(){return this.disconnect(),"OK"}function dBe(){let e=$W.call(this);return z(e)}var YW=K(()=>{b();Ne()});function Sp(e=1,t=0){let r=Math.ceil(Math.min(e,t)),n=Math.floor(Math.max(e,t));return Math.floor(r+Math.random()*(n-r+1))}var I4=K(()=>{b()});function ZW(){let e=this.data.keys();return e.length>0?e[Sp(0,e.length-1)]:null}function pBe(){let e=ZW.call(this);return z(e)}var JW=K(()=>{b();Ne();I4()});function QW(){throw new Error("ERR This instance has cluster support disabled")}function mBe(){let e=QW.call(this);return z(e)}var eX=K(()=>{b();Ne()});function tX(){return"OK"}function yBe(){let e=tX.call(this);return z(e)}var rX=K(()=>{b();Ne()});function v_(e,t){let r=this.data.get(e);if(this.expires.has(e)){let n=this.expires.get(e);this.expires.delete(e),this.expires.set(t,n)}return this.data.set(t,r),this.data.delete(e),bf(this,"g",e,"rename_from"),bf(this,"g",t,"rename_to"),"OK"}function gBe(...e){let t=v_.apply(this,e);return z(t)}var nX=K(()=>{b();Ne();bd()});function iX(e,t){return this.data.has(t)?0:(v_.call(this,e,t),1)}var _Be,sX=K(()=>{b();xr();_Be=iX});function aX(){return"OK"}function vBe(){let e=aX.call(this);return z(e)}var oX=K(()=>{b();Ne()});function N4(e,t){if(!e||!t)throw new Error("ERR wrong number of arguments for 'replicaof' command");if(e.toUpperCase()==="NO"&&t.toUpperCase()==="ONE")return"OK";throw new Error("ERR Unsupported operation, PRs welcome ;-)")}function lX(...e){let t=N4.apply(this,e);return z(t)}var bBe,xBe,fX=K(()=>{b();Ne();bBe=N4,xBe=lX});function uX(){return["master",0]}function wBe(){let e=uX.call(this);return z(e)}var cX=K(()=>{b();Ne()});function hX(e,t){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error(`Key ${e} does not contain a list`);let r=this.data.get(e)||[];if(r.length===0)return null;if(t){let i=Math.min(t,r.length),o=[];for(let h=0;h<i;h++)o.push(r.pop());return r.length>0?this.data.set(e,r):this.data.delete(e),o}let n=r.pop();return r.length>0?this.data.set(e,r):this.data.delete(e),n}function kBe(e,t){let r=hX.apply(this,[e,t]);return z(r)}var dX=K(()=>{b();Ne()});function pX(e,t){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");if(this.data.has(t)&&!(this.data.get(t)instanceof Array)||!this.data.has(e)||this.data.get(e).length===0)return null;this.data.has(t)||this.data.set(t,[]);let r=this.data.get(e),n=r.pop(),i=r;return e!==t&&(i=this.data.get(t)),i.unshift(n),this.data.set(e,r),r!==i&&this.data.set(t,i),n}function MBe(e,t){return pX.call(this,e,t)}var mX=K(()=>{b()});function b_(e,...t){if(this.data.has(e)&&!(this.data.get(e)instanceof Array))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");let r=this.data.get(e)||[],n=r.push(...t);return this.data.set(e,r),n}var ABe,yX=K(()=>{b();ABe=b_});function gX(e,t){return this.data.has(e)?b_.call(this,e,t):0}var EBe,_X=K(()=>{b();xr();EBe=gX});function vX(e,...t){this.data.has(e)||this.data.set(e,new Set);let r=0,n=this.data.get(e);return t.forEach(i=>{n.has(i)||r++,n.add(i)}),this.data.set(e,n),r}var SBe,bX=K(()=>{b();SBe=vX});function xX(){return"OK"}function TBe(){let e=xX.call(this);return z(e)}var wX=K(()=>{b();Ne()});function kX(e,t,r,n,i){let o=this.data.keys();return yl(o,1,e,t,r,n,i)}function RBe(...e){let t=kX.apply(this,e);return z(t)}var MX=K(()=>{b();Ne();_p()});function AX(e){let t=this.data.get(e);if(!t)return 0;if(!(t instanceof Set))throw new Error(`Key ${e} does not contain a set`);return this.data.get(e).size}var OBe,EX=K(()=>{b();OBe=AX});function x_(e,...t){if(this.data.has(e)&&!(this.data.get(e)instanceof Set))throw new Error(`Key ${e} does not contain a set`);t.forEach(o=>{if(this.data.has(o)&&!(this.data.get(o)instanceof Set))throw new Error(`Key ${o} does not contain a set`)});let r=this.data.has(e)?this.data.get(e):new Set,n=t.map(o=>this.data.has(o)?this.data.get(o):new Set),i=new Set(Array.from(r).filter(o=>n.reduce((h,g)=>g.has(o)?!1:h,!0)));return Array.from(i)}function IBe(...e){let t=x_.apply(this,e);return z(t)}var SX=K(()=>{b();Ne()});function NBe(e,t){return function(r,...n){let i=e.call(this,...n);return this.data.set(r,new t(i)),i.length}}function M0(e){return NBe(e,Set)}var w_=K(()=>{b()});var TX,BBe,RX=K(()=>{b();w_();xr();TX=M0(x_),BBe=TX});function CBe(e,t){let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}function na(e,t,...r){let n=r.indexOf("NX")!==-1,i=r.indexOf("XX")!==-1,o=r.indexOf("GET")!==-1,h=r.filter(w=>w!=="NX"&&w!=="XX");if(n&&i)throw new Error("ERR syntax error");if(n&&this.data.has(e))return o?this.data.get(e):null;if(i&&!this.data.has(e))return null;let g="OK";o&&(g=this.data.has(e)?this.data.get(e):null),this.data.set(e,t);let v=new Map(CBe(h,2));return v.has("EX")?pl.call(this,e,v.get("EX")):v.has("PX")?ml.call(this,e,v.get("PX")):v.has("EXAT")?y0.call(this,e,v.get("EXAT")):v.has("PXAT")?_0.call(this,e,v.get("PXAT")):this.expires.delete(e),g}function UBe(...e){let t=na.apply(this,e);return z(t)}var OX=K(()=>{b();Ne();xr()});function IX(e,t,r){if(t>4294967295)throw new Error("ERR bit offset is not an integer or out of range");let n=parseInt(r,10);if(n!==0&&n!==1)throw new Error("ERR bit is not an integer or out of range");let i=parseInt(t/8,10),o=7-t%8,h=this.data.has(e)?this.data.get(e):"",g=GBe(i)(h),v=DBe(i+1)(h),w=LBe(n)(o)(g),k=KBe(w)(i)(v);return this.data.set(e,k),PBe(o)(g)}var DBe,PBe,FBe,qBe,LBe,GBe,KBe,HBe,NX=K(()=>{b();DBe=e=>t=>t+Array(Math.max(0,e-t.length)).fill("\0").join(""),PBe=e=>t=>t>>e&1,FBe=e=>t=>t|1<<e,qBe=e=>t=>t&~(1<<e),LBe=e=>e===1?FBe:qBe,GBe=e=>t=>t.charCodeAt(e),KBe=e=>t=>r=>r.substr(0,t)+String.fromCharCode(e)+r.substr(t+1);HBe=IX});function BX(e,t,r){return na.call(this,e,r),pl.call(this,e,t),"OK"}function zBe(...e){let t=BX.apply(this,e);return z(t)}var CX=K(()=>{b();Ne();xr()});function UX(e,t){return this.data.has(e)?0:(this.data.set(e,t),1)}var jBe,DX=K(()=>{b();jBe=UX});function PX(e,t,r){let n=this.data.get(e)||"",i=parseInt(t,10),o=parseInt(i+r.length,10),h="";return i>0&&(h=n.slice(0,i)),h+=r,o<n.length&&(h+=n.slice(o,n.length+1)),h.length<o&&(h=h.padStart(o,"\0")),this.data.set(e,h),h.length}var VBe,FX=K(()=>{b();VBe=PX});function k_(...e){let t=A0.apply(this,e),r=e.map(i=>this.data.has(i)?this.data.get(i):new Set),n=new Set(t.filter(i=>r.reduce((o,h)=>h.has(i)?o:!1,!0)));return Array.from(n)}function WBe(...e){let t=k_.apply(this,e);return z(t)}var qX=K(()=>{b();Ne();xr()});var LX,XBe,GX=K(()=>{b();w_();xr();LX=M0(k_),XBe=LX});function KX(e,t){let r=this.data.get(e);return r&&r.has(t)?1:0}var $Be,HX=K(()=>{b();$Be=KX});function zX(e){return this.data.has(e)?Array.from(this.data.get(e)):[]}function YBe(...e){let t=zX.apply(this,e);return z(t)}var jX=K(()=>{b();Ne()});function VX(e,...t){let r=this.data.get(e);return r?t.map(n=>r.has(n)?1:0):t.map(()=>0)}var ZBe,WX=K(()=>{b();ZBe=VX});function XX(e,t,r){if(this.data.has(e)&&!(this.data.get(e)instanceof Set))throw new Error(`Key ${e} does not contain a set`);if(this.data.has(t)&&!(this.data.get(t)instanceof Set))throw new Error(`Key ${t} does not contain a set`);if(!this.data.has(e))return 0;let n=this.data.get(e);if(!n.has(r))return 0;n.delete(r),this.data.set(e,n),this.data.has(t)||this.data.set(t,new Set);let i=this.data.get(t);return i.add(r),this.data.set(t,i),1}var JBe,$X=K(()=>{b();JBe=XX});function ZX(e,t){if(this.data.has(e)&&!(this.data.get(e)instanceof Set))throw new Error(`Key ${e} does not contain a set`);let r=QBe(t),n=this.data.get(e)||new Set,i=n.size;if(r===0)return;if(i===0)return null;let o=Array.from(n),h;return r===1?(h=b0(o),n.delete(h)):i<=r?(h=o,n.clear()):(h=(0,YX.default)(o).slice(0,r),h.map(g=>n.delete(g))),this.data.set(e,n),h}function eCe(...e){let t=ZX.apply(this,e);return z(t)}var YX,QBe,JX=K(()=>{b();YX=mt(n_());Ne();u4();QBe=e=>{let t=e!==void 0?parseInt(e,10):1;if(Number.isNaN(t)||t<0)throw new Error("ERR value is not an integer or out of range");return t}});function e$(e,t){if(this.data.has(e)&&!(this.data.get(e)instanceof Set))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");let r=this.data.get(e)||new Set,n=Array.from(r),i=n.length;if(i===0)return null;let o=t!==void 0,h=o?Math.abs(t):1;if(o&&t>-1)return(0,QX.default)(n.splice(0,h));let v=[],w=0;for(;w<h;){let k=n[Sp(0,i-1)];v.push(k),w+=1}return o?v:v[0]}function tCe(...e){let t=e$.apply(this,e);return z(t)}var QX,t$=K(()=>{b();QX=mt(n_());Ne();I4()});function r$(e,...t){if(!this.data.has(e))return 0;if(this.data.has(e)&&!(this.data.get(e)instanceof Set))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");let r=0,n=this.data.get(e);return t.forEach(i=>{n.has(i)&&r++,n.delete(i)}),n.size===0?this.data.delete(e):this.data.set(e,n),r}var rCe,n$=K(()=>{b();rCe=r$});function i$(e,t,...r){if(!this.data.has(e))return["0",[]];let n=[];return this.data.get(e).forEach(i=>n.push(i)),yl(n,1,t,...r)}function nCe(...e){let t=i$.apply(this,e);return z(t)}var s$=K(()=>{b();Ne();_p()});function a$(e){return this.data.has(e)?this.data.get(e).length:0}var iCe,o$=K(()=>{b();iCe=a$});function l$(...e){if(e.forEach(r=>{this.channels.instanceListeners||(this.channels.instanceListeners=new Map),__(this,r,this.channels)}),!this.channels.instanceListeners)return 0;let t=Hi(this,this.channels).length;return t>0&&(this.subscriberMode=!0),t}var sCe,f$=K(()=>{b();Ep();sCe=l$});function A0(...e){e.forEach(n=>{if(this.data.has(n)&&!(this.data.get(n)instanceof Set))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value")});let t=e.map(n=>this.data.has(n)?this.data.get(n):new Set),r=new Set(t.reduce((n,i)=>[...n,...Array.from(i)],[]));return Array.from(r)}function aCe(...e){let t=A0.apply(this,e);return z(t)}var u$=K(()=>{b();Ne()});var c$,oCe,h$=K(()=>{b();w_();xr();c$=M0(A0),oCe=c$});function d$(){return[`${Math.round(new Date().getTime()/1e3)}`,`${Math.round(T()[1]/1e3)}`]}function lCe(){let e=d$.call(this);return z(e)}var p$=K(()=>{b();Ne()});function m$(e){return this.data.has(e)?this.expires.has(e)?Math.ceil((this.expires.get(e)-Date.now())/1e3):-1:-2}var fCe,y$=K(()=>{b();fCe=m$});var b$=I((Kit,v$)=>{b();var uCe="[object Object]";function cCe(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function hCe(e,t){return function(r){return e(t(r))}}var dCe=Function.prototype,g$=Object.prototype,_$=dCe.toString,pCe=g$.hasOwnProperty,mCe=_$.call(Object),yCe=g$.toString,gCe=hCe(Object.getPrototypeOf,Object);function _Ce(e){return!!e&&typeof e=="object"}function vCe(e){if(!_Ce(e)||yCe.call(e)!=uCe||cCe(e))return!1;var t=gCe(e);if(t===null)return!0;var r=pCe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_$.call(r)==mCe}v$.exports=vCe});function g0(e){if(!this.data.has(e))return"none";let t=this.data.get(e);if(t instanceof Set)return"set";if(t instanceof Map)return"zset";if(Array.isArray(t))return"list";if(t!=null&&typeof t.valueOf()=="string")return"string";if((0,x$.default)(t))return"hash"}function bCe(e){let t=g0.call(this,e);return z(t)}var x$,w$=K(()=>{b();x$=mt(b$());Ne()});function k$(...e){return c1.bind(this)(...e)}var xCe,M$=K(()=>{b();Jk();xCe=k$});function A$(...e){if(e.length===0)return Hi(this,this.channels).forEach(r=>{k0(this,r,this.channels)}),0;e.forEach(r=>{k0(this,r,this.channels)});let t=Hi(this,this.channels).length;return t+Hi(this,this.patternChannels).length===0&&(this.subscriberMode=!1),t}var wCe,E$=K(()=>{b();Ep();wCe=A$});function S$(){return this.dirty=!1,this.watching.clear(),"OK"}function kCe(){let e=S$.call(this);return z(e)}var T$=K(()=>{b();Ne()});function R$(...e){if(!this.dirty)for(let t of e)this.watching.add(t);return"OK"}function MCe(...e){let t=R$.apply(this,e);return z(t)}var O$=K(()=>{b();Ne()});function I$(e,t,...r){if(!e||!t||r.length===0||(r.includes("~")||r.includes("=")?r.length<4:r.length%2!==0))throw new Error("ERR wrong number of arguments for 'xadd' command");this.data.has(e)||this.data.set(e,[]);let n,i=t;i==="MAXLEN"&&(n=r.shift(),(n==="="||n==="~")&&(n=r.shift()),i=r.shift());let o=`${i==="*"?this.data.get(e).length+1:i}-0`,h=this.data.get(e);if(h.length>0&&h[0][0]===`${o}`)throw new Error("ERR The ID specified in XADD is equal or smaller than the target stream top item");this.data.set(`stream:${e}:${o}`,{polled:!1});let g=h.concat([[`${o}`,[...r]]]);return n&&g.length>n&&(g=g.slice(-n)),this.data.set(e,g),`${o}`}function ACe(...e){let t=I$.apply(this,e);return z(t)}var N$=K(()=>{b();Ne()});function B$(e){return(this.data.get(e)||[]).length}var ECe,C$=K(()=>{b();ECe=B$});function U$(e,t,r,...n){if(!e||!t||!r)throw new Error("ERR wrong number of arguments for 'xrange' command");let[i,o]=n;if(i&&!o)throw new Error("ERR syntax error");if(!this.data.has(e))return[];let h=this.data.get(e),g=t==="-"?-1/0:t,v=r==="+"?1/0:r,w=h.filter(([k])=>g<=parseInt(k,10)&&v>=parseInt(k,10));return o?w.slice(0,o):w}function SCe(...e){let t=U$.apply(this,e);return z(t)}var D$=K(()=>{b();Ne()});function P$(e,...t){let{op:r,opVal:n,rest:i}=e==="STREAMS"?{op:"COUNT",opVal:1/0,rest:t}:{op:e,opVal:parseInt(t[0],10),rest:t.slice(2)};if(["COUNT","BLOCK"].indexOf(r)<0)throw new Error("ERR syntax error");if(i.length%2!==0)throw new Error("ERR Unbalanced 'xread' list of streams: for each stream key an ID, '+', or '$' must be specified.");let o=Math.ceil(i.length/2),g=i.slice(0,o).map((k,A)=>[k,i[o+A]]),v=(k,A,R=1)=>{let O=this.data.get(k);return O?O.reduce((B,[L,...X])=>{let{polled:P}=this.data.get(`stream:${k}:${L}`);return!P&&(A==="$"||L>=A)&&B.length<R?(this.data.set(`stream:${k}:${L}`,{polled:!0}),B.concat([[L,...X]])):B},[]):[]},w=(k,A)=>k.reduce((R,[O,B])=>[[O,v(O,B,A)]].concat(R),[]);return r==="BLOCK"?new Promise(k=>{let A=0,R=()=>setTimeout(()=>{if(n>0&&A>=n)return k(null);let O=w(g,1);return O.find(B=>B[1]&&B[1].length>0)?k(O):(A+=100,R())},100);R()}):new Promise(k=>{let A=w(g,n);A.length===0&&k(null),k(A.slice().reverse())})}async function TCe(...e){let t=await P$.apply(this,e);return z(t)}var F$=K(()=>{b();Ne()});function q$(e,t,r,...n){if(!e||!r||!t)throw new Error("ERR wrong number of arguments for 'xrevrange' command");let[i,o]=n;if(i&&!o)throw new Error("ERR syntax error");if(!this.data.has(e))return[];let h=this.data.get(e).slice().reverse(),g=r==="-"?-1/0:r,v=t==="+"?1/0:t,w=h.filter(([k])=>g<=parseInt(k,10)&&v>=parseInt(k,10));return o?w.slice(0,o):w}function RCe(...e){let t=q$.apply(this,e);return z(t)}var L$=K(()=>{b();Ne()});function G$(e,...t){let r=[];for(;["NX","XX","CH","INCR"].includes(t[0]);)r.push(t.shift());let n=t.length;if(n%2!==0||n<1)throw new Error("ERR syntax error");let i=r.includes("NX"),o=r.includes("XX"),h=r.includes("CH"),g=r.includes("INCR");if(i&&o)throw new Error("XX and NX options at the same time are not compatible");if(g&&n>2)throw new Error("INCR option supports a single increment-element pair");if(!this.data.has(e)){if(o)return 0;this.data.set(e,new Map)}let v=this.data.get(e),w=0,k=0;for(let A=0;A<n;A+=2){let R=Number(t[A]),O=t[A+1];v.has(O)?i||(g&&(R+=Number(v.get(O).score)),v.set(O,{score:R,value:O}),k++):o||(v.set(O,{score:R,value:O}),w++)}return this.data.set(e,v),h?w+k:w}var OCe,K$=K(()=>{b();OCe=G$});function H$(e){let t=this.data.get(e);if(!t)return 0;if(!(t instanceof Map))throw new Error(`Key ${e} does not contain a sorted set`);return this.data.get(e).size}var ICe,z$=K(()=>{b();ICe=H$});var L_=I((Tp,S0)=>{b();var NCe=200,BCe="Expected a function",K4="__lodash_hash_undefined__",I_=1,T0=2,tY=1/0,rY=9007199254740991,M_="[object Arguments]",U4="[object Array]",nY="[object Boolean]",iY="[object Date]",sY="[object Error]",aY="[object Function]",CCe="[object GeneratorFunction]",A_="[object Map]",oY="[object Number]",E0="[object Object]",j$="[object Promise]",lY="[object RegExp]",E_="[object Set]",fY="[object String]",uY="[object Symbol]",D4="[object WeakMap]",cY="[object ArrayBuffer]",S_="[object DataView]",UCe="[object Float32Array]",DCe="[object Float64Array]",PCe="[object Int8Array]",FCe="[object Int16Array]",qCe="[object Int32Array]",LCe="[object Uint8Array]",GCe="[object Uint8ClampedArray]",KCe="[object Uint16Array]",HCe="[object Uint32Array]",zCe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jCe=/^\w*$/,VCe=/^\./,WCe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XCe=/[\\^$.*+?()[\]{}|]/g,$Ce=/\\(\\)?/g,YCe=/^\[object .+?Constructor\]$/,ZCe=/^(?:0|[1-9]\d*)$/,rr={};rr[UCe]=rr[DCe]=rr[PCe]=rr[FCe]=rr[qCe]=rr[LCe]=rr[GCe]=rr[KCe]=rr[HCe]=!0;rr[M_]=rr[U4]=rr[cY]=rr[nY]=rr[S_]=rr[iY]=rr[sY]=rr[aY]=rr[A_]=rr[oY]=rr[E0]=rr[lY]=rr[E_]=rr[fY]=rr[D4]=!1;var hY=typeof window=="object"&&window&&window.Object===Object&&window,JCe=typeof self=="object"&&self&&self.Object===Object&&self,_l=hY||JCe||Function("return this")(),dY=typeof Tp=="object"&&Tp&&!Tp.nodeType&&Tp,V$=dY&&typeof S0=="object"&&S0&&!S0.nodeType&&S0,QCe=V$&&V$.exports===dY,W$=QCe&&hY.process,X$=(function(){try{return W$&&W$.binding("util")}catch{}})(),$$=X$&&X$.isTypedArray;function Y$(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function eUe(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function tUe(e){return function(t){return t?.[e]}}function rUe(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}function nUe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function pY(e){return function(t){return e(t)}}function iUe(e,t){return e?.[t]}function P4(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function sUe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function aUe(e,t){return function(r){return e(t(r))}}function oUe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var lUe=Array.prototype,fUe=Function.prototype,N_=Object.prototype,B4=_l["__core-js_shared__"],Z$=(function(){var e=/[^.]+$/.exec(B4&&B4.keys&&B4.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),mY=fUe.toString,no=N_.hasOwnProperty,R0=N_.toString,uUe=RegExp("^"+mY.call(no).replace(XCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J$=_l.Symbol,Q$=_l.Uint8Array,cUe=N_.propertyIsEnumerable,hUe=lUe.splice,dUe=aUe(Object.keys,Object),F4=O0(_l,"DataView"),Rp=O0(_l,"Map"),q4=O0(_l,"Promise"),L4=O0(_l,"Set"),G4=O0(_l,"WeakMap"),Op=O0(Object,"create"),pUe=nu(F4),mUe=nu(Rp),yUe=nu(q4),gUe=nu(L4),_Ue=nu(G4),T_=J$?J$.prototype:void 0,C4=T_?T_.valueOf:void 0,eY=T_?T_.toString:void 0;function ru(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function vUe(){this.__data__=Op?Op(null):{}}function bUe(e){return this.has(e)&&delete this.__data__[e]}function xUe(e){var t=this.__data__;if(Op){var r=t[e];return r===K4?void 0:r}return no.call(t,e)?t[e]:void 0}function wUe(e){var t=this.__data__;return Op?t[e]!==void 0:no.call(t,e)}function kUe(e,t){var r=this.__data__;return r[e]=Op&&t===void 0?K4:t,this}ru.prototype.clear=vUe;ru.prototype.delete=bUe;ru.prototype.get=xUe;ru.prototype.has=wUe;ru.prototype.set=kUe;function so(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function MUe(){this.__data__=[]}function AUe(e){var t=this.__data__,r=B_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hUe.call(t,r,1),!0}function EUe(e){var t=this.__data__,r=B_(t,e);return r<0?void 0:t[r][1]}function SUe(e){return B_(this.__data__,e)>-1}function TUe(e,t){var r=this.__data__,n=B_(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}so.prototype.clear=MUe;so.prototype.delete=AUe;so.prototype.get=EUe;so.prototype.has=SUe;so.prototype.set=TUe;function ao(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function RUe(){this.__data__={hash:new ru,map:new(Rp||so),string:new ru}}function OUe(e){return C_(this,e).delete(e)}function IUe(e){return C_(this,e).get(e)}function NUe(e){return C_(this,e).has(e)}function BUe(e,t){return C_(this,e).set(e,t),this}ao.prototype.clear=RUe;ao.prototype.delete=OUe;ao.prototype.get=IUe;ao.prototype.has=NUe;ao.prototype.set=BUe;function R_(e){var t=-1,r=e?e.length:0;for(this.__data__=new ao;++t<r;)this.add(e[t])}function CUe(e){return this.__data__.set(e,K4),this}function UUe(e){return this.__data__.has(e)}R_.prototype.add=R_.prototype.push=CUe;R_.prototype.has=UUe;function ro(e){this.__data__=new so(e)}function DUe(){this.__data__=new so}function PUe(e){return this.__data__.delete(e)}function FUe(e){return this.__data__.get(e)}function qUe(e){return this.__data__.has(e)}function LUe(e,t){var r=this.__data__;if(r instanceof so){var n=r.__data__;if(!Rp||n.length<NCe-1)return n.push([e,t]),this;r=this.__data__=new ao(n)}return r.set(e,t),this}ro.prototype.clear=DUe;ro.prototype.delete=PUe;ro.prototype.get=FUe;ro.prototype.has=qUe;ro.prototype.set=LUe;function GUe(e,t){var r=io(e)||kY(e)?nUe(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||no.call(e,o))&&!(i&&(o=="length"||vY(o,n)))&&r.push(o);return r}function B_(e,t){for(var r=e.length;r--;)if(wY(e[r][0],t))return r;return-1}var KUe=oDe(zUe),HUe=lDe();function zUe(e,t){return e&&HUe(e,t,O_)}function yY(e,t){t=U_(t,e)?[t]:gY(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[D_(t[r++])];return r&&r==n?e:void 0}function jUe(e){return R0.call(e)}function VUe(e,t){return e!=null&&t in Object(e)}function H4(e,t,r,n,i){return e===t?!0:e==null||t==null||!F_(e)&&!q_(t)?e!==e&&t!==t:WUe(e,t,H4,r,n,i)}function WUe(e,t,r,n,i,o){var h=io(e),g=io(t),v=U4,w=U4;h||(v=gl(e),v=v==M_?E0:v),g||(w=gl(t),w=w==M_?E0:w);var k=v==E0&&!P4(e),A=w==E0&&!P4(t),R=v==w;if(R&&!k)return o||(o=new ro),h||vDe(e)?_Y(e,t,r,n,i,o):fDe(e,t,v,r,n,i,o);if(!(i&T0)){var O=k&&no.call(e,"__wrapped__"),B=A&&no.call(t,"__wrapped__");if(O||B){var L=O?e.value():e,X=B?t.value():t;return o||(o=new ro),r(L,X,n,i,o)}}return R?(o||(o=new ro),uDe(e,t,r,n,i,o)):!1}function XUe(e,t,r,n){var i=r.length,o=i,h=!n;if(e==null)return!o;for(e=Object(e);i--;){var g=r[i];if(h&&g[2]?g[1]!==e[g[0]]:!(g[0]in e))return!1}for(;++i<o;){g=r[i];var v=g[0],w=e[v],k=g[1];if(h&&g[2]){if(w===void 0&&!(v in e))return!1}else{var A=new ro;if(n)var R=n(w,k,v,e,t,A);if(!(R===void 0?H4(k,w,n,I_|T0,A):R))return!1}}return!0}function $Ue(e){if(!F_(e)||pDe(e))return!1;var t=MY(e)||P4(e)?uUe:YCe;return t.test(nu(e))}function YUe(e){return q_(e)&&j4(e.length)&&!!rr[R0.call(e)]}function ZUe(e){return typeof e=="function"?e:e==null?AY:typeof e=="object"?io(e)?tDe(e[0],e[1]):eDe(e):kDe(e)}function JUe(e){if(!mDe(e))return dUe(e);var t=[];for(var r in Object(e))no.call(e,r)&&r!="constructor"&&t.push(r);return t}function QUe(e,t){var r=-1,n=P_(e)?Array(e.length):[];return KUe(e,function(i,o,h){n[++r]=t(i,o,h)}),n}function eDe(e){var t=cDe(e);return t.length==1&&t[0][2]?xY(t[0][0],t[0][1]):function(r){return r===e||XUe(r,e,t)}}function tDe(e,t){return U_(e)&&bY(t)?xY(D_(e),t):function(r){var n=xDe(r,e);return n===void 0&&n===t?wDe(r,e):H4(t,n,void 0,I_|T0)}}function rDe(e,t,r){var n=-1;t=Y$(t.length?t:[AY],pY(ZUe));var i=QUe(e,function(o,h,g){var v=Y$(t,function(w){return w(o)});return{criteria:v,index:++n,value:o}});return rUe(i,function(o,h){return aDe(o,h,r)})}function nDe(e){return function(t){return yY(t,e)}}function iDe(e){if(typeof e=="string")return e;if(Ip(e))return eY?eY.call(e):"";var t=e+"";return t=="0"&&1/e==-tY?"-0":t}function gY(e){return io(e)?e:yDe(e)}function sDe(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,o=Ip(e),h=t!==void 0,g=t===null,v=t===t,w=Ip(t);if(!g&&!w&&!o&&e>t||o&&h&&v&&!g&&!w||n&&h&&v||!r&&v||!i)return 1;if(!n&&!o&&!w&&e<t||w&&r&&i&&!n&&!o||g&&r&&i||!h&&i||!v)return-1}return 0}function aDe(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,h=i.length,g=r.length;++n<h;){var v=sDe(i[n],o[n]);if(v){if(n>=g)return v;var w=r[n];return v*(w=="desc"?-1:1)}}return e.index-t.index}function oDe(e,t){return function(r,n){if(r==null)return r;if(!P_(r))return e(r,n);for(var i=r.length,o=t?i:-1,h=Object(r);(t?o--:++o<i)&&n(h[o],o,h)!==!1;);return r}}function lDe(e){return function(t,r,n){for(var i=-1,o=Object(t),h=n(t),g=h.length;g--;){var v=h[e?g:++i];if(r(o[v],v,o)===!1)break}return t}}function _Y(e,t,r,n,i,o){var h=i&T0,g=e.length,v=t.length;if(g!=v&&!(h&&v>g))return!1;var w=o.get(e);if(w&&o.get(t))return w==t;var k=-1,A=!0,R=i&I_?new R_:void 0;for(o.set(e,t),o.set(t,e);++k<g;){var O=e[k],B=t[k];if(n)var L=h?n(B,O,k,t,e,o):n(O,B,k,e,t,o);if(L!==void 0){if(L)continue;A=!1;break}if(R){if(!eUe(t,function(X,P){if(!R.has(P)&&(O===X||r(O,X,n,i,o)))return R.add(P)})){A=!1;break}}else if(!(O===B||r(O,B,n,i,o))){A=!1;break}}return o.delete(e),o.delete(t),A}function fDe(e,t,r,n,i,o,h){switch(r){case S_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case cY:return!(e.byteLength!=t.byteLength||!n(new Q$(e),new Q$(t)));case nY:case iY:case oY:return wY(+e,+t);case sY:return e.name==t.name&&e.message==t.message;case lY:case fY:return e==t+"";case A_:var g=sUe;case E_:var v=o&T0;if(g||(g=oUe),e.size!=t.size&&!v)return!1;var w=h.get(e);if(w)return w==t;o|=I_,h.set(e,t);var k=_Y(g(e),g(t),n,i,o,h);return h.delete(e),k;case uY:if(C4)return C4.call(e)==C4.call(t)}return!1}function uDe(e,t,r,n,i,o){var h=i&T0,g=O_(e),v=g.length,w=O_(t),k=w.length;if(v!=k&&!h)return!1;for(var A=v;A--;){var R=g[A];if(!(h?R in t:no.call(t,R)))return!1}var O=o.get(e);if(O&&o.get(t))return O==t;var B=!0;o.set(e,t),o.set(t,e);for(var L=h;++A<v;){R=g[A];var X=e[R],P=t[R];if(n)var H=h?n(P,X,R,t,e,o):n(X,P,R,e,t,o);if(!(H===void 0?X===P||r(X,P,n,i,o):H)){B=!1;break}L||(L=R=="constructor")}if(B&&!L){var D=e.constructor,Se=t.constructor;D!=Se&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof Se=="function"&&Se instanceof Se)&&(B=!1)}return o.delete(e),o.delete(t),B}function C_(e,t){var r=e.__data__;return dDe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function cDe(e){for(var t=O_(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,bY(i)]}return t}function O0(e,t){var r=iUe(e,t);return $Ue(r)?r:void 0}var gl=jUe;(F4&&gl(new F4(new ArrayBuffer(1)))!=S_||Rp&&gl(new Rp)!=A_||q4&&gl(q4.resolve())!=j$||L4&&gl(new L4)!=E_||G4&&gl(new G4)!=D4)&&(gl=function(e){var t=R0.call(e),r=t==E0?e.constructor:void 0,n=r?nu(r):void 0;if(n)switch(n){case pUe:return S_;case mUe:return A_;case yUe:return j$;case gUe:return E_;case _Ue:return D4}return t});function hDe(e,t,r){t=U_(t,e)?[t]:gY(t);for(var n,i=-1,h=t.length;++i<h;){var o=D_(t[i]);if(!(n=e!=null&&r(e,o)))break;e=e[o]}if(n)return n;var h=e?e.length:0;return!!h&&j4(h)&&vY(o,h)&&(io(e)||kY(e))}function vY(e,t){return t=t??rY,!!t&&(typeof e=="number"||ZCe.test(e))&&e>-1&&e%1==0&&e<t}function U_(e,t){if(io(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ip(e)?!0:jCe.test(e)||!zCe.test(e)||t!=null&&e in Object(t)}function dDe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pDe(e){return!!Z$&&Z$ in e}function mDe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||N_;return e===r}function bY(e){return e===e&&!F_(e)}function xY(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var yDe=z4(function(e){e=bDe(e);var t=[];return VCe.test(e)&&t.push(""),e.replace(WCe,function(r,n,i,o){t.push(i?o.replace($Ce,"$1"):n||r)}),t});function D_(e){if(typeof e=="string"||Ip(e))return e;var t=e+"";return t=="0"&&1/e==-tY?"-0":t}function nu(e){if(e!=null){try{return mY.call(e)}catch{}try{return e+""}catch{}}return""}function gDe(e,t,r,n){return e==null?[]:(io(t)||(t=t==null?[]:[t]),r=n?void 0:r,io(r)||(r=r==null?[]:[r]),rDe(e,t,r))}function z4(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(BCe);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var h=e.apply(this,n);return r.cache=o.set(i,h),h};return r.cache=new(z4.Cache||ao),r}z4.Cache=ao;function wY(e,t){return e===t||e!==e&&t!==t}function kY(e){return _De(e)&&no.call(e,"callee")&&(!cUe.call(e,"callee")||R0.call(e)==M_)}var io=Array.isArray;function P_(e){return e!=null&&j4(e.length)&&!MY(e)}function _De(e){return q_(e)&&P_(e)}function MY(e){var t=F_(e)?R0.call(e):"";return t==aY||t==CCe}function j4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rY}function F_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function q_(e){return!!e&&typeof e=="object"}function Ip(e){return typeof e=="symbol"||q_(e)&&R0.call(e)==uY}var vDe=$$?pY($$):YUe;function bDe(e){return e==null?"":iDe(e)}function xDe(e,t,r){var n=e==null?void 0:yY(e,t);return n===void 0?r:n}function wDe(e,t){return e!=null&&hDe(e,t,VUe)}function O_(e){return P_(e)?GUe(e):JUe(e)}function AY(e){return e}function kDe(e){return U_(e)?tUe(D_(e)):nDe(e)}S0.exports=gDe});function Cp(e,t,r){return e.slice(t,r===-1?void 0:r+1)}function MDe(e,t,r){return t<0?t===-1?r.length:-t>r.length?0:r.length+t:e+t}function ADe(e,t,r){if(r===0)return[];let n=MDe(t,r,e);return e.slice(t,n)}function Bp(e){let t=`${e}`,r=!1;if(t[0]==="(")t=t.substr(1,t.length),r=!0;else{if(t==="-inf")return{value:-1/0,isStrict:!0};if(t==="+inf")return{value:1/0,isStrict:!0}}return{value:parseInt(t,10),isStrict:r}}function EY(e){if(e==="-")return{value:"-",isExclusive:!1};if(e==="+")return{value:"+",isExclusive:!1};let t=e,r=!1;if(t[0]==="(")t=t.substr(1,t.length),r=!0;else if(t[0]==="[")t=t.substr(1,t.length);else throw new Error("ERR synax error");return{value:t,isExclusive:r}}function W4(e,t){return r=>!(r.score<e.value||e.isStrict&&r.score===e.value||r.score>t.value||t.isStrict&&r.score===t.value)}function EDe(e,t){return r=>!(e.value!=="-"&&r.value<e.value||e.isExclusive&&r.value===e.value||t.value!=="+"&&r.value>t.value||t.isExclusive&&r.value===t.value)}function Np(e,t){return e.toString().toLowerCase()===t.toString().toLowerCase()}function zi(e,t=0,r=!1,n=null,i=null){let o=e[t],h=this.data.get(o);if(!h)return[];if(this.data.has(o)&&!(this.data.get(o)instanceof Map))throw new Error("WRONGTYPE Operation against a key holding the wrong kind of value");let g=!1,v=0,w=null,k=i||SDe,A=n||V4,R,O,B=t+1,L=t+2;for(let D=t+3;D<e.length;D++){let Se=e.length-D-1;if(!r&&Np(e[D],"withscores"))g=1;else if(Np(e[D],"limit")&&Se>=2){if(v=parseInt(e[D+1],10),w=parseInt(e[D+2],10),Number.isNaN(v)||Number.isNaN(w))throw new Error("ERR syntax error");D+=2}else if(!i&&Np(e[D],"rev"))k=lo;else if(!n&&Np(e[D],"bylex"))A=oo;else if(!n&&Np(e[D],"byscore"))A=vl;else throw new Error("ERR syntax error")}if(w!==null&&A===V4)throw new Error("ERR syntax error, LIMIT is only supported in combination with either BYSCORE or BYLEX");if(g&&A===oo)throw new Error("ERR syntax error, WITHSCORES not supported in combination with BYLEX");if(k===lo&&(A===vl||A===oo)){let D=L;L=B,B=D}switch(A){case V4:if(R=parseInt(e[B],10),O=parseInt(e[L],10),Number.isNaN(R)||Number.isNaN(O))throw new Error("ERR syntax error ");break;case vl:R=Bp(e[B]),O=Bp(e[L]);break;case oo:R=EY(e[B]),O=EY(e[L]);break;default:throw new Error("ERR syntax error")}let X;k===lo&&(X=["desc","desc"]);let P,H=Array.from(h.values());if(A===vl){let D=H.filter(W4(R,O));P=(0,G_.default)(D,["score","value"],X)}else if(A===oo){let D=H.filter(EDe(R,O));P=(0,G_.default)(D,["score","value"],X)}else P=Cp((0,G_.default)(H,["score","value"],X),R,O);return w!==null&&(P=ADe(P,v,w)),g?P.flatMap(D=>[D.value,`${D.score}`]):P.map(D=>D.value)}var G_,lo,SDe,V4,oo,vl,ia=K(()=>{b();G_=mt(L_());lo="reverse",SDe="forward",V4="rank",oo="lex",vl="score"});function SY(e,t,r){let n=this.data.get(e);if(!n||this.data.has(e)&&!(this.data.get(e)instanceof Map))return 0;let i=Bp(t),o=Bp(r);return Array.from(n.values()).filter(W4(i,o)).length}var TDe,TY=K(()=>{b();ia();TDe=SY});function fo(...e){return zi.call(this,e)}function RDe(...e){let t=fo.apply(this,e);return z(t)}var K_=K(()=>{b();Ne();ia()});function H_(e,t){let r=this.data.get(e);if(!r||!(r instanceof Map))return null;let n=r.get(t);return n?n.score.toString():null}function ODe(...e){let t=H_.apply(this,e);return z(t)}var X4=K(()=>{b();Ne()});function RY(e,...t){if(t.length===0)throw new Error("ERR wrong number of arguments for 'zdiff' command");let[r,n]=t[t.length-1]==="WITHSCORES"?[t.slice(0,-1),!0]:[t,!1];if((Number.isInteger(e)?e:parseInt(e,10))!==r.length)throw new Error(`ERR numkeys must match the number of keys. numkeys===${e} keys but got ${r.length} keys`);let i=fo.call(this,r[0],0,-1),o=new Set(r.slice(1).map(g=>fo.call(this,g,0,-1)).flat()),h=i.filter(g=>!o.has(g));return n?h.map(g=>[g,H_.call(this,r[0],g)]).flat():h}function IDe(e,...t){let r=RY.apply(this,e,t);return z(r)}var OY=K(()=>{b();Ne();K_();X4()});function IY(e,t,r){this.data.has(e)||this.data.set(e,new Map);let n=this.data.get(e),i=0;return n.has(r)&&({score:i}=n.get(r)),i+=parseFloat(t),n.set(r,{value:r,score:i}),this.data.set(e,n),i.toString()}function NDe(...e){let t=IY.apply(this,e);return z(t)}var NY=K(()=>{b();Ne()});var _Z=I((Up,N0)=>{b();var BDe=200,CDe="Expected a function",sA="__lodash_hash_undefined__",$_=1,B0=2,jY=1/0,VY=9007199254740991,z_="[object Arguments]",Z4="[object Array]",WY="[object Boolean]",XY="[object Date]",$Y="[object Error]",YY="[object Function]",UDe="[object GeneratorFunction]",j_="[object Map]",ZY="[object Number]",I0="[object Object]",BY="[object Promise]",JY="[object RegExp]",V_="[object Set]",QY="[object String]",eZ="[object Symbol]",J4="[object WeakMap]",tZ="[object ArrayBuffer]",W_="[object DataView]",DDe="[object Float32Array]",PDe="[object Float64Array]",FDe="[object Int8Array]",qDe="[object Int16Array]",LDe="[object Int32Array]",GDe="[object Uint8Array]",KDe="[object Uint8ClampedArray]",HDe="[object Uint16Array]",zDe="[object Uint32Array]",jDe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VDe=/^\w*$/,WDe=/^\./,XDe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$De=/[\\^$.*+?()[\]{}|]/g,YDe=/\\(\\)?/g,ZDe=/^\[object .+?Constructor\]$/,JDe=/^(?:0|[1-9]\d*)$/,nr={};nr[DDe]=nr[PDe]=nr[FDe]=nr[qDe]=nr[LDe]=nr[GDe]=nr[KDe]=nr[HDe]=nr[zDe]=!0;nr[z_]=nr[Z4]=nr[tZ]=nr[WY]=nr[W_]=nr[XY]=nr[$Y]=nr[YY]=nr[j_]=nr[ZY]=nr[I0]=nr[JY]=nr[V_]=nr[QY]=nr[J4]=!1;var rZ=typeof window=="object"&&window&&window.Object===Object&&window,QDe=typeof self=="object"&&self&&self.Object===Object&&self,xl=rZ||QDe||Function("return this")(),nZ=typeof Up=="object"&&Up&&!Up.nodeType&&Up,CY=nZ&&typeof N0=="object"&&N0&&!N0.nodeType&&N0,ePe=CY&&CY.exports===nZ,UY=ePe&&rZ.process,DY=(function(){try{return UY&&UY.binding("util")}catch{}})(),PY=DY&&DY.isTypedArray;function tPe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function rPe(e,t){var r=e?e.length:0;return!!r&&aPe(e,t,0)>-1}function nPe(e,t,r){for(var n=-1,i=e?e.length:0;++n<i;)if(r(t,e[n]))return!0;return!1}function iZ(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function iPe(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function sPe(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function aPe(e,t,r){if(t!==t)return sPe(e,oPe,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function oPe(e){return e!==e}function lPe(e){return function(t){return t?.[e]}}function fPe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function sZ(e){return function(t){return e(t)}}function FY(e,t){return e.has(t)}function uPe(e,t){return e?.[t]}function Q4(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function cPe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function hPe(e,t){return function(r){return e(t(r))}}function dPe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var pPe=Array.prototype,mPe=Function.prototype,Y_=Object.prototype,$4=xl["__core-js_shared__"],qY=(function(){var e=/[^.]+$/.exec($4&&$4.keys&&$4.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),aZ=mPe.toString,co=Y_.hasOwnProperty,C0=Y_.toString,yPe=RegExp("^"+aZ.call(co).replace($De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),LY=xl.Symbol,GY=xl.Uint8Array,gPe=Y_.propertyIsEnumerable,_Pe=pPe.splice,vPe=hPe(Object.keys,Object),KY=Math.max,bPe=Math.min,eA=U0(xl,"DataView"),Dp=U0(xl,"Map"),tA=U0(xl,"Promise"),rA=U0(xl,"Set"),nA=U0(xl,"WeakMap"),Pp=U0(Object,"create"),xPe=au(eA),wPe=au(Dp),kPe=au(tA),MPe=au(rA),APe=au(nA),X_=LY?LY.prototype:void 0,Y4=X_?X_.valueOf:void 0,HY=X_?X_.toString:void 0;function iu(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function EPe(){this.__data__=Pp?Pp(null):{}}function SPe(e){return this.has(e)&&delete this.__data__[e]}function TPe(e){var t=this.__data__;if(Pp){var r=t[e];return r===sA?void 0:r}return co.call(t,e)?t[e]:void 0}function RPe(e){var t=this.__data__;return Pp?t[e]!==void 0:co.call(t,e)}function OPe(e,t){var r=this.__data__;return r[e]=Pp&&t===void 0?sA:t,this}iu.prototype.clear=EPe;iu.prototype.delete=SPe;iu.prototype.get=TPe;iu.prototype.has=RPe;iu.prototype.set=OPe;function ho(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function IPe(){this.__data__=[]}function NPe(e){var t=this.__data__,r=Z_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():_Pe.call(t,r,1),!0}function BPe(e){var t=this.__data__,r=Z_(t,e);return r<0?void 0:t[r][1]}function CPe(e){return Z_(this.__data__,e)>-1}function UPe(e,t){var r=this.__data__,n=Z_(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}ho.prototype.clear=IPe;ho.prototype.delete=NPe;ho.prototype.get=BPe;ho.prototype.has=CPe;ho.prototype.set=UPe;function po(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function DPe(){this.__data__={hash:new iu,map:new(Dp||ho),string:new iu}}function PPe(e){return J_(this,e).delete(e)}function FPe(e){return J_(this,e).get(e)}function qPe(e){return J_(this,e).has(e)}function LPe(e,t){return J_(this,e).set(e,t),this}po.prototype.clear=DPe;po.prototype.delete=PPe;po.prototype.get=FPe;po.prototype.has=qPe;po.prototype.set=LPe;function Fp(e){var t=-1,r=e?e.length:0;for(this.__data__=new po;++t<r;)this.add(e[t])}function GPe(e){return this.__data__.set(e,sA),this}function KPe(e){return this.__data__.has(e)}Fp.prototype.add=Fp.prototype.push=GPe;Fp.prototype.has=KPe;function uo(e){this.__data__=new ho(e)}function HPe(){this.__data__=new ho}function zPe(e){return this.__data__.delete(e)}function jPe(e){return this.__data__.get(e)}function VPe(e){return this.__data__.has(e)}function WPe(e,t){var r=this.__data__;if(r instanceof ho){var n=r.__data__;if(!Dp||n.length<BDe-1)return n.push([e,t]),this;r=this.__data__=new po(n)}return r.set(e,t),this}uo.prototype.clear=HPe;uo.prototype.delete=zPe;uo.prototype.get=jPe;uo.prototype.has=VPe;uo.prototype.set=WPe;function XPe(e,t){var r=su(e)||pZ(e)?fPe(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||co.call(e,o))&&!(i&&(o=="length"||uZ(o,n)))&&r.push(o);return r}function Z_(e,t){for(var r=e.length;r--;)if(dZ(e[r][0],t))return r;return-1}function oZ(e,t){t=Q_(t,e)?[t]:lZ(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ev(t[r++])];return r&&r==n?e:void 0}function $Pe(e){return C0.call(e)}function YPe(e,t){return e!=null&&t in Object(e)}function ZPe(e,t,r){for(var n=r?nPe:rPe,i=e[0].length,o=e.length,h=o,g=Array(o),v=1/0,w=[];h--;){var k=e[h];h&&t&&(k=iZ(k,sZ(t))),v=bPe(k.length,v),g[h]=!r&&(t||i>=120&&k.length>=120)?new Fp(h&&k):void 0}k=e[0];var A=-1,R=g[0];e:for(;++A<i&&w.length<v;){var O=k[A],B=t?t(O):O;if(O=r||O!==0?O:0,!(R?FY(R,B):n(w,B,r))){for(h=o;--h;){var L=g[h];if(!(L?FY(L,B):n(e[h],B,r)))continue e}R&&R.push(B),w.push(O)}}return w}function aA(e,t,r,n,i){return e===t?!0:e==null||t==null||!tv(e)&&!rv(t)?e!==e&&t!==t:JPe(e,t,aA,r,n,i)}function JPe(e,t,r,n,i,o){var h=su(e),g=su(t),v=Z4,w=Z4;h||(v=bl(e),v=v==z_?I0:v),g||(w=bl(t),w=w==z_?I0:w);var k=v==I0&&!Q4(e),A=w==I0&&!Q4(t),R=v==w;if(R&&!k)return o||(o=new uo),h||vFe(e)?fZ(e,t,r,n,i,o):uFe(e,t,v,r,n,i,o);if(!(i&B0)){var O=k&&co.call(e,"__wrapped__"),B=A&&co.call(t,"__wrapped__");if(O||B){var L=O?e.value():e,X=B?t.value():t;return o||(o=new uo),r(L,X,n,i,o)}}return R?(o||(o=new uo),cFe(e,t,r,n,i,o)):!1}function QPe(e,t,r,n){var i=r.length,o=i,h=!n;if(e==null)return!o;for(e=Object(e);i--;){var g=r[i];if(h&&g[2]?g[1]!==e[g[0]]:!(g[0]in e))return!1}for(;++i<o;){g=r[i];var v=g[0],w=e[v],k=g[1];if(h&&g[2]){if(w===void 0&&!(v in e))return!1}else{var A=new uo;if(n)var R=n(w,k,v,e,t,A);if(!(R===void 0?aA(k,w,n,$_|B0,A):R))return!1}}return!0}function eFe(e){if(!tv(e)||mFe(e))return!1;var t=gZ(e)||Q4(e)?yPe:ZDe;return t.test(au(e))}function tFe(e){return rv(e)&&lA(e.length)&&!!nr[C0.call(e)]}function rFe(e){return typeof e=="function"?e:e==null?kFe:typeof e=="object"?su(e)?sFe(e[0],e[1]):iFe(e):MFe(e)}function nFe(e){if(!yFe(e))return vPe(e);var t=[];for(var r in Object(e))co.call(e,r)&&r!="constructor"&&t.push(r);return t}function iFe(e){var t=hFe(e);return t.length==1&&t[0][2]?hZ(t[0][0],t[0][1]):function(r){return r===e||QPe(r,e,t)}}function sFe(e,t){return Q_(e)&&cZ(t)?hZ(ev(e),t):function(r){var n=xFe(r,e);return n===void 0&&n===t?wFe(r,e):aA(t,n,void 0,$_|B0)}}function aFe(e){return function(t){return oZ(t,e)}}function oFe(e,t){return t=KY(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=KY(r.length-t,0),o=Array(i);++n<i;)o[n]=r[t+n];n=-1;for(var h=Array(t+1);++n<t;)h[n]=r[n];return h[t]=o,tPe(e,this,h)}}function lFe(e){if(typeof e=="string")return e;if(fA(e))return HY?HY.call(e):"";var t=e+"";return t=="0"&&1/e==-jY?"-0":t}function fFe(e){return yZ(e)?e:[]}function lZ(e){return su(e)?e:gFe(e)}function fZ(e,t,r,n,i,o){var h=i&B0,g=e.length,v=t.length;if(g!=v&&!(h&&v>g))return!1;var w=o.get(e);if(w&&o.get(t))return w==t;var k=-1,A=!0,R=i&$_?new Fp:void 0;for(o.set(e,t),o.set(t,e);++k<g;){var O=e[k],B=t[k];if(n)var L=h?n(B,O,k,t,e,o):n(O,B,k,e,t,o);if(L!==void 0){if(L)continue;A=!1;break}if(R){if(!iPe(t,function(X,P){if(!R.has(P)&&(O===X||r(O,X,n,i,o)))return R.add(P)})){A=!1;break}}else if(!(O===B||r(O,B,n,i,o))){A=!1;break}}return o.delete(e),o.delete(t),A}function uFe(e,t,r,n,i,o,h){switch(r){case W_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tZ:return!(e.byteLength!=t.byteLength||!n(new GY(e),new GY(t)));case WY:case XY:case ZY:return dZ(+e,+t);case $Y:return e.name==t.name&&e.message==t.message;case JY:case QY:return e==t+"";case j_:var g=cPe;case V_:var v=o&B0;if(g||(g=dPe),e.size!=t.size&&!v)return!1;var w=h.get(e);if(w)return w==t;o|=$_,h.set(e,t);var k=fZ(g(e),g(t),n,i,o,h);return h.delete(e),k;case eZ:if(Y4)return Y4.call(e)==Y4.call(t)}return!1}function cFe(e,t,r,n,i,o){var h=i&B0,g=iA(e),v=g.length,w=iA(t),k=w.length;if(v!=k&&!h)return!1;for(var A=v;A--;){var R=g[A];if(!(h?R in t:co.call(t,R)))return!1}var O=o.get(e);if(O&&o.get(t))return O==t;var B=!0;o.set(e,t),o.set(t,e);for(var L=h;++A<v;){R=g[A];var X=e[R],P=t[R];if(n)var H=h?n(P,X,R,t,e,o):n(X,P,R,e,t,o);if(!(H===void 0?X===P||r(X,P,n,i,o):H)){B=!1;break}L||(L=R=="constructor")}if(B&&!L){var D=e.constructor,Se=t.constructor;D!=Se&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof Se=="function"&&Se instanceof Se)&&(B=!1)}return o.delete(e),o.delete(t),B}function J_(e,t){var r=e.__data__;return pFe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function hFe(e){for(var t=iA(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,cZ(i)]}return t}function U0(e,t){var r=uPe(e,t);return eFe(r)?r:void 0}var bl=$Pe;(eA&&bl(new eA(new ArrayBuffer(1)))!=W_||Dp&&bl(new Dp)!=j_||tA&&bl(tA.resolve())!=BY||rA&&bl(new rA)!=V_||nA&&bl(new nA)!=J4)&&(bl=function(e){var t=C0.call(e),r=t==I0?e.constructor:void 0,n=r?au(r):void 0;if(n)switch(n){case xPe:return W_;case wPe:return j_;case kPe:return BY;case MPe:return V_;case APe:return J4}return t});function dFe(e,t,r){t=Q_(t,e)?[t]:lZ(t);for(var n,i=-1,h=t.length;++i<h;){var o=ev(t[i]);if(!(n=e!=null&&r(e,o)))break;e=e[o]}if(n)return n;var h=e?e.length:0;return!!h&&lA(h)&&uZ(o,h)&&(su(e)||pZ(e))}function uZ(e,t){return t=t??VY,!!t&&(typeof e=="number"||JDe.test(e))&&e>-1&&e%1==0&&e<t}function Q_(e,t){if(su(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fA(e)?!0:VDe.test(e)||!jDe.test(e)||t!=null&&e in Object(t)}function pFe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function mFe(e){return!!qY&&qY in e}function yFe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Y_;return e===r}function cZ(e){return e===e&&!tv(e)}function hZ(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var gFe=oA(function(e){e=bFe(e);var t=[];return WDe.test(e)&&t.push(""),e.replace(XDe,function(r,n,i,o){t.push(i?o.replace(YDe,"$1"):n||r)}),t});function ev(e){if(typeof e=="string"||fA(e))return e;var t=e+"";return t=="0"&&1/e==-jY?"-0":t}function au(e){if(e!=null){try{return aZ.call(e)}catch{}try{return e+""}catch{}}return""}var _Fe=oFe(function(e){var t=zY(e),r=iZ(e,fFe);return t===zY(r)?t=void 0:r.pop(),r.length&&r[0]===e[0]?ZPe(r,rFe(t,2)):[]});function zY(e){var t=e?e.length:0;return t?e[t-1]:void 0}function oA(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(CDe);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var h=e.apply(this,n);return r.cache=o.set(i,h),h};return r.cache=new(oA.Cache||po),r}oA.Cache=po;function dZ(e,t){return e===t||e!==e&&t!==t}function pZ(e){return yZ(e)&&co.call(e,"callee")&&(!gPe.call(e,"callee")||C0.call(e)==z_)}var su=Array.isArray;function mZ(e){return e!=null&&lA(e.length)&&!gZ(e)}function yZ(e){return rv(e)&&mZ(e)}function gZ(e){var t=tv(e)?C0.call(e):"";return t==YY||t==UDe}function lA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=VY}function tv(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function rv(e){return!!e&&typeof e=="object"}function fA(e){return typeof e=="symbol"||rv(e)&&C0.call(e)==eZ}var vFe=PY?sZ(PY):tFe;function bFe(e){return e==null?"":lFe(e)}function xFe(e,t,r){var n=e==null?void 0:oZ(e,t);return n===void 0?r:n}function wFe(e,t){return e!=null&&dFe(e,t,YPe)}function iA(e){return mZ(e)?XPe(e):nFe(e)}function kFe(e){return e}function MFe(e){return Q_(e)?lPe(ev(e)):aFe(e)}N0.exports=_Fe});function bZ(e,t,...r){let n=[];if(parseInt(t,10)!==r.length)throw new Error("ERR syntax error");for(let g=0;g<r.length;g+=1){if(!this.data.has(r[g])||!(this.data.get(r[g])instanceof Map))return 0;n.push(this.data.get(r[g]))}let i=n.map(g=>JSON.parse(JSON.stringify(Array.from(g.values())))),o=(0,vZ.default)(...i,"value");if(o.length===0)return this.data.delete(e),0;for(let g=0;g<o.length;g+=1){let v=0;for(let w=0;w<n.length;w+=1)n[w].get(o[g].value)&&(v+=n[w].get(o[g].value).score);o[g].score=v,o[g]=[o[g].value,o[g]]}let h=new Map(o);return this.data.set(e,h),o.length}var vZ,AFe,xZ=K(()=>{b();vZ=mt(_Z());AFe=bZ});function wZ(e,...t){let r=this.data.get(e);return!r||!(r instanceof Map)?Array(t.length).fill(null):t.map(n=>{let i=r.get(n);return i?i.score.toString():null})}function EFe(...e){let t=wZ.apply(this,e);return z(t)}var kZ=K(()=>{b();Ne()});function AZ(e,t=1){let r=this.data.get(e);if(r==null||!(r instanceof Map))return[];let n=Cp((0,MZ.default)(Array.from(r.values()),["score","value"]),-t,-1).reverse();return n.forEach(i=>{r.delete(i.value)}),this.data.set(e,r),n.flatMap(i=>[i.value,i.score])}function SFe(...e){let t=AZ.apply(this,e);return z(t)}var MZ,EZ=K(()=>{b();MZ=mt(L_());Ne();ia()});function TZ(e,t=1){let r=this.data.get(e);if(r==null||!(r instanceof Map))return[];let n=Cp((0,SZ.default)(Array.from(r.values()),["score","value"]),0,t-1);return n.forEach(i=>{r.delete(i.value)}),this.data.set(e,r),n.flatMap(i=>[i.value,i.score])}function TFe(...e){let t=TZ.apply(this,e);return z(t)}var SZ,RZ=K(()=>{b();SZ=mt(L_());Ne();ia()});function OZ(...e){return zi.call(this,e,0,!1,oo)}function RFe(...e){let t=OZ.apply(this,e);return z(t)}var IZ=K(()=>{b();Ne();ia()});function NZ(...e){return zi.call(this,e,0,!1,vl)}function OFe(...e){let t=NZ.apply(this,e);return z(t)}var BZ=K(()=>{b();Ne();ia()});function CZ(e,t){let n=fo.call(this,e,0,-1).indexOf(t);return n>=0?n:null}var IFe,UZ=K(()=>{b();K_();IFe=CZ});function DZ(e,...t){let r=this.data.get(e);if(!r)return 0;let n=0;return t.forEach(i=>{r.delete(i)&&n++}),this.data.set(e,r),n}var NFe,PZ=K(()=>{b();NFe=DZ});function FZ(e,t,r){let n=fo.call(this,e,t,r);if(!this.data.has(e))return 0;let i=this.data.get(e);return n.forEach(o=>{i.delete(o)}),this.data.set(e,i),n.length}var BFe,qZ=K(()=>{b();xr();BFe=FZ});function LZ(e,t,r){let n=nv.call(this,e,r,t);if(!this.data.has(e))return 0;let i=this.data.get(e);return n.forEach(o=>{i.delete(o)}),this.data.set(e,i),n.length}var CFe,GZ=K(()=>{b();xr();CFe=LZ});function iv(...e){return zi.call(this,e,0,!1,null,lo)}function UFe(...e){let t=iv.apply(this,e);return z(t)}var uA=K(()=>{b();Ne();ia()});function KZ(...e){return zi.call(this,e,0,!1,oo,lo)}function DFe(...e){let t=KZ.apply(this,e);return z(t)}var HZ=K(()=>{b();Ne();ia()});function nv(...e){return zi.call(this,e,0,!1,vl,lo)}function PFe(...e){let t=nv.apply(this,e);return z(t)}var zZ=K(()=>{b();Ne();ia()});function jZ(e,t){let n=iv.call(this,e,0,-1).indexOf(t);return n>=0?n:null}var FFe,VZ=K(()=>{b();uA();FFe=jZ});function WZ(e,t,...r){if(!this.data.has(e))return["0",[]];let n=[];this.data.get(e).forEach(({score:h,value:g})=>{n.push([g,h.toString()])});let[i,o]=yl(n,1,t,...r);return[i,[].concat(...o)]}function qFe(...e){let t=WZ.apply(this,e);return z(t)}var XZ=K(()=>{b();Ne();_p()});var Fa={};yA(Fa,{append:()=>Z8,appendBuffer:()=>Ine,asking:()=>e5,askingBuffer:()=>Nne,auth:()=>r5,authBuffer:()=>Bne,bgrewriteaof:()=>i5,bgrewriteaofBuffer:()=>Cne,bgsave:()=>a5,bgsaveBuffer:()=>Une,bitcount:()=>l5,bitcountBuffer:()=>Dne,brpoplpush:()=>u5,brpoplpushBuffer:()=>Pne,cluster:()=>h5,clusterBuffer:()=>Fne,command:()=>m5,commandBuffer:()=>Gne,config:()=>g5,configBuffer:()=>Kne,connect:()=>Hne,customCommand:()=>Ic,dbsize:()=>b5,dbsizeBuffer:()=>zne,decr:()=>w5,decrBuffer:()=>jne,decrby:()=>M5,decrbyBuffer:()=>Vne,defineArgv:()=>UC,defineCommand:()=>Pke,defineKeys:()=>CC,defineRedisObject:()=>BC,del:()=>c1,delBuffer:()=>Fke,discard:()=>FC,discardBuffer:()=>qke,echo:()=>LC,echoBuffer:()=>Lke,evalBuffer:()=>N7e,evalsha:()=>_H,evalshaBuffer:()=>B7e,evaluate:()=>yH,exists:()=>bH,existsBuffer:()=>C7e,expire:()=>pl,expireBuffer:()=>U7e,expireat:()=>y0,expireatBuffer:()=>D7e,expiretime:()=>MH,expiretimeBuffer:()=>P7e,failover:()=>EH,failoverBuffer:()=>F7e,flushall:()=>TH,flushallBuffer:()=>q7e,flushdb:()=>OH,flushdbBuffer:()=>L7e,get:()=>$6,getBuffer:()=>G7e,getbit:()=>BH,getbitBuffer:()=>K7e,getdel:()=>UH,getdelBuffer:()=>H7e,getex:()=>PH,getexBuffer:()=>z7e,getrange:()=>Y6,getrangeBuffer:()=>qH,getset:()=>GH,getsetBuffer:()=>W7e,hdel:()=>HH,hdelBuffer:()=>X7e,hexists:()=>jH,hexistsBuffer:()=>$7e,hget:()=>WH,hgetBuffer:()=>Y7e,hgetall:()=>$H,hgetallBuffer:()=>Z7e,hincrby:()=>ZH,hincrbyBuffer:()=>J7e,hincrbyfloat:()=>QH,hincrbyfloatBuffer:()=>Q7e,hkeys:()=>tz,hkeysBuffer:()=>eRe,hlen:()=>nz,hlenBuffer:()=>tRe,hmget:()=>sz,hmgetBuffer:()=>rRe,hmset:()=>oz,hmsetBuffer:()=>nRe,hrandfield:()=>Nz,hrandfieldBuffer:()=>kOe,hscan:()=>Uz,hscanBuffer:()=>AOe,hset:()=>Pz,hsetBuffer:()=>EOe,hsetnx:()=>qz,hsetnxBuffer:()=>SOe,hstrlen:()=>Gz,hstrlenBuffer:()=>TOe,hvals:()=>Hz,hvalsBuffer:()=>ROe,incr:()=>jz,incrBuffer:()=>OOe,incrby:()=>Wz,incrbyBuffer:()=>IOe,incrbyfloat:()=>$z,incrbyfloatBuffer:()=>NOe,info:()=>Zz,infoBuffer:()=>COe,keys:()=>ej,keysBuffer:()=>DOe,lastsave:()=>rj,lastsaveBuffer:()=>POe,lindex:()=>ij,lindexBuffer:()=>FOe,linsert:()=>aj,linsertBuffer:()=>qOe,llen:()=>lj,llenBuffer:()=>LOe,lmove:()=>uj,lmoveBuffer:()=>GOe,lmpop:()=>hj,lmpopBuffer:()=>KOe,lolwut:()=>iW,lolwutBuffer:()=>KNe,lpop:()=>aW,lpopBuffer:()=>HNe,lpos:()=>lW,lposBuffer:()=>zNe,lpush:()=>g_,lpushBuffer:()=>jNe,lpushx:()=>cW,lpushxBuffer:()=>VNe,lrange:()=>dW,lrangeBuffer:()=>WNe,lrem:()=>mW,lremBuffer:()=>XNe,lset:()=>gW,lsetBuffer:()=>$Ne,ltrim:()=>vW,ltrimBuffer:()=>YNe,mget:()=>xW,mgetBuffer:()=>ZNe,mset:()=>kW,msetBuffer:()=>JNe,msetnx:()=>AW,msetnxBuffer:()=>QNe,object:()=>SW,objectBuffer:()=>tBe,persist:()=>Qg,persistBuffer:()=>rBe,pexpire:()=>ml,pexpireBuffer:()=>nBe,pexpireat:()=>_0,pexpireatBuffer:()=>iBe,pexpiretime:()=>NW,pexpiretimeBuffer:()=>sBe,ping:()=>CW,pingBuffer:()=>aBe,psetex:()=>DW,psetexBuffer:()=>oBe,psubscribe:()=>qW,psubscribeBuffer:()=>lBe,pttl:()=>GW,pttlBuffer:()=>fBe,publish:()=>HW,publishBuffer:()=>uBe,pubsub:()=>jW,pubsubBuffer:()=>cBe,punsubscribe:()=>WW,punsubscribeBuffer:()=>hBe,quit:()=>$W,quitBuffer:()=>dBe,randomkey:()=>ZW,randomkeyBuffer:()=>pBe,readonly:()=>QW,readonlyBuffer:()=>mBe,readwrite:()=>tX,readwriteBuffer:()=>yBe,rename:()=>v_,renameBuffer:()=>gBe,renamenx:()=>iX,renamenxBuffer:()=>_Be,replconf:()=>aX,replconfBuffer:()=>vBe,replicaof:()=>N4,replicaofBuffer:()=>lX,role:()=>uX,roleBuffer:()=>wBe,rpop:()=>hX,rpopBuffer:()=>kBe,rpoplpush:()=>pX,rpoplpushBuffer:()=>MBe,rpush:()=>b_,rpushBuffer:()=>ABe,rpushx:()=>gX,rpushxBuffer:()=>EBe,sadd:()=>vX,saddBuffer:()=>SBe,save:()=>xX,saveBuffer:()=>TBe,scan:()=>kX,scanBuffer:()=>RBe,scard:()=>AX,scardBuffer:()=>OBe,sdiff:()=>x_,sdiffBuffer:()=>IBe,sdiffstore:()=>TX,sdiffstoreBuffer:()=>BBe,set:()=>na,setBuffer:()=>UBe,setbit:()=>IX,setbitBuffer:()=>HBe,setex:()=>BX,setexBuffer:()=>zBe,setnx:()=>UX,setnxBuffer:()=>jBe,setrange:()=>PX,setrangeBuffer:()=>VBe,sinter:()=>k_,sinterBuffer:()=>WBe,sinterstore:()=>LX,sinterstoreBuffer:()=>XBe,sismember:()=>KX,sismemberBuffer:()=>$Be,slaveof:()=>bBe,slaveofBuffer:()=>xBe,smembers:()=>zX,smembersBuffer:()=>YBe,smismember:()=>VX,smismemberBuffer:()=>ZBe,smove:()=>XX,smoveBuffer:()=>JBe,spop:()=>ZX,spopBuffer:()=>eCe,srandmember:()=>e$,srandmemberBuffer:()=>tCe,srem:()=>r$,sremBuffer:()=>rCe,sscan:()=>i$,sscanBuffer:()=>nCe,strlen:()=>a$,strlenBuffer:()=>iCe,subscribe:()=>l$,subscribeBuffer:()=>sCe,substr:()=>j7e,substrBuffer:()=>V7e,sunion:()=>A0,sunionBuffer:()=>aCe,sunionstore:()=>c$,sunionstoreBuffer:()=>oCe,time:()=>d$,timeBuffer:()=>lCe,ttl:()=>m$,ttlBuffer:()=>fCe,type:()=>g0,typeBuffer:()=>bCe,unlink:()=>k$,unlinkBuffer:()=>xCe,unsubscribe:()=>A$,unsubscribeBuffer:()=>wCe,unwatch:()=>S$,unwatchBuffer:()=>kCe,watch:()=>R$,watchBuffer:()=>MCe,xadd:()=>I$,xaddBuffer:()=>ACe,xlen:()=>B$,xlenBuffer:()=>ECe,xrange:()=>U$,xrangeBuffer:()=>SCe,xread:()=>P$,xreadBuffer:()=>TCe,xrevrange:()=>q$,xrevrangeBuffer:()=>RCe,zadd:()=>G$,zaddBuffer:()=>OCe,zcard:()=>H$,zcardBuffer:()=>ICe,zcount:()=>SY,zcountBuffer:()=>TDe,zdiff:()=>RY,zdiffBuffer:()=>IDe,zincrby:()=>IY,zincrbyBuffer:()=>NDe,zinterstore:()=>bZ,zinterstoreBuffer:()=>AFe,zmscore:()=>wZ,zmscoreBuffer:()=>EFe,zpopmax:()=>AZ,zpopmaxBuffer:()=>SFe,zpopmin:()=>TZ,zpopminBuffer:()=>TFe,zrange:()=>fo,zrangeBuffer:()=>RDe,zrangebylex:()=>OZ,zrangebylexBuffer:()=>RFe,zrangebyscore:()=>NZ,zrangebyscoreBuffer:()=>OFe,zrank:()=>CZ,zrankBuffer:()=>IFe,zrem:()=>DZ,zremBuffer:()=>NFe,zremrangebyrank:()=>FZ,zremrangebyrankBuffer:()=>BFe,zremrangebyscore:()=>LZ,zremrangebyscoreBuffer:()=>CFe,zrevrange:()=>iv,zrevrangeBuffer:()=>UFe,zrevrangebylex:()=>KZ,zrevrangebylexBuffer:()=>DFe,zrevrangebyscore:()=>nv,zrevrangebyscoreBuffer:()=>PFe,zrevrank:()=>jZ,zrevrankBuffer:()=>FFe,zscan:()=>WZ,zscanBuffer:()=>qFe,zscore:()=>H_,zscoreBuffer:()=>ODe});var xr=K(()=>{b();J8();t5();n5();s5();o5();f5();c5();d5();y5();_5();v5();x5();k5();A5();u1();Jk();qC();GC();gH();vH();xH();wH();kH();AH();SH();RH();IH();NH();CH();DH();FH();LH();KH();zH();VH();XH();YH();JH();ez();rz();iz();az();lz();Bz();Dz();Fz();Lz();Kz();zz();Vz();Xz();Yz();Jz();tj();nj();sj();oj();fj();cj();dj();sW();oW();fW();uW();hW();pW();yW();_W();bW();wW();MW();EW();TW();RW();OW();IW();BW();UW();PW();LW();KW();zW();VW();XW();YW();JW();eX();rX();nX();sX();oX();fX();cX();dX();mX();yX();_X();bX();wX();MX();EX();SX();RX();OX();NX();CX();DX();FX();qX();GX();HX();jX();WX();$X();JX();t$();n$();s$();o$();f$();u$();h$();p$();y$();w$();M$();E$();T$();O$();N$();C$();D$();F$();L$();K$();z$();TY();OY();NY();xZ();kZ();EZ();RZ();K_();IZ();BZ();UZ();PZ();qZ();GZ();uA();HZ();zZ();VZ();XZ();X4()});var $Z,ms,qp=K(()=>{b();$Z=mt(R1()),ms=class extends $Z.Readable{constructor(t,r={}){super({objectMode:!0}),this._scanCommand=t,this._cursor=0,this.opt=r,this._drained=!1}_callScan(){let t=[this._cursor];return this.opt.key&&t.unshift(this.opt.key),this.opt.match&&t.push("MATCH",this.opt.match),this.opt.count&&t.push("COUNT",this.opt.count),this._scanCommand(...t)}_read(){if(this._drained){this.push(null);return}this._callScan().then(t=>{let[r,n]=t;r==="0"?this._drained=!0:this._cursor=r,n.length>0?this.push(n):this._read()}).catch(t=>S(()=>this.emit("error",t)))}}});function LFe(e,t={}){let r=t instanceof Object?t:{};return r.key=e,new ms(this.hscan,r)}var YZ=K(()=>{b();qp()});function GFe(e){return new ms(this.scan,e)}var ZZ=K(()=>{b();qp()});function KFe(e,t={}){let r=t instanceof Object?t:{};return r.key=e,new ms(this.sscan,r)}var JZ=K(()=>{b();qp()});function HFe(e,t={}){let r=t instanceof Object?t:{};return r.key=e,new ms(this.zscan,r)}var QZ=K(()=>{b();qp()});var sv={};yA(sv,{hscanStream:()=>LFe,scanStream:()=>GFe,sscanStream:()=>KFe,zscanStream:()=>HFe});var eJ=K(()=>{b();YZ();ZZ();JZ();QZ()});function cA(e){S(()=>{e.emit("end")})}var tJ=K(()=>{b()});function nJ(e,t=new rJ.EventEmitter){let r={};return Object.freeze({clear(){r={}},delete(n){e.has(n)&&e.delete(n),delete r[n],t.emit("modified",n)},get(n){e.has(n)&&e.isExpired(n)&&this.delete(n);let i=r[n];return Array.isArray(i)?i.slice():Buffer.isBuffer(i)?Buffer.from(i):i instanceof Set?new Set(i):i instanceof Map?new Map(i):typeof i=="object"&&i?{...i}:i},has(n){return e.has(n)&&e.isExpired(n)&&this.delete(n),{}.hasOwnProperty.call(r,n)},keys(n){let o=Object.keys(r).filter(h=>e.has(h)?!e.isExpired(h):!0);return n?o.filter(h=>h.startsWith(n)):o},set(n,i){let o=i;Array.isArray(i)?o=i.slice():Buffer.isBuffer(i)?o=Buffer.from(i):i instanceof Set?o=new Set(i):i instanceof Map?o=new Map(i):typeof i=="object"&&i&&(o={...i}),r[n]=o,t.emit("modified",n)}})}function iJ(e,t,r={},n=""){function i(h,g){return Object.freeze({clear:()=>e.clear(),delete:v=>e.delete(`${h}${v}`),get:v=>e.get(`${h}${v}`),has:v=>e.has(`${h}${v}`),keys:()=>e.keys(h),set:(v,w)=>e.set(`${h}${v}`,w),withKeyPrefix(v){return v===h?this:i(v,g.withKeyPrefix(v))}})}let o=i(n,t);return Object.keys(r).forEach(h=>o.set(h,r[h])),o}var rJ,hA=K(()=>{b();rJ=mt(la())});function sJ(){let e={};return Object.freeze({clear(){e={}},get(t){return e[t]},set(t,r){e[t]=+r},has(t){return{}.hasOwnProperty.call(e,t)},isExpired(t){return e[t]<=Date.now()},delete(t){delete e[t]}})}function aJ(e,t=""){function r(n){return{clear:()=>e.clear(),get:i=>e.get(`${n}${i}`),set:(i,o)=>e.set(`${n}${i}`,o),has:i=>e.has(`${n}${i}`),isExpired:i=>e.isExpired(`${n}${i}`),delete:i=>e.delete(`${n}${i}`),withKeyPrefix(i){return i===n?this:r(i)}}}return r(t)}var dA=K(()=>{b()});function oJ(e){let t=sJ(),r=new av.EventEmitter;return{channels:new av.EventEmitter,expires:t,data:nJ(t,r),patternChannels:new av.EventEmitter,keyPrefix:e,modifiedKeyEvents:r}}var av,zFe,sa,lJ=K(()=>{b();av=mt(la());hA();dA();zFe=new Map,sa=zFe});var ov,pA,lv,fJ=K(()=>{b();ov=mt(hb());Iu();xr();pA=class{constructor(t){this.batch=[],this.redis=t,this._transactions=0,this.copyCommands(),Object.defineProperty(this,"length",{get(){return this.batch.length}})}copyCommands(){Object.keys(Fa).forEach(t=>{let r=Fa[t];this[t]=this._createCommand(t,r)}),Object.keys(this.redis.customCommands).forEach(t=>{let r=this.redis.customCommands[t];this[t]=this._createCommand(t,r)})}_createCommand(t,r){return(...n)=>{let i=n.length-1,o=n[i];typeof o!="function"?o=void 0:n.length=i;let h=r.bind(this.redis),g=bb(n,t);return this._addTransaction(h,t,g,o),this}}_addTransaction(t,r,n,i){this.batch.push(()=>(0,ov.default)(new Promise(o=>o(cm(t,r,this.redis,...n))),i)),this._transactions+=1}_isDirty(){if(this.redis.dirty)return!0;for(let t of this.redis.watching)if(this.redis.expires.has(t)&&this.redis.expires.isExpired(t))return!0;return!1}exec(t){if(this._isDirty())return this.redis.dirty=!1,this.redis.watching.clear(),this.batch=void 0,(0,ov.default)(Promise.resolve(null),t);let r=this.batch;return this.batch=[],(0,ov.default)(Promise.all(r.map(n=>n())).then(n=>n.map(i=>[null,i])),t)}},lv=pA});var WFe=I((Mut,pJ)=>{b();var cJ=mt(la()),hJ=mt(fb()),dJ=mt(fm());Iu();xr();eJ();kb();tJ();lJ();hA();dA();bd();fJ();var mA={data:{},keyPrefix:"",lazyConnect:!1,enableOfflineQueue:!0,notifyKeyspaceEvents:"",host:"localhost",port:6379,db:0},uJ=e=>{let{host:t,port:r}=(0,hJ.parseURL)(e);return{host:t,port:r}},jFe=(...e)=>{switch(e.length){case 3:return{...e[2],port:e[0],host:e[1]};case 2:return typeof e[0]=="string"?{...e[1],...uJ(e[0])}:Number.isInteger(e[0])&&typeof e[1]=="string"?{port:e[0],host:e[1]}:{...e[1],port:e[0]};case 1:return typeof e[0]=="string"?{...uJ(e[0])}:Number.isInteger(e[0])?{port:e[0]}:{...e[0]};default:return{}}},VFe=(...e)=>{let t=jFe(...e),r=t.port?parseInt(t.port,10):mA.port,{host:n=mA.host}=t;return{...t,port:r,host:n}},aa=class e extends cJ.EventEmitter{constructor(...t){super(),this.batch=void 0,this.connected=!1,this.subscriberMode=!1,this.customCommands={},this.shaScripts={};let r={...mA,...VFe(...t)};if(this.keyData=`${r.host}:${r.port}/${r.db}`,!sa.get(this.keyData)){let n=oJ(r.keyPrefix);sa.set(this.keyData,n)}this.context=sa.get(this.keyData),this.expires=aJ(this.context.expires,r.keyPrefix),this.data=iJ(this.context.data,this.expires,r.data,r.keyPrefix),this.dirty=!1,this.watching=new Set,this._signalModifiedKey=this._signalModifiedKey.bind(this),this.context.modifiedKeyEvents.on("modified",this._signalModifiedKey),this._initCommands(),this.keyspaceEvents=Zk(r.notifyKeyspaceEvents),r.lazyConnect===!1&&(this.connected=!0,Q0(this)),this.options=r}get channels(){return sa.get(this.keyData).channels}set channels(t){let n={...sa.get(this.keyData),channels:t};sa.set(this.keyData,n)}get patternChannels(){return sa.get(this.keyData).patternChannels}set patternChannels(t){let n={...sa.get(this.keyData),patternChannels:t};sa.set(this.keyData,n)}multi(t=[]){return this.batch=new lv(this),this.batch._transactions+=1,t.forEach?.(([r,...n])=>this.batch[r](...n)),this.batch}pipeline(t=[]){return this.batch=new lv(this),t.forEach(([r,...n])=>this.batch[r](...n)),this.batch}exec(t){if(!this.batch)return Promise.reject(new Error("ERR EXEC without MULTI"));let r=this.batch;return this.batch=void 0,r.exec(t)}duplicate(t){let r=new e({...this.options,...t});return r.expires=this.expires,r.data=this.data,r.channels=this.channels,r.patternChannels=this.patternChannels,r}disconnect(){let t=({instanceListeners:r})=>{r&&r.forEach(n=>{n.forEach((i,o)=>{o===this&&n.delete(o)})})};t(this.channels),t(this.patternChannels),this.context.modifiedKeyEvents.off("modified",this._signalModifiedKey),this.connected=!1,cA(this)}_initCommands(){Object.keys(Fa).forEach(i=>{let o=i==="evaluate"?"eval":i;this[o]=ca(Fa[i].bind(this),o,this)}),Object.keys(sv).forEach(i=>{this[i]=sv[i].bind(this)});let t=dJ.list.filter(i=>!i.includes("|")),r=[...t,...t.map(i=>`${i}Buffer`)],n="https://github.com/stipsan/ioredis-mock/blob/main/compat.md#supported-commands-";r.forEach(i=>{i in this||Object.defineProperty(this,i,{value:()=>{throw new TypeError(`Unsupported command: ${JSON.stringify(i)}, please check the full list over mocked commands: ${n}`)},writable:!0})})}_signalModifiedKey(t){!this.dirty&&this.watching.has(t)&&(this.dirty=!0)}};aa.Command=xo;aa.Cluster=class extends aa{constructor(t,r){r&&r.redisOptions?super(r.redisOptions):super(),t.forEach(n=>this.clusterNodes.all.push(new aa(n)))}clusterNodes={all:[],master:[],slave:[]};nodes(t="all"){if(t!=="all"&&t!=="master"&&t!=="slave")throw new Error(`Invalid role "${t}". Expected "all", "master" or "slave"`);return this.clusterNodes.all}};aa.Pipeline=lv;aa.default=aa;pJ.exports=aa});export default WFe();
477
+ /*! Bundled license information:
478
+
479
+ ieee754/index.js:
480
+ (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
481
+
482
+ buffer/index.js:
483
+ (*!
484
+ * The buffer module from node.js, for the browser.
485
+ *
486
+ * @author Feross Aboukhadijeh <https://feross.org>
487
+ * @license MIT
488
+ *)
489
+
490
+ punycode/punycode.js:
491
+ (*! https://mths.be/punycode v1.4.1 by @mathias *)
492
+
493
+ fengari/src/fengari.js:
494
+ (**
495
+ @license MIT
496
+
497
+ Copyright © 2017-2018 Benoit Giannangeli
498
+ Copyright © 2017-2018 Daurnimator
499
+ Copyright © 1994–2017 Lua.org, PUC-Rio.
500
+ *)
501
+
502
+ safe-buffer/index.js:
503
+ (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
504
+ */
505
+ //# sourceMappingURL=browser.js.map