From 37f639192ab9c865a533143b7b48511fae9cdc9c Mon Sep 17 00:00:00 2001 From: fedellen Date: Thu, 7 Dec 2023 00:57:45 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20ardrivea?= =?UTF-8?q?pp/turbo-app@1a6e16a672a57dd8060be6e9c30847ac14b5c6fc=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/index-ApzE2zbq.css | 1 - assets/index-BaMOAbCU.css | 1 + .../{index-fGkjx66v.js => index-dnvc7O2g.js} | 104 +++++++++--------- index.html | 4 +- 4 files changed, 55 insertions(+), 55 deletions(-) delete mode 100644 assets/index-ApzE2zbq.css create mode 100644 assets/index-BaMOAbCU.css rename assets/{index-fGkjx66v.js => index-dnvc7O2g.js} (96%) diff --git a/assets/index-ApzE2zbq.css b/assets/index-ApzE2zbq.css deleted file mode 100644 index da5c464..0000000 --- a/assets/index-ApzE2zbq.css +++ /dev/null @@ -1 +0,0 @@ -#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center;font-family:Wavehaus-Book;display:flex;flex-direction:column;align-items:center;justify-content:center}.ardrive-logo:hover{filter:drop-shadow(0 0 2em var(--ardrive-red))}.alert{margin:1rem 0;padding:1rem 2rem;border-radius:.5rem;font-size:1rem;font-family:Wavehaus-Extra;color:var(--ardrive-red)}.gift-form{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:2rem;max-width:40rem}.gift-form h1{font-family:Wavehaus-Extra;font-size:2.15rem;margin:3rem 2rem}.form-section{display:flex;flex-direction:column;align-items:left;margin:.5rem 1rem;width:100%}.form-label{margin:.5rem;font-size:1.25rem;font-weight:700;font-family:Wavehaus-Bold;text-align:left;font-size:1rem}.form-input{width:100%;margin:.5rem 0;padding:.5rem 1rem;border:1px solid var(--off-gray);border-radius:.5rem;font-size:1.2rem;font-family:Wavehaus-Semi;box-sizing:border-box;background-color:var(--dark-gray)}#recipient-email:not(:focus):not(:placeholder-shown):invalid{border-color:var(--ardrive-red)}#usd-form-input{display:flex;background-color:var(--dark-gray);width:100%;border:1px solid var(--off-gray);border-radius:.5rem}#dollar-sign{font-family:Wavehaus-Semi;font-size:1.2rem;padding:.5rem 1rem;border:none}#usd-input{font-family:Wavehaus-Semi;font-size:1.2rem;width:100%;margin:.5rem;border:none;background-color:var(--dark-gray)}.form-input:focus,#usd-input:focus,#usd-form-input:focus-within{outline:none;border-color:var(--white);border-width:.1rem}#conversions{margin:2rem 0;font-family:Wavehaus-Semi;font-size:1.5rem}.conversion-amount{font-family:Wavehaus-Semi;font-size:1.75rem;margin:.25rem}#gift-message{min-height:10rem;resize:none}.terms-and-conditions{display:flex;margin:1rem 0;font-size:1rem;font-family:Wavehaus-Semi}.terms-and-conditions a{color:var(--ardrive-red);font-family:Wavehaus-Bold}.terms-and-conditions a:hover{color:var(--ardrive-red);text-decoration:underline}a{color:var(--ardrive-red);text-decoration:inherit}a:hover{text-decoration:underline}input[type=checkbox]{width:1.5rem;height:1.5rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border-radius:.25rem;border:.1rem solid var(--gray)}input[type=checkbox]:checked{background-color:var(--ardrive-red);border:none}input[type=checkbox]:hover{cursor:pointer}input[type=checkbox]:checked:before{content:"✓";font-size:1.35rem;color:var(--white);position:absolute;transform:translate(20%,-5%)}#terms-and-conditions-checkbox{margin:0 .75rem}#gift-form-submit-button{margin:2rem;padding:1rem 1.25rem;border:none;border-radius:3rem;background-color:var(--ardrive-red);color:var(--white);font-size:1.25rem;font-family:Wavehaus-Bold;cursor:pointer}#gift-form-submit-button:hover{background-color:var(--ardrive-red)}#gift-form-submit-button:disabled{background-color:var(--off-gray);cursor:not-allowed}@media (prefers-color-scheme: light){.form-input,#usd-input,#usd-form-input{background-color:var(--white)}.form-input:focus,#usd-input:focus,#usd-form-input:focus-within{border-color:var(--black)}}:root{font-family:Wavehaus-Semi,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:var(--text-white);background-color:var(--black);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--ardrive-red: #d31721;--text-white: #a6a6a6;--white: #fafafa;--black: #0d0d0d;--dark-gray: #171717;--gray: #7d7d7d;--off-gray: #787878}input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}@media (prefers-color-scheme: light){:root{color:var(--black);background-color:var(--white)}} diff --git a/assets/index-BaMOAbCU.css b/assets/index-BaMOAbCU.css new file mode 100644 index 0000000..8d2e329 --- /dev/null +++ b/assets/index-BaMOAbCU.css @@ -0,0 +1 @@ +#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center;font-family:Wavehaus-Book;display:flex;flex-direction:column;align-items:center;justify-content:center}.ardrive-logo:hover{filter:drop-shadow(0 0 2em var(--ardrive-red))}.alert{margin:1rem 0;padding:1rem 2rem;border-radius:.5rem;font-size:1rem;font-family:Wavehaus-Extra;color:var(--ardrive-red)}.gift-form{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0rem 2rem;width:100%;max-width:40rem}.gift-form h1{font-family:Wavehaus-Extra;font-size:2.15rem;margin:3rem 2rem}.form-section{display:flex;flex-direction:column;align-items:left;margin:.5rem 1rem;width:100%}.form-label{margin:.5rem;font-size:1.25rem;font-weight:700;font-family:Wavehaus-Bold;text-align:left;font-size:1rem}.form-input{width:100%;margin:.5rem 0;padding:.5rem 1rem;border:1px solid var(--off-gray);border-radius:.5rem;font-size:1.2rem;font-family:Wavehaus-Semi;box-sizing:border-box;background-color:var(--dark-gray)}#recipient-email:not(:focus):not(:placeholder-shown):invalid{border-color:var(--ardrive-red)}#usd-form-input{display:flex;background-color:var(--dark-gray);width:100%;border:1px solid var(--off-gray);border-radius:.5rem}#dollar-sign{font-family:Wavehaus-Semi;font-size:1.2rem;padding:.5rem 1rem;border:none}#usd-input{font-family:Wavehaus-Semi;font-size:1.2rem;width:100%;margin:.5rem;border:none;background-color:var(--dark-gray)}.form-input:focus,#usd-input:focus,#usd-form-input:focus-within{outline:none;border-color:var(--white);border-width:.1rem}#conversions{margin:2rem 0;font-family:Wavehaus-Semi;font-size:1.5rem}.conversion-amount{font-family:Wavehaus-Semi;font-size:1.75rem;margin:.25rem}#gift-message{min-height:10rem;resize:none}.terms-and-conditions{display:flex;margin:1rem 0;font-size:1rem;font-family:Wavehaus-Semi}.terms-and-conditions a{color:var(--ardrive-red);font-family:Wavehaus-Bold}.terms-and-conditions a:hover{color:var(--ardrive-red);text-decoration:underline}a{color:var(--ardrive-red);text-decoration:inherit}a:hover{text-decoration:underline}input[type=checkbox]{width:1.5rem;height:1.5rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border-radius:.25rem;border:.1rem solid var(--gray)}input[type=checkbox]:checked{background-color:var(--ardrive-red);border:none}input[type=checkbox]:hover{cursor:pointer}input[type=checkbox]:checked:before{content:"✓";font-size:1.35rem;color:var(--white);position:absolute;transform:translate(20%,-5%)}#terms-and-conditions-checkbox{margin:0 .75rem}#gift-form-submit-button{margin:2rem;padding:1rem 1.25rem;border:none;border-radius:3rem;background-color:var(--ardrive-red);color:var(--white);font-size:1.25rem;font-family:Wavehaus-Bold;cursor:pointer}#gift-form-submit-button:hover{background-color:var(--ardrive-red)}#gift-form-submit-button:disabled{background-color:var(--off-gray);cursor:not-allowed}@media (prefers-color-scheme: light){.form-input,#usd-input,#usd-form-input{background-color:var(--white)}.form-input:focus,#usd-input:focus,#usd-form-input:focus-within{border-color:var(--black)}}:root{font-family:Wavehaus-Semi,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:var(--text-white);background-color:var(--black);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--ardrive-red: #d31721;--text-white: #a6a6a6;--white: #fafafa;--black: #0d0d0d;--dark-gray: #171717;--gray: #7d7d7d;--off-gray: #787878}input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}@media (prefers-color-scheme: light){:root{color:var(--black);background-color:var(--white)}} diff --git a/assets/index-fGkjx66v.js b/assets/index-dnvc7O2g.js similarity index 96% rename from assets/index-fGkjx66v.js rename to assets/index-dnvc7O2g.js index bf66a9e..03897c5 100644 --- a/assets/index-fGkjx66v.js +++ b/assets/index-dnvc7O2g.js @@ -22,7 +22,7 @@ var hT=Object.defineProperty;var dT=(e,t,r)=>t in e?hT(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(x,w){var v=x.length;x.push(w);e:for(;0>>1,s=x[h];if(0>>1;ha(C,v))Fa($,C)?(x[h]=$,x[F]=v,h=F):(x[h]=C,x[D]=v,h=D);else if(Fa($,v))x[h]=$,x[F]=v,h=F;else break e}}return w}function a(x,w){var v=x.sortIndex-w.sortIndex;return v!==0?v:x.id-w.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var f=Date,l=f.now();e.unstable_now=function(){return f.now()-l}}var c=[],m=[],g=1,_=null,S=3,M=!1,P=!1,I=!1,B=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function U(x){for(var w=r(m);w!==null;){if(w.callback===null)n(m);else if(w.startTime<=x)n(m),w.sortIndex=w.expirationTime,t(c,w);else break;w=r(m)}}function V(x){if(I=!1,U(x),!P)if(r(c)!==null)P=!0,p(j);else{var w=r(m);w!==null&&y(V,w.startTime-x)}}function j(x,w){P=!1,I&&(I=!1,R(J),J=-1),M=!0;var v=S;try{for(U(w),_=r(c);_!==null&&(!(_.expirationTime>w)||x&&!G());){var h=_.callback;if(typeof h=="function"){_.callback=null,S=_.priorityLevel;var s=h(_.expirationTime<=w);w=e.unstable_now(),typeof s=="function"?_.callback=s:_===r(c)&&n(c),U(w)}else n(c);_=r(c)}if(_!==null)var b=!0;else{var D=r(m);D!==null&&y(V,D.startTime-w),b=!1}return b}finally{_=null,S=v,M=!1}}var N=!1,K=null,J=-1,te=5,ee=-1;function G(){return!(e.unstable_now()-eex||125h?(x.sortIndex=v,t(m,x),r(c)===null&&x===r(m)&&(I?(R(J),J=-1):I=!0,y(V,v-h))):(x.sortIndex=s,t(c,x),P||M||(P=!0,p(j))),x},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(x){var w=S;return function(){var v=S;S=w;try{return x.apply(this,arguments)}finally{S=v}}}})(kx);Ox.exports=kx;var UT=Ox.exports;/** + */(function(e){function t(x,w){var v=x.length;x.push(w);e:for(;0>>1,s=x[h];if(0>>1;ha(C,v))Ua($,C)?(x[h]=$,x[U]=v,h=U):(x[h]=C,x[D]=v,h=D);else if(Ua($,v))x[h]=$,x[U]=v,h=U;else break e}}return w}function a(x,w){var v=x.sortIndex-w.sortIndex;return v!==0?v:x.id-w.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var f=Date,l=f.now();e.unstable_now=function(){return f.now()-l}}var c=[],m=[],g=1,_=null,S=3,M=!1,P=!1,I=!1,B=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(x){for(var w=r(m);w!==null;){if(w.callback===null)n(m);else if(w.startTime<=x)n(m),w.sortIndex=w.expirationTime,t(c,w);else break;w=r(m)}}function V(x){if(I=!1,F(x),!P)if(r(c)!==null)P=!0,p(j);else{var w=r(m);w!==null&&y(V,w.startTime-x)}}function j(x,w){P=!1,I&&(I=!1,R(J),J=-1),M=!0;var v=S;try{for(F(w),_=r(c);_!==null&&(!(_.expirationTime>w)||x&&!G());){var h=_.callback;if(typeof h=="function"){_.callback=null,S=_.priorityLevel;var s=h(_.expirationTime<=w);w=e.unstable_now(),typeof s=="function"?_.callback=s:_===r(c)&&n(c),F(w)}else n(c);_=r(c)}if(_!==null)var b=!0;else{var D=r(m);D!==null&&y(V,D.startTime-w),b=!1}return b}finally{_=null,S=v,M=!1}}var N=!1,K=null,J=-1,te=5,ee=-1;function G(){return!(e.unstable_now()-eex||125h?(x.sortIndex=v,t(m,x),r(c)===null&&x===r(m)&&(I?(R(J),J=-1):I=!0,y(V,v-h))):(x.sortIndex=s,t(c,x),P||M||(P=!0,p(j))),x},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(x){var w=S;return function(){var v=S;S=w;try{return x.apply(this,arguments)}finally{S=v}}}})(kx);Ox.exports=kx;var UT=Ox.exports;/** * @license React * react-dom.production.min.js * @@ -34,10 +34,10 @@ var hT=Object.defineProperty;var dT=(e,t,r)=>t in e?hT(e,t,{enumerable:!0,config `+kd+e}var Id=!1;function Bd(e,t){if(!e||Id)return"";Id=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(m){var n=m}Reflect.construct(e,[],t)}else{try{t.call()}catch(m){n=m}e.call(t.prototype)}else{try{throw Error()}catch(m){n=m}e()}}catch(m){if(m&&n&&typeof m.stack=="string"){for(var a=m.stack.split(` `),i=n.stack.split(` `),f=a.length-1,l=i.length-1;1<=f&&0<=l&&a[f]!==i[l];)l--;for(;1<=f&&0<=l;f--,l--)if(a[f]!==i[l]){if(f!==1||l!==1)do if(f--,l--,0>l||a[f]!==i[l]){var c=` -`+a[f].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=f&&0<=l);break}}}finally{Id=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?$0(e):""}function HT(e){switch(e.tag){case 5:return $0(e.type);case 16:return $0("Lazy");case 13:return $0("Suspense");case 19:return $0("SuspenseList");case 0:case 2:case 15:return e=Bd(e.type,!1),e;case 11:return e=Bd(e.type.render,!1),e;case 1:return e=Bd(e.type,!0),e;default:return""}}function Up(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wf:return"Fragment";case Gf:return"Portal";case Np:return"Profiler";case e8:return"StrictMode";case Dp:return"Suspense";case Fp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nx:return(e.displayName||"Context")+".Consumer";case Lx:return(e._context.displayName||"Context")+".Provider";case t8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case r8:return t=e.displayName||null,t!==null?t:Up(e.type)||"Memo";case to:t=e._payload,e=e._init;try{return Up(e(t))}catch{}}return null}function KT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Up(t);case 8:return t===e8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Co(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GT(e){var t=Fx(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(f){n=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jl(e){e._valueTracker||(e._valueTracker=GT(e))}function Ux(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function i1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jp(e,t){var r=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function xv(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Co(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jx(e,t){t=t.checked,t!=null&&Q6(e,"checked",t,!1)}function qp(e,t){jx(e,t);var r=Co(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zp(e,t.type,r):t.hasOwnProperty("defaultValue")&&zp(e,t.type,Co(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wv(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function zp(e,t,r){(t!=="number"||i1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var H0=Array.isArray;function us(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ql.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var eu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},WT=["Webkit","ms","Moz","O"];Object.keys(eu).forEach(function(e){WT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),eu[t]=eu[e]})});function Hx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||eu.hasOwnProperty(e)&&eu[e]?(""+t).trim():t+"px"}function Kx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=Hx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var VT=Qt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Kp(e,t){if(t){if(VT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(We(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(We(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(We(61))}if(t.style!=null&&typeof t.style!="object")throw Error(We(62))}}function Gp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wp=null;function n8(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vp=null,ls=null,cs=null;function Ev(e){if(e=fl(e)){if(typeof Vp!="function")throw Error(We(280));var t=e.stateNode;t&&(t=gh(t),Vp(e.stateNode,e.type,t))}}function Gx(e){ls?cs?cs.push(e):cs=[e]:ls=e}function Wx(){if(ls){var e=ls,t=cs;if(cs=ls=null,Ev(e),t)for(e=0;e>>=0,e===0?32:31-(aP(e)/oP|0)|0}var zl=64,$l=4194304;function K0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function s1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,f=r&268435455;if(f!==0){var l=f&~a;l!==0?n=K0(l):(i&=f,i!==0&&(n=K0(i)))}else f=r&~a,f!==0?n=K0(f):i!==0&&(n=K0(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function al(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ti(t),e[t]=r}function lP(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=ru),Iv=" ",Bv=!1;function dw(e,t){switch(e){case"keyup":return FP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vf=!1;function jP(e,t){switch(e){case"compositionend":return pw(t);case"keypress":return t.which!==32?null:(Bv=!0,Iv);case"textInput":return e=t.data,e===Iv&&Bv?null:e;default:return null}}function qP(e,t){if(Vf)return e==="compositionend"||!c8&&dw(e,t)?(e=cw(),Ac=s8=lo=null,Vf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Fv(r)}}function mw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bw(){for(var e=window,t=i1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=i1(e.document)}return t}function h8(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function XP(e){var t=bw(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&mw(r.ownerDocument.documentElement,r)){if(n!==null&&h8(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=Uv(r,i);var f=Uv(r,n);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Zf=null,e4=null,iu=null,t4=!1;function jv(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t4||Zf==null||Zf!==i1(n)||(n=Zf,"selectionStart"in n&&h8(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),iu&&_u(iu,n)||(iu=n,n=c1(e4,"onSelect"),0Jf||(e.current=f4[Jf],f4[Jf]=null,Jf--)}function Bt(e,t){Jf++,f4[Jf]=e.current,e.current=t}var Mo={},Xr=Io(Mo),yn=Io(!1),cf=Mo;function Ms(e,t){var r=e.type.contextTypes;if(!r)return Mo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function mn(e){return e=e.childContextTypes,e!=null}function d1(){Ft(yn),Ft(Xr)}function Wv(e,t,r){if(Xr.current!==Mo)throw Error(We(168));Bt(Xr,t),Bt(yn,r)}function Rw(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(We(108,KT(e)||"Unknown",a));return Qt({},r,n)}function p1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mo,cf=Xr.current,Bt(Xr,e),Bt(yn,yn.current),!0}function Vv(e,t,r){var n=e.stateNode;if(!n)throw Error(We(169));r?(e=Rw(e,t,cf),n.__reactInternalMemoizedMergedChildContext=e,Ft(yn),Ft(Xr),Bt(Xr,e)):Ft(yn),Bt(yn,r)}var ga=null,yh=!1,Vd=!1;function Tw(e){ga===null?ga=[e]:ga.push(e)}function sO(e){yh=!0,Tw(e)}function Bo(){if(!Vd&&ga!==null){Vd=!0;var e=0,t=St;try{var r=ga;for(St=1;e>=f,a-=f,ba=1<<32-Ti(t)+a|r<J?(te=K,K=null):te=K.sibling;var ee=S(R,K,U[J],V);if(ee===null){K===null&&(K=te);break}e&&K&&ee.alternate===null&&t(R,K),A=i(ee,A,J),N===null?j=ee:N.sibling=ee,N=ee,K=te}if(J===U.length)return r(R,K),jt&&Zo(R,J),j;if(K===null){for(;JJ?(te=K,K=null):te=K.sibling;var G=S(R,K,ee.value,V);if(G===null){K===null&&(K=te);break}e&&K&&G.alternate===null&&t(R,K),A=i(G,A,J),N===null?j=G:N.sibling=G,N=G,K=te}if(ee.done)return r(R,K),jt&&Zo(R,J),j;if(K===null){for(;!ee.done;J++,ee=U.next())ee=_(R,ee.value,V),ee!==null&&(A=i(ee,A,J),N===null?j=ee:N.sibling=ee,N=ee);return jt&&Zo(R,J),j}for(K=n(R,K);!ee.done;J++,ee=U.next())ee=M(K,R,J,ee.value,V),ee!==null&&(e&&ee.alternate!==null&&K.delete(ee.key===null?J:ee.key),A=i(ee,A,J),N===null?j=ee:N.sibling=ee,N=ee);return e&&K.forEach(function(E){return t(R,E)}),jt&&Zo(R,J),j}function B(R,A,U,V){if(typeof U=="object"&&U!==null&&U.type===Wf&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case Ul:e:{for(var j=U.key,N=A;N!==null;){if(N.key===j){if(j=U.type,j===Wf){if(N.tag===7){r(R,N.sibling),A=a(N,U.props.children),A.return=R,R=A;break e}}else if(N.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===to&&t9(j)===N.type){r(R,N.sibling),A=a(N,U.props),A.ref=C0(R,N,U),A.return=R,R=A;break e}r(R,N);break}else t(R,N);N=N.sibling}U.type===Wf?(A=of(U.props.children,R.mode,V,U.key),A.return=R,R=A):(V=Lc(U.type,U.key,U.props,null,R.mode,V),V.ref=C0(R,A,U),V.return=R,R=V)}return f(R);case Gf:e:{for(N=U.key;A!==null;){if(A.key===N)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){r(R,A.sibling),A=a(A,U.children||[]),A.return=R,R=A;break e}else{r(R,A);break}else t(R,A);A=A.sibling}A=r2(U,R.mode,V),A.return=R,R=A}return f(R);case to:return N=U._init,B(R,A,N(U._payload),V)}if(H0(U))return P(R,A,U,V);if(x0(U))return I(R,A,U,V);Xl(R,U)}return typeof U=="string"&&U!==""||typeof U=="number"?(U=""+U,A!==null&&A.tag===6?(r(R,A.sibling),A=a(A,U),A.return=R,R=A):(r(R,A),A=t2(U,R.mode,V),A.return=R,R=A),f(R)):r(R,A)}return B}var Rs=Dw(!0),Fw=Dw(!1),sl={},ta=Io(sl),Mu=Io(sl),Au=Io(sl);function ef(e){if(e===sl)throw Error(We(174));return e}function w8(e,t){switch(Bt(Au,t),Bt(Mu,e),Bt(ta,sl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hp(t,e)}Ft(ta),Bt(ta,t)}function Ts(){Ft(ta),Ft(Mu),Ft(Au)}function Uw(e){ef(Au.current);var t=ef(ta.current),r=Hp(t,e.type);t!==r&&(Bt(Mu,e),Bt(ta,r))}function _8(e){Mu.current===e&&(Ft(ta),Ft(Mu))}var Yt=Io(0);function x1(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zd=[];function S8(){for(var e=0;er?r:4,e(!0);var n=Xd.transition;Xd.transition={};try{e(!1),t()}finally{St=r,Xd.transition=n}}function t_(){return ti().memoizedState}function hO(e,t,r){var n=bo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},r_(e))n_(t,r);else if(r=Iw(e,t,r,n),r!==null){var a=nn();Pi(r,e,n,a),i_(r,t,n)}}function dO(e,t,r){var n=bo(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(r_(e))n_(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var f=t.lastRenderedState,l=i(f,r);if(a.hasEagerState=!0,a.eagerState=l,Oi(l,f)){var c=t.interleaved;c===null?(a.next=a,b8(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=Iw(e,t,a,n),r!==null&&(a=nn(),Pi(r,e,n,a),i_(r,t,n))}}function r_(e){var t=e.alternate;return e===Jt||t!==null&&t===Jt}function n_(e,t){au=w1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function i_(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,a8(e,r)}}var _1={readContext:ei,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},pO={readContext:ei,useCallback:function(e,t){return Ki().memoizedState=[e,t===void 0?null:t],e},useContext:ei,useEffect:n9,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Oc(4194308,4,Xw.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oc(4,2,e,t)},useMemo:function(e,t){var r=Ki();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ki();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=hO.bind(null,Jt,e),[n.memoizedState,e]},useRef:function(e){var t=Ki();return e={current:e},t.memoizedState=e},useState:r9,useDebugValue:R8,useDeferredValue:function(e){return Ki().memoizedState=e},useTransition:function(){var e=r9(!1),t=e[0];return e=cO.bind(null,e[1]),Ki().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Jt,a=Ki();if(jt){if(r===void 0)throw Error(We(407));r=r()}else{if(r=t(),Er===null)throw Error(We(349));df&30||zw(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,n9(Hw.bind(null,n,i,e),[e]),n.flags|=2048,Pu(9,$w.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Ki(),t=Er.identifierPrefix;if(jt){var r=xa,n=ba;r=(n&~(1<<32-Ti(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ru++,0")&&(c=c.replace("",e.displayName)),c}while(1<=f&&0<=l);break}}}finally{Id=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?$0(e):""}function HT(e){switch(e.tag){case 5:return $0(e.type);case 16:return $0("Lazy");case 13:return $0("Suspense");case 19:return $0("SuspenseList");case 0:case 2:case 15:return e=Bd(e.type,!1),e;case 11:return e=Bd(e.type.render,!1),e;case 1:return e=Bd(e.type,!0),e;default:return""}}function Up(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wf:return"Fragment";case Gf:return"Portal";case Np:return"Profiler";case e8:return"StrictMode";case Dp:return"Suspense";case Fp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nx:return(e.displayName||"Context")+".Consumer";case Lx:return(e._context.displayName||"Context")+".Provider";case t8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case r8:return t=e.displayName||null,t!==null?t:Up(e.type)||"Memo";case to:t=e._payload,e=e._init;try{return Up(e(t))}catch{}}return null}function KT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Up(t);case 8:return t===e8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Co(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GT(e){var t=Fx(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(f){n=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jl(e){e._valueTracker||(e._valueTracker=GT(e))}function Ux(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function i1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jp(e,t){var r=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function xv(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Co(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jx(e,t){t=t.checked,t!=null&&Q6(e,"checked",t,!1)}function qp(e,t){jx(e,t);var r=Co(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zp(e,t.type,r):t.hasOwnProperty("defaultValue")&&zp(e,t.type,Co(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wv(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function zp(e,t,r){(t!=="number"||i1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var H0=Array.isArray;function us(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ql.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var eu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},WT=["Webkit","ms","Moz","O"];Object.keys(eu).forEach(function(e){WT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),eu[t]=eu[e]})});function Hx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||eu.hasOwnProperty(e)&&eu[e]?(""+t).trim():t+"px"}function Kx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=Hx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var VT=Qt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Kp(e,t){if(t){if(VT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(We(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(We(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(We(61))}if(t.style!=null&&typeof t.style!="object")throw Error(We(62))}}function Gp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wp=null;function n8(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vp=null,ls=null,cs=null;function Ev(e){if(e=fl(e)){if(typeof Vp!="function")throw Error(We(280));var t=e.stateNode;t&&(t=gh(t),Vp(e.stateNode,e.type,t))}}function Gx(e){ls?cs?cs.push(e):cs=[e]:ls=e}function Wx(){if(ls){var e=ls,t=cs;if(cs=ls=null,Ev(e),t)for(e=0;e>>=0,e===0?32:31-(aP(e)/oP|0)|0}var zl=64,$l=4194304;function K0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function s1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,f=r&268435455;if(f!==0){var l=f&~a;l!==0?n=K0(l):(i&=f,i!==0&&(n=K0(i)))}else f=r&~a,f!==0?n=K0(f):i!==0&&(n=K0(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function al(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ti(t),e[t]=r}function lP(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=ru),Iv=" ",Bv=!1;function dw(e,t){switch(e){case"keyup":return FP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vf=!1;function jP(e,t){switch(e){case"compositionend":return pw(t);case"keypress":return t.which!==32?null:(Bv=!0,Iv);case"textInput":return e=t.data,e===Iv&&Bv?null:e;default:return null}}function qP(e,t){if(Vf)return e==="compositionend"||!c8&&dw(e,t)?(e=cw(),Ac=s8=lo=null,Vf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Fv(r)}}function mw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bw(){for(var e=window,t=i1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=i1(e.document)}return t}function h8(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function XP(e){var t=bw(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&mw(r.ownerDocument.documentElement,r)){if(n!==null&&h8(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=Uv(r,i);var f=Uv(r,n);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Zf=null,e4=null,iu=null,t4=!1;function jv(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t4||Zf==null||Zf!==i1(n)||(n=Zf,"selectionStart"in n&&h8(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),iu&&_u(iu,n)||(iu=n,n=c1(e4,"onSelect"),0Jf||(e.current=f4[Jf],f4[Jf]=null,Jf--)}function Bt(e,t){Jf++,f4[Jf]=e.current,e.current=t}var Mo={},Xr=Io(Mo),yn=Io(!1),cf=Mo;function Ms(e,t){var r=e.type.contextTypes;if(!r)return Mo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function mn(e){return e=e.childContextTypes,e!=null}function d1(){Ft(yn),Ft(Xr)}function Wv(e,t,r){if(Xr.current!==Mo)throw Error(We(168));Bt(Xr,t),Bt(yn,r)}function Rw(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(We(108,KT(e)||"Unknown",a));return Qt({},r,n)}function p1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mo,cf=Xr.current,Bt(Xr,e),Bt(yn,yn.current),!0}function Vv(e,t,r){var n=e.stateNode;if(!n)throw Error(We(169));r?(e=Rw(e,t,cf),n.__reactInternalMemoizedMergedChildContext=e,Ft(yn),Ft(Xr),Bt(Xr,e)):Ft(yn),Bt(yn,r)}var ga=null,yh=!1,Vd=!1;function Tw(e){ga===null?ga=[e]:ga.push(e)}function sO(e){yh=!0,Tw(e)}function Bo(){if(!Vd&&ga!==null){Vd=!0;var e=0,t=St;try{var r=ga;for(St=1;e>=f,a-=f,ba=1<<32-Ti(t)+a|r<J?(te=K,K=null):te=K.sibling;var ee=S(R,K,F[J],V);if(ee===null){K===null&&(K=te);break}e&&K&&ee.alternate===null&&t(R,K),A=i(ee,A,J),N===null?j=ee:N.sibling=ee,N=ee,K=te}if(J===F.length)return r(R,K),jt&&Zo(R,J),j;if(K===null){for(;JJ?(te=K,K=null):te=K.sibling;var G=S(R,K,ee.value,V);if(G===null){K===null&&(K=te);break}e&&K&&G.alternate===null&&t(R,K),A=i(G,A,J),N===null?j=G:N.sibling=G,N=G,K=te}if(ee.done)return r(R,K),jt&&Zo(R,J),j;if(K===null){for(;!ee.done;J++,ee=F.next())ee=_(R,ee.value,V),ee!==null&&(A=i(ee,A,J),N===null?j=ee:N.sibling=ee,N=ee);return jt&&Zo(R,J),j}for(K=n(R,K);!ee.done;J++,ee=F.next())ee=M(K,R,J,ee.value,V),ee!==null&&(e&&ee.alternate!==null&&K.delete(ee.key===null?J:ee.key),A=i(ee,A,J),N===null?j=ee:N.sibling=ee,N=ee);return e&&K.forEach(function(E){return t(R,E)}),jt&&Zo(R,J),j}function B(R,A,F,V){if(typeof F=="object"&&F!==null&&F.type===Wf&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case Ul:e:{for(var j=F.key,N=A;N!==null;){if(N.key===j){if(j=F.type,j===Wf){if(N.tag===7){r(R,N.sibling),A=a(N,F.props.children),A.return=R,R=A;break e}}else if(N.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===to&&t9(j)===N.type){r(R,N.sibling),A=a(N,F.props),A.ref=C0(R,N,F),A.return=R,R=A;break e}r(R,N);break}else t(R,N);N=N.sibling}F.type===Wf?(A=of(F.props.children,R.mode,V,F.key),A.return=R,R=A):(V=Lc(F.type,F.key,F.props,null,R.mode,V),V.ref=C0(R,A,F),V.return=R,R=V)}return f(R);case Gf:e:{for(N=F.key;A!==null;){if(A.key===N)if(A.tag===4&&A.stateNode.containerInfo===F.containerInfo&&A.stateNode.implementation===F.implementation){r(R,A.sibling),A=a(A,F.children||[]),A.return=R,R=A;break e}else{r(R,A);break}else t(R,A);A=A.sibling}A=r2(F,R.mode,V),A.return=R,R=A}return f(R);case to:return N=F._init,B(R,A,N(F._payload),V)}if(H0(F))return P(R,A,F,V);if(x0(F))return I(R,A,F,V);Xl(R,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,A!==null&&A.tag===6?(r(R,A.sibling),A=a(A,F),A.return=R,R=A):(r(R,A),A=t2(F,R.mode,V),A.return=R,R=A),f(R)):r(R,A)}return B}var Rs=Dw(!0),Fw=Dw(!1),sl={},ta=Io(sl),Mu=Io(sl),Au=Io(sl);function ef(e){if(e===sl)throw Error(We(174));return e}function w8(e,t){switch(Bt(Au,t),Bt(Mu,e),Bt(ta,sl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hp(t,e)}Ft(ta),Bt(ta,t)}function Ts(){Ft(ta),Ft(Mu),Ft(Au)}function Uw(e){ef(Au.current);var t=ef(ta.current),r=Hp(t,e.type);t!==r&&(Bt(Mu,e),Bt(ta,r))}function _8(e){Mu.current===e&&(Ft(ta),Ft(Mu))}var Yt=Io(0);function x1(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zd=[];function S8(){for(var e=0;er?r:4,e(!0);var n=Xd.transition;Xd.transition={};try{e(!1),t()}finally{St=r,Xd.transition=n}}function t_(){return ti().memoizedState}function hO(e,t,r){var n=bo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},r_(e))n_(t,r);else if(r=Iw(e,t,r,n),r!==null){var a=nn();Pi(r,e,n,a),i_(r,t,n)}}function dO(e,t,r){var n=bo(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(r_(e))n_(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var f=t.lastRenderedState,l=i(f,r);if(a.hasEagerState=!0,a.eagerState=l,Oi(l,f)){var c=t.interleaved;c===null?(a.next=a,b8(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=Iw(e,t,a,n),r!==null&&(a=nn(),Pi(r,e,n,a),i_(r,t,n))}}function r_(e){var t=e.alternate;return e===Jt||t!==null&&t===Jt}function n_(e,t){au=w1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function i_(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,a8(e,r)}}var _1={readContext:ei,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},pO={readContext:ei,useCallback:function(e,t){return Ki().memoizedState=[e,t===void 0?null:t],e},useContext:ei,useEffect:n9,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Oc(4194308,4,Xw.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oc(4,2,e,t)},useMemo:function(e,t){var r=Ki();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ki();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=hO.bind(null,Jt,e),[n.memoizedState,e]},useRef:function(e){var t=Ki();return e={current:e},t.memoizedState=e},useState:r9,useDebugValue:R8,useDeferredValue:function(e){return Ki().memoizedState=e},useTransition:function(){var e=r9(!1),t=e[0];return e=cO.bind(null,e[1]),Ki().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Jt,a=Ki();if(jt){if(r===void 0)throw Error(We(407));r=r()}else{if(r=t(),Er===null)throw Error(We(349));df&30||zw(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,n9(Hw.bind(null,n,i,e),[e]),n.flags|=2048,Pu(9,$w.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Ki(),t=Er.identifierPrefix;if(jt){var r=xa,n=ba;r=(n&~(1<<32-Ti(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ru++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=f.createElement(r,{is:n.is}):(e=f.createElement(r),r==="select"&&(f=e,n.multiple?f.multiple=!0:n.size&&(f.size=n.size))):e=f.createElementNS(e,r),e[Xi]=t,e[Cu]=n,d_(e,t,!1,!1),t.stateNode=e;e:{switch(f=Gp(r,n),r){case"dialog":Nt("cancel",e),Nt("close",e),a=n;break;case"iframe":case"object":case"embed":Nt("load",e),a=n;break;case"video":case"audio":for(a=0;aOs&&(t.flags|=128,n=!0,M0(i,!1),t.lanes=4194304)}else{if(!n)if(e=x1(f),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),M0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!jt)return zr(t),null}else 2*or()-i.renderingStartTime>Os&&r!==1073741824&&(t.flags|=128,n=!0,M0(i,!1),t.lanes=4194304);i.isBackwards?(f.sibling=t.child,t.child=f):(r=i.last,r!==null?r.sibling=f:t.child=f,i.last=f)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=or(),t.sibling=null,r=Yt.current,Bt(Yt,n?r&1|2:r&1),t):(zr(t),null);case 22:case 23:return B8(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?En&1073741824&&(zr(t),t.subtreeFlags&6&&(t.flags|=8192)):zr(t),null;case 24:return null;case 25:return null}throw Error(We(156,t.tag))}function _O(e,t){switch(p8(t),t.tag){case 1:return mn(t.type)&&d1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ts(),Ft(yn),Ft(Xr),S8(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _8(t),null;case 13:if(Ft(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(We(340));As()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Yt),null;case 4:return Ts(),null;case 10:return m8(t.type._context),null;case 22:case 23:return B8(),null;case 24:return null;default:return null}}var Jl=!1,Wr=!1,SO=typeof WeakSet=="function"?WeakSet:Set,Je=null;function rs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){tr(e,t,n)}else r.current=null}function b4(e,t,r){try{r()}catch(n){tr(e,t,n)}}var h9=!1;function EO(e,t){if(r4=u1,e=bw(),h8(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var f=0,l=-1,c=-1,m=0,g=0,_=e,S=null;t:for(;;){for(var M;_!==r||a!==0&&_.nodeType!==3||(l=f+a),_!==i||n!==0&&_.nodeType!==3||(c=f+n),_.nodeType===3&&(f+=_.nodeValue.length),(M=_.firstChild)!==null;)S=_,_=M;for(;;){if(_===e)break t;if(S===r&&++m===a&&(l=f),S===i&&++g===n&&(c=f),(M=_.nextSibling)!==null)break;_=S,S=_.parentNode}_=M}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(n4={focusedElem:e,selectionRange:r},u1=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){t=Je;try{var P=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var I=P.memoizedProps,B=P.memoizedState,R=t.stateNode,A=R.getSnapshotBeforeUpdate(t.elementType===t.type?I:wi(t.type,I),B);R.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var U=t.stateNode.containerInfo;U.nodeType===1?U.textContent="":U.nodeType===9&&U.documentElement&&U.removeChild(U.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(We(163))}}catch(V){tr(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}return P=h9,h9=!1,P}function ou(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&b4(t,r,i)}a=a.next}while(a!==n)}}function xh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function x4(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function g_(e){var t=e.alternate;t!==null&&(e.alternate=null,g_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xi],delete t[Cu],delete t[o4],delete t[oO],delete t[fO])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function y_(e){return e.tag===5||e.tag===3||e.tag===4}function d9(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||y_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w4(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=h1));else if(n!==4&&(e=e.child,e!==null))for(w4(e,t,r),e=e.sibling;e!==null;)w4(e,t,r),e=e.sibling}function _4(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(_4(e,t,r),e=e.sibling;e!==null;)_4(e,t,r),e=e.sibling}var Pr=null,Si=!1;function za(e,t,r){for(r=r.child;r!==null;)m_(e,t,r),r=r.sibling}function m_(e,t,r){if(ea&&typeof ea.onCommitFiberUnmount=="function")try{ea.onCommitFiberUnmount(hh,r)}catch{}switch(r.tag){case 5:Wr||rs(r,t);case 6:var n=Pr,a=Si;Pr=null,za(e,t,r),Pr=n,Si=a,Pr!==null&&(Si?(e=Pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Pr.removeChild(r.stateNode));break;case 18:Pr!==null&&(Si?(e=Pr,r=r.stateNode,e.nodeType===8?Wd(e.parentNode,r):e.nodeType===1&&Wd(e,r),xu(e)):Wd(Pr,r.stateNode));break;case 4:n=Pr,a=Si,Pr=r.stateNode.containerInfo,Si=!0,za(e,t,r),Pr=n,Si=a;break;case 0:case 11:case 14:case 15:if(!Wr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,f=i.destroy;i=i.tag,f!==void 0&&(i&2||i&4)&&b4(r,t,f),a=a.next}while(a!==n)}za(e,t,r);break;case 1:if(!Wr&&(rs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){tr(r,t,l)}za(e,t,r);break;case 21:za(e,t,r);break;case 22:r.mode&1?(Wr=(n=Wr)||r.memoizedState!==null,za(e,t,r),Wr=n):za(e,t,r);break;default:za(e,t,r)}}function p9(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new SO),t.forEach(function(n){var a=IO.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function pi(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=f),n&=~i}if(n=a,n=or()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*MO(n/1960))-n,10e?16:e,co===null)var n=!1;else{if(e=co,co=null,C1=0,bt&6)throw Error(We(331));var a=bt;for(bt|=4,Je=e.current;Je!==null;){var i=Je,f=i.child;if(Je.flags&16){var l=i.deletions;if(l!==null){for(var c=0;cor()-k8?af(e,0):O8|=r),bn(e,t)}function M_(e,t){t===0&&(e.mode&1?(t=$l,$l<<=1,!($l&130023424)&&($l=4194304)):t=1);var r=nn();e=Pa(e,t),e!==null&&(al(e,t,r),bn(e,r))}function kO(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),M_(e,r)}function IO(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(We(314))}n!==null&&n.delete(t),M_(e,r)}var A_;A_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||yn.current)gn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return gn=!1,xO(e,t,r);gn=!!(e.flags&131072)}else gn=!1,jt&&t.flags&1048576&&Pw(t,g1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;kc(e,t),e=t.pendingProps;var a=Ms(t,Xr.current);ds(t,r),a=C8(null,t,n,e,a,r);var i=M8();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mn(n)?(i=!0,p1(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,x8(t),a.updater=mh,t.stateNode=a,a._reactInternals=t,h4(t,n,e,r),t=v4(null,t,n,!0,i,r)):(t.tag=0,jt&&i&&d8(t),tn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(kc(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=LO(n),e=wi(n,e),a){case 0:t=p4(null,t,n,e,r);break e;case 1:t=u9(null,t,n,e,r);break e;case 11:t=f9(null,t,n,e,r);break e;case 14:t=s9(null,t,n,wi(n.type,e),r);break e}throw Error(We(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wi(n,a),p4(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wi(n,a),u9(e,t,n,a,r);case 3:e:{if(l_(t),e===null)throw Error(We(387));n=t.pendingProps,i=t.memoizedState,a=i.element,Bw(e,t),b1(t,n,null,r);var f=t.memoizedState;if(n=f.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Ps(Error(We(423)),t),t=l9(e,t,n,r,a);break e}else if(n!==a){a=Ps(Error(We(424)),t),t=l9(e,t,n,r,a);break e}else for(An=go(t.stateNode.containerInfo.firstChild),Rn=t,jt=!0,Ci=null,r=Fw(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(As(),n===a){t=Oa(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return Uw(t),e===null&&u4(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,f=a.children,i4(n,a)?f=null:i!==null&&i4(n,i)&&(t.flags|=32),u_(e,t),tn(e,t,f,r),t.child;case 6:return e===null&&u4(t),null;case 13:return c_(e,t,r);case 4:return w8(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Rs(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wi(n,a),f9(e,t,n,a,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,f=a.value,Bt(y1,n._currentValue),n._currentValue=f,i!==null)if(Oi(i.value,f)){if(i.children===a.children&&!yn.current){t=Oa(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){f=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Sa(-1,r&-r),c.tag=2;var m=i.updateQueue;if(m!==null){m=m.shared;var g=m.pending;g===null?c.next=c:(c.next=g.next,g.next=c),m.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),l4(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(i.tag===10)f=i.type===t.type?null:i.child;else if(i.tag===18){if(f=i.return,f===null)throw Error(We(341));f.lanes|=r,l=f.alternate,l!==null&&(l.lanes|=r),l4(f,r,t),f=i.sibling}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===t){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}tn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,ds(t,r),a=ei(a),n=n(a),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,a=wi(n,t.pendingProps),a=wi(n.type,a),s9(e,t,n,a,r);case 15:return f_(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wi(n,a),kc(e,t),t.tag=1,mn(n)?(e=!0,p1(t)):e=!1,ds(t,r),Nw(t,n,a),h4(t,n,a,r),v4(null,t,n,!0,e,r);case 19:return h_(e,t,r);case 22:return s_(e,t,r)}throw Error(We(156,t.tag))};function R_(e,t){return ew(e,t)}function BO(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(e,t,r,n){return new BO(e,t,r,n)}function N8(e){return e=e.prototype,!(!e||!e.isReactComponent)}function LO(e){if(typeof e=="function")return N8(e)?1:0;if(e!=null){if(e=e.$$typeof,e===t8)return 11;if(e===r8)return 14}return 2}function xo(e,t){var r=e.alternate;return r===null?(r=Xn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Lc(e,t,r,n,a,i){var f=2;if(n=e,typeof e=="function")N8(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case Wf:return of(r.children,a,i,t);case e8:f=8,a|=8;break;case Np:return e=Xn(12,r,t,a|2),e.elementType=Np,e.lanes=i,e;case Dp:return e=Xn(13,r,t,a),e.elementType=Dp,e.lanes=i,e;case Fp:return e=Xn(19,r,t,a),e.elementType=Fp,e.lanes=i,e;case Dx:return _h(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lx:f=10;break e;case Nx:f=9;break e;case t8:f=11;break e;case r8:f=14;break e;case to:f=16,n=null;break e}throw Error(We(130,e==null?e:typeof e,""))}return t=Xn(f,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function of(e,t,r,n){return e=Xn(7,e,n,t),e.lanes=r,e}function _h(e,t,r,n){return e=Xn(22,e,n,t),e.elementType=Dx,e.lanes=r,e.stateNode={isHidden:!1},e}function t2(e,t,r){return e=Xn(6,e,null,t),e.lanes=r,e}function r2(e,t,r){return t=Xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NO(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nd(0),this.expirationTimes=Nd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nd(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function D8(e,t,r,n,a,i,f,l,c){return e=new NO(e,t,r,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Xn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},x8(i),e}function DO(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(k_)}catch(e){console.error(e)}}k_(),Px.exports=On;var zO=Px.exports,_9=zO;Bp.createRoot=_9.createRoot,Bp.hydrateRoot=_9.hydrateRoot;function $O(){const[e,t]=Or.useState(()=>window.matchMedia("(prefers-color-scheme: dark)").matches);return Or.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),n=a=>{t(a.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),Xe.jsx("a",{href:"https://ardrive.io",children:e?Xe.jsx(KO,{}):Xe.jsx(HO,{})})}function HO(){return Xe.jsxs("svg",{className:"ardrive-logo",width:"165",height:"38",viewBox:"0 0 165 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[Xe.jsx("path",{d:"M104.297 6.39762C104.281 6.04335 104.222 5.98431 103.862 5.95747C103.798 5.9521 103.733 5.95747 103.669 5.95747C101.973 5.95747 100.271 5.95747 98.5748 5.95747C98.4943 5.95747 98.4084 5.9521 98.3279 5.96284C98.0112 5.98968 97.9629 6.03799 97.9468 6.34931C97.9414 6.46203 97.9468 6.58012 97.9468 6.69284C97.9468 8.99557 97.9522 11.2983 97.9414 13.5957C97.9414 13.8265 98.0702 14.1485 97.7911 14.2559C97.5388 14.3579 97.3617 14.0841 97.1792 13.9285C96.3955 13.2575 95.5099 12.7959 94.49 12.6134C92.6274 12.2752 90.8185 12.5007 89.0633 13.1716C86.5834 14.1163 84.9517 15.9413 83.9318 18.3353C82.8314 20.9118 82.8744 23.5419 83.7171 26.1775C84.5062 28.6573 86.1379 30.3911 88.5265 31.4002C89.7343 31.9101 90.9903 32.2429 92.3 32.361C94.1357 32.5274 95.8319 32.1463 97.3778 31.1318C97.8555 30.8151 98.2903 30.4448 98.709 30.0583C98.9559 29.8328 99.0794 29.8543 99.2511 30.1334C99.3853 30.3535 99.498 30.5951 99.6215 30.8205C100.174 31.8296 99.9221 31.7437 101.183 31.7491C102.032 31.7491 102.88 31.7545 103.728 31.7652C104.179 31.7706 104.281 31.6793 104.291 31.2392C104.297 31.1265 104.291 31.0084 104.291 30.8956C104.291 26.8806 104.291 22.8656 104.291 18.8452C104.291 14.8141 104.291 10.783 104.291 6.74652C104.302 6.62843 104.302 6.51571 104.297 6.39762ZM95.2415 26.317C94.7262 26.4942 94.1948 26.5586 93.658 26.58C91.8277 26.5747 90.3032 25.6085 89.6698 24.025C88.8003 21.8619 89.6806 18.5446 93.2823 18.2065C94.9087 18.0562 96.2077 18.6627 97.2275 19.9188C98.7949 21.8619 98.1615 25.3133 95.2415 26.317Z",fill:"#171717"}),Xe.jsx("path",{d:"M68.4998 13.0267C67.4907 13.016 66.4762 13.016 65.467 13.0052C65.0806 12.9999 64.8176 13.1448 64.6619 13.5151C64.5277 13.8265 64.3559 14.1271 64.1895 14.4277C63.8675 14.9966 63.7977 15.0127 63.3576 14.5565C62.5202 13.6923 61.5057 13.1287 60.3517 12.812C58.8648 12.404 57.3565 12.3772 55.8428 12.608C53.4274 12.9837 51.4199 14.111 49.9867 16.0863C47.6249 19.3283 47.1794 22.8978 48.6609 26.6069C49.7559 29.3444 51.8171 31.1587 54.6888 31.9638C56.2025 32.3879 57.7483 32.3771 59.2996 32.1678C60.4 32.0175 61.4252 31.6847 62.3431 31.0459C62.7456 30.7668 63.0999 30.4287 63.4488 30.0798C63.7172 29.8114 63.8084 29.8221 64.0017 30.1495C64.211 30.4984 64.415 30.8527 64.576 31.2284C64.7531 31.631 65.0645 31.792 65.4724 31.7652C66.3527 31.7169 67.233 31.7598 68.1133 31.7437C68.2582 31.7437 68.4085 31.7491 68.5535 31.7437C69.0043 31.733 69.0473 31.6847 69.058 31.2284C69.058 31.1318 69.058 31.0352 69.058 30.9332C69.058 28.0937 69.058 25.2542 69.058 22.4147C69.058 21.4539 69.058 20.4877 69.058 19.5269C69.058 17.5516 69.058 15.5763 69.058 13.601C69.0419 13.0643 69.0151 13.0321 68.4998 13.0267ZM60.0296 26.2419C59.4231 26.462 58.8004 26.5586 58.1617 26.5747C56.6533 26.5264 55.4564 25.9306 54.6995 24.5833C53.3254 22.1356 54.3828 19.2478 56.97 18.3836C59.042 17.6912 62.3216 18.6949 62.7778 21.8941C62.9979 23.4614 62.2196 25.4528 60.0296 26.2419Z",fill:"#171717"}),Xe.jsx("path",{d:"M160.437 13.4668C157.549 12.1303 154.576 12.0873 151.591 13.1877C149.294 14.0358 147.587 15.5441 146.572 17.7824C145.531 20.0744 145.354 22.4684 145.848 24.9161C146.207 26.7089 147.05 28.2494 148.387 29.5108C150.4 31.4056 152.869 32.1624 155.563 32.3127C156.873 32.3879 158.172 32.2859 159.471 32.1087C160.802 31.9262 162.085 31.5612 163.293 30.9547C163.599 30.8044 163.717 30.6058 163.711 30.2623C163.695 29.0867 163.706 27.9112 163.706 26.7357C163.706 26.1989 163.588 26.1131 163.057 26.2419C163.008 26.2526 162.965 26.2687 162.917 26.2848C160.915 27.047 158.838 27.2617 156.717 27.192C155.671 27.1598 154.64 27.0202 153.685 26.5371C152.708 26.0433 152.026 25.3025 151.699 24.1753C151.946 24.1753 152.123 24.1753 152.3 24.1753C156.041 24.1753 159.777 24.1753 163.518 24.1753C163.647 24.1753 163.781 24.17 163.91 24.1753C164.205 24.1807 164.415 24.0626 164.5 23.7674C164.533 23.66 164.581 23.5527 164.613 23.4453C164.989 22.1947 165.091 20.9172 164.919 19.6235C164.538 16.7626 163.046 14.6746 160.437 13.4668ZM151.709 20.2301C152.005 18.8345 152.772 17.863 154.114 17.3691C155.461 16.8699 156.771 16.9934 158.032 17.659C159.052 18.1958 159.503 19.0868 159.589 20.2355C156.975 20.2301 154.372 20.2301 151.709 20.2301Z",fill:"#171717"}),Xe.jsx("path",{d:"M147.297 13.5527C147.506 13.1287 147.437 13.0106 146.943 13.0106C146.648 13.0106 146.358 13.0267 146.063 13.0267C144.608 13.0213 143.159 13.0267 141.704 13.0052C141.199 12.9999 140.861 13.2092 140.668 13.6654C140.609 13.7996 140.55 13.9338 140.491 14.068C139.391 16.6982 138.134 19.2639 137.066 21.9102C137.002 22.0658 136.921 22.2108 136.728 22.2161C136.508 22.2215 136.406 22.0712 136.347 21.8941C136.046 20.9279 135.574 20.0261 135.182 19.0975C134.425 17.3101 133.652 15.5334 132.901 13.746C132.686 13.2307 132.37 12.973 131.785 12.9999C130.936 13.0321 130.088 13.0106 129.24 13.0106C129.24 13.016 129.194 13.0052 129.194 13.0106C128.947 13.0106 128.744 13.0106 128.497 13.0106C127.826 13.0052 127.171 13.016 126.5 13.0106C126.076 13.0106 126.004 13.1287 126.181 13.5151C126.24 13.6493 126.32 13.7728 126.385 13.9016C127.92 17.0363 129.455 20.1711 130.99 23.3004C132.252 25.8769 133.513 28.4587 134.769 31.0352C135.086 31.6793 135.236 31.7706 135.944 31.7437C136.369 31.7276 136.798 31.7008 137.217 31.7384C138.473 31.8457 138.451 31.6096 138.886 30.7293C141.189 26.0272 143.481 21.3251 145.783 16.623C146.283 15.5978 146.793 14.5779 147.297 13.5527Z",fill:"#171717"}),Xe.jsx("path",{d:"M82.5792 17.9864C82.5738 16.3708 82.5738 14.7551 82.5684 13.1394C82.5684 13.0267 82.5684 12.9086 82.563 12.7959C82.5577 12.5543 82.4289 12.447 82.1927 12.4362C81.8653 12.4201 81.5432 12.4738 81.2158 12.5114C79.7987 12.6671 78.5373 13.1877 77.4691 14.1432C77.2974 14.2935 77.1471 14.4706 76.9699 14.6102C76.766 14.7766 76.6157 14.7443 76.5083 14.4974C76.3688 14.1861 76.2614 13.8587 76.1487 13.5366C75.9984 13.1072 75.891 13.0106 75.4455 13.0052C74.2056 12.9999 72.9657 12.9999 71.7257 13.016C70.9421 13.0267 70.9421 13.0428 70.9421 13.8104C70.9421 16.666 70.9421 19.5269 70.9421 22.3825C70.9421 25.222 70.9421 28.0669 70.9421 30.9064C70.9421 31.0352 70.9367 31.1694 70.9421 31.2982C70.9689 31.6632 71.0226 31.7276 71.3822 31.7276C73.1965 31.733 75.0054 31.733 76.8196 31.7276C77.1793 31.7276 77.2437 31.6525 77.2705 31.3036C77.2813 31.1748 77.2705 31.0406 77.2705 30.9118C77.2705 28.346 77.2705 25.7856 77.2705 23.2199C77.2705 22.7475 77.3027 22.2752 77.394 21.8082C77.6838 20.3375 78.5158 19.3391 79.9597 18.8828C80.6039 18.6788 81.2641 18.5983 81.935 18.5983C82.4879 18.6091 82.5845 18.5071 82.5792 17.9864Z",fill:"#171717"}),Xe.jsx("path",{d:"M116.878 12.447C116.583 12.447 116.293 12.4846 116.004 12.5114C114.442 12.6724 113.084 13.2843 111.962 14.3901C111.892 14.4599 111.828 14.535 111.752 14.594C111.522 14.7765 111.382 14.7551 111.259 14.4867C111.119 14.1915 111.006 13.8855 110.92 13.5742C110.792 13.1179 110.657 13.016 110.19 13.016C108.934 13.0106 107.678 13.0106 106.422 13.0267C105.719 13.0374 105.719 13.0482 105.719 13.7513C105.719 16.623 105.719 19.5001 105.719 22.3718C105.719 25.3079 105.719 28.2494 105.719 31.1855C105.719 31.7223 105.741 31.7439 106.261 31.7439C107.716 31.7439 109.165 31.7439 110.62 31.7439C110.979 31.7439 111.339 31.7384 111.699 31.7439C111.924 31.7491 112.032 31.6417 112.032 31.4217C112.032 31.2928 112.037 31.1586 112.037 31.0298C112.037 28.448 112.042 25.8715 112.032 23.2897C112.032 22.8334 112.058 22.3772 112.139 21.9263C112.413 20.375 113.271 19.3283 114.807 18.8721C115.408 18.6949 116.02 18.6413 116.642 18.6091C117.324 18.5715 117.324 18.5768 117.324 17.922C117.324 16.7787 117.324 15.6354 117.324 14.4921C117.324 13.9553 117.329 13.4132 117.319 12.8764C117.308 12.5168 117.233 12.4416 116.878 12.447Z",fill:"#171717"}),Xe.jsx("path",{d:"M124.597 13.0267C122.901 13.0159 121.2 13.0159 119.503 13.0106C118.725 13.0106 118.725 13.0106 118.725 13.7889C118.725 19.4894 118.725 25.1844 118.725 30.8849C118.725 30.9976 118.72 31.1157 118.725 31.2284C118.746 31.7008 118.779 31.733 119.235 31.733C121.065 31.7384 122.89 31.7384 124.721 31.733C125.193 31.733 125.22 31.6954 125.236 31.2338C125.241 31.1211 125.236 31.003 125.236 30.8903C125.236 28.0669 125.236 25.2381 125.236 22.4147C125.236 19.5055 125.236 16.6016 125.236 13.6923C125.236 13.0428 125.231 13.0321 124.597 13.0267Z",fill:"#171717"}),Xe.jsx("path",{d:"M122.031 3.45614C120.035 3.48298 118.462 5.07181 118.473 7.05248C118.483 8.9419 120.121 10.5415 122.048 10.5468C123.985 10.5468 125.649 8.88822 125.644 6.96123C125.633 5.04497 123.975 3.4293 122.031 3.45614Z",fill:"#171717"}),Xe.jsx("rect",{width:"39.0164",height:"37.4385",fill:"url(#pattern0)"}),Xe.jsxs("defs",{children:[Xe.jsx("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:Xe.jsx("use",{xlinkHref:"#image0_1415_14339",transform:"scale(0.00271062 0.00282486)"})}),Xe.jsx("image",{id:"image0_1415_14339",width:"369",height:"354",xlinkHref:"data:image/png;base64,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t9xSDj74YNlnn32kQ4cOkom4Gfr5G6oJDXbH77lE3G5be18GcRXqrnVyngq4vykP+SritWupKWRK76PiNsqcoOY///zjWbRY3N99911a3SRVAX8Dxx133CFdunSRo446Svbcc08vWJoxrJddQW1DSGi9ccie4owZJm4bfy2s1n26NbtOnTof407529czyG01LVNTQwakai5YsMCzup977jmZOzdwWlPGg4X+xRdfeAcull69eslxxx3nZb9UO7VMPkHOU7eOOBf3F2fQ8Woch8vAohFWfn7+aizxv3yZ7zjd69cV669/xBANS3cz1SXjq1evlgceeEAeeughzwrPBf744w+588475amnnvL85kOGDJEGDXwNszIYUo9qafyhK8TttbeERX3h01TAH/Du//DDDw39PUuFvvkGYkgBf1Z9jjBZJgjZHnvsITfffHPOCHhpyGFn8eI9GDlypJd1Uy0UOWLIUbbbVOJfPhlJwJctWyb33HPPBcQz+dr+6quv/Dtj2pum9imhincz7777rhfsGzNmjJcemOssX75cnnnmGc/F8vjjj3sZL1XKspoddzCEQI1g55zeUjTpLnE7htdR3ITsJK+99tqRGufxgiv29OnTfdcAR/nlhv/HWuwvlhyVv/76Sy644AIZOnSozJoVaTxUVsJu5PLLL5f+/ft72S1VhbXILKQ5RX31f99wnjjXDhFpEH4g+q+//ipnn322TJ06laDmjnXr1j2D79u//fZbA8fxt71zt+wihhQw648o0z0qhWKZF1980bM0J0yYUOMzTtIJObmfffaZDBw4UK677jrP0kk7cxeKITdwt+sq8efHinP2caETQzhHX3vtNTn++OPl448/Lv39Ia1bt66bp0GfWmwvKZqoFMqFCYK6phFWFKx5ehEvWS7S2F84IgiIEPnSTzzxhPfhG/zB+3bfffd51aHXXHONVxGaLqyZoYcBGGoQ7j47Svyxq0Wa+BvZkAy0eezYsZ7bL0nBXbtYLNbd1uBOAx7o60U1bSzStLEYIjJngVhL/L3nQaAknjQ6PnAj4OHgPezdu7eXO08wOC38/LsYshj83yNOlvhzYyIJ+KJFi+S0006Thx9+uNyKaXWr7Gyz9Z45c6b4Yv31xN24rRgiwoimr1LbAIneJvjL8JsZosEFM2LECIJHsnhxajOJrH+WiTXDWOJZS/uW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"})]})]})}function KO(){return Xe.jsxs("svg",{className:"ardrive-logo",width:"165",height:"38",viewBox:"0 0 165 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Xe.jsx("path",{d:"M104.388 7.69724C104.372 7.34834 104.313 7.29019 103.954 7.26375C103.89 7.25847 103.825 7.26375 103.761 7.26375C102.067 7.26375 100.368 7.26375 98.6746 7.26375C98.5942 7.26375 98.5085 7.25847 98.4281 7.26904C98.1119 7.29547 98.0636 7.34305 98.0475 7.64967C98.0422 7.76068 98.0475 7.87699 98.0475 7.988C98.0475 10.2559 98.0529 12.5238 98.0422 14.7864C98.0422 15.0137 98.1708 15.3309 97.8921 15.4367C97.6402 15.5371 97.4633 15.2675 97.2811 15.1142C96.4986 14.4534 95.6143 13.9987 94.596 13.819C92.7362 13.4859 90.93 13.708 89.1774 14.3688C86.7013 15.2992 85.0719 17.0966 84.0536 19.4544C82.9549 21.9919 82.9978 24.5823 83.8392 27.1779C84.6271 29.6203 86.2564 31.3278 88.6414 32.3217C89.8473 32.8239 91.1015 33.1517 92.4092 33.268C94.2422 33.4319 95.9359 33.0565 97.4794 32.0574C97.9564 31.7455 98.3906 31.3807 98.8086 31.0001C99.0552 30.778 99.1784 30.7992 99.3499 31.0741C99.4839 31.2908 99.5965 31.5287 99.7197 31.7508C100.272 32.7446 100.02 32.66 101.279 32.6653C102.126 32.6653 102.973 32.6706 103.82 32.6812C104.27 32.6865 104.372 32.5966 104.383 32.1631C104.388 32.0521 104.383 31.9358 104.383 31.8248C104.383 27.8705 104.383 23.9162 104.383 19.9566C104.383 15.9865 104.383 12.0163 104.383 8.04087C104.393 7.92456 104.393 7.81355 104.388 7.69724ZM95.3463 27.3154C94.8318 27.4899 94.3012 27.5533 93.7652 27.5744C91.9376 27.5692 90.4155 26.6176 89.783 25.0581C88.9148 22.9276 89.7937 19.6606 93.39 19.3275C95.014 19.1795 96.311 19.7769 97.3294 21.0139C98.8944 22.9276 98.2619 26.3268 95.3463 27.3154Z",fill:"white"}),Xe.jsx("path",{d:"M68.6447 14.2261C67.6371 14.2155 66.6241 14.2155 65.6165 14.2049C65.2307 14.1996 64.968 14.3424 64.8126 14.7071C64.6786 15.0137 64.5071 15.3098 64.341 15.6058C64.0194 16.1662 63.9497 16.1821 63.5102 15.7327C62.6741 14.8816 61.6612 14.3265 60.5088 14.0146C59.0242 13.6128 57.5182 13.5864 56.0068 13.8137C53.5949 14.1838 51.5905 15.2939 50.1594 17.2394C47.8012 20.4324 47.3564 23.9479 48.8356 27.6009C49.929 30.297 51.9871 32.0838 54.8545 32.8768C56.3659 33.2944 57.9094 33.2838 59.4584 33.0777C60.5571 32.9297 61.5808 32.6019 62.4973 31.9728C62.8992 31.6979 63.253 31.3649 63.6013 31.0212C63.8693 30.7569 63.9604 30.7675 64.1534 31.09C64.3624 31.4336 64.5661 31.7825 64.7269 32.1525C64.9037 32.549 65.2146 32.7076 65.6219 32.6812C66.5009 32.6336 67.3799 32.6759 68.2588 32.66C68.4035 32.66 68.5536 32.6653 68.6983 32.66C69.1485 32.6495 69.1914 32.6019 69.2021 32.1525C69.2021 32.0574 69.2021 31.9622 69.2021 31.8618C69.2021 29.0652 69.2021 26.2687 69.2021 23.4721C69.2021 22.5258 69.2021 21.5743 69.2021 20.628C69.2021 18.6826 69.2021 16.7371 69.2021 14.7917C69.186 14.2631 69.1592 14.2313 68.6447 14.2261ZM60.1873 27.2414C59.5816 27.4581 58.9599 27.5533 58.3221 27.5692C56.8161 27.5216 55.6209 26.9348 54.8652 25.6079C53.4931 23.1972 54.549 20.3531 57.1323 19.502C59.2011 18.82 62.4758 19.8086 62.9314 22.9593C63.1511 24.503 62.374 26.4643 60.1873 27.2414Z",fill:"white"}),Xe.jsx("path",{d:"M160.444 14.6595C157.561 13.3432 154.591 13.3009 151.611 14.3847C149.318 15.2199 147.613 16.7054 146.6 18.9099C145.56 21.1672 145.384 23.525 145.877 25.9356C146.236 27.7013 147.077 29.2185 148.412 30.4609C150.422 32.327 152.887 33.0724 155.578 33.2204C156.885 33.2944 158.182 33.194 159.479 33.0195C160.809 32.8398 162.09 32.4803 163.295 31.8829C163.601 31.7349 163.719 31.5393 163.713 31.201C163.697 30.0432 163.708 28.8855 163.708 27.7277C163.708 27.1991 163.59 27.1145 163.06 27.2414C163.011 27.252 162.968 27.2678 162.92 27.2837C160.921 28.0344 158.847 28.2458 156.73 28.1771C155.685 28.1454 154.656 28.0079 153.702 27.5321C152.726 27.0458 152.046 26.3163 151.719 25.2061C151.965 25.2061 152.142 25.2061 152.319 25.2061C156.055 25.2061 159.785 25.2061 163.521 25.2061C163.649 25.2061 163.783 25.2008 163.912 25.2061C164.207 25.2114 164.416 25.0951 164.501 24.8043C164.534 24.6986 164.582 24.5929 164.614 24.4871C164.989 23.2554 165.091 21.9972 164.919 20.7232C164.539 17.9055 163.049 15.849 160.444 14.6595ZM151.729 21.3205C152.024 19.946 152.791 18.9892 154.131 18.5028C155.476 18.0112 156.784 18.1328 158.043 18.7883C159.061 19.3169 159.512 20.1945 159.597 21.3258C156.987 21.3205 154.388 21.3205 151.729 21.3205Z",fill:"white"}),Xe.jsx("path",{d:"M147.324 14.7441C147.533 14.3265 147.463 14.2102 146.97 14.2102C146.675 14.2102 146.386 14.2261 146.091 14.2261C144.639 14.2208 143.192 14.2261 141.739 14.2049C141.235 14.1996 140.898 14.4058 140.705 14.8552C140.646 14.9873 140.587 15.1195 140.528 15.2516C139.429 17.842 138.175 20.369 137.108 22.9752C137.044 23.1285 136.964 23.2712 136.771 23.2765C136.551 23.2818 136.449 23.1338 136.39 22.9593C136.09 22.0078 135.618 21.1196 135.227 20.2051C134.471 18.4447 133.7 16.6948 132.949 14.9345C132.735 14.4269 132.419 14.1732 131.835 14.1996C130.988 14.2313 130.141 14.2102 129.294 14.2102C129.294 14.2155 129.248 14.2049 129.248 14.2102C129.002 14.2102 128.798 14.2102 128.552 14.2102C127.882 14.2049 127.228 14.2155 126.558 14.2102C126.135 14.2102 126.062 14.3265 126.239 14.7071C126.298 14.8393 126.378 14.9609 126.443 15.0878C127.976 18.1751 129.508 21.2624 131.041 24.3444C132.301 26.8819 133.56 29.4247 134.814 31.9622C135.131 32.5966 135.281 32.6865 135.988 32.66C136.412 32.6442 136.84 32.6178 137.258 32.6548C138.513 32.7605 138.491 32.5279 138.925 31.6609C141.225 27.0299 143.513 22.399 145.812 17.768C146.311 16.7583 146.82 15.7539 147.324 14.7441Z",fill:"white"}),Xe.jsx("path",{d:"M82.703 19.1108C82.6976 17.5195 82.6976 15.9283 82.6922 14.3371C82.6922 14.2261 82.6922 14.1098 82.6869 13.9987C82.6815 13.7609 82.5529 13.6551 82.3171 13.6446C81.9901 13.6287 81.6686 13.6816 81.3416 13.7186C79.9267 13.8719 78.6672 14.3847 77.6006 15.3257C77.4291 15.4737 77.279 15.6481 77.1022 15.7856C76.8985 15.9495 76.7484 15.9177 76.6413 15.6746C76.5019 15.3679 76.3947 15.0455 76.2822 14.7283C76.1321 14.3054 76.0249 14.2102 75.58 14.2049C74.342 14.1996 73.1039 14.1996 71.8658 14.2155C71.0833 14.2261 71.0833 14.2419 71.0833 14.9979C71.0833 17.8103 71.0833 20.628 71.0833 23.4404C71.0833 26.237 71.0833 29.0388 71.0833 31.8354C71.0833 31.9622 71.078 32.0944 71.0833 32.2213C71.1101 32.5808 71.1637 32.6442 71.5228 32.6442C73.3344 32.6495 75.1406 32.6495 76.9521 32.6442C77.3112 32.6442 77.3755 32.5702 77.4023 32.2266C77.413 32.0997 77.4023 31.9675 77.4023 31.8406C77.4023 29.3137 77.4023 26.7921 77.4023 24.2651C77.4023 23.7999 77.4345 23.3347 77.5256 22.8748C77.815 21.4263 78.6457 20.443 80.0875 19.9936C80.7306 19.7927 81.3899 19.7134 82.0598 19.7134C82.6119 19.724 82.7083 19.6236 82.703 19.1108Z",fill:"white"}),Xe.jsx("path",{d:"M116.951 13.6551C116.656 13.6551 116.367 13.6921 116.077 13.7186C114.518 13.8772 113.162 14.4798 112.041 15.5688C111.972 15.6375 111.907 15.7116 111.832 15.7697C111.602 15.9495 111.463 15.9283 111.339 15.664C111.2 15.3732 111.087 15.0719 111.002 14.7653C110.873 14.3159 110.739 14.2155 110.273 14.2155C109.019 14.2102 107.764 14.2102 106.51 14.2261C105.808 14.2366 105.808 14.2472 105.808 14.9397C105.808 17.768 105.808 20.6016 105.808 23.4298C105.808 26.3215 105.808 29.2185 105.808 32.1102C105.808 32.6389 105.83 32.6602 106.35 32.6602C107.802 32.6602 109.249 32.6602 110.702 32.6602C111.061 32.6602 111.42 32.6547 111.779 32.6602C112.004 32.6653 112.111 32.5596 112.111 32.3428C112.111 32.216 112.116 32.0838 112.116 31.9569C112.116 29.4141 112.122 26.8766 112.111 24.3338C112.111 23.8845 112.138 23.4351 112.218 22.991C112.492 21.4633 113.349 20.4324 114.882 19.983C115.482 19.8086 116.093 19.7557 116.715 19.724C117.396 19.687 117.396 19.6923 117.396 19.0473C117.396 17.9213 117.396 16.7953 117.396 15.6693C117.396 15.1406 117.401 14.6067 117.39 14.078C117.38 13.7238 117.305 13.6498 116.951 13.6551Z",fill:"white"}),Xe.jsx("path",{d:"M124.658 14.2261C122.964 14.2155 121.265 14.2155 119.572 14.2102C118.795 14.2102 118.795 14.2102 118.795 14.9767C118.795 20.591 118.795 26.1999 118.795 31.8142C118.795 31.9252 118.789 32.0415 118.795 32.1525C118.816 32.6177 118.848 32.6495 119.304 32.6495C121.131 32.6548 122.954 32.6548 124.781 32.6495C125.253 32.6495 125.28 32.6125 125.296 32.1578C125.301 32.0468 125.296 31.9305 125.296 31.8195C125.296 29.0388 125.296 26.2528 125.296 23.4721C125.296 20.6068 125.296 17.7469 125.296 14.8816C125.296 14.2419 125.29 14.2313 124.658 14.2261Z",fill:"white"}),Xe.jsx("path",{d:"M122.096 4.80025C120.102 4.82668 118.532 6.39148 118.543 8.3422C118.553 10.203 120.188 11.7784 122.112 11.7837C124.047 11.7837 125.708 10.1502 125.703 8.25233C125.692 6.36505 124.036 4.77382 122.096 4.80025Z",fill:"white"}),Xe.jsx("path",{d:"M18.7169 8.30993C18.8659 8.40488 19.0088 8.5171 19.1485 8.63363C20.4557 9.71696 21.7692 10.7917 23.0857 11.8534C24.6786 13.1396 26.2622 14.4387 27.8582 15.7119C30.4043 17.7448 32.9318 19.8252 35.4718 21.8753C36.3505 22.5874 37.2323 23.2909 38.1142 23.9988C38.1483 24.0247 38.2043 24.0419 38.2043 24.0894C38.2073 24.1585 38.1452 24.1671 38.1079 24.1973C37.1205 24.9656 36.1331 25.7338 35.1488 26.5021C35.0153 26.6057 34.8818 26.7136 34.7514 26.8258C34.6396 26.9251 34.5216 26.9423 34.3943 26.9035C33.9689 26.774 33.5404 26.6445 33.115 26.5194C32.6648 26.3899 32.2115 26.2647 31.7581 26.1395C31.6029 26.0964 31.4507 26.1266 31.311 26.2302C31.224 26.2949 31.1433 26.3769 31.0657 26.4632C30.9756 26.5625 30.9384 26.6877 30.9539 26.843C30.9663 26.9596 30.9818 27.0761 30.9943 27.1883C31.0564 27.7322 31.0098 28.2587 30.8825 28.781C30.7955 29.1435 30.6714 29.4802 30.5254 29.8039C30.1869 30.5635 29.7554 31.2066 29.2617 31.772C28.8828 32.1993 28.4823 32.5791 28.06 32.9244C28.029 32.9503 27.9979 32.9718 27.9731 33.0021C27.7775 33.2179 27.5601 33.3819 27.3396 33.5416C26.8459 33.8955 26.3522 34.2451 25.8399 34.5472C24.9705 35.0565 24.0731 35.4579 23.1602 35.7859C22.5827 35.9931 22.002 36.1744 21.4152 36.3168C21.0302 36.4117 20.642 36.4851 20.2508 36.5455C19.7167 36.6276 19.1827 36.675 18.6455 36.7139C18.2387 36.7441 17.832 36.7613 17.4252 36.7657C17.0743 36.77 16.7204 36.7441 16.3695 36.7225C16.1273 36.7095 15.882 36.6837 15.6398 36.6577C15.3541 36.6276 15.0654 36.5887 14.7797 36.5455C14.5282 36.5067 14.2767 36.4635 14.0252 36.4161C13.606 36.3427 13.193 36.2391 12.7769 36.1269C12.0069 35.9154 11.2493 35.6521 10.4947 35.35C9.50732 34.9529 8.55093 34.435 7.62254 33.8264C7.13504 33.507 6.64446 33.1876 6.17868 32.8035C4.59359 31.5031 3.19008 29.9802 2.25079 28.1465C1.86266 27.3826 1.54595 26.5625 1.34101 25.6691C1.02213 24.2815 1.1223 22.8234 1.5801 21.4782C2.55609 18.6009 5.07277 16.4724 7.72191 15.1293C9.70927 14.1225 11.851 13.7693 14.0686 13.7913C14.2984 13.7956 14.5251 13.8129 14.7518 13.856C14.8884 13.882 15.0188 13.8517 15.1461 13.7783C15.2641 13.705 15.3728 13.6057 15.4752 13.4935C15.5497 13.4158 15.5746 13.3079 15.5622 13.1827C15.5529 13.0921 15.5249 13.0101 15.4907 12.9324C15.3759 12.6648 15.261 12.3972 15.1492 12.1296C15.0157 11.8059 14.8821 11.4822 14.7486 11.1585C14.7269 11.1024 14.7114 11.0463 14.6896 10.9945C14.7207 10.9298 14.7704 10.9082 14.8138 10.878C15.4348 10.4118 16.0621 9.97161 16.6924 9.54C17.1737 9.21198 17.6487 8.8667 18.1269 8.53436C18.2418 8.45236 18.3598 8.3833 18.4747 8.30561C18.5585 8.2495 18.6361 8.25814 18.7169 8.30993ZM16.0887 19.5678C15.5816 19.5678 15.0236 19.6685 14.5336 19.806C14.0994 19.925 13.6683 20.0612 13.2464 20.2525C12.5843 20.5587 11.9561 20.9584 11.3833 21.5113C11.0785 21.8005 10.7982 22.1322 10.5642 22.5319C10.3209 22.9487 10.1269 23.3995 10.0315 23.9268C9.98219 24.1947 9.94213 24.4584 9.96062 24.7348C9.99144 25.2069 10.09 25.6534 10.2378 26.0787C10.2809 26.202 10.3332 26.3168 10.3917 26.4274C10.4718 26.5762 10.5611 26.708 10.6442 26.8526C10.8198 27.1503 11.02 27.4097 11.2355 27.6479C11.719 28.1752 12.2333 28.6175 12.7999 28.9492C12.8892 29.0002 12.9846 29.0428 13.0709 29.1023C13.2217 29.2086 13.3757 29.2894 13.5358 29.3617C14.1794 29.6509 14.8323 29.8593 15.5036 29.9826C15.9778 30.0677 16.4521 30.1017 16.8863 30.1187C17.3451 30.1187 17.8871 30.0592 18.3798 29.9784C18.851 29.9018 19.3129 29.7742 19.7686 29.6041C20.0212 29.5105 20.2614 29.3745 20.5077 29.2554C21.1144 28.9577 21.681 28.5622 22.1953 28.0221C22.3215 27.8903 22.4416 27.7542 22.5555 27.6011C22.6387 27.4905 22.7157 27.38 22.8081 27.2864C22.8389 27.2524 22.8696 27.2099 22.882 27.1631C22.9097 27.0568 22.9651 26.9845 23.0144 26.8994C23.0544 26.8314 23.0914 26.7548 23.1252 26.6825C23.2577 26.3976 23.3439 26.0914 23.4178 25.7725C23.541 25.2451 23.5471 24.7136 23.4517 24.182C23.3193 23.459 23.0452 22.8467 22.6572 22.3321C22.1829 21.7069 21.6409 21.2179 21.0497 20.8309C20.5077 20.4737 19.9411 20.2015 19.356 20.0101C18.9865 19.891 18.6169 19.7762 18.2412 19.7124C17.5149 19.5921 16.8253 19.5678 16.0887 19.5678Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 8.30561C18.427 8.33789 18.3787 8.36869 18.3303 8.39953C18.2623 8.44293 18.1941 8.48643 18.1269 8.53436C17.9301 8.67112 17.7339 8.81008 17.5376 8.94912C17.2567 9.14795 16.9756 9.34697 16.6924 9.54C16.0621 9.97161 15.4348 10.4118 14.8138 10.878C14.8058 10.8836 14.7974 10.8889 14.7891 10.8943C14.7525 10.9177 14.7149 10.9418 14.6896 10.9945C14.7017 11.0231 14.7118 11.0531 14.7221 11.0836C14.7304 11.1083 14.7389 11.1334 14.7486 11.1585L15.1492 12.1296C15.261 12.3972 15.3759 12.6648 15.4907 12.9324C15.5249 13.0101 15.5529 13.0921 15.5622 13.1827C15.5746 13.3079 15.5497 13.4158 15.4752 13.4935C15.3728 13.6057 15.2641 13.705 15.1461 13.7783C15.0188 13.8517 14.8884 13.882 14.7518 13.856C14.5251 13.8129 14.2984 13.7956 14.0686 13.7913C11.851 13.7693 9.70927 14.1225 7.72191 15.1293C5.07277 16.4724 2.55609 18.6009 1.5801 21.4782C1.1223 22.8234 1.02213 24.2815 1.34101 25.6691C1.54595 26.5625 1.86266 27.3826 2.25079 28.1465C3.19008 29.9802 4.59359 31.5031 6.17868 32.8035C6.63302 33.1782 7.11101 33.4913 7.58668 33.8029L7.62254 33.8264C8.55093 34.435 9.50732 34.9529 10.4947 35.35C11.2493 35.6521 12.0069 35.9154 12.7769 36.1269C13.193 36.2391 13.606 36.3427 14.0252 36.4161C14.2767 36.4635 14.5282 36.5067 14.7797 36.5455C15.0654 36.5887 15.3541 36.6276 15.6398 36.6577C15.882 36.6837 16.1273 36.7095 16.3695 36.7225C16.4118 36.7251 16.4542 36.7278 16.4966 36.7304C16.8057 36.7499 17.1166 36.7695 17.4252 36.7657C17.832 36.7613 18.2387 36.7441 18.6455 36.7139C19.1827 36.675 19.7167 36.6276 20.2508 36.5455C20.642 36.4851 21.0302 36.4117 21.4152 36.3168C22.002 36.1744 22.5827 35.9931 23.1602 35.7859C24.0731 35.4579 24.9705 35.0565 25.8399 34.5472C26.3522 34.2451 26.8459 33.8955 27.3396 33.5416C27.5601 33.3819 27.7775 33.2179 27.9731 33.0021C27.9919 32.9791 28.0144 32.9612 28.0377 32.9425C28.0451 32.9366 28.0525 32.9306 28.06 32.9244C28.4823 32.5791 28.8828 32.1993 29.2617 31.772C29.7554 31.2066 30.1869 30.5635 30.5254 29.8039C30.6714 29.4802 30.7955 29.1435 30.8825 28.781C31.0098 28.2587 31.0564 27.7322 30.9943 27.1883C30.9886 27.1374 30.9824 27.0856 30.976 27.0332C30.9684 26.9703 30.9607 26.9067 30.9539 26.843C30.9384 26.6877 30.9756 26.5625 31.0657 26.4632C31.1433 26.3769 31.224 26.2949 31.311 26.2302C31.4507 26.1266 31.6029 26.0964 31.7581 26.1395C32.2115 26.2647 32.6648 26.3899 33.115 26.5194C33.5404 26.6445 33.9689 26.774 34.3943 26.9035C34.5216 26.9423 34.6396 26.9251 34.7514 26.8258C34.8818 26.7136 35.0153 26.6057 35.1488 26.5021C35.8647 25.9433 36.5823 25.3846 37.3002 24.8258C37.3066 24.8208 37.313 24.8158 37.3195 24.8109C37.4452 24.713 37.571 24.6151 37.6967 24.5173C37.7156 24.5026 37.7345 24.4879 37.7534 24.4732C37.8716 24.3812 37.9898 24.2892 38.1079 24.1973C38.1179 24.1892 38.1297 24.1827 38.1415 24.1761C38.1738 24.1581 38.2065 24.1399 38.2043 24.0894C38.2043 24.054 38.1731 24.0354 38.1431 24.0175C38.1329 24.0114 38.1228 24.0053 38.1142 23.9988C37.9706 23.8835 37.827 23.7684 37.6834 23.6533C37.6663 23.6396 37.6492 23.6259 37.6321 23.6121C37.5463 23.5434 37.4606 23.4747 37.3748 23.406C37.3598 23.394 37.3448 23.382 37.3299 23.37C37.3235 23.3649 37.3172 23.3598 37.3109 23.3548C36.697 22.8629 36.0837 22.3712 35.4718 21.8753C34.4771 21.0724 33.4844 20.265 32.4917 19.4575C30.9494 18.2031 29.4073 16.9487 27.8582 15.7119C26.8417 14.901 25.8302 14.0796 24.8181 13.2577C24.2412 12.7891 23.6641 12.3204 23.0857 11.8534C21.7692 10.7917 20.4557 9.71696 19.1485 8.63363C19.0088 8.5171 18.8659 8.40488 18.7169 8.30993C18.6361 8.25814 18.5585 8.2495 18.4747 8.30561ZM19.34 7.33826C19.1872 7.24051 18.9498 7.12688 18.6438 7.11449C18.3205 7.1014 18.0424 7.206 17.8314 7.34722L17.8268 7.35031C17.7929 7.37321 17.7598 7.39432 17.7123 7.42463C17.7016 7.43149 17.6901 7.43882 17.6777 7.44674C17.6188 7.48441 17.5421 7.53387 17.4614 7.59116C17.2467 7.74047 17.0473 7.88172 16.8525 8.01971C16.5827 8.21084 16.3218 8.39571 16.041 8.58706L16.0389 8.58848C15.4118 9.01791 14.7794 9.46141 14.1495 9.93328C14.1285 9.94689 14.0812 9.97793 14.0278 10.0204C13.8992 10.1224 13.7536 10.275 13.6475 10.4962L13.6239 11.4404C13.6204 11.432 13.6181 11.4258 13.6181 11.4258C13.6181 11.4258 13.62 11.431 13.6245 11.4444L13.6265 11.4502C13.6301 11.4611 13.636 11.4784 13.6417 11.4948C13.6492 11.5162 13.659 11.5439 13.671 11.5748L13.6802 11.5979L14.0808 12.569L14.0828 12.5738C14.0917 12.5952 14.1007 12.6167 14.1097 12.6382C14.1032 12.638 14.0968 12.6379 14.0904 12.6377L14.0801 12.6376C11.7325 12.6143 9.39529 12.9878 7.19913 14.1004L7.19875 14.1006C4.41337 15.5128 1.59829 17.8294 0.48606 21.107M19.34 7.33826C19.5494 7.47188 19.7353 7.61978 19.888 7.74706C21.191 8.82691 22.4999 9.89792 23.8117 10.9558L23.8123 10.9563C24.3962 11.4277 24.9757 11.8984 25.5535 12.3677C26.5624 13.187 27.5662 14.0022 28.5794 14.8105L28.5798 14.8109C30.1313 16.0495 31.6825 17.3113 33.2291 18.5692C34.2211 19.3761 35.2112 20.1814 36.1982 20.978L36.2 20.9794C36.8304 21.4904 37.4613 21.996 38.0956 22.5042C38.3258 22.6887 38.5565 22.8736 38.7876 23.0591C38.8065 23.0713 38.8312 23.0878 38.8589 23.1082C38.986 23.2021 39.35 23.5111 39.3596 24.0671C39.3638 24.2606 39.3234 24.4755 39.2109 24.6821C39.0985 24.889 38.9517 25.017 38.8566 25.087C38.8219 25.1123 38.7907 25.1325 38.7672 25.1471C37.7966 25.9022 36.827 26.6567 35.8604 27.4111L35.8578 27.4132C35.7379 27.5061 35.6215 27.6003 35.5102 27.6959C35.3248 27.8581 35.0888 27.9911 34.8055 28.0478C34.5213 28.1046 34.2631 28.0699 34.0567 28.0069C33.6339 27.8782 33.2108 27.7504 32.7919 27.6271C32.5865 27.568 32.3802 27.5098 32.1727 27.4518C32.195 28.0052 32.1308 28.5377 32.0057 29.0517C31.8985 29.4982 31.7478 29.9029 31.58 30.2754C31.1904 31.1492 30.6937 31.8876 30.1326 32.5302L30.1269 32.5368C29.7058 33.0116 29.2614 33.433 28.7955 33.8142C28.7946 33.815 28.7937 33.8157 28.7927 33.8165C28.5208 34.1075 28.2343 34.3189 28.0181 34.4755L28.0135 34.4788C27.522 34.8311 26.9898 35.2091 26.4275 35.5407L26.4246 35.5424C25.484 36.0934 24.5201 36.5235 23.5515 36.8715L23.5509 36.8717C22.9445 37.0893 22.3246 37.2834 21.6902 37.4374C21.2653 37.5421 20.8432 37.6215 20.4274 37.6857L20.4264 37.6859C19.847 37.7749 19.2773 37.8249 18.7305 37.8645C18.2996 37.8965 17.8686 37.9148 17.4375 37.9193C17.0826 37.9236 16.7258 37.901 16.4214 37.8818C16.381 37.8792 16.3415 37.8767 16.3031 37.8744C16.0274 37.8595 15.7544 37.8304 15.5176 37.805C15.2106 37.7726 14.9043 37.7312 14.6068 37.6863L14.603 37.6857C14.3413 37.6453 14.0796 37.6004 13.818 37.5511C13.3495 37.4688 12.8992 37.355 12.4756 37.2407L12.4705 37.2394C11.651 37.0143 10.8517 36.736 10.0647 36.4209L10.063 36.4202C8.99302 35.9899 7.96903 35.4337 6.98845 34.7909L6.93637 34.7568C6.47225 34.4529 5.9477 34.1094 5.44372 33.6938C3.78024 32.3288 2.25514 30.6887 1.22206 28.6719L1.22032 28.6685C0.795584 27.8325 0.443441 26.9239 0.214697 25.9267C-0.155145 24.317 -0.0359902 22.641 0.48606 21.107M28.8373 33.7676L28.8661 33.7342C28.8563 33.7462 28.8466 33.7573 28.8373 33.7676ZM38.8362 25.093C38.8312 25.097 38.8262 25.101 38.8215 25.1048L38.8362 25.093ZM38.7114 25.1799C38.7002 25.1864 38.696 25.1883 38.7021 25.185L38.706 25.1829L38.7114 25.1799ZM38.7383 23.0286C38.733 23.0253 38.7306 23.0238 38.7306 23.0238C38.7306 23.0238 38.7322 23.025 38.7356 23.0269C38.7356 23.0269 38.7368 23.0278 38.7383 23.0286ZM37.5751 23.1704C37.5877 23.1631 37.5905 23.1619 37.5761 23.1699L37.5751 23.1704ZM37.5487 25.0069C37.5567 25.0118 37.5583 25.0126 37.5497 25.0075L37.5487 25.0069ZM14.8461 20.9167L14.8396 20.9186C14.4325 21.0302 14.0689 21.147 13.7281 21.3013C13.1656 21.5618 12.6511 21.8923 12.1864 22.3408L12.1791 22.3478C11.9395 22.5751 11.7323 22.823 11.5622 23.1134C11.3691 23.4443 11.2344 23.7681 11.1685 24.1321L11.1679 24.1352C11.1209 24.391 11.1053 24.5344 11.1136 24.658L11.1137 24.6598C11.137 25.0176 11.2118 25.3618 11.329 25.6994C11.3492 25.7568 11.3757 25.8168 11.4115 25.8848C11.4347 25.9277 11.4622 25.9738 11.5021 26.0389C11.5079 26.0482 11.514 26.0582 11.5206 26.0689C11.555 26.1248 11.5998 26.1975 11.6427 26.2719C11.7702 26.4873 11.9191 26.6821 12.0903 26.8715C12.5141 27.3334 12.9381 27.6917 13.3784 27.9505C13.39 27.957 13.3981 27.9612 13.4131 27.969C13.427 27.9763 13.447 27.9868 13.4813 28.0051C13.5382 28.0354 13.6299 28.0855 13.7281 28.1533L13.7371 28.1596C13.809 28.2103 13.8928 28.2566 14.0107 28.3099C14.5751 28.5634 15.1383 28.7422 15.7105 28.8475C16.1011 28.9174 16.5063 28.9485 16.908 28.9648C17.2776 28.963 17.7426 28.9136 18.1926 28.8399L18.1943 28.8395C18.5823 28.7765 18.9708 28.6702 19.3641 28.5234L19.3667 28.5224C19.4829 28.4794 19.5705 28.4347 19.704 28.3666C19.7823 28.3267 19.8762 28.2789 20.0009 28.2186C20.4942 27.9761 20.9462 27.6594 21.3579 27.2271L21.3602 27.2247C21.4647 27.1156 21.551 27.0166 21.6281 26.913L21.6315 26.9083C21.6379 26.9 21.646 26.8889 21.6557 26.8756C21.6965 26.8202 21.7655 26.7263 21.8483 26.6278C21.8766 26.5625 21.9055 26.5068 21.9312 26.4609C21.9558 26.4168 21.9795 26.3784 21.9922 26.3577L21.9924 26.3573C22.0085 26.3313 22.0115 26.3264 22.0142 26.3217L22.0181 26.315C22.0283 26.2977 22.0454 26.2645 22.0777 26.1957C22.1598 26.0187 22.2246 25.8036 22.2921 25.5124L22.2925 25.5104C22.3774 25.1471 22.384 24.7752 22.3147 24.3878C22.2134 23.8362 22.0102 23.3926 21.735 23.0273C21.3443 22.5126 20.9014 22.1134 20.4162 21.7958L20.4132 21.7938C19.9566 21.4928 19.4837 21.2662 18.9986 21.1073C18.6282 20.988 18.3323 20.8984 18.0497 20.8502C17.4166 20.7455 16.8012 20.7216 16.0887 20.7216C15.7191 20.7216 15.2705 20.7977 14.8461 20.9167ZM18.2412 19.7124C18.6169 19.7762 18.9865 19.891 19.356 20.0101C19.9411 20.2015 20.5077 20.4737 21.0497 20.8309C21.6409 21.2179 22.1829 21.7069 22.6572 22.3321C23.0452 22.8467 23.3193 23.459 23.4517 24.182C23.5471 24.7136 23.541 25.2451 23.4178 25.7725C23.3439 26.0914 23.2577 26.3976 23.1252 26.6825C23.0914 26.7548 23.0544 26.8314 23.0144 26.8994C23.0034 26.9184 22.9921 26.9368 22.9808 26.9551C22.9417 27.0185 22.9035 27.0806 22.882 27.1631C22.8696 27.2099 22.8389 27.2524 22.8081 27.2864C22.7323 27.3631 22.6669 27.4513 22.6 27.5414C22.5853 27.5613 22.5705 27.5812 22.5555 27.6011C22.4416 27.7542 22.3215 27.8903 22.1953 28.0221C21.681 28.5622 21.1144 28.9577 20.5077 29.2554C20.4357 29.2902 20.3643 29.3264 20.2929 29.3626C20.1199 29.4504 19.9474 29.5379 19.7686 29.6041C19.3129 29.7742 18.851 29.9018 18.3798 29.9784C17.8871 30.0592 17.3451 30.1187 16.8863 30.1187C16.4521 30.1017 15.9778 30.0677 15.5036 29.9826C14.8323 29.8593 14.1794 29.6509 13.5358 29.3617C13.3757 29.2894 13.2217 29.2086 13.0709 29.1023C13.0148 29.0636 12.9547 29.032 12.8951 29.0007C12.863 28.9838 12.8311 28.967 12.7999 28.9492C12.2333 28.6175 11.719 28.1752 11.2355 27.6479C11.02 27.4097 10.8198 27.1503 10.6442 26.8526C10.6097 26.7926 10.5741 26.7347 10.5385 26.6769C10.4885 26.5955 10.4385 26.5144 10.3917 26.4274C10.3332 26.3168 10.2809 26.202 10.2378 26.0787C10.09 25.6534 9.99144 25.2069 9.96062 24.7348C9.94213 24.4584 9.98219 24.1947 10.0315 23.9268C10.1269 23.3995 10.3209 22.9487 10.5642 22.5319C10.7982 22.1322 11.0785 21.8005 11.3833 21.5113C11.9561 20.9584 12.5843 20.5587 13.2464 20.2525C13.6683 20.0612 14.0994 19.925 14.5336 19.806C15.0236 19.6685 15.5816 19.5678 16.0887 19.5678C16.8253 19.5678 17.5149 19.5921 18.2412 19.7124Z",fill:"#1F1F1F"}),Xe.jsx("path",{d:"M18.7169 6.77157C18.8659 6.86653 19.0088 6.97874 19.1485 7.09528C20.4557 8.17861 21.7692 9.2533 23.0857 10.3151C24.6786 11.6012 26.2622 12.9004 27.8582 14.1736C30.4043 16.2065 32.9318 18.2868 35.4718 20.3369C36.3505 21.0491 37.2323 21.7526 38.1142 22.4604C38.1483 22.4863 38.2043 22.5036 38.2043 22.5511C38.2073 22.6201 38.1452 22.6287 38.1079 22.659C37.1205 23.4272 36.1331 24.1955 35.1488 24.9637C35.0153 25.0673 34.8818 25.1752 34.7514 25.2874C34.6396 25.3867 34.5216 25.404 34.3943 25.3651C33.9689 25.2356 33.5404 25.1061 33.115 24.981C32.6648 24.8515 32.2115 24.7263 31.7581 24.6012C31.6029 24.558 31.4507 24.5882 31.311 24.6918C31.224 24.7566 31.1433 24.8386 31.0657 24.9249C30.9756 25.0242 30.9384 25.1493 30.9539 25.3047C30.9663 25.4212 30.9818 25.5378 30.9943 25.65C31.0564 26.1938 31.0098 26.7203 30.8825 27.2426C30.7955 27.6051 30.6714 27.9418 30.5254 28.2655C30.1869 29.0251 29.7554 29.6682 29.2617 30.2336C28.8828 30.6609 28.4823 31.0407 28.06 31.386C28.029 31.4119 27.9979 31.4335 27.9731 31.4637C27.7775 31.6795 27.5601 31.8435 27.3396 32.0032C26.8459 32.3571 26.3522 32.7067 25.8399 33.0088C24.9705 33.5182 24.0731 33.9195 23.1602 34.2476C22.5827 34.4547 22.002 34.636 21.4152 34.7784C21.0302 34.8734 20.642 34.9467 20.2508 35.0072C19.7167 35.0892 19.1827 35.1367 18.6455 35.1755C18.2387 35.2057 17.832 35.223 17.4252 35.2273C17.0743 35.2316 16.7204 35.2057 16.3695 35.1842C16.1273 35.1712 15.882 35.1453 15.6398 35.1194C15.3541 35.0892 15.0654 35.0504 14.7797 35.0072C14.5282 34.9683 14.2767 34.9252 14.0252 34.8777C13.606 34.8043 13.193 34.7007 12.7769 34.5885C12.0069 34.3771 11.2493 34.1138 10.4947 33.8116C9.50732 33.4145 8.55093 32.8966 7.62254 32.2881C7.13504 31.9687 6.64446 31.6493 6.17868 31.2652C4.59359 29.9647 3.19008 28.4419 2.25079 26.6081C1.86266 25.8442 1.54595 25.0242 1.34101 24.1307C1.02213 22.7432 1.1223 21.285 1.5801 19.9399C2.55609 17.0626 5.07277 14.9341 7.72191 13.5909C9.70927 12.5842 11.851 12.231 14.0686 12.253C14.2984 12.2573 14.5251 12.2745 14.7518 12.3177C14.8884 12.3436 15.0188 12.3134 15.1461 12.24C15.2641 12.1667 15.3728 12.0674 15.4752 11.9552C15.5497 11.8774 15.5746 11.7696 15.5622 11.6444C15.5529 11.5538 15.5249 11.4717 15.4907 11.3941C15.3759 11.1265 15.261 10.8589 15.1492 10.5913C15.0157 10.2676 14.8821 9.94388 14.7486 9.62017C14.7269 9.56406 14.7114 9.50795 14.6896 9.45615C14.7207 9.39142 14.7704 9.36984 14.8138 9.33962C15.4348 8.87349 16.0621 8.43325 16.6924 8.00165C17.1737 7.67363 17.6487 7.32834 18.1269 6.99601C18.2418 6.914 18.3598 6.84495 18.4747 6.76726C18.5585 6.71115 18.6361 6.71978 18.7169 6.77157ZM16.0887 18.0295C15.5816 18.0295 15.0236 18.1302 14.5336 18.2676C14.0994 18.3867 13.6683 18.5228 13.2464 18.7142C12.5843 19.0203 11.9561 19.4201 11.3833 19.9729C11.0785 20.2621 10.7982 20.5938 10.5642 20.9936C10.3209 21.4103 10.1269 21.8611 10.0315 22.3885C9.98219 22.6564 9.94213 22.92 9.96062 23.1965C9.99144 23.6685 10.09 24.115 10.2378 24.5403C10.2809 24.6636 10.3332 24.7784 10.3917 24.889C10.4718 25.0378 10.5611 25.1697 10.6442 25.3143C10.8198 25.612 11.02 25.8714 11.2355 26.1095C11.719 26.6369 12.2333 27.0791 12.7999 27.4108C12.8892 27.4619 12.9846 27.5044 13.0709 27.5639C13.2217 27.6702 13.3757 27.751 13.5358 27.8233C14.1794 28.1125 14.8323 28.3209 15.5036 28.4442C15.9778 28.5293 16.4521 28.5633 16.8863 28.5803C17.3451 28.5803 17.8871 28.5208 18.3798 28.44C18.851 28.3634 19.3129 28.2359 19.7686 28.0658C20.0212 27.9722 20.2614 27.8361 20.5077 27.717C21.1144 27.4193 21.681 27.0239 22.1953 26.4838C22.3215 26.352 22.4416 26.2158 22.5555 26.0627C22.6387 25.9522 22.7157 25.8416 22.8081 25.7481C22.8389 25.714 22.8696 25.6715 22.882 25.6247C22.9097 25.5184 22.9651 25.4461 23.0144 25.3611C23.0544 25.293 23.0914 25.2165 23.1252 25.1442C23.2577 24.8592 23.3439 24.5531 23.4178 24.2341C23.541 23.7068 23.5471 23.1752 23.4517 22.6436C23.3193 21.9207 23.0452 21.3083 22.6572 20.7937C22.1829 20.1686 21.6409 19.6795 21.0497 19.2925C20.5077 18.9353 19.9411 18.6631 19.356 18.4718C18.9865 18.3527 18.6169 18.2379 18.2412 18.1741C17.5149 18.0537 16.8253 18.0295 16.0887 18.0295Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 6.76726C18.427 6.79954 18.3787 6.83033 18.3303 6.86118C18.2623 6.90457 18.1941 6.94808 18.1269 6.99601C17.9301 7.13277 17.7339 7.27172 17.5376 7.41076C17.2567 7.6096 16.9756 7.80861 16.6924 8.00165C16.0621 8.43325 15.4348 8.87349 14.8138 9.33962C14.8058 9.34525 14.7974 9.35058 14.7891 9.35594C14.7525 9.37937 14.7149 9.40347 14.6896 9.45615C14.7017 9.48476 14.7118 9.51472 14.7221 9.54526C14.7304 9.56995 14.7389 9.59506 14.7486 9.62017L15.1492 10.5913C15.261 10.8589 15.3759 11.1265 15.4907 11.3941C15.5249 11.4717 15.5529 11.5538 15.5622 11.6444C15.5746 11.7696 15.5497 11.8774 15.4752 11.9552C15.3728 12.0674 15.2641 12.1667 15.1461 12.24C15.0188 12.3134 14.8884 12.3436 14.7518 12.3177C14.5251 12.2745 14.2984 12.2573 14.0686 12.253C11.851 12.231 9.70927 12.5842 7.72191 13.5909C5.07277 14.9341 2.55609 17.0626 1.5801 19.9399C1.1223 21.285 1.02213 22.7432 1.34101 24.1307C1.54595 25.0242 1.86266 25.8442 2.25079 26.6081C3.19008 28.4419 4.59359 29.9647 6.17868 31.2652C6.63302 31.6399 7.11101 31.953 7.58668 32.2646L7.62254 32.2881C8.55093 32.8966 9.50732 33.4145 10.4947 33.8116C11.2493 34.1138 12.0069 34.3771 12.7769 34.5885C13.193 34.7007 13.606 34.8043 14.0252 34.8777C14.2767 34.9252 14.5282 34.9683 14.7797 35.0072C15.0654 35.0504 15.3541 35.0892 15.6398 35.1194C15.882 35.1453 16.1273 35.1712 16.3695 35.1842C16.4118 35.1867 16.4542 35.1894 16.4966 35.1921C16.8057 35.2115 17.1166 35.2311 17.4252 35.2273C17.832 35.223 18.2387 35.2057 18.6455 35.1755C19.1827 35.1367 19.7167 35.0892 20.2508 35.0072C20.642 34.9467 21.0302 34.8734 21.4152 34.7784C22.002 34.636 22.5827 34.4547 23.1602 34.2476C24.0731 33.9195 24.9705 33.5182 25.8399 33.0088C26.3522 32.7067 26.8459 32.3571 27.3396 32.0032C27.5601 31.8435 27.7775 31.6795 27.9731 31.4637C27.9919 31.4408 28.0144 31.4228 28.0377 31.4041C28.0451 31.3982 28.0525 31.3923 28.06 31.386C28.4823 31.0407 28.8828 30.6609 29.2617 30.2336C29.7554 29.6682 30.1869 29.0251 30.5254 28.2655C30.6714 27.9418 30.7955 27.6051 30.8825 27.2426C31.0098 26.7203 31.0564 26.1938 30.9943 25.65C30.9886 25.599 30.9824 25.5472 30.976 25.4949C30.9684 25.4319 30.9607 25.3683 30.9539 25.3047C30.9384 25.1493 30.9756 25.0242 31.0657 24.9249C31.1433 24.8386 31.224 24.7566 31.311 24.6918C31.4507 24.5882 31.6029 24.558 31.7581 24.6012C32.2115 24.7263 32.6648 24.8515 33.115 24.981C33.5404 25.1061 33.9689 25.2356 34.3943 25.3651C34.5216 25.404 34.6396 25.3867 34.7514 25.2874C34.8818 25.1752 35.0153 25.0673 35.1488 24.9637C35.8647 24.405 36.5823 23.8462 37.3002 23.2875C37.3066 23.2825 37.313 23.2775 37.3195 23.2725C37.4452 23.1746 37.571 23.0768 37.6967 22.9789C37.7156 22.9642 37.7345 22.9495 37.7534 22.9348C37.8716 22.8428 37.9898 22.7509 38.1079 22.659C38.1179 22.6509 38.1297 22.6443 38.1415 22.6377C38.1738 22.6198 38.2065 22.6016 38.2043 22.5511C38.2043 22.5156 38.1731 22.497 38.1431 22.4791C38.1329 22.473 38.1228 22.467 38.1142 22.4604C37.9706 22.3451 37.827 22.23 37.6834 22.115C37.6663 22.1012 37.6492 22.0875 37.6321 22.0738C37.5463 22.0051 37.4606 21.9363 37.3748 21.8676C37.3598 21.8556 37.3448 21.8436 37.3299 21.8316C37.3235 21.8266 37.3172 21.8215 37.3109 21.8164C36.697 21.3245 36.0837 20.8328 35.4718 20.3369C34.4771 19.5341 33.4844 18.7266 32.4917 17.9192C30.9494 16.6648 29.4073 15.4104 27.8582 14.1736C26.8417 13.3626 25.8302 12.5412 24.8181 11.7193C24.2412 11.2508 23.6641 10.7821 23.0857 10.3151C21.7692 9.2533 20.4557 8.17861 19.1485 7.09528C19.0088 6.97874 18.8659 6.86653 18.7169 6.77157C18.6361 6.71978 18.5585 6.71115 18.4747 6.76726ZM19.34 5.79991C19.1872 5.70215 18.9498 5.58852 18.6438 5.57614C18.3205 5.56305 18.0424 5.66765 17.8314 5.80886L17.8268 5.81195C17.7929 5.83485 17.7598 5.85596 17.7123 5.88627C17.7016 5.89313 17.6901 5.90046 17.6777 5.90839C17.6188 5.94605 17.5421 5.99552 17.4614 6.0528C17.2467 6.20211 17.0473 6.34337 16.8525 6.48136C16.5827 6.67248 16.3218 6.85736 16.041 7.0487L16.0389 7.05012C15.4118 7.47956 14.7794 7.92305 14.1495 8.39492C14.1285 8.40853 14.0812 8.43958 14.0278 8.48201C13.8992 8.58408 13.7536 8.7366 13.6475 8.95782L13.6239 9.90208C13.6204 9.89369 13.6181 9.88746 13.6181 9.88746C13.6181 9.88746 13.62 9.89262 13.6245 9.90604L13.6265 9.91189C13.6301 9.92273 13.636 9.94007 13.6417 9.95642C13.6492 9.97788 13.659 10.0055 13.671 10.0364L13.6802 10.0595L14.0808 11.0307L14.0828 11.0354C14.0917 11.0569 14.1007 11.0783 14.1097 11.0998C14.1032 11.0997 14.0968 11.0995 14.0904 11.0994L14.0801 11.0993C11.7325 11.076 9.39529 11.4495 7.19913 12.562L7.19875 12.5622C4.41337 13.9744 1.59829 16.2911 0.48606 19.5686M19.34 5.79991C19.5494 5.93352 19.7353 6.08142 19.888 6.2087C21.191 7.28855 22.4999 8.35957 23.8117 9.41748L23.8123 9.41791C24.3962 9.88939 24.9757 10.36 25.5535 10.8293C26.5624 11.6487 27.5662 12.4638 28.5794 13.2722L28.5798 13.2725C30.1313 14.5112 31.6825 15.7729 33.2291 17.0309C34.2211 17.8377 35.2112 18.643 36.1982 19.4397L36.2 19.4411C36.8304 19.952 37.4613 20.4576 38.0956 20.9659C38.3258 21.1503 38.5565 21.3352 38.7876 21.5208C38.8065 21.5329 38.8312 21.5495 38.8589 21.5699C38.986 21.6638 39.35 21.9727 39.3596 22.5288C39.3638 22.7222 39.3234 22.9371 39.2109 23.1437C39.0985 23.3506 38.9517 23.4786 38.8566 23.5486C38.8219 23.5739 38.7907 23.5941 38.7672 23.6088C37.7966 24.3639 36.827 25.1183 35.8604 25.8727L35.8578 25.8748C35.7379 25.9678 35.6215 26.0619 35.5102 26.1576C35.3248 26.3198 35.0888 26.4527 34.8055 26.5094C34.5213 26.5662 34.2631 26.5315 34.0567 26.4685C33.6339 26.3398 33.2108 26.212 32.7919 26.0887C32.5865 26.0297 32.3802 25.9714 32.1727 25.9135C32.195 26.4668 32.1308 26.9994 32.0057 27.5134C31.8985 27.9599 31.7478 28.3646 31.58 28.7371C31.1904 29.6108 30.6937 30.3492 30.1326 30.9919L30.1269 30.9984C29.7058 31.4733 29.2614 31.8946 28.7955 32.2759C28.7946 32.2767 28.7937 32.2774 28.7927 32.2782C28.5208 32.5692 28.2343 32.7805 28.0181 32.9371L28.0135 32.9405C27.522 33.2928 26.9898 33.6707 26.4275 34.0023L26.4246 34.004C25.484 34.555 24.5201 34.9851 23.5515 35.3332L23.5509 35.3334C22.9445 35.5509 22.3246 35.745 21.6902 35.899C21.2653 36.0037 20.8432 36.0832 20.4274 36.1474L20.4264 36.1475C19.847 36.2365 19.2773 36.2866 18.7305 36.3261C18.2996 36.3581 17.8686 36.3764 17.4375 36.381C17.0826 36.3853 16.7258 36.3627 16.4214 36.3434C16.381 36.3409 16.3415 36.3384 16.3031 36.336C16.0274 36.3211 15.7544 36.292 15.5176 36.2667C15.2106 36.2342 14.9043 36.1929 14.6068 36.148L14.603 36.1474C14.3413 36.107 14.0796 36.0621 13.818 36.0128C13.3495 35.9304 12.8992 35.8166 12.4756 35.7024L12.4705 35.701C11.651 35.4759 10.8517 35.1976 10.0647 34.8825L10.063 34.8819C8.99302 34.4515 7.96903 33.8954 6.98845 33.2526L6.93637 33.2185C6.47225 32.9145 5.9477 32.571 5.44372 32.1554C3.78024 30.7905 2.25514 29.1503 1.22206 27.1335L1.22032 27.1301C0.795584 26.2941 0.443441 25.3856 0.214697 24.3883C-0.155145 22.7786 -0.0359902 21.1027 0.48606 19.5686M28.8373 32.2292L28.8661 32.1958C28.8563 32.2078 28.8466 32.219 28.8373 32.2292ZM38.8362 23.5546C38.8312 23.5587 38.8262 23.5626 38.8215 23.5664L38.8362 23.5546ZM38.7114 23.6416C38.7002 23.648 38.696 23.65 38.7021 23.6466L38.706 23.6445L38.7114 23.6416ZM38.7383 21.4902C38.733 21.4869 38.7306 21.4855 38.7306 21.4855C38.7306 21.4855 38.7322 21.4866 38.7356 21.4886C38.7356 21.4886 38.7368 21.4894 38.7383 21.4902ZM37.5751 21.6321C37.5877 21.6247 37.5905 21.6235 37.5761 21.6315L37.5751 21.6321ZM37.5487 23.4685C37.5567 23.4735 37.5583 23.4742 37.5497 23.4691L37.5487 23.4685ZM14.8461 19.3784L14.8396 19.3802C14.4325 19.4918 14.0689 19.6087 13.7281 19.7629C13.1656 20.0235 12.6511 20.3539 12.1864 20.8025L12.1791 20.8094C11.9395 21.0368 11.7323 21.2846 11.5622 21.5751C11.3691 21.906 11.2344 22.2297 11.1685 22.5937L11.1679 22.5969C11.1209 22.8526 11.1053 22.9961 11.1136 23.1196L11.1137 23.1215C11.137 23.4792 11.2118 23.8234 11.329 24.161C11.3492 24.2184 11.3757 24.2784 11.4115 24.3464C11.4347 24.3893 11.4622 24.4354 11.5021 24.5005C11.5079 24.5098 11.514 24.5199 11.5206 24.5305C11.555 24.5865 11.5998 24.6592 11.6427 24.7335C11.7702 24.949 11.9191 25.1437 12.0903 25.3332C12.5141 25.795 12.9381 26.1533 13.3784 26.4121C13.39 26.4186 13.3981 26.4228 13.4131 26.4307C13.427 26.438 13.447 26.4484 13.4813 26.4667C13.5382 26.4971 13.6299 26.5472 13.7281 26.615L13.7371 26.6212C13.809 26.6719 13.8928 26.7182 14.0107 26.7715C14.5751 27.0251 15.1383 27.2038 15.7105 27.3091C16.1011 27.379 16.5063 27.4102 16.908 27.4265C17.2776 27.4246 17.7426 27.3753 18.1926 27.3015L18.1943 27.3012C18.5823 27.2382 18.9708 27.1318 19.3641 26.985L19.3667 26.9841C19.4829 26.941 19.5705 26.8963 19.704 26.8283C19.7823 26.7884 19.8762 26.7405 20.0009 26.6802C20.4942 26.4377 20.9462 26.1211 21.3579 25.6888L21.3602 25.6863C21.4647 25.5772 21.551 25.4782 21.6281 25.3746L21.6315 25.37C21.6379 25.3616 21.646 25.3506 21.6557 25.3372C21.6965 25.2819 21.7655 25.188 21.8483 25.0894C21.8766 25.0242 21.9055 24.9684 21.9312 24.9225C21.9558 24.8785 21.9795 24.84 21.9922 24.8194L21.9924 24.819C22.0085 24.7929 22.0115 24.7881 22.0142 24.7834L22.0181 24.7766C22.0283 24.7594 22.0454 24.7262 22.0777 24.6573C22.1598 24.4803 22.2246 24.2653 22.2921 23.974L22.2925 23.972C22.3774 23.6088 22.384 23.2369 22.3147 22.8495C22.2134 22.2978 22.0102 21.8542 21.735 21.4889C21.3443 20.9742 20.9014 20.575 20.4162 20.2574L20.4132 20.2554C19.9566 19.9545 19.4837 19.7278 18.9986 19.569C18.6282 19.4496 18.3323 19.36 18.0497 19.3119C17.4166 19.2072 16.8012 19.1832 16.0887 19.1832C15.7191 19.1832 15.2705 19.2594 14.8461 19.3784ZM18.2412 18.1741C18.6169 18.2379 18.9865 18.3527 19.356 18.4718C19.9411 18.6631 20.5077 18.9353 21.0497 19.2925C21.6409 19.6795 22.1829 20.1686 22.6572 20.7937C23.0452 21.3083 23.3193 21.9207 23.4517 22.6436C23.5471 23.1752 23.541 23.7068 23.4178 24.2341C23.3439 24.5531 23.2577 24.8592 23.1252 25.1442C23.0914 25.2165 23.0544 25.293 23.0144 25.3611C23.0034 25.3801 22.9921 25.3985 22.9808 25.4167C22.9417 25.4802 22.9035 25.5422 22.882 25.6247C22.8696 25.6715 22.8389 25.714 22.8081 25.7481C22.7323 25.8248 22.6669 25.9129 22.6 26.0031C22.5853 26.0229 22.5705 26.0428 22.5555 26.0627C22.4416 26.2158 22.3215 26.352 22.1953 26.4838C21.681 27.0239 21.1144 27.4193 20.5077 27.717C20.4357 27.7518 20.3643 27.7881 20.2929 27.8243C20.1199 27.912 19.9474 27.9995 19.7686 28.0658C19.3129 28.2359 18.851 28.3634 18.3798 28.44C17.8871 28.5208 17.3451 28.5803 16.8863 28.5803C16.4521 28.5633 15.9778 28.5293 15.5036 28.4442C14.8323 28.3209 14.1794 28.1125 13.5358 27.8233C13.3757 27.751 13.2217 27.6702 13.0709 27.5639C13.0148 27.5252 12.9547 27.4937 12.8951 27.4623C12.863 27.4455 12.8311 27.4287 12.7999 27.4108C12.2333 27.0791 11.719 26.6369 11.2355 26.1095C11.02 25.8714 10.8198 25.612 10.6442 25.3143C10.6097 25.2542 10.5741 25.1963 10.5385 25.1385C10.4885 25.0572 10.4385 24.976 10.3917 24.889C10.3332 24.7784 10.2809 24.6636 10.2378 24.5403C10.09 24.115 9.99144 23.6685 9.96062 23.1965C9.94213 22.92 9.98219 22.6564 10.0315 22.3885C10.1269 21.8611 10.3209 21.4103 10.5642 20.9936C10.7982 20.5938 11.0785 20.2621 11.3833 19.9729C11.9561 19.4201 12.5843 19.0203 13.2464 18.7142C13.6683 18.5228 14.0994 18.3867 14.5336 18.2676C15.0236 18.1302 15.5816 18.0295 16.0887 18.0295C16.8253 18.0295 17.5149 18.0537 18.2412 18.1741Z",fill:"#FAFAFA"}),Xe.jsx("path",{d:"M18.7169 6.0024C18.8659 6.09735 19.0088 6.20957 19.1485 6.3261C20.4557 7.40943 21.7692 8.48413 23.0857 9.54587C24.6786 10.8321 26.2622 12.1312 27.8582 13.4044C30.4043 15.4373 32.9318 17.5176 35.4718 19.5677C36.3505 20.2799 37.2323 20.9834 38.1142 21.6912C38.1483 21.7172 38.2043 21.7344 38.2043 21.7819C38.2073 21.851 38.1452 21.8596 38.1079 21.8898C37.1205 22.658 36.1331 23.4263 35.1488 24.1946C35.0153 24.2981 34.8818 24.406 34.7514 24.5183C34.6396 24.6175 34.5216 24.6348 34.3943 24.596C33.9689 24.4665 33.5404 24.337 33.115 24.2118C32.6648 24.0823 32.2115 23.9572 31.7581 23.832C31.6029 23.7889 31.4507 23.819 31.311 23.9227C31.224 23.9874 31.1433 24.0694 31.0657 24.1557C30.9756 24.255 30.9384 24.3801 30.9539 24.5355C30.9663 24.6521 30.9818 24.7686 30.9943 24.8808C31.0564 25.4246 31.0098 25.9512 30.8825 26.4734C30.7955 26.836 30.6714 27.1726 30.5254 27.4963C30.1869 28.2559 29.7554 28.899 29.2617 29.4644C28.8828 29.8917 28.4823 30.2716 28.06 30.6168C28.029 30.6427 27.9979 30.6643 27.9731 30.6945C27.7775 30.9103 27.5601 31.0743 27.3396 31.234C26.8459 31.5879 26.3522 31.9375 25.8399 32.2397C24.9705 32.749 24.0731 33.1504 23.1602 33.4784C22.5827 33.6855 22.002 33.8668 21.4152 34.0092C21.0302 34.1042 20.642 34.1776 20.2508 34.238C19.7167 34.32 19.1827 34.3675 18.6455 34.4063C18.2387 34.4366 17.832 34.4538 17.4252 34.4581C17.0743 34.4624 16.7204 34.4365 16.3695 34.415C16.1273 34.402 15.882 34.3761 15.6398 34.3502C15.3541 34.32 15.0654 34.2812 14.7797 34.238C14.5282 34.1991 14.2767 34.156 14.0252 34.1085C13.606 34.0352 13.193 33.9315 12.7769 33.8194C12.0069 33.6079 11.2493 33.3446 10.4947 33.0425C9.50732 32.6454 8.55093 32.1274 7.62254 31.5189C7.13504 31.1995 6.64446 30.8801 6.17868 30.496C4.59359 29.1955 3.19008 27.6727 2.25079 25.8389C1.86266 25.075 1.54595 24.255 1.34101 23.3615C1.02213 21.974 1.1223 20.5159 1.5801 19.1707C2.55609 16.2934 5.07277 14.1649 7.72191 12.8218C9.70927 11.815 11.851 11.4618 14.0686 11.4838C14.2984 11.4881 14.5251 11.5054 14.7518 11.5485C14.8884 11.5744 15.0188 11.5442 15.1461 11.4708C15.2641 11.3975 15.3728 11.2982 15.4752 11.186C15.5497 11.1083 15.5746 11.0004 15.5622 10.8752C15.5529 10.7846 15.5249 10.7026 15.4907 10.6249C15.3759 10.3573 15.261 10.0897 15.1492 9.82208C15.0157 9.49841 14.8821 9.1747 14.7486 8.851C14.7269 8.79488 14.7114 8.73877 14.6896 8.68697C14.7207 8.62224 14.7704 8.60066 14.8138 8.57045C15.4348 8.10431 16.0621 7.66407 16.6924 7.23247C17.1737 6.90445 17.6487 6.55917 18.1269 6.22683C18.2418 6.14482 18.3598 6.07577 18.4747 5.99808C18.5585 5.94197 18.6361 5.9506 18.7169 6.0024ZM16.0887 17.2603C15.5816 17.2603 15.0236 17.361 14.5336 17.4984C14.0994 17.6175 13.6683 17.7536 13.2464 17.945C12.5843 18.2512 11.9561 18.6509 11.3833 19.2037C11.0785 19.493 10.7982 19.8247 10.5642 20.2244C10.3209 20.6411 10.1269 21.092 10.0315 21.6193C9.98219 21.8872 9.94213 22.1509 9.96062 22.4273C9.99144 22.8993 10.09 23.3458 10.2378 23.7711C10.2809 23.8945 10.3332 24.0093 10.3917 24.1198C10.4718 24.2687 10.5611 24.4005 10.6442 24.5451C10.8198 24.8428 11.02 25.1022 11.2355 25.3404C11.719 25.8677 12.2333 26.31 12.7999 26.6417C12.8892 26.6927 12.9846 26.7352 13.0709 26.7948C13.2217 26.9011 13.3757 26.9819 13.5358 27.0542C14.1794 27.3433 14.8323 27.5518 15.5036 27.6751C15.9778 27.7601 16.4521 27.7942 16.8863 27.8112C17.3451 27.8112 17.8871 27.7516 18.3798 27.6708C18.851 27.5942 19.3129 27.4667 19.7686 27.2966C20.0212 27.203 20.2614 27.0669 20.5077 26.9479C21.1144 26.6502 21.681 26.2547 22.1953 25.7146C22.3215 25.5828 22.4416 25.4467 22.5555 25.2936C22.6387 25.183 22.7157 25.0724 22.8081 24.9789C22.8389 24.9449 22.8696 24.9023 22.882 24.8556C22.9097 24.7493 22.9651 24.677 23.0144 24.5919C23.0544 24.5238 23.0914 24.4473 23.1252 24.375C23.2577 24.0901 23.3439 23.7839 23.4178 23.4649C23.541 22.9376 23.5471 22.406 23.4517 21.8745C23.3193 21.1515 23.0452 20.5391 22.6572 20.0245C22.1829 19.3994 21.6409 18.9103 21.0497 18.5233C20.5077 18.1661 19.9411 17.894 19.356 17.7026C18.9865 17.5835 18.6169 17.4687 18.2412 17.4049C17.5149 17.2845 16.8253 17.2603 16.0887 17.2603Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 5.99808C18.427 6.03036 18.3787 6.06115 18.3303 6.092C18.2623 6.13539 18.1941 6.1789 18.1269 6.22683C17.9301 6.36359 17.7339 6.50254 17.5376 6.64158C17.2567 6.84042 16.9756 7.03943 16.6924 7.23247C16.0621 7.66407 15.4348 8.10431 14.8138 8.57045C14.8058 8.57607 14.7974 8.5814 14.7891 8.58676C14.7525 8.6102 14.7149 8.6343 14.6896 8.68697C14.7017 8.71558 14.7118 8.74554 14.7221 8.77608C14.7304 8.80077 14.7389 8.82588 14.7486 8.851L15.1492 9.82208C15.261 10.0897 15.3759 10.3573 15.4907 10.6249C15.5249 10.7026 15.5529 10.7846 15.5622 10.8752C15.5746 11.0004 15.5497 11.1083 15.4752 11.186C15.3728 11.2982 15.2641 11.3975 15.1461 11.4708C15.0188 11.5442 14.8884 11.5744 14.7518 11.5485C14.5251 11.5054 14.2984 11.4881 14.0686 11.4838C11.851 11.4618 9.70927 11.815 7.72191 12.8218C5.07277 14.1649 2.55609 16.2934 1.5801 19.1707C1.1223 20.5159 1.02213 21.974 1.34101 23.3615C1.54595 24.255 1.86266 25.075 2.25079 25.8389C3.19008 27.6727 4.59359 29.1955 6.17868 30.496C6.63302 30.8707 7.11101 31.1838 7.58668 31.4954L7.62254 31.5189C8.55093 32.1274 9.50732 32.6454 10.4947 33.0425C11.2493 33.3446 12.0069 33.6079 12.7769 33.8194C13.193 33.9315 13.606 34.0352 14.0252 34.1085C14.2767 34.156 14.5282 34.1991 14.7797 34.238C15.0654 34.2812 15.3541 34.32 15.6398 34.3502C15.882 34.3761 16.1273 34.402 16.3695 34.415C16.4118 34.4175 16.4542 34.4202 16.4966 34.4229C16.8057 34.4424 17.1166 34.4619 17.4252 34.4581C17.832 34.4538 18.2387 34.4366 18.6455 34.4063C19.1827 34.3675 19.7167 34.32 20.2508 34.238C20.642 34.1776 21.0302 34.1042 21.4152 34.0092C22.002 33.8668 22.5827 33.6855 23.1602 33.4784C24.0731 33.1504 24.9705 32.749 25.8399 32.2397C26.3522 31.9375 26.8459 31.5879 27.3396 31.234C27.5601 31.0743 27.7775 30.9103 27.9731 30.6945C27.9919 30.6716 28.0144 30.6536 28.0377 30.635C28.0451 30.629 28.0525 30.6231 28.06 30.6168C28.4823 30.2716 28.8828 29.8917 29.2617 29.4644C29.7554 28.899 30.1869 28.2559 30.5254 27.4963C30.6714 27.1726 30.7955 26.836 30.8825 26.4734C31.0098 25.9512 31.0564 25.4246 30.9943 24.8808C30.9886 24.8299 30.9824 24.778 30.976 24.7257C30.9684 24.6628 30.9607 24.5991 30.9539 24.5355C30.9384 24.3801 30.9756 24.255 31.0657 24.1557C31.1433 24.0694 31.224 23.9874 31.311 23.9227C31.4507 23.819 31.6029 23.7889 31.7581 23.832C32.2115 23.9572 32.6648 24.0823 33.115 24.2118C33.5404 24.337 33.9689 24.4665 34.3943 24.596C34.5216 24.6348 34.6396 24.6175 34.7514 24.5183C34.8818 24.406 35.0153 24.2981 35.1488 24.1946C35.8647 23.6358 36.5823 23.077 37.3002 22.5183C37.3066 22.5133 37.313 22.5083 37.3195 22.5033C37.4452 22.4055 37.571 22.3076 37.6967 22.2097C37.7156 22.195 37.7345 22.1804 37.7534 22.1656C37.8716 22.0737 37.9898 21.9817 38.1079 21.8898C38.1179 21.8817 38.1297 21.8751 38.1415 21.8686C38.1738 21.8506 38.2065 21.8324 38.2043 21.7819C38.2043 21.7465 38.1731 21.7278 38.1431 21.71C38.1329 21.7038 38.1228 21.6978 38.1142 21.6912C37.9706 21.576 37.827 21.4609 37.6834 21.3458C37.6663 21.3321 37.6492 21.3183 37.6321 21.3046C37.5463 21.2359 37.4606 21.1672 37.3748 21.0984C37.3598 21.0864 37.3448 21.0744 37.3299 21.0624C37.3235 21.0574 37.3172 21.0523 37.3109 21.0472C36.697 20.5553 36.0837 20.0637 35.4718 19.5677C34.4771 18.7649 33.4844 17.9574 32.4917 17.15C30.9494 15.8956 29.4073 14.6412 27.8582 13.4044C26.8417 12.5935 25.8302 11.772 24.8181 10.9501C24.2412 10.4816 23.6641 10.0129 23.0857 9.54587C21.7692 8.48413 20.4557 7.40943 19.1485 6.3261C19.0088 6.20957 18.8659 6.09735 18.7169 6.0024C18.6361 5.9506 18.5585 5.94197 18.4747 5.99808ZM19.34 5.03073C19.1872 4.93297 18.9498 4.81935 18.6438 4.80696C18.3205 4.79387 18.0424 4.89847 17.8314 5.03968L17.8268 5.04277C17.7929 5.06568 17.7598 5.08678 17.7123 5.11709C17.7016 5.12395 17.6901 5.13128 17.6777 5.13921C17.6188 5.17687 17.5421 5.22634 17.4614 5.28363C17.2467 5.43294 17.0473 5.57419 16.8525 5.71218C16.5827 5.90331 16.3218 6.08818 16.041 6.27953L16.0389 6.28095C15.4118 6.71038 14.7794 7.15387 14.1495 7.62575C14.1285 7.63935 14.0812 7.6704 14.0278 7.71283C13.8992 7.81491 13.7536 7.96742 13.6475 8.18864L13.6239 9.1329C13.6204 9.12452 13.6181 9.11829 13.6181 9.11829C13.6181 9.11829 13.62 9.12344 13.6245 9.13686L13.6265 9.14271C13.6301 9.15355 13.636 9.1709 13.6417 9.18724C13.6492 9.2087 13.659 9.23635 13.671 9.26724L13.6802 9.29035L14.0808 10.2615L14.0828 10.2662C14.0917 10.2877 14.1007 10.3092 14.1097 10.3306C14.1032 10.3305 14.0968 10.3304 14.0904 10.3302L14.0801 10.3301C11.7325 10.3068 9.39529 10.6803 7.19913 11.7928L7.19875 11.793C4.41337 13.2052 1.59829 15.5219 0.48606 18.7994M19.34 5.03073C19.5494 5.16434 19.7353 5.31224 19.888 5.43953C21.191 6.51937 22.4999 7.59039 23.8117 8.6483L23.8123 8.64873C24.3962 9.12021 24.9757 9.59087 25.5535 10.0601C26.5624 10.8795 27.5662 11.6946 28.5794 12.503L28.5798 12.5033C30.1313 13.742 31.6825 15.0038 33.2291 16.2617C34.2211 17.0685 35.2112 17.8738 36.1982 18.6705L36.2 18.6719C36.8304 19.1829 37.4613 19.6884 38.0956 20.1967C38.3258 20.3812 38.5565 20.566 38.7876 20.7516C38.8065 20.7637 38.8312 20.7803 38.8589 20.8007C38.986 20.8946 39.35 21.2036 39.3596 21.7596C39.3638 21.953 39.3234 22.1679 39.2109 22.3746C39.0985 22.5814 38.9517 22.7095 38.8566 22.7794C38.8219 22.8047 38.7907 22.825 38.7672 22.8396C37.7966 23.5947 36.827 24.3492 35.8604 25.1036L35.8578 25.1057C35.7379 25.1986 35.6215 25.2928 35.5102 25.3884C35.3248 25.5506 35.0888 25.6836 34.8055 25.7402C34.5213 25.797 34.2631 25.7623 34.0567 25.6993C33.6339 25.5707 33.2108 25.4428 32.7919 25.3196C32.5865 25.2605 32.3802 25.2023 32.1727 25.1443C32.195 25.6976 32.1308 26.2302 32.0057 26.7442C31.8985 27.1907 31.7478 27.5954 31.58 27.9679C31.1904 28.8417 30.6937 29.58 30.1326 30.2227L30.1269 30.2292C29.7058 30.7041 29.2614 31.1255 28.7955 31.5067C28.7946 31.5075 28.7937 31.5082 28.7927 31.509C28.5208 31.8 28.2343 32.0114 28.0181 32.1679L28.0135 32.1713C27.522 32.5236 26.9898 32.9015 26.4275 33.2331L26.4246 33.2348C25.484 33.7858 24.5201 34.216 23.5515 34.564L23.5509 34.5642C22.9445 34.7817 22.3246 34.9758 21.6902 35.1298C21.2653 35.2346 20.8432 35.314 20.4274 35.3782L20.4264 35.3784C19.847 35.4673 19.2773 35.5174 18.7305 35.557C18.2996 35.589 17.8686 35.6072 17.4375 35.6118C17.0826 35.6161 16.7258 35.5935 16.4214 35.5742C16.381 35.5717 16.3415 35.5692 16.3031 35.5668C16.0274 35.5519 15.7544 35.5228 15.5176 35.4975C15.2106 35.4651 14.9043 35.4237 14.6068 35.3788L14.603 35.3782C14.3413 35.3378 14.0796 35.2929 13.818 35.2436C13.3495 35.1612 12.8992 35.0474 12.4756 34.9332L12.4705 34.9318C11.651 34.7068 10.8517 34.4285 10.0647 34.1133L10.063 34.1127C8.99302 33.6824 7.96903 33.1262 6.98845 32.4834L6.93637 32.4493C6.47225 32.1453 5.9477 31.8018 5.44372 31.3863C3.78024 30.0213 2.25514 28.3812 1.22206 26.3643L1.22032 26.3609C0.795584 25.525 0.443441 24.6164 0.214697 23.6191C-0.155145 22.0094 -0.0359902 20.3335 0.48606 18.7994M28.8373 31.46L28.8661 31.4266C28.8563 31.4386 28.8466 31.4498 28.8373 31.46ZM38.8362 22.7854C38.8312 22.7895 38.8262 22.7935 38.8215 22.7973L38.8362 22.7854ZM38.7114 22.8724C38.7002 22.8788 38.696 22.8808 38.7021 22.8774L38.706 22.8753L38.7114 22.8724ZM38.7383 20.721C38.733 20.7178 38.7306 20.7163 38.7306 20.7163C38.7306 20.7163 38.7322 20.7175 38.7356 20.7194C38.7356 20.7194 38.7368 20.7202 38.7383 20.721ZM37.5751 20.8629C37.5877 20.8555 37.5905 20.8544 37.5761 20.8623L37.5751 20.8629ZM37.5487 22.6994C37.5567 22.7043 37.5583 22.705 37.5497 22.6999L37.5487 22.6994ZM14.8461 18.6092L14.8396 18.611C14.4325 18.7227 14.0689 18.8395 13.7281 18.9937C13.1656 19.2543 12.6511 19.5848 12.1864 20.0333L12.1791 20.0403C11.9395 20.2676 11.7323 20.5155 11.5622 20.8059C11.3691 21.1368 11.2344 21.4606 11.1685 21.8245L11.1679 21.8277C11.1209 22.0834 11.1053 22.2269 11.1136 22.3505L11.1137 22.3523C11.137 22.71 11.2118 23.0543 11.329 23.3918C11.3492 23.4492 11.3757 23.5093 11.4115 23.5773C11.4347 23.6201 11.4622 23.6663 11.5021 23.7313C11.5079 23.7407 11.514 23.7507 11.5206 23.7613C11.555 23.8173 11.5998 23.89 11.6427 23.9643C11.7702 24.1798 11.9191 24.3745 12.0903 24.564C12.5141 25.0258 12.9381 25.3842 13.3784 25.6429C13.39 25.6495 13.3981 25.6537 13.4131 25.6615C13.427 25.6688 13.447 25.6792 13.4813 25.6975C13.5382 25.7279 13.6299 25.778 13.7281 25.8458L13.7371 25.8521C13.809 25.9028 13.8928 25.9491 14.0107 26.0023C14.5751 26.2559 15.1383 26.4346 15.7105 26.5399C16.1011 26.6098 16.5063 26.641 16.908 26.6573C17.2776 26.6555 17.7426 26.6061 18.1926 26.5323L18.1943 26.532C18.5823 26.469 18.9708 26.3626 19.3641 26.2158L19.3667 26.2149C19.4829 26.1718 19.5705 26.1272 19.704 26.0591C19.7823 26.0192 19.8762 25.9713 20.0009 25.911C20.4942 25.6686 20.9462 25.3519 21.3579 24.9196L21.3602 24.9172C21.4647 24.8081 21.551 24.7091 21.6281 24.6054L21.6315 24.6008C21.6379 24.5924 21.646 24.5814 21.6557 24.5681C21.6965 24.5127 21.7655 24.4188 21.8483 24.3202C21.8766 24.255 21.9055 24.1993 21.9312 24.1533C21.9558 24.1093 21.9795 24.0708 21.9922 24.0502L21.9924 24.0498C22.0085 24.0237 22.0115 24.0189 22.0142 24.0142L22.0181 24.0075C22.0283 23.9902 22.0454 23.957 22.0777 23.8881C22.1598 23.7112 22.2246 23.4961 22.2921 23.2049L22.2925 23.2029C22.3774 22.8396 22.384 22.4677 22.3147 22.0803C22.2134 21.5286 22.0102 21.085 21.735 20.7197C21.3443 20.205 20.9014 19.8058 20.4162 19.4883L20.4132 19.4863C19.9566 19.1853 19.4837 18.9587 18.9986 18.7998C18.6282 18.6804 18.3323 18.5909 18.0497 18.5427C17.4166 18.438 16.8012 18.4141 16.0887 18.4141C15.7191 18.4141 15.2705 18.4902 14.8461 18.6092ZM18.2412 17.4049C18.6169 17.4687 18.9865 17.5835 19.356 17.7026C19.9411 17.894 20.5077 18.1661 21.0497 18.5233C21.6409 18.9103 22.1829 19.3994 22.6572 20.0245C23.0452 20.5391 23.3193 21.1515 23.4517 21.8745C23.5471 22.406 23.541 22.9376 23.4178 23.4649C23.3439 23.7839 23.2577 24.0901 23.1252 24.375C23.0914 24.4473 23.0544 24.5238 23.0144 24.5919C23.0034 24.6109 22.9921 24.6293 22.9808 24.6476C22.9417 24.711 22.9035 24.773 22.882 24.8556C22.8696 24.9023 22.8389 24.9449 22.8081 24.9789C22.7323 25.0556 22.6669 25.1437 22.6 25.2339C22.5853 25.2537 22.5705 25.2736 22.5555 25.2936C22.4416 25.4467 22.3215 25.5828 22.1953 25.7146C21.681 26.2547 21.1144 26.6502 20.5077 26.9479C20.4357 26.9826 20.3643 27.0189 20.2929 27.0551C20.1199 27.1428 19.9474 27.2304 19.7686 27.2966C19.3129 27.4667 18.851 27.5942 18.3798 27.6708C17.8871 27.7516 17.3451 27.8112 16.8863 27.8112C16.4521 27.7942 15.9778 27.7601 15.5036 27.6751C14.8323 27.5518 14.1794 27.3433 13.5358 27.0542C13.3757 26.9819 13.2217 26.9011 13.0709 26.7948C13.0148 26.756 12.9547 26.7245 12.8951 26.6931C12.863 26.6763 12.8311 26.6595 12.7999 26.6417C12.2333 26.31 11.719 25.8677 11.2355 25.3404C11.02 25.1022 10.8198 24.8428 10.6442 24.5451C10.6097 24.485 10.5741 24.4272 10.5385 24.3693C10.4885 24.288 10.4385 24.2068 10.3917 24.1198C10.3332 24.0093 10.2809 23.8945 10.2378 23.7711C10.09 23.3458 9.99144 22.8993 9.96062 22.4273C9.94213 22.1509 9.98219 21.8872 10.0315 21.6193C10.1269 21.092 10.3209 20.6411 10.5642 20.2244C10.7982 19.8247 11.0785 19.493 11.3833 19.2037C11.9561 18.6509 12.5843 18.2512 13.2464 17.945C13.6683 17.7536 14.0994 17.6175 14.5336 17.4984C15.0236 17.361 15.5816 17.2603 16.0887 17.2603C16.8253 17.2603 17.5149 17.2845 18.2412 17.4049Z",fill:"#1F1F1F"}),Xe.jsx("path",{d:"M18.7169 4.46404C18.8659 4.55899 19.0088 4.67121 19.1485 4.78774C20.4557 5.87107 21.7692 6.94577 23.0857 8.00752C24.6786 9.2937 26.2622 10.5928 27.8582 11.8661C30.4043 13.8989 32.9318 15.9793 35.4718 18.0294C36.3505 18.7415 37.2323 19.445 38.1142 20.1529C38.1483 20.1788 38.2043 20.196 38.2043 20.2435C38.2073 20.3126 38.1452 20.3212 38.1079 20.3514C37.1205 21.1197 36.1331 21.8879 35.1488 22.6562C35.0153 22.7598 34.8818 22.8677 34.7514 22.9799C34.6396 23.0792 34.5216 23.0964 34.3943 23.0576C33.9689 22.9281 33.5404 22.7986 33.115 22.6735C32.6648 22.544 32.2115 22.4188 31.7581 22.2937C31.6029 22.2505 31.4507 22.2807 31.311 22.3843C31.224 22.449 31.1433 22.531 31.0657 22.6174C30.9756 22.7166 30.9384 22.8418 30.9539 22.9971C30.9663 23.1137 30.9818 23.2302 30.9943 23.3424C31.0564 23.8863 31.0098 24.4128 30.8825 24.9351C30.7955 25.2976 30.6714 25.6343 30.5254 25.958C30.1869 26.7176 29.7554 27.3607 29.2617 27.9261C28.8828 28.3534 28.4823 28.7332 28.06 29.0785C28.029 29.1044 27.9979 29.126 27.9731 29.1562C27.7775 29.372 27.5601 29.536 27.3396 29.6957C26.8459 30.0496 26.3522 30.3992 25.8399 30.7013C24.9705 31.2106 24.0731 31.612 23.1602 31.94C22.5827 32.1472 22.002 32.3285 21.4152 32.4709C21.0302 32.5658 20.642 32.6392 20.2508 32.6996C19.7167 32.7817 19.1827 32.8291 18.6455 32.868C18.2387 32.8982 17.832 32.9155 17.4252 32.9198C17.0743 32.9241 16.7204 32.8982 16.3695 32.8766C16.1273 32.8637 15.882 32.8378 15.6398 32.8119C15.3541 32.7817 15.0654 32.7428 14.7797 32.6996C14.5282 32.6608 14.2767 32.6176 14.0252 32.5702C13.606 32.4968 13.193 32.3932 12.7769 32.281C12.0069 32.0695 11.2493 31.8062 10.4947 31.5041C9.50732 31.107 8.55093 30.5891 7.62254 29.9805C7.13504 29.6611 6.64446 29.3417 6.17868 28.9576C4.59359 27.6572 3.19008 26.1343 2.25079 24.3006C1.86266 23.5367 1.54595 22.7166 1.34101 21.8232C1.02213 20.4356 1.1223 18.9775 1.5801 17.6323C2.55609 14.7551 5.07277 12.6265 7.72191 11.2834C9.70927 10.2766 11.851 9.92342 14.0686 9.94542C14.2984 9.94973 14.5251 9.967 14.7518 10.0101C14.8884 10.0361 15.0188 10.0058 15.1461 9.93246C15.2641 9.85912 15.3728 9.75982 15.4752 9.64763C15.5497 9.56991 15.5746 9.46203 15.5622 9.33685C15.5529 9.24624 15.5249 9.16421 15.4907 9.08652C15.3759 8.81892 15.261 8.55132 15.1492 8.28373C15.0157 7.96006 14.8821 7.63635 14.7486 7.31264C14.7269 7.25653 14.7114 7.20042 14.6896 7.14861C14.7207 7.08388 14.7704 7.0623 14.8138 7.03209C15.4348 6.56596 16.0621 6.12572 16.6924 5.69411C17.1737 5.36609 17.6487 5.02081 18.1269 4.68847C18.2418 4.60647 18.3598 4.53741 18.4747 4.45972C18.5585 4.40361 18.6361 4.41225 18.7169 4.46404ZM16.0887 15.7219C15.5816 15.7219 15.0236 15.8226 14.5336 15.9601C14.0994 16.0792 13.6683 16.2153 13.2464 16.4066C12.5843 16.7128 11.9561 17.1125 11.3833 17.6654C11.0785 17.9546 10.7982 18.2863 10.5642 18.6861C10.3209 19.1028 10.1269 19.5536 10.0315 20.0809C9.98219 20.3488 9.94213 20.6125 9.96062 20.8889C9.99144 21.361 10.09 21.8075 10.2378 22.2328C10.2809 22.3561 10.3332 22.4709 10.3917 22.5815C10.4718 22.7303 10.5611 22.8622 10.6442 23.0068C10.8198 23.3044 11.02 23.5638 11.2355 23.802C11.719 24.3293 12.2333 24.7716 12.7999 25.1033C12.8892 25.1543 12.9846 25.1969 13.0709 25.2564C13.2217 25.3627 13.3757 25.4435 13.5358 25.5158C14.1794 25.805 14.8323 26.0134 15.5036 26.1367C15.9778 26.2218 16.4521 26.2558 16.8863 26.2728C17.3451 26.2728 17.8871 26.2133 18.3798 26.1325C18.851 26.0559 19.3129 25.9283 19.7686 25.7582C20.0212 25.6646 20.2614 25.5286 20.5077 25.4095C21.1144 25.1118 21.681 24.7163 22.1953 24.1763C22.3215 24.0444 22.4416 23.9083 22.5555 23.7552C22.6387 23.6446 22.7157 23.5341 22.8081 23.4405C22.8389 23.4065 22.8696 23.364 22.882 23.3172C22.9097 23.2109 22.9651 23.1386 23.0144 23.0535C23.0544 22.9855 23.0914 22.909 23.1252 22.8367C23.2577 22.5517 23.3439 22.2455 23.4178 21.9266C23.541 21.3993 23.5471 20.8677 23.4517 20.3361C23.3193 19.6131 23.0452 19.0008 22.6572 18.4862C22.1829 17.861 21.6409 17.372 21.0497 16.985C20.5077 16.6278 19.9411 16.3556 19.356 16.1642C18.9865 16.0452 18.6169 15.9303 18.2412 15.8666C17.5149 15.7462 16.8253 15.7219 16.0887 15.7219Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 4.45972C18.427 4.492 18.3787 4.5228 18.3303 4.55365C18.2623 4.59704 18.1941 4.64054 18.1269 4.68847C17.9301 4.82523 17.7339 4.96419 17.5376 5.10323C17.2567 5.30206 16.9756 5.50108 16.6924 5.69411C16.0621 6.12572 15.4348 6.56596 14.8138 7.03209C14.8058 7.03772 14.7974 7.04305 14.7891 7.04841C14.7525 7.07184 14.7149 7.09594 14.6896 7.14861C14.7017 7.17723 14.7118 7.20719 14.7221 7.23772C14.7304 7.26241 14.7389 7.28753 14.7486 7.31264L15.1492 8.28373C15.261 8.55132 15.3759 8.81892 15.4907 9.08652C15.5249 9.16421 15.5529 9.24624 15.5622 9.33685C15.5746 9.46203 15.5497 9.56991 15.4752 9.64763C15.3728 9.75982 15.2641 9.85912 15.1461 9.93246C15.0188 10.0058 14.8884 10.0361 14.7518 10.0101C14.5251 9.967 14.2984 9.94973 14.0686 9.94542C11.851 9.92342 9.70927 10.2766 7.72191 11.2834C5.07277 12.6265 2.55609 14.7551 1.5801 17.6323C1.1223 18.9775 1.02213 20.4356 1.34101 21.8232C1.54595 22.7166 1.86266 23.5367 2.25079 24.3006C3.19008 26.1343 4.59359 27.6572 6.17868 28.9576C6.63302 29.3323 7.11101 29.6455 7.58668 29.957L7.62254 29.9805C8.55093 30.5891 9.50732 31.107 10.4947 31.5041C11.2493 31.8062 12.0069 32.0695 12.7769 32.281C13.193 32.3932 13.606 32.4968 14.0252 32.5702C14.2767 32.6176 14.5282 32.6608 14.7797 32.6996C15.0654 32.7428 15.3541 32.7817 15.6398 32.8119C15.882 32.8378 16.1273 32.8637 16.3695 32.8766C16.4118 32.8792 16.4542 32.8819 16.4966 32.8845C16.8057 32.904 17.1166 32.9236 17.4252 32.9198C17.832 32.9155 18.2387 32.8982 18.6455 32.868C19.1827 32.8291 19.7167 32.7817 20.2508 32.6996C20.642 32.6392 21.0302 32.5658 21.4152 32.4709C22.002 32.3285 22.5827 32.1472 23.1602 31.94C24.0731 31.612 24.9705 31.2106 25.8399 30.7013C26.3522 30.3992 26.8459 30.0496 27.3396 29.6957C27.5601 29.536 27.7775 29.372 27.9731 29.1562C27.9919 29.1332 28.0144 29.1153 28.0377 29.0966C28.0451 29.0907 28.0525 29.0847 28.06 29.0785C28.4823 28.7332 28.8828 28.3534 29.2617 27.9261C29.7554 27.3607 30.1869 26.7176 30.5254 25.958C30.6714 25.6343 30.7955 25.2976 30.8825 24.9351C31.0098 24.4128 31.0564 23.8863 30.9943 23.3424C30.9886 23.2915 30.9824 23.2397 30.976 23.1873C30.9684 23.1244 30.9607 23.0608 30.9539 22.9971C30.9384 22.8418 30.9756 22.7166 31.0657 22.6174C31.1433 22.531 31.224 22.449 31.311 22.3843C31.4507 22.2807 31.6029 22.2505 31.7581 22.2937C32.2115 22.4188 32.6648 22.544 33.115 22.6735C33.5404 22.7986 33.9689 22.9281 34.3943 23.0576C34.5216 23.0964 34.6396 23.0792 34.7514 22.9799C34.8818 22.8677 35.0153 22.7598 35.1488 22.6562C35.8647 22.0974 36.5823 21.5387 37.3002 20.9799C37.3066 20.9749 37.313 20.9699 37.3195 20.965C37.4452 20.8671 37.571 20.7693 37.6967 20.6714C37.7156 20.6567 37.7345 20.642 37.7534 20.6273C37.8716 20.5353 37.9898 20.4434 38.1079 20.3514C38.1179 20.3433 38.1297 20.3368 38.1415 20.3302C38.1738 20.3122 38.2065 20.2941 38.2043 20.2435C38.2043 20.2081 38.1731 20.1895 38.1431 20.1716C38.1329 20.1655 38.1228 20.1595 38.1142 20.1529C37.9706 20.0376 37.827 19.9225 37.6834 19.8074C37.6663 19.7937 37.6492 19.78 37.6321 19.7662C37.5463 19.6975 37.4606 19.6288 37.3748 19.5601C37.3598 19.5481 37.3448 19.5361 37.3299 19.5241C37.3235 19.519 37.3172 19.514 37.3109 19.5089C36.697 19.017 36.0837 18.5253 35.4718 18.0294C34.4771 17.2265 33.4844 16.4191 32.4917 15.6116C30.9494 14.3572 29.4073 13.1029 27.8582 11.8661C26.8417 11.0551 25.8302 10.2337 24.8181 9.41177C24.2412 8.94322 23.6641 8.47452 23.0857 8.00752C21.7692 6.94577 20.4557 5.87107 19.1485 4.78774C19.0088 4.67121 18.8659 4.55899 18.7169 4.46404C18.6361 4.41225 18.5585 4.40361 18.4747 4.45972ZM19.34 3.49237C19.1872 3.39462 18.9498 3.28099 18.6438 3.2686C18.3205 3.25551 18.0424 3.36011 17.8314 3.50133L17.8268 3.50442C17.7929 3.52732 17.7598 3.54843 17.7123 3.57874C17.7016 3.5856 17.6901 3.59293 17.6777 3.60085C17.6188 3.63852 17.5421 3.68798 17.4614 3.74527C17.2467 3.89458 17.0473 4.03583 16.8525 4.17382C16.5827 4.36495 16.3218 4.54982 16.041 4.74117L16.0389 4.74259C15.4118 5.17202 14.7794 5.61552 14.1495 6.08739C14.1285 6.101 14.0812 6.13204 14.0278 6.17447C13.8992 6.27655 13.7536 6.42906 13.6475 6.65029L13.6239 7.59454C13.6204 7.58616 13.6181 7.57993 13.6181 7.57993C13.6181 7.57993 13.62 7.58508 13.6245 7.59851L13.6265 7.60435C13.6301 7.6152 13.636 7.63254 13.6417 7.64889C13.6492 7.67035 13.659 7.698 13.671 7.72888L13.6802 7.752L14.0808 8.72312L14.0828 8.72789C14.0917 8.74935 14.1007 8.77081 14.1097 8.79227C14.1032 8.79212 14.0968 8.792 14.0904 8.79185L14.0801 8.79173C11.7325 8.76842 9.39529 9.14194 7.19913 10.2545L7.19875 10.2547C4.41337 11.6669 1.59829 13.9835 0.48606 17.2611M19.34 3.49237C19.5494 3.62599 19.7353 3.77389 19.888 3.90117C21.191 4.98102 22.4999 6.05203 23.8117 7.10995L23.8123 7.11038C24.3962 7.58185 24.9757 8.05251 25.5535 8.52179C26.5624 9.34112 27.5662 10.1563 28.5794 10.9647L28.5798 10.965C30.1313 12.2037 31.6825 13.4654 33.2291 14.7233C34.2211 15.5302 35.2112 16.3355 36.1982 17.1321L36.2 17.1335C36.8304 17.6445 37.4613 18.1501 38.0956 18.6583C38.3258 18.8428 38.5565 19.0277 38.7876 19.2132C38.8065 19.2254 38.8312 19.2419 38.8589 19.2624C38.986 19.3562 39.35 19.6652 39.3596 20.2212C39.3638 20.4147 39.3234 20.6296 39.2109 20.8362C39.0985 21.0431 38.9517 21.1711 38.8566 21.2411C38.8219 21.2664 38.7907 21.2866 38.7672 21.3013C37.7966 22.0563 36.827 22.8108 35.8604 23.5652L35.8578 23.5673C35.7379 23.6602 35.6215 23.7544 35.5102 23.85C35.3248 24.0122 35.0888 24.1452 34.8055 24.2019C34.5213 24.2587 34.2631 24.224 34.0567 24.161C33.6339 24.0323 33.2108 23.9045 32.7919 23.7812C32.5865 23.7221 32.3802 23.6639 32.1727 23.6059C32.195 24.1593 32.1308 24.6918 32.0057 25.2058C31.8985 25.6523 31.7478 26.057 31.58 26.4295C31.1904 27.3033 30.6937 28.0417 30.1326 28.6843L30.1269 28.6909C29.7058 29.1658 29.2614 29.5871 28.7955 29.9684C28.7946 29.9691 28.7937 29.9699 28.7927 29.9706C28.5208 30.2616 28.2343 30.473 28.0181 30.6296L28.0135 30.6329C27.522 30.9852 26.9898 31.3632 26.4275 31.6948L26.4246 31.6965C25.484 32.2475 24.5201 32.6776 23.5515 33.0256L23.5509 33.0258C22.9445 33.2434 22.3246 33.4375 21.6902 33.5915C21.2653 33.6962 20.8432 33.7756 20.4274 33.8399L20.4264 33.84C19.847 33.929 19.2773 33.979 18.7305 34.0186C18.2996 34.0506 17.8686 34.0689 17.4375 34.0735C17.0826 34.0777 16.7258 34.0552 16.4214 34.0359C16.381 34.0333 16.3415 34.0308 16.3031 34.0285C16.0274 34.0136 15.7544 33.9845 15.5176 33.9592C15.2106 33.9267 14.9043 33.8854 14.6068 33.8404L14.603 33.8399C14.3413 33.7994 14.0796 33.7546 13.818 33.7053C13.3495 33.6229 12.8992 33.5091 12.4756 33.3949L12.4705 33.3935C11.651 33.1684 10.8517 32.8901 10.0647 32.575L10.063 32.5743C8.99302 32.144 7.96903 31.5878 6.98845 30.9451L6.93637 30.9109C6.47225 30.607 5.9477 30.2635 5.44372 29.8479C3.78024 28.4829 2.25514 26.8428 1.22206 24.826L1.22032 24.8226C0.795584 23.9866 0.443441 23.078 0.214697 22.0808C-0.155145 20.4711 -0.0359902 18.7951 0.48606 17.2611M28.8373 29.9217L28.8661 29.8883C28.8563 29.9003 28.8466 29.9114 28.8373 29.9217ZM38.8362 21.2471C38.8312 21.2511 38.8262 21.2551 38.8215 21.2589L38.8362 21.2471ZM38.7114 21.334C38.7002 21.3405 38.696 21.3424 38.7021 21.3391L38.706 21.337L38.7114 21.334ZM38.7383 19.1827C38.733 19.1794 38.7306 19.1779 38.7306 19.1779C38.7306 19.1779 38.7322 19.1791 38.7356 19.181C38.7356 19.181 38.7368 19.1819 38.7383 19.1827ZM37.5751 19.3245C37.5877 19.3172 37.5905 19.316 37.5761 19.324L37.5751 19.3245ZM37.5487 21.161C37.5567 21.1659 37.5583 21.1667 37.5497 21.1616L37.5487 21.161ZM14.8461 17.0709L14.8396 17.0727C14.4325 17.1843 14.0689 17.3011 13.7281 17.4554C13.1656 17.7159 12.6511 18.0464 12.1864 18.495L12.1791 18.5019C11.9395 18.7292 11.7323 18.9771 11.5622 19.2676C11.3691 19.5985 11.2344 19.9222 11.1685 20.2862L11.1679 20.2893C11.1209 20.5451 11.1053 20.6885 11.1136 20.8121L11.1137 20.8139C11.137 21.1717 11.2118 21.5159 11.329 21.8535C11.3492 21.9109 11.3757 21.9709 11.4115 22.0389C11.4347 22.0818 11.4622 22.1279 11.5021 22.193C11.5079 22.2023 11.514 22.2124 11.5206 22.223C11.555 22.2789 11.5998 22.3516 11.6427 22.426C11.7702 22.6414 11.9191 22.8362 12.0903 23.0256C12.5141 23.4875 12.9381 23.8458 13.3784 24.1046C13.39 24.1111 13.3981 24.1153 13.4131 24.1231C13.427 24.1304 13.447 24.1409 13.4813 24.1592C13.5382 24.1895 13.6299 24.2396 13.7281 24.3074L13.7371 24.3137C13.809 24.3644 13.8928 24.4107 14.0107 24.464C14.5751 24.7175 15.1383 24.8963 15.7105 25.0016C16.1011 25.0715 16.5063 25.1027 16.908 25.119C17.2776 25.1171 17.7426 25.0677 18.1926 24.994L18.1943 24.9937C18.5823 24.9306 18.9708 24.8243 19.3641 24.6775L19.3667 24.6765C19.4829 24.6335 19.5705 24.5888 19.704 24.5207C19.7823 24.4808 19.8762 24.433 20.0009 24.3727C20.4942 24.1302 20.9462 23.8135 21.3579 23.3812L21.3602 23.3788C21.4647 23.2697 21.551 23.1707 21.6281 23.0671L21.6315 23.0624C21.6379 23.0541 21.646 23.043 21.6557 23.0297C21.6965 22.9743 21.7655 22.8804 21.8483 22.7819C21.8766 22.7166 21.9055 22.6609 21.9312 22.615C21.9558 22.5709 21.9795 22.5325 21.9922 22.5118L21.9924 22.5114C22.0085 22.4854 22.0115 22.4805 22.0142 22.4758L22.0181 22.4691C22.0283 22.4518 22.0454 22.4186 22.0777 22.3498C22.1598 22.1728 22.2246 21.9578 22.2921 21.6665L22.2925 21.6645C22.3774 21.3012 22.384 20.9293 22.3147 20.5419C22.2134 19.9903 22.0102 19.5467 21.735 19.1814C21.3443 18.6667 20.9014 18.2675 20.4162 17.9499L20.4132 17.9479C19.9566 17.6469 19.4837 17.4203 18.9986 17.2614C18.6282 17.1421 18.3323 17.0525 18.0497 17.0043C17.4166 16.8996 16.8012 16.8757 16.0887 16.8757C15.7191 16.8757 15.2705 16.9518 14.8461 17.0709ZM18.2412 15.8666C18.6169 15.9303 18.9865 16.0452 19.356 16.1642C19.9411 16.3556 20.5077 16.6278 21.0497 16.985C21.6409 17.372 22.1829 17.861 22.6572 18.4862C23.0452 19.0008 23.3193 19.6131 23.4517 20.3361C23.5471 20.8677 23.541 21.3993 23.4178 21.9266C23.3439 22.2455 23.2577 22.5517 23.1252 22.8367C23.0914 22.909 23.0544 22.9855 23.0144 23.0535C23.0034 23.0726 22.9921 23.0909 22.9808 23.1092C22.9417 23.1726 22.9035 23.2347 22.882 23.3172C22.8696 23.364 22.8389 23.4065 22.8081 23.4405C22.7323 23.5172 22.6669 23.6054 22.6 23.6956C22.5853 23.7154 22.5705 23.7353 22.5555 23.7552C22.4416 23.9083 22.3215 24.0444 22.1953 24.1763C21.681 24.7163 21.1144 25.1118 20.5077 25.4095C20.4357 25.4443 20.3643 25.4805 20.2929 25.5167C20.1199 25.6045 19.9474 25.692 19.7686 25.7582C19.3129 25.9283 18.851 26.0559 18.3798 26.1325C17.8871 26.2133 17.3451 26.2728 16.8863 26.2728C16.4521 26.2558 15.9778 26.2218 15.5036 26.1367C14.8323 26.0134 14.1794 25.805 13.5358 25.5158C13.3757 25.4435 13.2217 25.3627 13.0709 25.2564C13.0148 25.2177 12.9547 25.1861 12.8951 25.1548C12.863 25.1379 12.8311 25.1211 12.7999 25.1033C12.2333 24.7716 11.719 24.3293 11.2355 23.802C11.02 23.5638 10.8198 23.3044 10.6442 23.0068C10.6097 22.9467 10.5741 22.8888 10.5385 22.831C10.4885 22.7497 10.4385 22.6685 10.3917 22.5815C10.3332 22.4709 10.2809 22.3561 10.2378 22.2328C10.09 21.8075 9.99144 21.361 9.96062 20.8889C9.94213 20.6125 9.98219 20.3488 10.0315 20.0809C10.1269 19.5536 10.3209 19.1028 10.5642 18.6861C10.7982 18.2863 11.0785 17.9546 11.3833 17.6654C11.9561 17.1125 12.5843 16.7128 13.2464 16.4066C13.6683 16.2153 14.0994 16.0792 14.5336 15.9601C15.0236 15.8226 15.5816 15.7219 16.0887 15.7219C16.8253 15.7219 17.5149 15.7462 18.2412 15.8666Z",fill:"#FAFAFA"}),Xe.jsx("path",{d:"M18.7169 3.69486C18.8659 3.78982 19.0088 3.90203 19.1485 4.01857C20.4557 5.1019 21.7692 6.17659 23.0857 7.23834C24.6786 8.52452 26.2622 9.82366 27.8582 11.0969C30.4043 13.1297 32.9318 15.2101 35.4718 17.2602C36.3505 17.9724 37.2323 18.6759 38.1142 19.3837C38.1483 19.4096 38.2043 19.4268 38.2043 19.4743C38.2073 19.5434 38.1452 19.552 38.1079 19.5823C37.1205 20.3505 36.1331 21.1188 35.1488 21.887C35.0153 21.9906 34.8818 22.0985 34.7514 22.2107C34.6396 22.31 34.5216 22.3273 34.3943 22.2884C33.9689 22.1589 33.5404 22.0294 33.115 21.9043C32.6648 21.7748 32.2115 21.6496 31.7581 21.5245C31.6029 21.4813 31.4507 21.5115 31.311 21.6151C31.224 21.6798 31.1433 21.7618 31.0657 21.8482C30.9756 21.9474 30.9384 22.0726 30.9539 22.228C30.9663 22.3445 30.9818 22.4611 30.9943 22.5732C31.0564 23.1171 31.0098 23.6436 30.8825 24.1659C30.7955 24.5284 30.6714 24.8651 30.5254 25.1888C30.1869 25.9484 29.7554 26.5915 29.2617 27.1569C28.8828 27.5842 28.4823 27.964 28.06 28.3093C28.029 28.3352 27.9979 28.3568 27.9731 28.387C27.7775 28.6028 27.5601 28.7668 27.3396 28.9265C26.8459 29.2804 26.3522 29.63 25.8399 29.9321C24.9705 30.4414 24.0731 30.8428 23.1602 31.1709C22.5827 31.378 22.002 31.5593 21.4152 31.7017C21.0302 31.7967 20.642 31.87 20.2508 31.9305C19.7167 32.0125 19.1827 32.0599 18.6455 32.0988C18.2387 32.129 17.832 32.1463 17.4252 32.1506C17.0743 32.1549 16.7204 32.129 16.3695 32.1074C16.1273 32.0945 15.882 32.0686 15.6398 32.0427C15.3541 32.0125 15.0654 31.9736 14.7797 31.9305C14.5282 31.8916 14.2767 31.8485 14.0252 31.801C13.606 31.7276 13.193 31.624 12.7769 31.5118C12.0069 31.3003 11.2493 31.0371 10.4947 30.7349C9.50732 30.3378 8.55093 29.8199 7.62254 29.2114C7.13504 28.892 6.64446 28.5726 6.17868 28.1884C4.59359 26.888 3.19008 25.3652 2.25079 23.5314C1.86266 22.7675 1.54595 21.9474 1.34101 21.054C1.02213 19.6664 1.1223 18.2083 1.5801 16.8631C2.55609 13.9859 5.07277 11.8574 7.72191 10.5142C9.70927 9.50745 11.851 9.15425 14.0686 9.17624C14.2984 9.18055 14.5251 9.19782 14.7518 9.24097C14.8884 9.26689 15.0188 9.23666 15.1461 9.16328C15.2641 9.08994 15.3728 8.99064 15.4752 8.87846C15.5497 8.80073 15.5746 8.69285 15.5622 8.56767C15.5529 8.47706 15.5249 8.39503 15.4907 8.31734C15.3759 8.04974 15.261 7.78215 15.1492 7.51455C15.0157 7.19088 14.8821 6.86717 14.7486 6.54346C14.7269 6.48735 14.7114 6.43124 14.6896 6.37944C14.7207 6.31471 14.7704 6.29313 14.8138 6.26291C15.4348 5.79678 16.0621 5.35654 16.6924 4.92494C17.1737 4.59692 17.6487 4.25163 18.1269 3.9193C18.2418 3.83729 18.3598 3.76823 18.4747 3.69055C18.5585 3.63444 18.6361 3.64307 18.7169 3.69486ZM16.0887 14.9528C15.5816 14.9528 15.0236 15.0535 14.5336 15.1909C14.0994 15.31 13.6683 15.4461 13.2464 15.6375C12.5843 15.9436 11.9561 16.3434 11.3833 16.8962C11.0785 17.1854 10.7982 17.5171 10.5642 17.9169C10.3209 18.3336 10.1269 18.7844 10.0315 19.3117C9.98219 19.5796 9.94213 19.8433 9.96062 20.1198C9.99144 20.5918 10.09 21.0383 10.2378 21.4636C10.2809 21.5869 10.3332 21.7017 10.3917 21.8123C10.4718 21.9611 10.5611 22.093 10.6442 22.2376C10.8198 22.5352 11.02 22.7947 11.2355 23.0328C11.719 23.5601 12.2333 24.0024 12.7999 24.3341C12.8892 24.3852 12.9846 24.4277 13.0709 24.4872C13.2217 24.5935 13.3757 24.6743 13.5358 24.7466C14.1794 25.0358 14.8323 25.2442 15.5036 25.3675C15.9778 25.4526 16.4521 25.4866 16.8863 25.5036C17.3451 25.5036 17.8871 25.4441 18.3798 25.3633C18.851 25.2867 19.3129 25.1591 19.7686 24.989C20.0212 24.8955 20.2614 24.7594 20.5077 24.6403C21.1144 24.3426 21.681 23.9472 22.1953 23.4071C22.3215 23.2752 22.4416 23.1391 22.5555 22.986C22.6387 22.8755 22.7157 22.7649 22.8081 22.6714C22.8389 22.6373 22.8696 22.5948 22.882 22.548C22.9097 22.4417 22.9651 22.3694 23.0144 22.2843C23.0544 22.2163 23.0914 22.1398 23.1252 22.0675C23.2577 21.7825 23.3439 21.4764 23.4178 21.1574C23.541 20.6301 23.5471 20.0985 23.4517 19.5669C23.3193 18.844 23.0452 18.2316 22.6572 17.717C22.1829 17.0919 21.6409 16.6028 21.0497 16.2158C20.5077 15.8586 19.9411 15.5864 19.356 15.395C18.9865 15.276 18.6169 15.1611 18.2412 15.0974C17.5149 14.977 16.8253 14.9528 16.0887 14.9528Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 3.69055C18.427 3.72283 18.3787 3.75362 18.3303 3.78447C18.2623 3.82786 18.1941 3.87137 18.1269 3.9193C17.9301 4.05606 17.7339 4.19501 17.5376 4.33405C17.2567 4.53288 16.9756 4.7319 16.6924 4.92494C16.0621 5.35654 15.4348 5.79678 14.8138 6.26291C14.8058 6.26854 14.7974 6.27387 14.7891 6.27923C14.7525 6.30266 14.7149 6.32676 14.6896 6.37944C14.7017 6.40805 14.7118 6.43801 14.7221 6.46854C14.7304 6.49324 14.7389 6.51835 14.7486 6.54346L15.1492 7.51455C15.261 7.78215 15.3759 8.04974 15.4907 8.31734C15.5249 8.39503 15.5529 8.47706 15.5622 8.56767C15.5746 8.69285 15.5497 8.80073 15.4752 8.87846C15.3728 8.99064 15.2641 9.08994 15.1461 9.16328C15.0188 9.23666 14.8884 9.26689 14.7518 9.24097C14.5251 9.19782 14.2984 9.18055 14.0686 9.17624C11.851 9.15425 9.70927 9.50745 7.72191 10.5142C5.07277 11.8574 2.55609 13.9859 1.5801 16.8631C1.1223 18.2083 1.02213 19.6664 1.34101 21.054C1.54595 21.9474 1.86266 22.7675 2.25079 23.5314C3.19008 25.3652 4.59359 26.888 6.17868 28.1884C6.63302 28.5631 7.11101 28.8763 7.58668 29.1879L7.62254 29.2114C8.55093 29.8199 9.50732 30.3378 10.4947 30.7349C11.2493 31.0371 12.0069 31.3003 12.7769 31.5118C13.193 31.624 13.606 31.7276 14.0252 31.801C14.2767 31.8485 14.5282 31.8916 14.7797 31.9305C15.0654 31.9736 15.3541 32.0125 15.6398 32.0427C15.882 32.0686 16.1273 32.0945 16.3695 32.1074C16.4118 32.11 16.4542 32.1127 16.4966 32.1154C16.8057 32.1348 17.1166 32.1544 17.4252 32.1506C17.832 32.1463 18.2387 32.129 18.6455 32.0988C19.1827 32.0599 19.7167 32.0125 20.2508 31.9305C20.642 31.87 21.0302 31.7967 21.4152 31.7017C22.002 31.5593 22.5827 31.378 23.1602 31.1709C24.0731 30.8428 24.9705 30.4414 25.8399 29.9321C26.3522 29.63 26.8459 29.2804 27.3396 28.9265C27.5601 28.7668 27.7775 28.6028 27.9731 28.387C27.9919 28.364 28.0144 28.3461 28.0377 28.3274C28.0451 28.3215 28.0525 28.3155 28.06 28.3093C28.4823 27.964 28.8828 27.5842 29.2617 27.1569C29.7554 26.5915 30.1869 25.9484 30.5254 25.1888C30.6714 24.8651 30.7955 24.5284 30.8825 24.1659C31.0098 23.6436 31.0564 23.1171 30.9943 22.5732C30.9886 22.5223 30.9824 22.4705 30.976 22.4181C30.9684 22.3552 30.9607 22.2916 30.9539 22.228C30.9384 22.0726 30.9756 21.9474 31.0657 21.8482C31.1433 21.7618 31.224 21.6798 31.311 21.6151C31.4507 21.5115 31.6029 21.4813 31.7581 21.5245C32.2115 21.6496 32.6648 21.7748 33.115 21.9043C33.5404 22.0294 33.9689 22.1589 34.3943 22.2884C34.5216 22.3273 34.6396 22.31 34.7514 22.2107C34.8818 22.0985 35.0153 21.9906 35.1488 21.887C35.8647 21.3283 36.5823 20.7695 37.3002 20.2108C37.3066 20.2058 37.313 20.2008 37.3195 20.1958C37.4452 20.0979 37.571 20.0001 37.6967 19.9022C37.7156 19.8875 37.7345 19.8728 37.7534 19.8581C37.8716 19.7661 37.9898 19.6742 38.1079 19.5823C38.1179 19.5741 38.1297 19.5676 38.1415 19.561C38.1738 19.5431 38.2065 19.5249 38.2043 19.4743C38.2043 19.4389 38.1731 19.4203 38.1431 19.4024C38.1329 19.3963 38.1228 19.3903 38.1142 19.3837C37.9706 19.2684 37.827 19.1533 37.6834 19.0383C37.6663 19.0245 37.6492 19.0108 37.6321 18.9971C37.5463 18.9283 37.4606 18.8596 37.3748 18.7909C37.3598 18.7789 37.3448 18.7669 37.3299 18.7549C37.3235 18.7499 37.3172 18.7448 37.3109 18.7397C36.697 18.2478 36.0837 17.7561 35.4718 17.2602C34.4771 16.4574 33.4844 15.6499 32.4917 14.8425C30.9494 13.5881 29.4073 12.3337 27.8582 11.0969C26.8417 10.2859 25.8302 9.46449 24.8181 8.64259C24.2412 8.17404 23.6641 7.70534 23.0857 7.23834C21.7692 6.17659 20.4557 5.1019 19.1485 4.01857C19.0088 3.90203 18.8659 3.78982 18.7169 3.69486C18.6361 3.64307 18.5585 3.63444 18.4747 3.69055ZM19.34 2.7232C19.1872 2.62544 18.9498 2.51181 18.6438 2.49942C18.3205 2.48633 18.0424 2.59094 17.8314 2.73215L17.8268 2.73524C17.7929 2.75814 17.7598 2.77925 17.7123 2.80956C17.7016 2.81642 17.6901 2.82375 17.6777 2.83168C17.6188 2.86934 17.5421 2.9188 17.4614 2.97609C17.2467 3.1254 17.0473 3.26666 16.8525 3.40464C16.5827 3.59577 16.3218 3.78064 16.041 3.97199L16.0389 3.97341C15.4118 4.40284 14.7794 4.84634 14.1495 5.31821C14.1285 5.33182 14.0812 5.36286 14.0278 5.40529C13.8992 5.50737 14.3861 6.37872 14.28 6.59995L13.6239 6.82537C13.6204 6.81698 13.6181 6.81075 13.6181 6.81075C13.6181 6.81075 13.62 6.81591 13.6245 6.82933L13.6265 6.83517C13.6301 6.84602 13.636 6.86336 13.6417 6.87971C13.6492 6.90117 13.659 6.92882 13.671 6.9597L13.6802 6.98282L14.0808 7.95394L14.0828 7.95871C14.0917 7.98017 14.1007 8.00163 14.1097 8.02309C14.1032 8.02294 14.0968 8.02282 14.0904 8.02267L14.0801 8.02255C11.7325 7.99925 9.39529 8.37276 7.19913 9.4853L7.19875 9.48549C4.41337 10.8977 1.59829 13.2144 0.48606 16.4919M19.34 2.7232C19.5494 2.85681 19.7353 3.00471 19.888 3.13199C21.191 4.21184 22.4999 5.28286 23.8117 6.34077L23.8123 6.3412C24.3962 6.81267 24.9757 7.28333 25.5535 7.75261C26.5624 8.57194 27.5662 9.38711 28.5794 10.1955L28.5798 10.1958C30.1313 11.4345 31.6825 12.6962 33.2291 13.9541C34.2211 14.761 35.2112 15.5663 36.1982 16.3629L36.2 16.3644C36.8304 16.8753 37.4613 17.3809 38.0956 17.8891C38.3258 18.0736 38.5565 18.2585 38.7876 18.4441C38.8065 18.4562 38.8312 18.4728 38.8589 18.4932C38.986 18.5871 39.35 18.896 39.3596 19.452C39.3638 19.6455 39.3234 19.8604 39.2109 20.067C39.0985 20.2739 38.9517 20.4019 38.8566 20.4719C38.8219 20.4972 38.7907 20.5174 38.7672 20.5321C37.7966 21.2871 36.827 22.0416 35.8604 22.796L35.8578 22.7981C35.7379 22.8911 35.6215 22.9852 35.5102 23.0809C35.3248 23.243 35.0888 23.376 34.8055 23.4327C34.5213 23.4895 34.2631 23.4548 34.0567 23.3918C33.6339 23.2631 33.2108 23.1353 32.7919 23.012C32.5865 22.953 32.3802 22.8947 32.1727 22.8368C32.195 23.3901 32.1308 23.9227 32.0057 24.4367C31.8985 24.8832 31.7478 25.2879 31.58 25.6603C31.1904 26.5341 30.6937 27.2725 30.1326 27.9152L30.1269 27.9217C29.7058 28.3966 29.2614 28.8179 28.7955 29.1992C28.7946 29.1999 28.7937 29.2007 28.7927 29.2014C28.5208 29.4925 28.2343 29.7038 28.0181 29.8604L28.0135 29.8637C27.522 30.2161 26.9898 30.594 26.4275 30.9256L26.4246 30.9273C25.484 31.4783 24.5201 31.9084 23.5515 32.2565L23.5509 32.2567C22.9445 32.4742 22.3246 32.6683 21.6902 32.8223C21.2653 32.927 20.8432 33.0065 20.4274 33.0707L20.4264 33.0708C19.847 33.1598 19.2773 33.2099 18.7305 33.2494C18.2996 33.2814 17.8686 33.2997 17.4375 33.3043C17.0826 33.3085 16.7258 33.286 16.4214 33.2667C16.381 33.2642 16.3415 33.2617 16.3031 33.2593C16.0274 33.2444 15.7544 33.2153 15.5176 33.19C15.2106 33.1575 14.9043 33.1162 14.6068 33.0713L14.603 33.0707C14.3413 33.0303 14.0796 32.9854 13.818 32.9361C13.3495 32.8537 12.8992 32.7399 12.4756 32.6257L12.4705 32.6243C11.651 32.3992 10.8517 32.1209 10.0647 31.8058L10.063 31.8052C8.99302 31.3748 7.96903 30.8186 6.98845 30.1759L6.93637 30.1418C6.47225 29.8378 5.9477 29.4943 5.44372 29.0787C3.78024 27.7137 2.25514 26.0736 1.22206 24.0568L1.22032 24.0534C0.795584 23.2174 0.443441 22.3088 0.214697 21.3116C-0.155145 19.7019 -0.0359902 18.0259 0.48606 16.4919M28.8373 29.1525L28.8661 29.1191C28.8563 29.1311 28.8466 29.1423 28.8373 29.1525ZM38.8362 20.4779C38.8312 20.482 38.8262 20.4859 38.8215 20.4897L38.8362 20.4779ZM38.7114 20.5648C38.7002 20.5713 38.696 20.5733 38.7021 20.5699L38.706 20.5678L38.7114 20.5648ZM38.7383 18.4135C38.733 18.4102 38.7306 18.4088 38.7306 18.4088C38.7306 18.4088 38.7322 18.4099 38.7356 18.4118C38.7356 18.4118 38.7368 18.4127 38.7383 18.4135ZM37.5751 18.5554C37.5877 18.548 37.5905 18.5468 37.5761 18.5548L37.5751 18.5554ZM37.5487 20.3918C37.5567 20.3967 37.5583 20.3975 37.5497 20.3924L37.5487 20.3918ZM14.8461 16.3017L14.8396 16.3035C14.4325 16.4151 14.0689 16.532 13.7281 16.6862C13.1656 16.9467 12.6511 17.2772 12.1864 17.7258L12.1791 17.7327C11.9395 17.9601 11.7323 18.2079 11.5622 18.4984C11.3691 18.8293 11.2344 19.153 11.1685 19.517L11.1679 19.5201C11.1209 19.7759 11.1053 19.9194 11.1136 20.0429L11.1137 20.0448C11.137 20.4025 11.2118 20.7467 11.329 21.0843C11.3492 21.1417 11.3757 21.2017 11.4115 21.2697C11.4347 21.3126 11.4622 21.3587 11.5021 21.4238C11.5079 21.4331 11.514 21.4432 11.5206 21.4538C11.555 21.5097 11.5998 21.5825 11.6427 21.6568C11.7702 21.8723 11.9191 22.067 12.0903 22.2565C12.5141 22.7183 12.9381 23.0766 13.3784 23.3354C13.39 23.3419 13.3981 23.3461 13.4131 23.354C13.427 23.3613 13.447 23.3717 13.4813 23.39C13.5382 23.4203 13.6299 23.4705 13.7281 23.5383L13.7371 23.5445C13.809 23.5952 13.8928 23.6415 14.0107 23.6948C14.5751 23.9483 15.1383 24.1271 15.7105 24.2324C16.1011 24.3023 16.5063 24.3335 16.908 24.3498C17.2776 24.3479 17.7426 24.2986 18.1926 24.2248L18.1943 24.2245C18.5823 24.1614 18.9708 24.0551 19.3641 23.9083L19.3667 23.9073C19.4829 23.8643 19.5705 23.8196 19.704 23.7516C19.7823 23.7117 19.8762 23.6638 20.0009 23.6035C20.4942 23.361 20.9462 23.0444 21.3579 22.6121L21.3602 22.6096C21.4647 22.5005 21.551 22.4015 21.6281 22.2979L21.6315 22.2933C21.6379 22.2849 21.646 22.2738 21.6557 22.2605C21.6965 22.2052 21.7655 22.1112 21.8483 22.0127C21.8766 21.9474 21.9055 21.8917 21.9312 21.8458C21.9558 21.8018 21.9795 21.7633 21.9922 21.7427L21.9924 21.7423C22.0085 21.7162 22.0115 21.7113 22.0142 21.7067L22.0181 21.6999C22.0283 21.6827 22.0454 21.6495 22.0777 21.5806C22.1598 21.4036 22.2246 21.1886 22.2921 20.8973L22.2925 20.8953C22.3774 20.532 22.384 20.1601 22.3147 19.7727C22.2134 19.2211 22.0102 18.7775 21.735 18.4122C21.3443 17.8975 20.9014 17.4983 20.4162 17.1807L20.4132 17.1787C19.9566 16.8778 19.4837 16.6511 18.9986 16.4922C18.6282 16.3729 18.3323 16.2833 18.0497 16.2351C17.4166 16.1305 16.8012 16.1065 16.0887 16.1065C15.7191 16.1065 15.2705 16.1826 14.8461 16.3017ZM18.2412 15.0974C18.6169 15.1611 18.9865 15.276 19.356 15.395C19.9411 15.5864 20.5077 15.8586 21.0497 16.2158C21.6409 16.6028 22.1829 17.0919 22.6572 17.717C23.0452 18.2316 23.3193 18.844 23.4517 19.5669C23.5471 20.0985 23.541 20.6301 23.4178 21.1574C23.3439 21.4764 23.2577 21.7825 23.1252 22.0675C23.0914 22.1398 23.0544 22.2163 23.0144 22.2843C23.0034 22.3034 22.9921 22.3218 22.9808 22.34C22.9417 22.4035 22.9035 22.4655 22.882 22.548C22.8696 22.5948 22.8389 22.6373 22.8081 22.6714C22.7323 22.748 22.6669 22.8362 22.6 22.9264C22.5853 22.9462 22.5705 22.9661 22.5555 22.986C22.4416 23.1391 22.3215 23.2752 22.1953 23.4071C21.681 23.9472 21.1144 24.3426 20.5077 24.6403C20.4357 24.6751 20.3643 24.7114 20.2929 24.7476C20.1199 24.8353 19.9474 24.9228 19.7686 24.989C19.3129 25.1591 18.851 25.2867 18.3798 25.3633C17.8871 25.4441 17.3451 25.5036 16.8863 25.5036C16.4521 25.4866 15.9778 25.4526 15.5036 25.3675C14.8323 25.2442 14.1794 25.0358 13.5358 24.7466C13.3757 24.6743 13.2217 24.5935 13.0709 24.4872C13.0148 24.4485 12.9547 24.417 12.8951 24.3856C12.863 24.3687 12.8311 24.352 12.7999 24.3341C12.2333 24.0024 11.719 23.5601 11.2355 23.0328C11.02 22.7947 10.8198 22.5352 10.6442 22.2376C10.6097 22.1775 10.5741 22.1196 10.5385 22.0618C10.4885 21.9805 10.4385 21.8993 10.3917 21.8123C10.3332 21.7017 10.2809 21.5869 10.2378 21.4636C10.09 21.0383 9.99144 20.5918 9.96062 20.1198C9.94213 19.8433 9.98219 19.5796 10.0315 19.3117C10.1269 18.7844 10.3209 18.3336 10.5642 17.9169C10.7982 17.5171 11.0785 17.1854 11.3833 16.8962C11.9561 16.3434 12.5843 15.9436 13.2464 15.6375C13.6683 15.4461 14.0994 15.31 14.5336 15.1909C15.0236 15.0535 15.5816 14.9528 16.0887 14.9528C16.8253 14.9528 17.5149 14.977 18.2412 15.0974Z",fill:"#1F1F1F"}),Xe.jsx("path",{d:"M22.7245 18.8433C22.7245 21.286 19.9654 23.2661 16.5619 23.2661C13.1584 23.2661 10.3994 21.286 10.3994 18.8433C10.3994 16.4007 13.1584 14.4206 16.5619 14.4206C19.9654 14.4206 22.7245 16.4007 22.7245 18.8433Z",fill:"white"}),Xe.jsx("path",{d:"M22.0777 21.3116C22.4413 23.9417 20.1839 26.4255 17.0357 26.8594C13.8874 27.2933 11.0406 25.513 10.677 22.8829C10.3134 20.2528 12.4916 18.0662 15.6398 17.6323C18.788 17.1984 21.7142 18.6815 22.0777 21.3116Z",fill:"#1F1F1F"}),Xe.jsx("path",{d:"M18.7169 2.15651C18.8659 2.25146 19.0088 2.36368 19.1485 2.48021C20.4557 3.56354 21.7692 4.63824 23.0857 5.69998C24.6786 6.98616 26.2622 8.2853 27.8582 9.55853C30.4043 11.5914 32.9318 13.6717 35.4718 15.7218C36.3505 16.434 37.2323 17.1375 38.1142 17.8453C38.1483 17.8713 38.2043 17.8885 38.2043 17.936C38.2073 18.0051 38.1452 18.0137 38.1079 18.0439C37.1205 18.8122 36.1331 19.5804 35.1488 20.3487C35.0153 20.4522 34.8818 20.5602 34.7514 20.6724C34.6396 20.7716 34.5216 20.7889 34.3943 20.7501C33.9689 20.6206 33.5404 20.4911 33.115 20.3659C32.6648 20.2364 32.2115 20.1113 31.7581 19.9861C31.6029 19.943 31.4507 19.9732 31.311 20.0768C31.224 20.1415 31.1433 20.2235 31.0657 20.3098C30.9756 20.4091 30.9384 20.5342 30.9539 20.6896C30.9663 20.8062 30.9818 20.9227 30.9943 21.0349C31.0564 21.5787 31.0098 22.1053 30.8825 22.6276C30.7955 22.9901 30.6714 23.3267 30.5254 23.6504C30.1869 24.41 29.7554 25.0532 29.2617 25.6185C28.8828 26.0459 28.4823 26.4257 28.06 26.771C28.029 26.7968 27.9979 26.8184 27.9731 26.8486C27.7775 27.0644 27.5601 27.2284 27.3396 27.3881C26.8459 27.742 26.3522 28.0916 25.8399 28.3938C24.9705 28.9031 24.0731 29.3045 23.1602 29.6325C22.5827 29.8396 22.002 30.0209 21.4152 30.1633C21.0302 30.2583 20.642 30.3317 20.2508 30.3921C19.7167 30.4741 19.1827 30.5216 18.6455 30.5604C18.2387 30.5907 17.832 30.6079 17.4252 30.6122C17.0743 30.6165 16.7204 30.5907 16.3695 30.5691C16.1273 30.5561 15.882 30.5302 15.6398 30.5043C15.3541 30.4741 15.0654 30.4353 14.7797 30.3921C14.5282 30.3533 14.2767 30.3101 14.0252 30.2626C13.606 30.1893 13.193 30.0857 12.7769 29.9735C12.0069 29.762 11.2493 29.4987 10.4947 29.1966C9.50732 28.7995 8.55093 28.2815 7.62254 27.673C7.13504 27.3536 6.64446 27.0342 6.17868 26.6501C4.59359 25.3496 3.19008 23.8268 2.25079 21.9931C1.86266 21.2291 1.54595 20.4091 1.34101 19.5156C1.02213 18.1281 1.1223 16.67 1.5801 15.3248C2.55609 12.4475 5.07277 10.319 7.72191 8.97587C9.70927 7.9691 11.851 7.61589 14.0686 7.63789C14.2984 7.64219 14.5251 7.65946 14.7518 7.70261C14.8884 7.72854 15.0188 7.69831 15.1461 7.62493C15.2641 7.55159 15.3728 7.45228 15.4752 7.3401C15.5497 7.26237 15.5746 7.1545 15.5622 7.02931C15.5529 6.9387 15.5249 6.85667 15.4907 6.77899C15.3759 6.51139 15.261 6.24379 15.1492 5.97619C15.0157 5.65252 14.8821 5.32881 14.7486 5.00511C14.7269 4.94899 14.7114 4.89288 14.6896 4.84108C14.7207 4.77635 14.7704 4.75477 14.8138 4.72456C15.4348 4.25842 16.0621 3.81818 16.6924 3.38658C17.1737 3.05856 17.6487 2.71328 18.1269 2.38094C18.2418 2.29893 18.3598 2.22988 18.4747 2.15219C18.5585 2.09608 18.6361 2.10471 18.7169 2.15651ZM16.0887 13.4144C15.5816 13.4144 15.0236 13.5151 14.5336 13.6526C14.0994 13.7716 13.6683 13.9077 13.2464 14.0991C12.5843 14.4053 11.9561 14.805 11.3833 15.3579C11.0785 15.6471 10.7982 15.9788 10.5642 16.3785C10.3209 16.7953 10.1269 17.2461 10.0315 17.7734C9.98219 18.0413 9.94213 18.305 9.96062 18.5814C9.99144 19.0535 10.09 19.5 10.2378 19.9252C10.2809 20.0486 10.3332 20.1634 10.3917 20.2739C10.4718 20.4228 10.5611 20.5546 10.6442 20.6992C10.8198 20.9969 11.02 21.2563 11.2355 21.4945C11.719 22.0218 12.2333 22.4641 12.7999 22.7958C12.8892 22.8468 12.9846 22.8893 13.0709 22.9489C13.2217 23.0552 13.3757 23.136 13.5358 23.2083C14.1794 23.4975 14.8323 23.7059 15.5036 23.8292C15.9778 23.9142 16.4521 23.9483 16.8863 23.9653C17.3451 23.9653 17.8871 23.9057 18.3798 23.8249C18.851 23.7484 19.3129 23.6208 19.7686 23.4507C20.0212 23.3571 20.2614 23.2211 20.5077 23.102C21.1144 22.8043 21.681 22.4088 22.1953 21.8687C22.3215 21.7369 22.4416 21.6008 22.5555 21.4477C22.6387 21.3371 22.7157 21.2265 22.8081 21.133C22.8389 21.099 22.8696 21.0564 22.882 21.0097C22.9097 20.9034 22.9651 20.8311 23.0144 20.746C23.0544 20.678 23.0914 20.6014 23.1252 20.5291C23.2577 20.2442 23.3439 19.938 23.4178 19.619C23.541 19.0917 23.5471 18.5601 23.4517 18.0286C23.3193 17.3056 23.0452 16.6932 22.6572 16.1786C22.1829 15.5535 21.6409 15.0645 21.0497 14.6774C20.5077 14.3202 19.9411 14.0481 19.356 13.8567C18.9865 13.7376 18.6169 13.6228 18.2412 13.559C17.5149 13.4386 16.8253 13.4144 16.0887 13.4144Z",fill:"#FE0230"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 2.15219C18.427 2.18447 18.3787 2.21526 18.3303 2.24611C18.2623 2.2895 18.1941 2.33301 18.1269 2.38094C17.9301 2.5177 17.7339 2.65665 17.5376 2.79569C17.2567 2.99453 16.9756 3.19354 16.6924 3.38658C16.0621 3.81818 15.4348 4.25842 14.8138 4.72456C14.8058 4.73018 14.7974 4.73551 14.7891 4.74087C14.7525 4.76431 14.7149 4.78841 14.6896 4.84108C14.7017 4.86969 14.7118 4.89965 14.7221 4.93019C14.7304 4.95488 14.7389 4.97999 14.7486 5.00511L15.1492 5.97619C15.261 6.24379 15.3759 6.51139 15.4907 6.77899C15.5249 6.85667 15.5529 6.9387 15.5622 7.02931C15.5746 7.1545 15.5497 7.26237 15.4752 7.3401C15.3728 7.45228 15.2641 7.55159 15.1461 7.62493C15.0188 7.69831 14.8884 7.72854 14.7518 7.70261C14.5251 7.65946 14.2984 7.64219 14.0686 7.63789C11.851 7.61589 9.70927 7.9691 7.72191 8.97587C5.07277 10.319 2.55609 12.4475 1.5801 15.3248C1.1223 16.67 1.02213 18.1281 1.34101 19.5156C1.54595 20.4091 1.86266 21.2291 2.25079 21.9931C3.19008 23.8268 4.59359 25.3496 6.17868 26.6501C6.63302 27.0248 7.11101 27.3379 7.58668 27.6495L7.62254 27.673C8.55093 28.2815 9.50732 28.7995 10.4947 29.1966C11.2493 29.4987 12.0069 29.762 12.7769 29.9735C13.193 30.0857 13.606 30.1893 14.0252 30.2626C14.2767 30.3101 14.5282 30.3533 14.7797 30.3921C15.0654 30.4353 15.3541 30.4741 15.6398 30.5043C15.882 30.5302 16.1273 30.5561 16.3695 30.5691C16.4118 30.5717 16.4542 30.5744 16.4966 30.577C16.8057 30.5965 17.1166 30.616 17.4252 30.6122C17.832 30.6079 18.2387 30.5907 18.6455 30.5604C19.1827 30.5216 19.7167 30.4741 20.2508 30.3921C20.642 30.3317 21.0302 30.2583 21.4152 30.1633C22.002 30.0209 22.5827 29.8396 23.1602 29.6325C24.0731 29.3045 24.9705 28.9031 25.8399 28.3938C26.3522 28.0916 26.8459 27.742 27.3396 27.3881C27.5601 27.2284 27.7775 27.0644 27.9731 26.8486C27.9919 26.8257 28.0144 26.8077 28.0377 26.7891C28.0451 26.7832 28.0525 26.7772 28.06 26.771C28.4823 26.4257 28.8828 26.0459 29.2617 25.6185C29.7554 25.0532 30.1869 24.41 30.5254 23.6504C30.6714 23.3267 30.7955 22.9901 30.8825 22.6276C31.0098 22.1053 31.0564 21.5787 30.9943 21.0349C30.9886 20.984 30.9824 20.9321 30.976 20.8798C30.9684 20.8169 30.9607 20.7533 30.9539 20.6896C30.9384 20.5342 30.9756 20.4091 31.0657 20.3098C31.1433 20.2235 31.224 20.1415 31.311 20.0768C31.4507 19.9732 31.6029 19.943 31.7581 19.9861C32.2115 20.1113 32.6648 20.2364 33.115 20.3659C33.5404 20.4911 33.9689 20.6206 34.3943 20.7501C34.5216 20.7889 34.6396 20.7716 34.7514 20.6724C34.8818 20.5602 35.0153 20.4522 35.1488 20.3487C35.8647 19.7899 36.5823 19.2311 37.3002 18.6724C37.3066 18.6674 37.313 18.6624 37.3195 18.6574C37.4452 18.5596 37.571 18.4617 37.6967 18.3638C37.7156 18.3492 37.7345 18.3345 37.7534 18.3197C37.8716 18.2278 37.9898 18.1358 38.1079 18.0439C38.1179 18.0358 38.1297 18.0293 38.1415 18.0227C38.1738 18.0047 38.2065 17.9865 38.2043 17.936C38.2043 17.9006 38.1731 17.882 38.1431 17.8641C38.1329 17.858 38.1228 17.8519 38.1142 17.8453C37.9706 17.7301 37.827 17.615 37.6834 17.4999C37.6663 17.4862 37.6492 17.4724 37.6321 17.4587C37.5463 17.39 37.4606 17.3213 37.3748 17.2525C37.3598 17.2405 37.3448 17.2285 37.3299 17.2165C37.3235 17.2115 37.3172 17.2064 37.3109 17.2013C36.697 16.7095 36.0837 16.2178 35.4718 15.7218C34.4771 14.919 33.4844 14.1116 32.4917 13.3041C30.9494 12.0497 29.4073 10.7953 27.8582 9.55853C26.8417 8.74758 25.8302 7.92614 24.8181 7.10423C24.2412 6.63569 23.6641 6.16699 23.0857 5.69998C21.7692 4.63824 20.4557 3.56354 19.1485 2.48021C19.0088 2.36368 18.8659 2.25146 18.7169 2.15651C18.6361 2.10471 18.5585 2.09608 18.4747 2.15219ZM19.34 1.18484C19.1872 1.08708 18.9498 0.973456 18.6438 0.961067C18.3205 0.947977 18.0424 1.05258 17.8314 1.19379L17.8268 1.19688C17.7929 1.21979 17.7598 1.24089 17.7123 1.2712C17.7016 1.27806 17.6901 1.28539 17.6777 1.29332C17.6188 1.33098 17.5421 1.38045 17.4614 1.43774C17.2467 1.58704 17.0473 1.7283 16.8525 1.86629C16.5827 2.05742 16.3218 2.24229 16.041 2.43364L16.0389 2.43506C15.4118 2.86449 14.7794 3.30798 14.1495 3.77986C14.1285 3.79346 14.0812 3.82451 14.0278 3.86694C13.8992 3.96902 13.7536 4.12153 13.6475 4.34275L13.6239 5.28701C13.6204 5.27863 13.6181 5.2724 13.6181 5.2724C13.6181 5.2724 13.62 5.27755 13.6245 5.29097L13.6265 5.29682C13.6301 5.30766 13.636 5.32501 13.6417 5.34135C13.6492 5.36281 13.659 5.39046 13.671 5.42135L13.6802 5.44446L14.0808 6.41559L14.0828 6.42036C14.0917 6.44182 14.1007 6.46328 14.1097 6.48474C14.1032 6.48458 14.0968 6.48447 14.0904 6.48431L14.0801 6.4842C11.7325 6.46089 9.39529 6.8344 7.19913 7.94694L7.19875 7.94714C4.41337 9.35935 1.59829 11.676 0.48606 14.9535M19.34 1.18484C19.5494 1.31845 19.7353 1.46635 19.888 1.59364C21.191 2.67348 22.4999 3.7445 23.8117 4.80241L23.8123 4.80284C24.3962 5.27432 24.9757 5.74498 25.5535 6.21425C26.5624 7.03358 27.5662 7.84876 28.5794 8.65712L28.5798 8.65743C30.1313 9.89612 31.6825 11.1579 33.2291 12.4158C34.2211 13.2227 35.2112 14.0279 36.1982 14.8246L36.2 14.826C36.8304 15.337 37.4613 15.8426 38.0956 16.3508C38.3258 16.5353 38.5565 16.7201 38.7876 16.9057C38.8065 16.9178 38.8312 16.9344 38.8589 16.9548C38.986 17.0487 39.35 17.3577 39.3596 17.9137C39.3638 18.1071 39.3234 18.322 39.2109 18.5287C39.0985 18.7355 38.9517 18.8636 38.8566 18.9335C38.8219 18.9588 38.7907 18.9791 38.7672 18.9937C37.7966 19.7488 36.827 20.5033 35.8604 21.2577L35.8578 21.2598C35.7379 21.3527 35.6215 21.4469 35.5102 21.5425C35.3248 21.7047 35.0888 21.8377 34.8055 21.8943C34.5213 21.9511 34.2631 21.9164 34.0567 21.8535C33.6339 21.7248 33.2108 21.5969 32.7919 21.4737C32.5865 21.4146 32.3802 21.3564 32.1727 21.2984C32.195 21.8518 32.1308 22.3843 32.0057 22.8983C31.8985 23.3448 31.7478 23.7495 31.58 24.122C31.1904 24.9958 30.6937 25.7341 30.1326 26.3768L30.1269 26.3833C29.7058 26.8582 29.2614 27.2796 28.7955 27.6608C28.7946 27.6616 28.7937 27.6623 28.7927 27.6631C28.5208 27.9541 28.2343 28.1655 28.0181 28.322L28.0135 28.3254C27.522 28.6777 26.9898 29.0557 26.4275 29.3872L26.4246 29.3889C25.484 29.9399 24.5201 30.3701 23.5515 30.7181L23.5509 30.7183C22.9445 30.9358 22.3246 31.1299 21.6902 31.284C21.2653 31.3887 20.8432 31.4681 20.4274 31.5323L20.4264 31.5325C19.847 31.6214 19.2773 31.6715 18.7305 31.7111C18.2996 31.7431 17.8686 31.7613 17.4375 31.7659C17.0826 31.7702 16.7258 31.7476 16.4214 31.7284C16.381 31.7258 16.3415 31.7233 16.3031 31.7209C16.0274 31.706 15.7544 31.6769 15.5176 31.6516C15.2106 31.6192 14.9043 31.5778 14.6068 31.5329L14.603 31.5323C14.3413 31.4919 14.0796 31.447 13.818 31.3977C13.3495 31.3153 12.8992 31.2015 12.4756 31.0873L12.4705 31.0859C11.651 30.8609 10.8517 30.5826 10.0647 30.2674L10.063 30.2668C8.99302 29.8365 7.96903 29.2803 6.98845 28.6375L6.93637 28.6034C6.47225 28.2994 5.9477 27.956 5.44372 27.5404C3.78024 26.1754 2.25514 24.5353 1.22206 22.5184L1.22032 22.5151C0.795584 21.6791 0.443441 20.7705 0.214697 19.7732C-0.155145 18.1635 -0.0359902 16.4876 0.48606 14.9535M28.8373 27.6141L28.8661 27.5808C28.8563 27.5928 28.8466 27.6039 28.8373 27.6141ZM38.8362 18.9395C38.8312 18.9436 38.8262 18.9476 38.8215 18.9514L38.8362 18.9395ZM38.7114 19.0265C38.7002 19.033 38.696 19.0349 38.7021 19.0315L38.706 19.0295L38.7114 19.0265ZM38.7383 16.8751C38.733 16.8719 38.7306 16.8704 38.7306 16.8704C38.7306 16.8704 38.7322 16.8716 38.7356 16.8735C38.7356 16.8735 38.7368 16.8743 38.7383 16.8751ZM37.5751 17.017C37.5877 17.0096 37.5905 17.0085 37.5761 17.0164L37.5751 17.017ZM37.5487 18.8535C37.5567 18.8584 37.5583 18.8592 37.5497 18.854L37.5487 18.8535ZM14.8461 14.7633L14.8396 14.7651C14.4325 14.8768 14.0689 14.9936 13.7281 15.1478C13.1656 15.4084 12.6511 15.7389 12.1864 16.1874L12.1791 16.1944C11.9395 16.4217 11.7323 16.6696 11.5622 16.96C11.3691 17.2909 11.2344 17.6147 11.1685 17.9786L11.1679 17.9818C11.1209 18.2375 11.1053 18.381 11.1136 18.5046L11.1137 18.5064C11.137 18.8642 11.2118 19.2084 11.329 19.546C11.3492 19.6033 11.3757 19.6634 11.4115 19.7314C11.4347 19.7742 11.4622 19.8204 11.5021 19.8854C11.5079 19.8948 11.514 19.9048 11.5206 19.9154C11.555 19.9714 11.5998 20.0441 11.6427 20.1185C11.7702 20.3339 11.9191 20.5287 12.0903 20.7181C12.5141 21.18 12.9381 21.5383 13.3784 21.797C13.39 21.8036 13.3981 21.8078 13.4131 21.8156C13.427 21.8229 13.447 21.8333 13.4813 21.8516C13.5382 21.882 13.6299 21.9321 13.7281 21.9999L13.7371 22.0062C13.809 22.0569 13.8928 22.1032 14.0107 22.1564C14.5751 22.41 15.1383 22.5887 15.7105 22.694C16.1011 22.7639 16.5063 22.7951 16.908 22.8114C17.2776 22.8096 17.7426 22.7602 18.1926 22.6864L18.1943 22.6861C18.5823 22.6231 18.9708 22.5168 19.3641 22.37L19.3667 22.369C19.4829 22.326 19.5705 22.2813 19.704 22.2132C19.7823 22.1733 19.8762 22.1254 20.0009 22.0651C20.4942 21.8227 20.9462 21.506 21.3579 21.0737L21.3602 21.0713C21.4647 20.9622 21.551 20.8632 21.6281 20.7595L21.6315 20.7549C21.6379 20.7465 21.646 20.7355 21.6557 20.7222C21.6965 20.6668 21.7655 20.5729 21.8483 20.4744C21.8766 20.4091 21.9055 20.3534 21.9312 20.3074C21.9558 20.2634 21.9795 20.2249 21.9922 20.2043L21.9924 20.2039C22.0085 20.1778 22.0115 20.173 22.0142 20.1683L22.0181 20.1616C22.0283 20.1443 22.0454 20.1111 22.0777 20.0422C22.1598 19.8653 22.2246 19.6502 22.2921 19.359L22.2925 19.357C22.3774 18.9937 22.384 18.6218 22.3147 18.2344C22.2134 17.6827 22.0102 17.2392 21.735 16.8738C21.3443 16.3591 20.9014 15.9599 20.4162 15.6424L20.4132 15.6404C19.9566 15.3394 19.4837 15.1128 18.9986 14.9539C18.6282 14.8345 18.3323 14.745 18.0497 14.6968C17.4166 14.5921 16.8012 14.5682 16.0887 14.5682C15.7191 14.5682 15.2705 14.6443 14.8461 14.7633ZM18.2412 13.559C18.6169 13.6228 18.9865 13.7376 19.356 13.8567C19.9411 14.0481 20.5077 14.3202 21.0497 14.6774C21.6409 15.0645 22.1829 15.5535 22.6572 16.1786C23.0452 16.6932 23.3193 17.3056 23.4517 18.0286C23.5471 18.5601 23.541 19.0917 23.4178 19.619C23.3439 19.938 23.2577 20.2442 23.1252 20.5291C23.0914 20.6014 23.0544 20.678 23.0144 20.746C23.0034 20.765 22.9921 20.7834 22.9808 20.8017C22.9417 20.8651 22.9035 20.9271 22.882 21.0097C22.8696 21.0564 22.8389 21.099 22.8081 21.133C22.7323 21.2097 22.6669 21.2978 22.6 21.388C22.5853 21.4078 22.5705 21.4277 22.5555 21.4477C22.4416 21.6008 22.3215 21.7369 22.1953 21.8687C21.681 22.4088 21.1144 22.8043 20.5077 23.102C20.4357 23.1367 20.3643 23.173 20.2929 23.2092C20.1199 23.2969 19.9474 23.3845 19.7686 23.4507C19.3129 23.6208 18.851 23.7484 18.3798 23.8249C17.8871 23.9057 17.3451 23.9653 16.8863 23.9653C16.4521 23.9483 15.9778 23.9142 15.5036 23.8292C14.8323 23.7059 14.1794 23.4975 13.5358 23.2083C13.3757 23.136 13.2217 23.0552 13.0709 22.9489C13.0148 22.9101 12.9547 22.8786 12.8951 22.8472C12.863 22.8304 12.8311 22.8136 12.7999 22.7958C12.2333 22.4641 11.719 22.0218 11.2355 21.4945C11.02 21.2563 10.8198 20.9969 10.6442 20.6992C10.6097 20.6391 10.5741 20.5813 10.5385 20.5234C10.4885 20.4421 10.4385 20.3609 10.3917 20.2739C10.3332 20.1634 10.2809 20.0486 10.2378 19.9252C10.09 19.5 9.99144 19.0535 9.96062 18.5814C9.94213 18.305 9.98219 18.0413 10.0315 17.7734C10.1269 17.2461 10.3209 16.7953 10.5642 16.3785C10.7982 15.9788 11.0785 15.6471 11.3833 15.3579C11.9561 14.805 12.5843 14.4053 13.2464 14.0991C13.6683 13.9077 14.0994 13.7716 14.5336 13.6526C15.0236 13.5151 15.5816 13.4144 16.0887 13.4144C16.8253 13.4144 17.5149 13.4386 18.2412 13.559Z",fill:"#FAFAFA"})]})}var ya={},Ah={};function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}function S9(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function QO(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ku(e,t)}function Iu(e){return Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Iu(e)}var ek=function(e){XO(r,e);var t=YO(r);function r(n){var a;return ZO(this,r),a=t.call(this,`Format functions must be synchronous taking a two arguments: (info, opts) +`+i.stack}return{value:e,source:t,stack:a,digest:null}}function Qd(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function d4(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var yO=typeof WeakMap=="function"?WeakMap:Map;function a_(e,t,r){r=Sa(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){E1||(E1=!0,S4=n),d4(e,t)},r}function o_(e,t,r){r=Sa(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){d4(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){d4(e,t),typeof n!="function"&&(mo===null?mo=new Set([this]):mo.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),r}function i9(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new yO;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=OO.bind(null,e,t,r),t.then(e,e))}function a9(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function o9(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Sa(-1,1),t.tag=2,yo(r,t,1))),r.lanes|=1),e)}var mO=Da.ReactCurrentOwner,gn=!1;function tn(e,t,r,n){t.child=e===null?Fw(t,null,r,n):Rs(t,e.child,r,n)}function f9(e,t,r,n,a){r=r.render;var i=t.ref;return ds(t,a),n=C8(e,t,r,n,i,a),r=M8(),e!==null&&!gn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Oa(e,t,a)):(jt&&r&&d8(t),t.flags|=1,tn(e,t,n,a),t.child)}function s9(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!N8(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,f_(e,t,i,n,a)):(e=Lc(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var f=i.memoizedProps;if(r=r.compare,r=r!==null?r:_u,r(f,n)&&e.ref===t.ref)return Oa(e,t,a)}return t.flags|=1,e=xo(i,n),e.ref=t.ref,e.return=t,t.child=e}function f_(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(_u(i,n)&&e.ref===t.ref)if(gn=!1,t.pendingProps=n=i,(e.lanes&a)!==0)e.flags&131072&&(gn=!0);else return t.lanes=e.lanes,Oa(e,t,a)}return p4(e,t,r,n,a)}function s_(e,t,r){var n=t.pendingProps,a=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Bt(ns,En),En|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Bt(ns,En),En|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Bt(ns,En),En|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Bt(ns,En),En|=n;return tn(e,t,a,r),t.child}function u_(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function p4(e,t,r,n,a){var i=mn(r)?cf:Xr.current;return i=Ms(t,i),ds(t,a),r=C8(e,t,r,n,i,a),n=M8(),e!==null&&!gn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Oa(e,t,a)):(jt&&n&&d8(t),t.flags|=1,tn(e,t,r,a),t.child)}function u9(e,t,r,n,a){if(mn(r)){var i=!0;p1(t)}else i=!1;if(ds(t,a),t.stateNode===null)kc(e,t),Nw(t,r,n),h4(t,r,n,a),n=!0;else if(e===null){var f=t.stateNode,l=t.memoizedProps;f.props=l;var c=f.context,m=r.contextType;typeof m=="object"&&m!==null?m=ei(m):(m=mn(r)?cf:Xr.current,m=Ms(t,m));var g=r.getDerivedStateFromProps,_=typeof g=="function"||typeof f.getSnapshotBeforeUpdate=="function";_||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(l!==n||c!==m)&&e9(t,f,n,m),ro=!1;var S=t.memoizedState;f.state=S,b1(t,n,f,a),c=t.memoizedState,l!==n||S!==c||yn.current||ro?(typeof g=="function"&&(c4(t,r,g,n),c=t.memoizedState),(l=ro||Qv(t,r,l,n,S,c,m))?(_||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),f.props=n,f.state=c,f.context=m,n=l):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{f=t.stateNode,Bw(e,t),l=t.memoizedProps,m=t.type===t.elementType?l:wi(t.type,l),f.props=m,_=t.pendingProps,S=f.context,c=r.contextType,typeof c=="object"&&c!==null?c=ei(c):(c=mn(r)?cf:Xr.current,c=Ms(t,c));var M=r.getDerivedStateFromProps;(g=typeof M=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(l!==_||S!==c)&&e9(t,f,n,c),ro=!1,S=t.memoizedState,f.state=S,b1(t,n,f,a);var P=t.memoizedState;l!==_||S!==P||yn.current||ro?(typeof M=="function"&&(c4(t,r,M,n),P=t.memoizedState),(m=ro||Qv(t,r,m,n,S,P,c)||!1)?(g||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(n,P,c),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(n,P,c)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=P),f.props=n,f.state=P,f.context=c,n=m):(typeof f.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),n=!1)}return v4(e,t,r,n,i,a)}function v4(e,t,r,n,a,i){u_(e,t);var f=(t.flags&128)!==0;if(!n&&!f)return a&&Vv(t,r,!1),Oa(e,t,i);n=t.stateNode,mO.current=t;var l=f&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&f?(t.child=Rs(t,e.child,null,i),t.child=Rs(t,null,l,i)):tn(e,t,l,i),t.memoizedState=n.state,a&&Vv(t,r,!0),t.child}function l_(e){var t=e.stateNode;t.pendingContext?Wv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wv(e,t.context,!1),w8(e,t.containerInfo)}function l9(e,t,r,n,a){return As(),v8(a),t.flags|=256,tn(e,t,r,n),t.child}var g4={dehydrated:null,treeContext:null,retryLane:0};function y4(e){return{baseLanes:e,cachePool:null,transitions:null}}function c_(e,t,r){var n=t.pendingProps,a=Yt.current,i=!1,f=(t.flags&128)!==0,l;if((l=f)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Bt(Yt,a&1),e===null)return u4(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(f=n.children,e=n.fallback,i?(n=t.mode,i=t.child,f={mode:"hidden",children:f},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=f):i=_h(f,n,0,null),e=of(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=y4(r),t.memoizedState=g4,e):T8(t,f));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return bO(e,t,f,n,l,a,r);if(i){i=n.fallback,f=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:n.children};return!(f&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=xo(a,c),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=xo(l,i):(i=of(i,f,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,f=e.child.memoizedState,f=f===null?y4(r):{baseLanes:f.baseLanes|r,cachePool:null,transitions:f.transitions},i.memoizedState=f,i.childLanes=e.childLanes&~r,t.memoizedState=g4,n}return i=e.child,e=i.sibling,n=xo(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function T8(e,t){return t=_h({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yl(e,t,r,n){return n!==null&&v8(n),Rs(t,e.child,null,r),e=T8(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bO(e,t,r,n,a,i,f){if(r)return t.flags&256?(t.flags&=-257,n=Qd(Error(We(422))),Yl(e,t,f,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,a=t.mode,n=_h({mode:"visible",children:n.children},a,0,null),i=of(i,a,f,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&Rs(t,e.child,null,f),t.child.memoizedState=y4(f),t.memoizedState=g4,i);if(!(t.mode&1))return Yl(e,t,f,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(We(419)),n=Qd(i,n,void 0),Yl(e,t,f,n)}if(l=(f&e.childLanes)!==0,gn||l){if(n=Er,n!==null){switch(f&-f){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|f)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Pa(e,a),Pi(n,e,a,-1))}return L8(),n=Qd(Error(We(421))),Yl(e,t,f,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=kO.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,An=go(a.nextSibling),Rn=t,jt=!0,Ci=null,e!==null&&(Kn[Gn++]=ba,Kn[Gn++]=xa,Kn[Gn++]=hf,ba=e.id,xa=e.overflow,hf=t),t=T8(t,n.children),t.flags|=4096,t)}function c9(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),l4(e.return,t,r)}function e2(e,t,r,n,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a)}function h_(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(tn(e,t,n.children,r),n=Yt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&c9(e,r,t);else if(e.tag===19)c9(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Bt(Yt,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&x1(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),e2(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&x1(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}e2(t,!0,r,null,i);break;case"together":e2(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function kc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Oa(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),pf|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(We(153));if(t.child!==null){for(e=t.child,r=xo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=xo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function xO(e,t,r){switch(t.tag){case 3:l_(t),As();break;case 5:Uw(t);break;case 1:mn(t.type)&&p1(t);break;case 4:w8(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Bt(y1,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Bt(Yt,Yt.current&1),t.flags|=128,null):r&t.child.childLanes?c_(e,t,r):(Bt(Yt,Yt.current&1),e=Oa(e,t,r),e!==null?e.sibling:null);Bt(Yt,Yt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return h_(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Bt(Yt,Yt.current),n)break;return null;case 22:case 23:return t.lanes=0,s_(e,t,r)}return Oa(e,t,r)}var d_,m4,p_,v_;d_=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};m4=function(){};p_=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,ef(ta.current);var i=null;switch(r){case"input":a=jp(e,a),n=jp(e,n),i=[];break;case"select":a=Qt({},a,{value:void 0}),n=Qt({},n,{value:void 0}),i=[];break;case"textarea":a=$p(e,a),n=$p(e,n),i=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=h1)}Kp(r,n);var f;r=null;for(m in a)if(!n.hasOwnProperty(m)&&a.hasOwnProperty(m)&&a[m]!=null)if(m==="style"){var l=a[m];for(f in l)l.hasOwnProperty(f)&&(r||(r={}),r[f]="")}else m!=="dangerouslySetInnerHTML"&&m!=="children"&&m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(vu.hasOwnProperty(m)?i||(i=[]):(i=i||[]).push(m,null));for(m in n){var c=n[m];if(l=a!=null?a[m]:void 0,n.hasOwnProperty(m)&&c!==l&&(c!=null||l!=null))if(m==="style")if(l){for(f in l)!l.hasOwnProperty(f)||c&&c.hasOwnProperty(f)||(r||(r={}),r[f]="");for(f in c)c.hasOwnProperty(f)&&l[f]!==c[f]&&(r||(r={}),r[f]=c[f])}else r||(i||(i=[]),i.push(m,r)),r=c;else m==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(m,c)):m==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(m,""+c):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&(vu.hasOwnProperty(m)?(c!=null&&m==="onScroll"&&Nt("scroll",e),i||l===c||(i=[])):(i=i||[]).push(m,c))}r&&(i=i||[]).push("style",r);var m=i;(t.updateQueue=m)&&(t.flags|=4)}};v_=function(e,t,r,n){r!==n&&(t.flags|=4)};function M0(e,t){if(!jt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function zr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function wO(e,t,r){var n=t.pendingProps;switch(p8(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zr(t),null;case 1:return mn(t.type)&&d1(),zr(t),null;case 3:return n=t.stateNode,Ts(),Ft(yn),Ft(Xr),S8(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Zl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ci!==null&&(M4(Ci),Ci=null))),m4(e,t),zr(t),null;case 5:_8(t);var a=ef(Au.current);if(r=t.type,e!==null&&t.stateNode!=null)p_(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(We(166));return zr(t),null}if(e=ef(ta.current),Zl(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Xi]=t,n[Cu]=i,e=(t.mode&1)!==0,r){case"dialog":Nt("cancel",n),Nt("close",n);break;case"iframe":case"object":case"embed":Nt("load",n);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=f.createElement(r,{is:n.is}):(e=f.createElement(r),r==="select"&&(f=e,n.multiple?f.multiple=!0:n.size&&(f.size=n.size))):e=f.createElementNS(e,r),e[Xi]=t,e[Cu]=n,d_(e,t,!1,!1),t.stateNode=e;e:{switch(f=Gp(r,n),r){case"dialog":Nt("cancel",e),Nt("close",e),a=n;break;case"iframe":case"object":case"embed":Nt("load",e),a=n;break;case"video":case"audio":for(a=0;aOs&&(t.flags|=128,n=!0,M0(i,!1),t.lanes=4194304)}else{if(!n)if(e=x1(f),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),M0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!jt)return zr(t),null}else 2*or()-i.renderingStartTime>Os&&r!==1073741824&&(t.flags|=128,n=!0,M0(i,!1),t.lanes=4194304);i.isBackwards?(f.sibling=t.child,t.child=f):(r=i.last,r!==null?r.sibling=f:t.child=f,i.last=f)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=or(),t.sibling=null,r=Yt.current,Bt(Yt,n?r&1|2:r&1),t):(zr(t),null);case 22:case 23:return B8(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?En&1073741824&&(zr(t),t.subtreeFlags&6&&(t.flags|=8192)):zr(t),null;case 24:return null;case 25:return null}throw Error(We(156,t.tag))}function _O(e,t){switch(p8(t),t.tag){case 1:return mn(t.type)&&d1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ts(),Ft(yn),Ft(Xr),S8(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _8(t),null;case 13:if(Ft(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(We(340));As()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Yt),null;case 4:return Ts(),null;case 10:return m8(t.type._context),null;case 22:case 23:return B8(),null;case 24:return null;default:return null}}var Jl=!1,Wr=!1,SO=typeof WeakSet=="function"?WeakSet:Set,Je=null;function rs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){tr(e,t,n)}else r.current=null}function b4(e,t,r){try{r()}catch(n){tr(e,t,n)}}var h9=!1;function EO(e,t){if(r4=u1,e=bw(),h8(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var f=0,l=-1,c=-1,m=0,g=0,_=e,S=null;t:for(;;){for(var M;_!==r||a!==0&&_.nodeType!==3||(l=f+a),_!==i||n!==0&&_.nodeType!==3||(c=f+n),_.nodeType===3&&(f+=_.nodeValue.length),(M=_.firstChild)!==null;)S=_,_=M;for(;;){if(_===e)break t;if(S===r&&++m===a&&(l=f),S===i&&++g===n&&(c=f),(M=_.nextSibling)!==null)break;_=S,S=_.parentNode}_=M}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(n4={focusedElem:e,selectionRange:r},u1=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){t=Je;try{var P=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var I=P.memoizedProps,B=P.memoizedState,R=t.stateNode,A=R.getSnapshotBeforeUpdate(t.elementType===t.type?I:wi(t.type,I),B);R.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var F=t.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(We(163))}}catch(V){tr(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}return P=h9,h9=!1,P}function ou(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&b4(t,r,i)}a=a.next}while(a!==n)}}function xh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function x4(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function g_(e){var t=e.alternate;t!==null&&(e.alternate=null,g_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xi],delete t[Cu],delete t[o4],delete t[oO],delete t[fO])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function y_(e){return e.tag===5||e.tag===3||e.tag===4}function d9(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||y_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function w4(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=h1));else if(n!==4&&(e=e.child,e!==null))for(w4(e,t,r),e=e.sibling;e!==null;)w4(e,t,r),e=e.sibling}function _4(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(_4(e,t,r),e=e.sibling;e!==null;)_4(e,t,r),e=e.sibling}var Pr=null,Si=!1;function za(e,t,r){for(r=r.child;r!==null;)m_(e,t,r),r=r.sibling}function m_(e,t,r){if(ea&&typeof ea.onCommitFiberUnmount=="function")try{ea.onCommitFiberUnmount(hh,r)}catch{}switch(r.tag){case 5:Wr||rs(r,t);case 6:var n=Pr,a=Si;Pr=null,za(e,t,r),Pr=n,Si=a,Pr!==null&&(Si?(e=Pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Pr.removeChild(r.stateNode));break;case 18:Pr!==null&&(Si?(e=Pr,r=r.stateNode,e.nodeType===8?Wd(e.parentNode,r):e.nodeType===1&&Wd(e,r),xu(e)):Wd(Pr,r.stateNode));break;case 4:n=Pr,a=Si,Pr=r.stateNode.containerInfo,Si=!0,za(e,t,r),Pr=n,Si=a;break;case 0:case 11:case 14:case 15:if(!Wr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,f=i.destroy;i=i.tag,f!==void 0&&(i&2||i&4)&&b4(r,t,f),a=a.next}while(a!==n)}za(e,t,r);break;case 1:if(!Wr&&(rs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){tr(r,t,l)}za(e,t,r);break;case 21:za(e,t,r);break;case 22:r.mode&1?(Wr=(n=Wr)||r.memoizedState!==null,za(e,t,r),Wr=n):za(e,t,r);break;default:za(e,t,r)}}function p9(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new SO),t.forEach(function(n){var a=IO.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function pi(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=f),n&=~i}if(n=a,n=or()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*MO(n/1960))-n,10e?16:e,co===null)var n=!1;else{if(e=co,co=null,C1=0,bt&6)throw Error(We(331));var a=bt;for(bt|=4,Je=e.current;Je!==null;){var i=Je,f=i.child;if(Je.flags&16){var l=i.deletions;if(l!==null){for(var c=0;cor()-k8?af(e,0):O8|=r),bn(e,t)}function M_(e,t){t===0&&(e.mode&1?(t=$l,$l<<=1,!($l&130023424)&&($l=4194304)):t=1);var r=nn();e=Pa(e,t),e!==null&&(al(e,t,r),bn(e,r))}function kO(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),M_(e,r)}function IO(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(We(314))}n!==null&&n.delete(t),M_(e,r)}var A_;A_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||yn.current)gn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return gn=!1,xO(e,t,r);gn=!!(e.flags&131072)}else gn=!1,jt&&t.flags&1048576&&Pw(t,g1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;kc(e,t),e=t.pendingProps;var a=Ms(t,Xr.current);ds(t,r),a=C8(null,t,n,e,a,r);var i=M8();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mn(n)?(i=!0,p1(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,x8(t),a.updater=mh,t.stateNode=a,a._reactInternals=t,h4(t,n,e,r),t=v4(null,t,n,!0,i,r)):(t.tag=0,jt&&i&&d8(t),tn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(kc(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=LO(n),e=wi(n,e),a){case 0:t=p4(null,t,n,e,r);break e;case 1:t=u9(null,t,n,e,r);break e;case 11:t=f9(null,t,n,e,r);break e;case 14:t=s9(null,t,n,wi(n.type,e),r);break e}throw Error(We(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wi(n,a),p4(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wi(n,a),u9(e,t,n,a,r);case 3:e:{if(l_(t),e===null)throw Error(We(387));n=t.pendingProps,i=t.memoizedState,a=i.element,Bw(e,t),b1(t,n,null,r);var f=t.memoizedState;if(n=f.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Ps(Error(We(423)),t),t=l9(e,t,n,r,a);break e}else if(n!==a){a=Ps(Error(We(424)),t),t=l9(e,t,n,r,a);break e}else for(An=go(t.stateNode.containerInfo.firstChild),Rn=t,jt=!0,Ci=null,r=Fw(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(As(),n===a){t=Oa(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return Uw(t),e===null&&u4(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,f=a.children,i4(n,a)?f=null:i!==null&&i4(n,i)&&(t.flags|=32),u_(e,t),tn(e,t,f,r),t.child;case 6:return e===null&&u4(t),null;case 13:return c_(e,t,r);case 4:return w8(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Rs(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wi(n,a),f9(e,t,n,a,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,f=a.value,Bt(y1,n._currentValue),n._currentValue=f,i!==null)if(Oi(i.value,f)){if(i.children===a.children&&!yn.current){t=Oa(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){f=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Sa(-1,r&-r),c.tag=2;var m=i.updateQueue;if(m!==null){m=m.shared;var g=m.pending;g===null?c.next=c:(c.next=g.next,g.next=c),m.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),l4(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(i.tag===10)f=i.type===t.type?null:i.child;else if(i.tag===18){if(f=i.return,f===null)throw Error(We(341));f.lanes|=r,l=f.alternate,l!==null&&(l.lanes|=r),l4(f,r,t),f=i.sibling}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===t){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}tn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,ds(t,r),a=ei(a),n=n(a),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,a=wi(n,t.pendingProps),a=wi(n.type,a),s9(e,t,n,a,r);case 15:return f_(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wi(n,a),kc(e,t),t.tag=1,mn(n)?(e=!0,p1(t)):e=!1,ds(t,r),Nw(t,n,a),h4(t,n,a,r),v4(null,t,n,!0,e,r);case 19:return h_(e,t,r);case 22:return s_(e,t,r)}throw Error(We(156,t.tag))};function R_(e,t){return ew(e,t)}function BO(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(e,t,r,n){return new BO(e,t,r,n)}function N8(e){return e=e.prototype,!(!e||!e.isReactComponent)}function LO(e){if(typeof e=="function")return N8(e)?1:0;if(e!=null){if(e=e.$$typeof,e===t8)return 11;if(e===r8)return 14}return 2}function xo(e,t){var r=e.alternate;return r===null?(r=Xn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Lc(e,t,r,n,a,i){var f=2;if(n=e,typeof e=="function")N8(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case Wf:return of(r.children,a,i,t);case e8:f=8,a|=8;break;case Np:return e=Xn(12,r,t,a|2),e.elementType=Np,e.lanes=i,e;case Dp:return e=Xn(13,r,t,a),e.elementType=Dp,e.lanes=i,e;case Fp:return e=Xn(19,r,t,a),e.elementType=Fp,e.lanes=i,e;case Dx:return _h(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lx:f=10;break e;case Nx:f=9;break e;case t8:f=11;break e;case r8:f=14;break e;case to:f=16,n=null;break e}throw Error(We(130,e==null?e:typeof e,""))}return t=Xn(f,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function of(e,t,r,n){return e=Xn(7,e,n,t),e.lanes=r,e}function _h(e,t,r,n){return e=Xn(22,e,n,t),e.elementType=Dx,e.lanes=r,e.stateNode={isHidden:!1},e}function t2(e,t,r){return e=Xn(6,e,null,t),e.lanes=r,e}function r2(e,t,r){return t=Xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NO(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nd(0),this.expirationTimes=Nd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nd(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function D8(e,t,r,n,a,i,f,l,c){return e=new NO(e,t,r,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Xn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},x8(i),e}function DO(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(k_)}catch(e){console.error(e)}}k_(),Px.exports=On;var zO=Px.exports,_9=zO;Bp.createRoot=_9.createRoot,Bp.hydrateRoot=_9.hydrateRoot;function $O(){const[e,t]=Or.useState(()=>window.matchMedia("(prefers-color-scheme: dark)").matches);return Or.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),n=a=>{t(a.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),Xe.jsx("a",{href:"https://ardrive.io",children:e?Xe.jsx(KO,{}):Xe.jsx(HO,{})})}function HO(){return Xe.jsxs("svg",{className:"ardrive-logo",width:"165",height:"38",viewBox:"0 0 165 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[Xe.jsx("path",{d:"M104.297 6.39762C104.281 6.04335 104.222 5.98431 103.862 5.95747C103.798 5.9521 103.733 5.95747 103.669 5.95747C101.973 5.95747 100.271 5.95747 98.5748 5.95747C98.4943 5.95747 98.4084 5.9521 98.3279 5.96284C98.0112 5.98968 97.9629 6.03799 97.9468 6.34931C97.9414 6.46203 97.9468 6.58012 97.9468 6.69284C97.9468 8.99557 97.9522 11.2983 97.9414 13.5957C97.9414 13.8265 98.0702 14.1485 97.7911 14.2559C97.5388 14.3579 97.3617 14.0841 97.1792 13.9285C96.3955 13.2575 95.5099 12.7959 94.49 12.6134C92.6274 12.2752 90.8185 12.5007 89.0633 13.1716C86.5834 14.1163 84.9517 15.9413 83.9318 18.3353C82.8314 20.9118 82.8744 23.5419 83.7171 26.1775C84.5062 28.6573 86.1379 30.3911 88.5265 31.4002C89.7343 31.9101 90.9903 32.2429 92.3 32.361C94.1357 32.5274 95.8319 32.1463 97.3778 31.1318C97.8555 30.8151 98.2903 30.4448 98.709 30.0583C98.9559 29.8328 99.0794 29.8543 99.2511 30.1334C99.3853 30.3535 99.498 30.5951 99.6215 30.8205C100.174 31.8296 99.9221 31.7437 101.183 31.7491C102.032 31.7491 102.88 31.7545 103.728 31.7652C104.179 31.7706 104.281 31.6793 104.291 31.2392C104.297 31.1265 104.291 31.0084 104.291 30.8956C104.291 26.8806 104.291 22.8656 104.291 18.8452C104.291 14.8141 104.291 10.783 104.291 6.74652C104.302 6.62843 104.302 6.51571 104.297 6.39762ZM95.2415 26.317C94.7262 26.4942 94.1948 26.5586 93.658 26.58C91.8277 26.5747 90.3032 25.6085 89.6698 24.025C88.8003 21.8619 89.6806 18.5446 93.2823 18.2065C94.9087 18.0562 96.2077 18.6627 97.2275 19.9188C98.7949 21.8619 98.1615 25.3133 95.2415 26.317Z",fill:"#171717"}),Xe.jsx("path",{d:"M68.4998 13.0267C67.4907 13.016 66.4762 13.016 65.467 13.0052C65.0806 12.9999 64.8176 13.1448 64.6619 13.5151C64.5277 13.8265 64.3559 14.1271 64.1895 14.4277C63.8675 14.9966 63.7977 15.0127 63.3576 14.5565C62.5202 13.6923 61.5057 13.1287 60.3517 12.812C58.8648 12.404 57.3565 12.3772 55.8428 12.608C53.4274 12.9837 51.4199 14.111 49.9867 16.0863C47.6249 19.3283 47.1794 22.8978 48.6609 26.6069C49.7559 29.3444 51.8171 31.1587 54.6888 31.9638C56.2025 32.3879 57.7483 32.3771 59.2996 32.1678C60.4 32.0175 61.4252 31.6847 62.3431 31.0459C62.7456 30.7668 63.0999 30.4287 63.4488 30.0798C63.7172 29.8114 63.8084 29.8221 64.0017 30.1495C64.211 30.4984 64.415 30.8527 64.576 31.2284C64.7531 31.631 65.0645 31.792 65.4724 31.7652C66.3527 31.7169 67.233 31.7598 68.1133 31.7437C68.2582 31.7437 68.4085 31.7491 68.5535 31.7437C69.0043 31.733 69.0473 31.6847 69.058 31.2284C69.058 31.1318 69.058 31.0352 69.058 30.9332C69.058 28.0937 69.058 25.2542 69.058 22.4147C69.058 21.4539 69.058 20.4877 69.058 19.5269C69.058 17.5516 69.058 15.5763 69.058 13.601C69.0419 13.0643 69.0151 13.0321 68.4998 13.0267ZM60.0296 26.2419C59.4231 26.462 58.8004 26.5586 58.1617 26.5747C56.6533 26.5264 55.4564 25.9306 54.6995 24.5833C53.3254 22.1356 54.3828 19.2478 56.97 18.3836C59.042 17.6912 62.3216 18.6949 62.7778 21.8941C62.9979 23.4614 62.2196 25.4528 60.0296 26.2419Z",fill:"#171717"}),Xe.jsx("path",{d:"M160.437 13.4668C157.549 12.1303 154.576 12.0873 151.591 13.1877C149.294 14.0358 147.587 15.5441 146.572 17.7824C145.531 20.0744 145.354 22.4684 145.848 24.9161C146.207 26.7089 147.05 28.2494 148.387 29.5108C150.4 31.4056 152.869 32.1624 155.563 32.3127C156.873 32.3879 158.172 32.2859 159.471 32.1087C160.802 31.9262 162.085 31.5612 163.293 30.9547C163.599 30.8044 163.717 30.6058 163.711 30.2623C163.695 29.0867 163.706 27.9112 163.706 26.7357C163.706 26.1989 163.588 26.1131 163.057 26.2419C163.008 26.2526 162.965 26.2687 162.917 26.2848C160.915 27.047 158.838 27.2617 156.717 27.192C155.671 27.1598 154.64 27.0202 153.685 26.5371C152.708 26.0433 152.026 25.3025 151.699 24.1753C151.946 24.1753 152.123 24.1753 152.3 24.1753C156.041 24.1753 159.777 24.1753 163.518 24.1753C163.647 24.1753 163.781 24.17 163.91 24.1753C164.205 24.1807 164.415 24.0626 164.5 23.7674C164.533 23.66 164.581 23.5527 164.613 23.4453C164.989 22.1947 165.091 20.9172 164.919 19.6235C164.538 16.7626 163.046 14.6746 160.437 13.4668ZM151.709 20.2301C152.005 18.8345 152.772 17.863 154.114 17.3691C155.461 16.8699 156.771 16.9934 158.032 17.659C159.052 18.1958 159.503 19.0868 159.589 20.2355C156.975 20.2301 154.372 20.2301 151.709 20.2301Z",fill:"#171717"}),Xe.jsx("path",{d:"M147.297 13.5527C147.506 13.1287 147.437 13.0106 146.943 13.0106C146.648 13.0106 146.358 13.0267 146.063 13.0267C144.608 13.0213 143.159 13.0267 141.704 13.0052C141.199 12.9999 140.861 13.2092 140.668 13.6654C140.609 13.7996 140.55 13.9338 140.491 14.068C139.391 16.6982 138.134 19.2639 137.066 21.9102C137.002 22.0658 136.921 22.2108 136.728 22.2161C136.508 22.2215 136.406 22.0712 136.347 21.8941C136.046 20.9279 135.574 20.0261 135.182 19.0975C134.425 17.3101 133.652 15.5334 132.901 13.746C132.686 13.2307 132.37 12.973 131.785 12.9999C130.936 13.0321 130.088 13.0106 129.24 13.0106C129.24 13.016 129.194 13.0052 129.194 13.0106C128.947 13.0106 128.744 13.0106 128.497 13.0106C127.826 13.0052 127.171 13.016 126.5 13.0106C126.076 13.0106 126.004 13.1287 126.181 13.5151C126.24 13.6493 126.32 13.7728 126.385 13.9016C127.92 17.0363 129.455 20.1711 130.99 23.3004C132.252 25.8769 133.513 28.4587 134.769 31.0352C135.086 31.6793 135.236 31.7706 135.944 31.7437C136.369 31.7276 136.798 31.7008 137.217 31.7384C138.473 31.8457 138.451 31.6096 138.886 30.7293C141.189 26.0272 143.481 21.3251 145.783 16.623C146.283 15.5978 146.793 14.5779 147.297 13.5527Z",fill:"#171717"}),Xe.jsx("path",{d:"M82.5792 17.9864C82.5738 16.3708 82.5738 14.7551 82.5684 13.1394C82.5684 13.0267 82.5684 12.9086 82.563 12.7959C82.5577 12.5543 82.4289 12.447 82.1927 12.4362C81.8653 12.4201 81.5432 12.4738 81.2158 12.5114C79.7987 12.6671 78.5373 13.1877 77.4691 14.1432C77.2974 14.2935 77.1471 14.4706 76.9699 14.6102C76.766 14.7766 76.6157 14.7443 76.5083 14.4974C76.3688 14.1861 76.2614 13.8587 76.1487 13.5366C75.9984 13.1072 75.891 13.0106 75.4455 13.0052C74.2056 12.9999 72.9657 12.9999 71.7257 13.016C70.9421 13.0267 70.9421 13.0428 70.9421 13.8104C70.9421 16.666 70.9421 19.5269 70.9421 22.3825C70.9421 25.222 70.9421 28.0669 70.9421 30.9064C70.9421 31.0352 70.9367 31.1694 70.9421 31.2982C70.9689 31.6632 71.0226 31.7276 71.3822 31.7276C73.1965 31.733 75.0054 31.733 76.8196 31.7276C77.1793 31.7276 77.2437 31.6525 77.2705 31.3036C77.2813 31.1748 77.2705 31.0406 77.2705 30.9118C77.2705 28.346 77.2705 25.7856 77.2705 23.2199C77.2705 22.7475 77.3027 22.2752 77.394 21.8082C77.6838 20.3375 78.5158 19.3391 79.9597 18.8828C80.6039 18.6788 81.2641 18.5983 81.935 18.5983C82.4879 18.6091 82.5845 18.5071 82.5792 17.9864Z",fill:"#171717"}),Xe.jsx("path",{d:"M116.878 12.447C116.583 12.447 116.293 12.4846 116.004 12.5114C114.442 12.6724 113.084 13.2843 111.962 14.3901C111.892 14.4599 111.828 14.535 111.752 14.594C111.522 14.7765 111.382 14.7551 111.259 14.4867C111.119 14.1915 111.006 13.8855 110.92 13.5742C110.792 13.1179 110.657 13.016 110.19 13.016C108.934 13.0106 107.678 13.0106 106.422 13.0267C105.719 13.0374 105.719 13.0482 105.719 13.7513C105.719 16.623 105.719 19.5001 105.719 22.3718C105.719 25.3079 105.719 28.2494 105.719 31.1855C105.719 31.7223 105.741 31.7439 106.261 31.7439C107.716 31.7439 109.165 31.7439 110.62 31.7439C110.979 31.7439 111.339 31.7384 111.699 31.7439C111.924 31.7491 112.032 31.6417 112.032 31.4217C112.032 31.2928 112.037 31.1586 112.037 31.0298C112.037 28.448 112.042 25.8715 112.032 23.2897C112.032 22.8334 112.058 22.3772 112.139 21.9263C112.413 20.375 113.271 19.3283 114.807 18.8721C115.408 18.6949 116.02 18.6413 116.642 18.6091C117.324 18.5715 117.324 18.5768 117.324 17.922C117.324 16.7787 117.324 15.6354 117.324 14.4921C117.324 13.9553 117.329 13.4132 117.319 12.8764C117.308 12.5168 117.233 12.4416 116.878 12.447Z",fill:"#171717"}),Xe.jsx("path",{d:"M124.597 13.0267C122.901 13.0159 121.2 13.0159 119.503 13.0106C118.725 13.0106 118.725 13.0106 118.725 13.7889C118.725 19.4894 118.725 25.1844 118.725 30.8849C118.725 30.9976 118.72 31.1157 118.725 31.2284C118.746 31.7008 118.779 31.733 119.235 31.733C121.065 31.7384 122.89 31.7384 124.721 31.733C125.193 31.733 125.22 31.6954 125.236 31.2338C125.241 31.1211 125.236 31.003 125.236 30.8903C125.236 28.0669 125.236 25.2381 125.236 22.4147C125.236 19.5055 125.236 16.6016 125.236 13.6923C125.236 13.0428 125.231 13.0321 124.597 13.0267Z",fill:"#171717"}),Xe.jsx("path",{d:"M122.031 3.45614C120.035 3.48298 118.462 5.07181 118.473 7.05248C118.483 8.9419 120.121 10.5415 122.048 10.5468C123.985 10.5468 125.649 8.88822 125.644 6.96123C125.633 5.04497 123.975 3.4293 122.031 3.45614Z",fill:"#171717"}),Xe.jsx("rect",{width:"39.0164",height:"37.4385",fill:"url(#pattern0)"}),Xe.jsxs("defs",{children:[Xe.jsx("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:Xe.jsx("use",{xlinkHref:"#image0_1415_14339",transform:"scale(0.00271062 0.00282486)"})}),Xe.jsx("image",{id:"image0_1415_14339",width:"369",height:"354",xlinkHref:"data:image/png;base64,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t9xSDj74YNlnn32kQ4cOkom4Gfr5G6oJDXbH77lE3G5be18GcRXqrnVyngq4vykP+SritWupKWRK76PiNsqcoOY///zjWbRY3N99911a3SRVAX8Dxx133CFdunSRo446Svbcc08vWJoxrJddQW1DSGi9ccie4owZJm4bfy2s1n26NbtOnTof407529czyG01LVNTQwakai5YsMCzup977jmZOzdwWlPGg4X+xRdfeAcull69eslxxx3nZb9UO7VMPkHOU7eOOBf3F2fQ8Woch8vAohFWfn7+aizxv3yZ7zjd69cV669/xBANS3cz1SXjq1evlgceeEAeeughzwrPBf744w+588475amnnvL85kOGDJEGDXwNszIYUo9qafyhK8TttbeERX3h01TAH/Du//DDDw39PUuFvvkGYkgBf1Z9jjBZJgjZHnvsITfffHPOCHhpyGFn8eI9GDlypJd1Uy0UOWLIUbbbVOJfPhlJwJctWyb33HPPBcQz+dr+6quv/Dtj2pum9imhincz7777rhfsGzNmjJcemOssX75cnnnmGc/F8vjjj3sZL1XKspoddzCEQI1g55zeUjTpLnE7htdR3ITsJK+99tqRGufxgiv29OnTfdcAR/nlhv/HWuwvlhyVv/76Sy644AIZOnSozJoVaTxUVsJu5PLLL5f+/ft72S1VhbXILKQ5RX31f99wnjjXDhFpEH4g+q+//ipnn322TJ06laDmjnXr1j2D79u//fZbA8fxt71zt+wihhQw648o0z0qhWKZF1980bM0J0yYUOMzTtIJObmfffaZDBw4UK677jrP0kk7cxeKITdwt+sq8efHinP2caETQzhHX3vtNTn++OPl448/Lv39Ia1bt66bp0GfWmwvKZqoFMqFCYK6phFWFKx5ehEvWS7S2F84IgiIEPnSTzzxhPfhG/zB+3bfffd51aHXXHONVxGaLqyZoYcBGGoQ7j47Svyxq0Wa+BvZkAy0eezYsZ7bL0nBXbtYLNbd1uBOAx7o60U1bSzStLEYIjJngVhL/L3nQaAknjQ6PnAj4OHgPezdu7eXO08wOC38/LsYshj83yNOlvhzYyIJ+KJFi+S0006Thx9+uNyKaXWr7Gyz9Z45c6b4Yv31xN24rRgiwoimr1LbAIneJvjL8JsZosEFM2LECIJHsnhxajOJrH+WiTXDWOJZS/uW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"})]})]})}function KO(){return Xe.jsxs("svg",{className:"ardrive-logo",width:"165",height:"38",viewBox:"0 0 165 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Xe.jsx("path",{d:"M104.388 7.69724C104.372 7.34834 104.313 7.29019 103.954 7.26375C103.89 7.25847 103.825 7.26375 103.761 7.26375C102.067 7.26375 100.368 7.26375 98.6746 7.26375C98.5942 7.26375 98.5085 7.25847 98.4281 7.26904C98.1119 7.29547 98.0636 7.34305 98.0475 7.64967C98.0422 7.76068 98.0475 7.87699 98.0475 7.988C98.0475 10.2559 98.0529 12.5238 98.0422 14.7864C98.0422 15.0137 98.1708 15.3309 97.8921 15.4367C97.6402 15.5371 97.4633 15.2675 97.2811 15.1142C96.4986 14.4534 95.6143 13.9987 94.596 13.819C92.7362 13.4859 90.93 13.708 89.1774 14.3688C86.7013 15.2992 85.0719 17.0966 84.0536 19.4544C82.9549 21.9919 82.9978 24.5823 83.8392 27.1779C84.6271 29.6203 86.2564 31.3278 88.6414 32.3217C89.8473 32.8239 91.1015 33.1517 92.4092 33.268C94.2422 33.4319 95.9359 33.0565 97.4794 32.0574C97.9564 31.7455 98.3906 31.3807 98.8086 31.0001C99.0552 30.778 99.1784 30.7992 99.3499 31.0741C99.4839 31.2908 99.5965 31.5287 99.7197 31.7508C100.272 32.7446 100.02 32.66 101.279 32.6653C102.126 32.6653 102.973 32.6706 103.82 32.6812C104.27 32.6865 104.372 32.5966 104.383 32.1631C104.388 32.0521 104.383 31.9358 104.383 31.8248C104.383 27.8705 104.383 23.9162 104.383 19.9566C104.383 15.9865 104.383 12.0163 104.383 8.04087C104.393 7.92456 104.393 7.81355 104.388 7.69724ZM95.3463 27.3154C94.8318 27.4899 94.3012 27.5533 93.7652 27.5744C91.9376 27.5692 90.4155 26.6176 89.783 25.0581C88.9148 22.9276 89.7937 19.6606 93.39 19.3275C95.014 19.1795 96.311 19.7769 97.3294 21.0139C98.8944 22.9276 98.2619 26.3268 95.3463 27.3154Z",fill:"white"}),Xe.jsx("path",{d:"M68.6447 14.2261C67.6371 14.2155 66.6241 14.2155 65.6165 14.2049C65.2307 14.1996 64.968 14.3424 64.8126 14.7071C64.6786 15.0137 64.5071 15.3098 64.341 15.6058C64.0194 16.1662 63.9497 16.1821 63.5102 15.7327C62.6741 14.8816 61.6612 14.3265 60.5088 14.0146C59.0242 13.6128 57.5182 13.5864 56.0068 13.8137C53.5949 14.1838 51.5905 15.2939 50.1594 17.2394C47.8012 20.4324 47.3564 23.9479 48.8356 27.6009C49.929 30.297 51.9871 32.0838 54.8545 32.8768C56.3659 33.2944 57.9094 33.2838 59.4584 33.0777C60.5571 32.9297 61.5808 32.6019 62.4973 31.9728C62.8992 31.6979 63.253 31.3649 63.6013 31.0212C63.8693 30.7569 63.9604 30.7675 64.1534 31.09C64.3624 31.4336 64.5661 31.7825 64.7269 32.1525C64.9037 32.549 65.2146 32.7076 65.6219 32.6812C66.5009 32.6336 67.3799 32.6759 68.2588 32.66C68.4035 32.66 68.5536 32.6653 68.6983 32.66C69.1485 32.6495 69.1914 32.6019 69.2021 32.1525C69.2021 32.0574 69.2021 31.9622 69.2021 31.8618C69.2021 29.0652 69.2021 26.2687 69.2021 23.4721C69.2021 22.5258 69.2021 21.5743 69.2021 20.628C69.2021 18.6826 69.2021 16.7371 69.2021 14.7917C69.186 14.2631 69.1592 14.2313 68.6447 14.2261ZM60.1873 27.2414C59.5816 27.4581 58.9599 27.5533 58.3221 27.5692C56.8161 27.5216 55.6209 26.9348 54.8652 25.6079C53.4931 23.1972 54.549 20.3531 57.1323 19.502C59.2011 18.82 62.4758 19.8086 62.9314 22.9593C63.1511 24.503 62.374 26.4643 60.1873 27.2414Z",fill:"white"}),Xe.jsx("path",{d:"M160.444 14.6595C157.561 13.3432 154.591 13.3009 151.611 14.3847C149.318 15.2199 147.613 16.7054 146.6 18.9099C145.56 21.1672 145.384 23.525 145.877 25.9356C146.236 27.7013 147.077 29.2185 148.412 30.4609C150.422 32.327 152.887 33.0724 155.578 33.2204C156.885 33.2944 158.182 33.194 159.479 33.0195C160.809 32.8398 162.09 32.4803 163.295 31.8829C163.601 31.7349 163.719 31.5393 163.713 31.201C163.697 30.0432 163.708 28.8855 163.708 27.7277C163.708 27.1991 163.59 27.1145 163.06 27.2414C163.011 27.252 162.968 27.2678 162.92 27.2837C160.921 28.0344 158.847 28.2458 156.73 28.1771C155.685 28.1454 154.656 28.0079 153.702 27.5321C152.726 27.0458 152.046 26.3163 151.719 25.2061C151.965 25.2061 152.142 25.2061 152.319 25.2061C156.055 25.2061 159.785 25.2061 163.521 25.2061C163.649 25.2061 163.783 25.2008 163.912 25.2061C164.207 25.2114 164.416 25.0951 164.501 24.8043C164.534 24.6986 164.582 24.5929 164.614 24.4871C164.989 23.2554 165.091 21.9972 164.919 20.7232C164.539 17.9055 163.049 15.849 160.444 14.6595ZM151.729 21.3205C152.024 19.946 152.791 18.9892 154.131 18.5028C155.476 18.0112 156.784 18.1328 158.043 18.7883C159.061 19.3169 159.512 20.1945 159.597 21.3258C156.987 21.3205 154.388 21.3205 151.729 21.3205Z",fill:"white"}),Xe.jsx("path",{d:"M147.324 14.7441C147.533 14.3265 147.463 14.2102 146.97 14.2102C146.675 14.2102 146.386 14.2261 146.091 14.2261C144.639 14.2208 143.192 14.2261 141.739 14.2049C141.235 14.1996 140.898 14.4058 140.705 14.8552C140.646 14.9873 140.587 15.1195 140.528 15.2516C139.429 17.842 138.175 20.369 137.108 22.9752C137.044 23.1285 136.964 23.2712 136.771 23.2765C136.551 23.2818 136.449 23.1338 136.39 22.9593C136.09 22.0078 135.618 21.1196 135.227 20.2051C134.471 18.4447 133.7 16.6948 132.949 14.9345C132.735 14.4269 132.419 14.1732 131.835 14.1996C130.988 14.2313 130.141 14.2102 129.294 14.2102C129.294 14.2155 129.248 14.2049 129.248 14.2102C129.002 14.2102 128.798 14.2102 128.552 14.2102C127.882 14.2049 127.228 14.2155 126.558 14.2102C126.135 14.2102 126.062 14.3265 126.239 14.7071C126.298 14.8393 126.378 14.9609 126.443 15.0878C127.976 18.1751 129.508 21.2624 131.041 24.3444C132.301 26.8819 133.56 29.4247 134.814 31.9622C135.131 32.5966 135.281 32.6865 135.988 32.66C136.412 32.6442 136.84 32.6178 137.258 32.6548C138.513 32.7605 138.491 32.5279 138.925 31.6609C141.225 27.0299 143.513 22.399 145.812 17.768C146.311 16.7583 146.82 15.7539 147.324 14.7441Z",fill:"white"}),Xe.jsx("path",{d:"M82.703 19.1108C82.6976 17.5195 82.6976 15.9283 82.6922 14.3371C82.6922 14.2261 82.6922 14.1098 82.6869 13.9987C82.6815 13.7609 82.5529 13.6551 82.3171 13.6446C81.9901 13.6287 81.6686 13.6816 81.3416 13.7186C79.9267 13.8719 78.6672 14.3847 77.6006 15.3257C77.4291 15.4737 77.279 15.6481 77.1022 15.7856C76.8985 15.9495 76.7484 15.9177 76.6413 15.6746C76.5019 15.3679 76.3947 15.0455 76.2822 14.7283C76.1321 14.3054 76.0249 14.2102 75.58 14.2049C74.342 14.1996 73.1039 14.1996 71.8658 14.2155C71.0833 14.2261 71.0833 14.2419 71.0833 14.9979C71.0833 17.8103 71.0833 20.628 71.0833 23.4404C71.0833 26.237 71.0833 29.0388 71.0833 31.8354C71.0833 31.9622 71.078 32.0944 71.0833 32.2213C71.1101 32.5808 71.1637 32.6442 71.5228 32.6442C73.3344 32.6495 75.1406 32.6495 76.9521 32.6442C77.3112 32.6442 77.3755 32.5702 77.4023 32.2266C77.413 32.0997 77.4023 31.9675 77.4023 31.8406C77.4023 29.3137 77.4023 26.7921 77.4023 24.2651C77.4023 23.7999 77.4345 23.3347 77.5256 22.8748C77.815 21.4263 78.6457 20.443 80.0875 19.9936C80.7306 19.7927 81.3899 19.7134 82.0598 19.7134C82.6119 19.724 82.7083 19.6236 82.703 19.1108Z",fill:"white"}),Xe.jsx("path",{d:"M116.951 13.6551C116.656 13.6551 116.367 13.6921 116.077 13.7186C114.518 13.8772 113.162 14.4798 112.041 15.5688C111.972 15.6375 111.907 15.7116 111.832 15.7697C111.602 15.9495 111.463 15.9283 111.339 15.664C111.2 15.3732 111.087 15.0719 111.002 14.7653C110.873 14.3159 110.739 14.2155 110.273 14.2155C109.019 14.2102 107.764 14.2102 106.51 14.2261C105.808 14.2366 105.808 14.2472 105.808 14.9397C105.808 17.768 105.808 20.6016 105.808 23.4298C105.808 26.3215 105.808 29.2185 105.808 32.1102C105.808 32.6389 105.83 32.6602 106.35 32.6602C107.802 32.6602 109.249 32.6602 110.702 32.6602C111.061 32.6602 111.42 32.6547 111.779 32.6602C112.004 32.6653 112.111 32.5596 112.111 32.3428C112.111 32.216 112.116 32.0838 112.116 31.9569C112.116 29.4141 112.122 26.8766 112.111 24.3338C112.111 23.8845 112.138 23.4351 112.218 22.991C112.492 21.4633 113.349 20.4324 114.882 19.983C115.482 19.8086 116.093 19.7557 116.715 19.724C117.396 19.687 117.396 19.6923 117.396 19.0473C117.396 17.9213 117.396 16.7953 117.396 15.6693C117.396 15.1406 117.401 14.6067 117.39 14.078C117.38 13.7238 117.305 13.6498 116.951 13.6551Z",fill:"white"}),Xe.jsx("path",{d:"M124.658 14.2261C122.964 14.2155 121.265 14.2155 119.572 14.2102C118.795 14.2102 118.795 14.2102 118.795 14.9767C118.795 20.591 118.795 26.1999 118.795 31.8142C118.795 31.9252 118.789 32.0415 118.795 32.1525C118.816 32.6177 118.848 32.6495 119.304 32.6495C121.131 32.6548 122.954 32.6548 124.781 32.6495C125.253 32.6495 125.28 32.6125 125.296 32.1578C125.301 32.0468 125.296 31.9305 125.296 31.8195C125.296 29.0388 125.296 26.2528 125.296 23.4721C125.296 20.6068 125.296 17.7469 125.296 14.8816C125.296 14.2419 125.29 14.2313 124.658 14.2261Z",fill:"white"}),Xe.jsx("path",{d:"M122.096 4.80025C120.102 4.82668 118.532 6.39148 118.543 8.3422C118.553 10.203 120.188 11.7784 122.112 11.7837C124.047 11.7837 125.708 10.1502 125.703 8.25233C125.692 6.36505 124.036 4.77382 122.096 4.80025Z",fill:"white"}),Xe.jsx("path",{d:"M18.7169 8.30993C18.8659 8.40488 19.0088 8.5171 19.1485 8.63363C20.4557 9.71696 21.7692 10.7917 23.0857 11.8534C24.6786 13.1396 26.2622 14.4387 27.8582 15.7119C30.4043 17.7448 32.9318 19.8252 35.4718 21.8753C36.3505 22.5874 37.2323 23.2909 38.1142 23.9988C38.1483 24.0247 38.2043 24.0419 38.2043 24.0894C38.2073 24.1585 38.1452 24.1671 38.1079 24.1973C37.1205 24.9656 36.1331 25.7338 35.1488 26.5021C35.0153 26.6057 34.8818 26.7136 34.7514 26.8258C34.6396 26.9251 34.5216 26.9423 34.3943 26.9035C33.9689 26.774 33.5404 26.6445 33.115 26.5194C32.6648 26.3899 32.2115 26.2647 31.7581 26.1395C31.6029 26.0964 31.4507 26.1266 31.311 26.2302C31.224 26.2949 31.1433 26.3769 31.0657 26.4632C30.9756 26.5625 30.9384 26.6877 30.9539 26.843C30.9663 26.9596 30.9818 27.0761 30.9943 27.1883C31.0564 27.7322 31.0098 28.2587 30.8825 28.781C30.7955 29.1435 30.6714 29.4802 30.5254 29.8039C30.1869 30.5635 29.7554 31.2066 29.2617 31.772C28.8828 32.1993 28.4823 32.5791 28.06 32.9244C28.029 32.9503 27.9979 32.9718 27.9731 33.0021C27.7775 33.2179 27.5601 33.3819 27.3396 33.5416C26.8459 33.8955 26.3522 34.2451 25.8399 34.5472C24.9705 35.0565 24.0731 35.4579 23.1602 35.7859C22.5827 35.9931 22.002 36.1744 21.4152 36.3168C21.0302 36.4117 20.642 36.4851 20.2508 36.5455C19.7167 36.6276 19.1827 36.675 18.6455 36.7139C18.2387 36.7441 17.832 36.7613 17.4252 36.7657C17.0743 36.77 16.7204 36.7441 16.3695 36.7225C16.1273 36.7095 15.882 36.6837 15.6398 36.6577C15.3541 36.6276 15.0654 36.5887 14.7797 36.5455C14.5282 36.5067 14.2767 36.4635 14.0252 36.4161C13.606 36.3427 13.193 36.2391 12.7769 36.1269C12.0069 35.9154 11.2493 35.6521 10.4947 35.35C9.50732 34.9529 8.55093 34.435 7.62254 33.8264C7.13504 33.507 6.64446 33.1876 6.17868 32.8035C4.59359 31.5031 3.19008 29.9802 2.25079 28.1465C1.86266 27.3826 1.54595 26.5625 1.34101 25.6691C1.02213 24.2815 1.1223 22.8234 1.5801 21.4782C2.55609 18.6009 5.07277 16.4724 7.72191 15.1293C9.70927 14.1225 11.851 13.7693 14.0686 13.7913C14.2984 13.7956 14.5251 13.8129 14.7518 13.856C14.8884 13.882 15.0188 13.8517 15.1461 13.7783C15.2641 13.705 15.3728 13.6057 15.4752 13.4935C15.5497 13.4158 15.5746 13.3079 15.5622 13.1827C15.5529 13.0921 15.5249 13.0101 15.4907 12.9324C15.3759 12.6648 15.261 12.3972 15.1492 12.1296C15.0157 11.8059 14.8821 11.4822 14.7486 11.1585C14.7269 11.1024 14.7114 11.0463 14.6896 10.9945C14.7207 10.9298 14.7704 10.9082 14.8138 10.878C15.4348 10.4118 16.0621 9.97161 16.6924 9.54C17.1737 9.21198 17.6487 8.8667 18.1269 8.53436C18.2418 8.45236 18.3598 8.3833 18.4747 8.30561C18.5585 8.2495 18.6361 8.25814 18.7169 8.30993ZM16.0887 19.5678C15.5816 19.5678 15.0236 19.6685 14.5336 19.806C14.0994 19.925 13.6683 20.0612 13.2464 20.2525C12.5843 20.5587 11.9561 20.9584 11.3833 21.5113C11.0785 21.8005 10.7982 22.1322 10.5642 22.5319C10.3209 22.9487 10.1269 23.3995 10.0315 23.9268C9.98219 24.1947 9.94213 24.4584 9.96062 24.7348C9.99144 25.2069 10.09 25.6534 10.2378 26.0787C10.2809 26.202 10.3332 26.3168 10.3917 26.4274C10.4718 26.5762 10.5611 26.708 10.6442 26.8526C10.8198 27.1503 11.02 27.4097 11.2355 27.6479C11.719 28.1752 12.2333 28.6175 12.7999 28.9492C12.8892 29.0002 12.9846 29.0428 13.0709 29.1023C13.2217 29.2086 13.3757 29.2894 13.5358 29.3617C14.1794 29.6509 14.8323 29.8593 15.5036 29.9826C15.9778 30.0677 16.4521 30.1017 16.8863 30.1187C17.3451 30.1187 17.8871 30.0592 18.3798 29.9784C18.851 29.9018 19.3129 29.7742 19.7686 29.6041C20.0212 29.5105 20.2614 29.3745 20.5077 29.2554C21.1144 28.9577 21.681 28.5622 22.1953 28.0221C22.3215 27.8903 22.4416 27.7542 22.5555 27.6011C22.6387 27.4905 22.7157 27.38 22.8081 27.2864C22.8389 27.2524 22.8696 27.2099 22.882 27.1631C22.9097 27.0568 22.9651 26.9845 23.0144 26.8994C23.0544 26.8314 23.0914 26.7548 23.1252 26.6825C23.2577 26.3976 23.3439 26.0914 23.4178 25.7725C23.541 25.2451 23.5471 24.7136 23.4517 24.182C23.3193 23.459 23.0452 22.8467 22.6572 22.3321C22.1829 21.7069 21.6409 21.2179 21.0497 20.8309C20.5077 20.4737 19.9411 20.2015 19.356 20.0101C18.9865 19.891 18.6169 19.7762 18.2412 19.7124C17.5149 19.5921 16.8253 19.5678 16.0887 19.5678Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 8.30561C18.427 8.33789 18.3787 8.36869 18.3303 8.39953C18.2623 8.44293 18.1941 8.48643 18.1269 8.53436C17.9301 8.67112 17.7339 8.81008 17.5376 8.94912C17.2567 9.14795 16.9756 9.34697 16.6924 9.54C16.0621 9.97161 15.4348 10.4118 14.8138 10.878C14.8058 10.8836 14.7974 10.8889 14.7891 10.8943C14.7525 10.9177 14.7149 10.9418 14.6896 10.9945C14.7017 11.0231 14.7118 11.0531 14.7221 11.0836C14.7304 11.1083 14.7389 11.1334 14.7486 11.1585L15.1492 12.1296C15.261 12.3972 15.3759 12.6648 15.4907 12.9324C15.5249 13.0101 15.5529 13.0921 15.5622 13.1827C15.5746 13.3079 15.5497 13.4158 15.4752 13.4935C15.3728 13.6057 15.2641 13.705 15.1461 13.7783C15.0188 13.8517 14.8884 13.882 14.7518 13.856C14.5251 13.8129 14.2984 13.7956 14.0686 13.7913C11.851 13.7693 9.70927 14.1225 7.72191 15.1293C5.07277 16.4724 2.55609 18.6009 1.5801 21.4782C1.1223 22.8234 1.02213 24.2815 1.34101 25.6691C1.54595 26.5625 1.86266 27.3826 2.25079 28.1465C3.19008 29.9802 4.59359 31.5031 6.17868 32.8035C6.63302 33.1782 7.11101 33.4913 7.58668 33.8029L7.62254 33.8264C8.55093 34.435 9.50732 34.9529 10.4947 35.35C11.2493 35.6521 12.0069 35.9154 12.7769 36.1269C13.193 36.2391 13.606 36.3427 14.0252 36.4161C14.2767 36.4635 14.5282 36.5067 14.7797 36.5455C15.0654 36.5887 15.3541 36.6276 15.6398 36.6577C15.882 36.6837 16.1273 36.7095 16.3695 36.7225C16.4118 36.7251 16.4542 36.7278 16.4966 36.7304C16.8057 36.7499 17.1166 36.7695 17.4252 36.7657C17.832 36.7613 18.2387 36.7441 18.6455 36.7139C19.1827 36.675 19.7167 36.6276 20.2508 36.5455C20.642 36.4851 21.0302 36.4117 21.4152 36.3168C22.002 36.1744 22.5827 35.9931 23.1602 35.7859C24.0731 35.4579 24.9705 35.0565 25.8399 34.5472C26.3522 34.2451 26.8459 33.8955 27.3396 33.5416C27.5601 33.3819 27.7775 33.2179 27.9731 33.0021C27.9919 32.9791 28.0144 32.9612 28.0377 32.9425C28.0451 32.9366 28.0525 32.9306 28.06 32.9244C28.4823 32.5791 28.8828 32.1993 29.2617 31.772C29.7554 31.2066 30.1869 30.5635 30.5254 29.8039C30.6714 29.4802 30.7955 29.1435 30.8825 28.781C31.0098 28.2587 31.0564 27.7322 30.9943 27.1883C30.9886 27.1374 30.9824 27.0856 30.976 27.0332C30.9684 26.9703 30.9607 26.9067 30.9539 26.843C30.9384 26.6877 30.9756 26.5625 31.0657 26.4632C31.1433 26.3769 31.224 26.2949 31.311 26.2302C31.4507 26.1266 31.6029 26.0964 31.7581 26.1395C32.2115 26.2647 32.6648 26.3899 33.115 26.5194C33.5404 26.6445 33.9689 26.774 34.3943 26.9035C34.5216 26.9423 34.6396 26.9251 34.7514 26.8258C34.8818 26.7136 35.0153 26.6057 35.1488 26.5021C35.8647 25.9433 36.5823 25.3846 37.3002 24.8258C37.3066 24.8208 37.313 24.8158 37.3195 24.8109C37.4452 24.713 37.571 24.6151 37.6967 24.5173C37.7156 24.5026 37.7345 24.4879 37.7534 24.4732C37.8716 24.3812 37.9898 24.2892 38.1079 24.1973C38.1179 24.1892 38.1297 24.1827 38.1415 24.1761C38.1738 24.1581 38.2065 24.1399 38.2043 24.0894C38.2043 24.054 38.1731 24.0354 38.1431 24.0175C38.1329 24.0114 38.1228 24.0053 38.1142 23.9988C37.9706 23.8835 37.827 23.7684 37.6834 23.6533C37.6663 23.6396 37.6492 23.6259 37.6321 23.6121C37.5463 23.5434 37.4606 23.4747 37.3748 23.406C37.3598 23.394 37.3448 23.382 37.3299 23.37C37.3235 23.3649 37.3172 23.3598 37.3109 23.3548C36.697 22.8629 36.0837 22.3712 35.4718 21.8753C34.4771 21.0724 33.4844 20.265 32.4917 19.4575C30.9494 18.2031 29.4073 16.9487 27.8582 15.7119C26.8417 14.901 25.8302 14.0796 24.8181 13.2577C24.2412 12.7891 23.6641 12.3204 23.0857 11.8534C21.7692 10.7917 20.4557 9.71696 19.1485 8.63363C19.0088 8.5171 18.8659 8.40488 18.7169 8.30993C18.6361 8.25814 18.5585 8.2495 18.4747 8.30561ZM19.34 7.33826C19.1872 7.24051 18.9498 7.12688 18.6438 7.11449C18.3205 7.1014 18.0424 7.206 17.8314 7.34722L17.8268 7.35031C17.7929 7.37321 17.7598 7.39432 17.7123 7.42463C17.7016 7.43149 17.6901 7.43882 17.6777 7.44674C17.6188 7.48441 17.5421 7.53387 17.4614 7.59116C17.2467 7.74047 17.0473 7.88172 16.8525 8.01971C16.5827 8.21084 16.3218 8.39571 16.041 8.58706L16.0389 8.58848C15.4118 9.01791 14.7794 9.46141 14.1495 9.93328C14.1285 9.94689 14.0812 9.97793 14.0278 10.0204C13.8992 10.1224 13.7536 10.275 13.6475 10.4962L13.6239 11.4404C13.6204 11.432 13.6181 11.4258 13.6181 11.4258C13.6181 11.4258 13.62 11.431 13.6245 11.4444L13.6265 11.4502C13.6301 11.4611 13.636 11.4784 13.6417 11.4948C13.6492 11.5162 13.659 11.5439 13.671 11.5748L13.6802 11.5979L14.0808 12.569L14.0828 12.5738C14.0917 12.5952 14.1007 12.6167 14.1097 12.6382C14.1032 12.638 14.0968 12.6379 14.0904 12.6377L14.0801 12.6376C11.7325 12.6143 9.39529 12.9878 7.19913 14.1004L7.19875 14.1006C4.41337 15.5128 1.59829 17.8294 0.48606 21.107M19.34 7.33826C19.5494 7.47188 19.7353 7.61978 19.888 7.74706C21.191 8.82691 22.4999 9.89792 23.8117 10.9558L23.8123 10.9563C24.3962 11.4277 24.9757 11.8984 25.5535 12.3677C26.5624 13.187 27.5662 14.0022 28.5794 14.8105L28.5798 14.8109C30.1313 16.0495 31.6825 17.3113 33.2291 18.5692C34.2211 19.3761 35.2112 20.1814 36.1982 20.978L36.2 20.9794C36.8304 21.4904 37.4613 21.996 38.0956 22.5042C38.3258 22.6887 38.5565 22.8736 38.7876 23.0591C38.8065 23.0713 38.8312 23.0878 38.8589 23.1082C38.986 23.2021 39.35 23.5111 39.3596 24.0671C39.3638 24.2606 39.3234 24.4755 39.2109 24.6821C39.0985 24.889 38.9517 25.017 38.8566 25.087C38.8219 25.1123 38.7907 25.1325 38.7672 25.1471C37.7966 25.9022 36.827 26.6567 35.8604 27.4111L35.8578 27.4132C35.7379 27.5061 35.6215 27.6003 35.5102 27.6959C35.3248 27.8581 35.0888 27.9911 34.8055 28.0478C34.5213 28.1046 34.2631 28.0699 34.0567 28.0069C33.6339 27.8782 33.2108 27.7504 32.7919 27.6271C32.5865 27.568 32.3802 27.5098 32.1727 27.4518C32.195 28.0052 32.1308 28.5377 32.0057 29.0517C31.8985 29.4982 31.7478 29.9029 31.58 30.2754C31.1904 31.1492 30.6937 31.8876 30.1326 32.5302L30.1269 32.5368C29.7058 33.0116 29.2614 33.433 28.7955 33.8142C28.7946 33.815 28.7937 33.8157 28.7927 33.8165C28.5208 34.1075 28.2343 34.3189 28.0181 34.4755L28.0135 34.4788C27.522 34.8311 26.9898 35.2091 26.4275 35.5407L26.4246 35.5424C25.484 36.0934 24.5201 36.5235 23.5515 36.8715L23.5509 36.8717C22.9445 37.0893 22.3246 37.2834 21.6902 37.4374C21.2653 37.5421 20.8432 37.6215 20.4274 37.6857L20.4264 37.6859C19.847 37.7749 19.2773 37.8249 18.7305 37.8645C18.2996 37.8965 17.8686 37.9148 17.4375 37.9193C17.0826 37.9236 16.7258 37.901 16.4214 37.8818C16.381 37.8792 16.3415 37.8767 16.3031 37.8744C16.0274 37.8595 15.7544 37.8304 15.5176 37.805C15.2106 37.7726 14.9043 37.7312 14.6068 37.6863L14.603 37.6857C14.3413 37.6453 14.0796 37.6004 13.818 37.5511C13.3495 37.4688 12.8992 37.355 12.4756 37.2407L12.4705 37.2394C11.651 37.0143 10.8517 36.736 10.0647 36.4209L10.063 36.4202C8.99302 35.9899 7.96903 35.4337 6.98845 34.7909L6.93637 34.7568C6.47225 34.4529 5.9477 34.1094 5.44372 33.6938C3.78024 32.3288 2.25514 30.6887 1.22206 28.6719L1.22032 28.6685C0.795584 27.8325 0.443441 26.9239 0.214697 25.9267C-0.155145 24.317 -0.0359902 22.641 0.48606 21.107M28.8373 33.7676L28.8661 33.7342C28.8563 33.7462 28.8466 33.7573 28.8373 33.7676ZM38.8362 25.093C38.8312 25.097 38.8262 25.101 38.8215 25.1048L38.8362 25.093ZM38.7114 25.1799C38.7002 25.1864 38.696 25.1883 38.7021 25.185L38.706 25.1829L38.7114 25.1799ZM38.7383 23.0286C38.733 23.0253 38.7306 23.0238 38.7306 23.0238C38.7306 23.0238 38.7322 23.025 38.7356 23.0269C38.7356 23.0269 38.7368 23.0278 38.7383 23.0286ZM37.5751 23.1704C37.5877 23.1631 37.5905 23.1619 37.5761 23.1699L37.5751 23.1704ZM37.5487 25.0069C37.5567 25.0118 37.5583 25.0126 37.5497 25.0075L37.5487 25.0069ZM14.8461 20.9167L14.8396 20.9186C14.4325 21.0302 14.0689 21.147 13.7281 21.3013C13.1656 21.5618 12.6511 21.8923 12.1864 22.3408L12.1791 22.3478C11.9395 22.5751 11.7323 22.823 11.5622 23.1134C11.3691 23.4443 11.2344 23.7681 11.1685 24.1321L11.1679 24.1352C11.1209 24.391 11.1053 24.5344 11.1136 24.658L11.1137 24.6598C11.137 25.0176 11.2118 25.3618 11.329 25.6994C11.3492 25.7568 11.3757 25.8168 11.4115 25.8848C11.4347 25.9277 11.4622 25.9738 11.5021 26.0389C11.5079 26.0482 11.514 26.0582 11.5206 26.0689C11.555 26.1248 11.5998 26.1975 11.6427 26.2719C11.7702 26.4873 11.9191 26.6821 12.0903 26.8715C12.5141 27.3334 12.9381 27.6917 13.3784 27.9505C13.39 27.957 13.3981 27.9612 13.4131 27.969C13.427 27.9763 13.447 27.9868 13.4813 28.0051C13.5382 28.0354 13.6299 28.0855 13.7281 28.1533L13.7371 28.1596C13.809 28.2103 13.8928 28.2566 14.0107 28.3099C14.5751 28.5634 15.1383 28.7422 15.7105 28.8475C16.1011 28.9174 16.5063 28.9485 16.908 28.9648C17.2776 28.963 17.7426 28.9136 18.1926 28.8399L18.1943 28.8395C18.5823 28.7765 18.9708 28.6702 19.3641 28.5234L19.3667 28.5224C19.4829 28.4794 19.5705 28.4347 19.704 28.3666C19.7823 28.3267 19.8762 28.2789 20.0009 28.2186C20.4942 27.9761 20.9462 27.6594 21.3579 27.2271L21.3602 27.2247C21.4647 27.1156 21.551 27.0166 21.6281 26.913L21.6315 26.9083C21.6379 26.9 21.646 26.8889 21.6557 26.8756C21.6965 26.8202 21.7655 26.7263 21.8483 26.6278C21.8766 26.5625 21.9055 26.5068 21.9312 26.4609C21.9558 26.4168 21.9795 26.3784 21.9922 26.3577L21.9924 26.3573C22.0085 26.3313 22.0115 26.3264 22.0142 26.3217L22.0181 26.315C22.0283 26.2977 22.0454 26.2645 22.0777 26.1957C22.1598 26.0187 22.2246 25.8036 22.2921 25.5124L22.2925 25.5104C22.3774 25.1471 22.384 24.7752 22.3147 24.3878C22.2134 23.8362 22.0102 23.3926 21.735 23.0273C21.3443 22.5126 20.9014 22.1134 20.4162 21.7958L20.4132 21.7938C19.9566 21.4928 19.4837 21.2662 18.9986 21.1073C18.6282 20.988 18.3323 20.8984 18.0497 20.8502C17.4166 20.7455 16.8012 20.7216 16.0887 20.7216C15.7191 20.7216 15.2705 20.7977 14.8461 20.9167ZM18.2412 19.7124C18.6169 19.7762 18.9865 19.891 19.356 20.0101C19.9411 20.2015 20.5077 20.4737 21.0497 20.8309C21.6409 21.2179 22.1829 21.7069 22.6572 22.3321C23.0452 22.8467 23.3193 23.459 23.4517 24.182C23.5471 24.7136 23.541 25.2451 23.4178 25.7725C23.3439 26.0914 23.2577 26.3976 23.1252 26.6825C23.0914 26.7548 23.0544 26.8314 23.0144 26.8994C23.0034 26.9184 22.9921 26.9368 22.9808 26.9551C22.9417 27.0185 22.9035 27.0806 22.882 27.1631C22.8696 27.2099 22.8389 27.2524 22.8081 27.2864C22.7323 27.3631 22.6669 27.4513 22.6 27.5414C22.5853 27.5613 22.5705 27.5812 22.5555 27.6011C22.4416 27.7542 22.3215 27.8903 22.1953 28.0221C21.681 28.5622 21.1144 28.9577 20.5077 29.2554C20.4357 29.2902 20.3643 29.3264 20.2929 29.3626C20.1199 29.4504 19.9474 29.5379 19.7686 29.6041C19.3129 29.7742 18.851 29.9018 18.3798 29.9784C17.8871 30.0592 17.3451 30.1187 16.8863 30.1187C16.4521 30.1017 15.9778 30.0677 15.5036 29.9826C14.8323 29.8593 14.1794 29.6509 13.5358 29.3617C13.3757 29.2894 13.2217 29.2086 13.0709 29.1023C13.0148 29.0636 12.9547 29.032 12.8951 29.0007C12.863 28.9838 12.8311 28.967 12.7999 28.9492C12.2333 28.6175 11.719 28.1752 11.2355 27.6479C11.02 27.4097 10.8198 27.1503 10.6442 26.8526C10.6097 26.7926 10.5741 26.7347 10.5385 26.6769C10.4885 26.5955 10.4385 26.5144 10.3917 26.4274C10.3332 26.3168 10.2809 26.202 10.2378 26.0787C10.09 25.6534 9.99144 25.2069 9.96062 24.7348C9.94213 24.4584 9.98219 24.1947 10.0315 23.9268C10.1269 23.3995 10.3209 22.9487 10.5642 22.5319C10.7982 22.1322 11.0785 21.8005 11.3833 21.5113C11.9561 20.9584 12.5843 20.5587 13.2464 20.2525C13.6683 20.0612 14.0994 19.925 14.5336 19.806C15.0236 19.6685 15.5816 19.5678 16.0887 19.5678C16.8253 19.5678 17.5149 19.5921 18.2412 19.7124Z",fill:"#1F1F1F"}),Xe.jsx("path",{d:"M18.7169 6.77157C18.8659 6.86653 19.0088 6.97874 19.1485 7.09528C20.4557 8.17861 21.7692 9.2533 23.0857 10.3151C24.6786 11.6012 26.2622 12.9004 27.8582 14.1736C30.4043 16.2065 32.9318 18.2868 35.4718 20.3369C36.3505 21.0491 37.2323 21.7526 38.1142 22.4604C38.1483 22.4863 38.2043 22.5036 38.2043 22.5511C38.2073 22.6201 38.1452 22.6287 38.1079 22.659C37.1205 23.4272 36.1331 24.1955 35.1488 24.9637C35.0153 25.0673 34.8818 25.1752 34.7514 25.2874C34.6396 25.3867 34.5216 25.404 34.3943 25.3651C33.9689 25.2356 33.5404 25.1061 33.115 24.981C32.6648 24.8515 32.2115 24.7263 31.7581 24.6012C31.6029 24.558 31.4507 24.5882 31.311 24.6918C31.224 24.7566 31.1433 24.8386 31.0657 24.9249C30.9756 25.0242 30.9384 25.1493 30.9539 25.3047C30.9663 25.4212 30.9818 25.5378 30.9943 25.65C31.0564 26.1938 31.0098 26.7203 30.8825 27.2426C30.7955 27.6051 30.6714 27.9418 30.5254 28.2655C30.1869 29.0251 29.7554 29.6682 29.2617 30.2336C28.8828 30.6609 28.4823 31.0407 28.06 31.386C28.029 31.4119 27.9979 31.4335 27.9731 31.4637C27.7775 31.6795 27.5601 31.8435 27.3396 32.0032C26.8459 32.3571 26.3522 32.7067 25.8399 33.0088C24.9705 33.5182 24.0731 33.9195 23.1602 34.2476C22.5827 34.4547 22.002 34.636 21.4152 34.7784C21.0302 34.8734 20.642 34.9467 20.2508 35.0072C19.7167 35.0892 19.1827 35.1367 18.6455 35.1755C18.2387 35.2057 17.832 35.223 17.4252 35.2273C17.0743 35.2316 16.7204 35.2057 16.3695 35.1842C16.1273 35.1712 15.882 35.1453 15.6398 35.1194C15.3541 35.0892 15.0654 35.0504 14.7797 35.0072C14.5282 34.9683 14.2767 34.9252 14.0252 34.8777C13.606 34.8043 13.193 34.7007 12.7769 34.5885C12.0069 34.3771 11.2493 34.1138 10.4947 33.8116C9.50732 33.4145 8.55093 32.8966 7.62254 32.2881C7.13504 31.9687 6.64446 31.6493 6.17868 31.2652C4.59359 29.9647 3.19008 28.4419 2.25079 26.6081C1.86266 25.8442 1.54595 25.0242 1.34101 24.1307C1.02213 22.7432 1.1223 21.285 1.5801 19.9399C2.55609 17.0626 5.07277 14.9341 7.72191 13.5909C9.70927 12.5842 11.851 12.231 14.0686 12.253C14.2984 12.2573 14.5251 12.2745 14.7518 12.3177C14.8884 12.3436 15.0188 12.3134 15.1461 12.24C15.2641 12.1667 15.3728 12.0674 15.4752 11.9552C15.5497 11.8774 15.5746 11.7696 15.5622 11.6444C15.5529 11.5538 15.5249 11.4717 15.4907 11.3941C15.3759 11.1265 15.261 10.8589 15.1492 10.5913C15.0157 10.2676 14.8821 9.94388 14.7486 9.62017C14.7269 9.56406 14.7114 9.50795 14.6896 9.45615C14.7207 9.39142 14.7704 9.36984 14.8138 9.33962C15.4348 8.87349 16.0621 8.43325 16.6924 8.00165C17.1737 7.67363 17.6487 7.32834 18.1269 6.99601C18.2418 6.914 18.3598 6.84495 18.4747 6.76726C18.5585 6.71115 18.6361 6.71978 18.7169 6.77157ZM16.0887 18.0295C15.5816 18.0295 15.0236 18.1302 14.5336 18.2676C14.0994 18.3867 13.6683 18.5228 13.2464 18.7142C12.5843 19.0203 11.9561 19.4201 11.3833 19.9729C11.0785 20.2621 10.7982 20.5938 10.5642 20.9936C10.3209 21.4103 10.1269 21.8611 10.0315 22.3885C9.98219 22.6564 9.94213 22.92 9.96062 23.1965C9.99144 23.6685 10.09 24.115 10.2378 24.5403C10.2809 24.6636 10.3332 24.7784 10.3917 24.889C10.4718 25.0378 10.5611 25.1697 10.6442 25.3143C10.8198 25.612 11.02 25.8714 11.2355 26.1095C11.719 26.6369 12.2333 27.0791 12.7999 27.4108C12.8892 27.4619 12.9846 27.5044 13.0709 27.5639C13.2217 27.6702 13.3757 27.751 13.5358 27.8233C14.1794 28.1125 14.8323 28.3209 15.5036 28.4442C15.9778 28.5293 16.4521 28.5633 16.8863 28.5803C17.3451 28.5803 17.8871 28.5208 18.3798 28.44C18.851 28.3634 19.3129 28.2359 19.7686 28.0658C20.0212 27.9722 20.2614 27.8361 20.5077 27.717C21.1144 27.4193 21.681 27.0239 22.1953 26.4838C22.3215 26.352 22.4416 26.2158 22.5555 26.0627C22.6387 25.9522 22.7157 25.8416 22.8081 25.7481C22.8389 25.714 22.8696 25.6715 22.882 25.6247C22.9097 25.5184 22.9651 25.4461 23.0144 25.3611C23.0544 25.293 23.0914 25.2165 23.1252 25.1442C23.2577 24.8592 23.3439 24.5531 23.4178 24.2341C23.541 23.7068 23.5471 23.1752 23.4517 22.6436C23.3193 21.9207 23.0452 21.3083 22.6572 20.7937C22.1829 20.1686 21.6409 19.6795 21.0497 19.2925C20.5077 18.9353 19.9411 18.6631 19.356 18.4718C18.9865 18.3527 18.6169 18.2379 18.2412 18.1741C17.5149 18.0537 16.8253 18.0295 16.0887 18.0295Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 6.76726C18.427 6.79954 18.3787 6.83033 18.3303 6.86118C18.2623 6.90457 18.1941 6.94808 18.1269 6.99601C17.9301 7.13277 17.7339 7.27172 17.5376 7.41076C17.2567 7.6096 16.9756 7.80861 16.6924 8.00165C16.0621 8.43325 15.4348 8.87349 14.8138 9.33962C14.8058 9.34525 14.7974 9.35058 14.7891 9.35594C14.7525 9.37937 14.7149 9.40347 14.6896 9.45615C14.7017 9.48476 14.7118 9.51472 14.7221 9.54526C14.7304 9.56995 14.7389 9.59506 14.7486 9.62017L15.1492 10.5913C15.261 10.8589 15.3759 11.1265 15.4907 11.3941C15.5249 11.4717 15.5529 11.5538 15.5622 11.6444C15.5746 11.7696 15.5497 11.8774 15.4752 11.9552C15.3728 12.0674 15.2641 12.1667 15.1461 12.24C15.0188 12.3134 14.8884 12.3436 14.7518 12.3177C14.5251 12.2745 14.2984 12.2573 14.0686 12.253C11.851 12.231 9.70927 12.5842 7.72191 13.5909C5.07277 14.9341 2.55609 17.0626 1.5801 19.9399C1.1223 21.285 1.02213 22.7432 1.34101 24.1307C1.54595 25.0242 1.86266 25.8442 2.25079 26.6081C3.19008 28.4419 4.59359 29.9647 6.17868 31.2652C6.63302 31.6399 7.11101 31.953 7.58668 32.2646L7.62254 32.2881C8.55093 32.8966 9.50732 33.4145 10.4947 33.8116C11.2493 34.1138 12.0069 34.3771 12.7769 34.5885C13.193 34.7007 13.606 34.8043 14.0252 34.8777C14.2767 34.9252 14.5282 34.9683 14.7797 35.0072C15.0654 35.0504 15.3541 35.0892 15.6398 35.1194C15.882 35.1453 16.1273 35.1712 16.3695 35.1842C16.4118 35.1867 16.4542 35.1894 16.4966 35.1921C16.8057 35.2115 17.1166 35.2311 17.4252 35.2273C17.832 35.223 18.2387 35.2057 18.6455 35.1755C19.1827 35.1367 19.7167 35.0892 20.2508 35.0072C20.642 34.9467 21.0302 34.8734 21.4152 34.7784C22.002 34.636 22.5827 34.4547 23.1602 34.2476C24.0731 33.9195 24.9705 33.5182 25.8399 33.0088C26.3522 32.7067 26.8459 32.3571 27.3396 32.0032C27.5601 31.8435 27.7775 31.6795 27.9731 31.4637C27.9919 31.4408 28.0144 31.4228 28.0377 31.4041C28.0451 31.3982 28.0525 31.3923 28.06 31.386C28.4823 31.0407 28.8828 30.6609 29.2617 30.2336C29.7554 29.6682 30.1869 29.0251 30.5254 28.2655C30.6714 27.9418 30.7955 27.6051 30.8825 27.2426C31.0098 26.7203 31.0564 26.1938 30.9943 25.65C30.9886 25.599 30.9824 25.5472 30.976 25.4949C30.9684 25.4319 30.9607 25.3683 30.9539 25.3047C30.9384 25.1493 30.9756 25.0242 31.0657 24.9249C31.1433 24.8386 31.224 24.7566 31.311 24.6918C31.4507 24.5882 31.6029 24.558 31.7581 24.6012C32.2115 24.7263 32.6648 24.8515 33.115 24.981C33.5404 25.1061 33.9689 25.2356 34.3943 25.3651C34.5216 25.404 34.6396 25.3867 34.7514 25.2874C34.8818 25.1752 35.0153 25.0673 35.1488 24.9637C35.8647 24.405 36.5823 23.8462 37.3002 23.2875C37.3066 23.2825 37.313 23.2775 37.3195 23.2725C37.4452 23.1746 37.571 23.0768 37.6967 22.9789C37.7156 22.9642 37.7345 22.9495 37.7534 22.9348C37.8716 22.8428 37.9898 22.7509 38.1079 22.659C38.1179 22.6509 38.1297 22.6443 38.1415 22.6377C38.1738 22.6198 38.2065 22.6016 38.2043 22.5511C38.2043 22.5156 38.1731 22.497 38.1431 22.4791C38.1329 22.473 38.1228 22.467 38.1142 22.4604C37.9706 22.3451 37.827 22.23 37.6834 22.115C37.6663 22.1012 37.6492 22.0875 37.6321 22.0738C37.5463 22.0051 37.4606 21.9363 37.3748 21.8676C37.3598 21.8556 37.3448 21.8436 37.3299 21.8316C37.3235 21.8266 37.3172 21.8215 37.3109 21.8164C36.697 21.3245 36.0837 20.8328 35.4718 20.3369C34.4771 19.5341 33.4844 18.7266 32.4917 17.9192C30.9494 16.6648 29.4073 15.4104 27.8582 14.1736C26.8417 13.3626 25.8302 12.5412 24.8181 11.7193C24.2412 11.2508 23.6641 10.7821 23.0857 10.3151C21.7692 9.2533 20.4557 8.17861 19.1485 7.09528C19.0088 6.97874 18.8659 6.86653 18.7169 6.77157C18.6361 6.71978 18.5585 6.71115 18.4747 6.76726ZM19.34 5.79991C19.1872 5.70215 18.9498 5.58852 18.6438 5.57614C18.3205 5.56305 18.0424 5.66765 17.8314 5.80886L17.8268 5.81195C17.7929 5.83485 17.7598 5.85596 17.7123 5.88627C17.7016 5.89313 17.6901 5.90046 17.6777 5.90839C17.6188 5.94605 17.5421 5.99552 17.4614 6.0528C17.2467 6.20211 17.0473 6.34337 16.8525 6.48136C16.5827 6.67248 16.3218 6.85736 16.041 7.0487L16.0389 7.05012C15.4118 7.47956 14.7794 7.92305 14.1495 8.39492C14.1285 8.40853 14.0812 8.43958 14.0278 8.48201C13.8992 8.58408 13.7536 8.7366 13.6475 8.95782L13.6239 9.90208C13.6204 9.89369 13.6181 9.88746 13.6181 9.88746C13.6181 9.88746 13.62 9.89262 13.6245 9.90604L13.6265 9.91189C13.6301 9.92273 13.636 9.94007 13.6417 9.95642C13.6492 9.97788 13.659 10.0055 13.671 10.0364L13.6802 10.0595L14.0808 11.0307L14.0828 11.0354C14.0917 11.0569 14.1007 11.0783 14.1097 11.0998C14.1032 11.0997 14.0968 11.0995 14.0904 11.0994L14.0801 11.0993C11.7325 11.076 9.39529 11.4495 7.19913 12.562L7.19875 12.5622C4.41337 13.9744 1.59829 16.2911 0.48606 19.5686M19.34 5.79991C19.5494 5.93352 19.7353 6.08142 19.888 6.2087C21.191 7.28855 22.4999 8.35957 23.8117 9.41748L23.8123 9.41791C24.3962 9.88939 24.9757 10.36 25.5535 10.8293C26.5624 11.6487 27.5662 12.4638 28.5794 13.2722L28.5798 13.2725C30.1313 14.5112 31.6825 15.7729 33.2291 17.0309C34.2211 17.8377 35.2112 18.643 36.1982 19.4397L36.2 19.4411C36.8304 19.952 37.4613 20.4576 38.0956 20.9659C38.3258 21.1503 38.5565 21.3352 38.7876 21.5208C38.8065 21.5329 38.8312 21.5495 38.8589 21.5699C38.986 21.6638 39.35 21.9727 39.3596 22.5288C39.3638 22.7222 39.3234 22.9371 39.2109 23.1437C39.0985 23.3506 38.9517 23.4786 38.8566 23.5486C38.8219 23.5739 38.7907 23.5941 38.7672 23.6088C37.7966 24.3639 36.827 25.1183 35.8604 25.8727L35.8578 25.8748C35.7379 25.9678 35.6215 26.0619 35.5102 26.1576C35.3248 26.3198 35.0888 26.4527 34.8055 26.5094C34.5213 26.5662 34.2631 26.5315 34.0567 26.4685C33.6339 26.3398 33.2108 26.212 32.7919 26.0887C32.5865 26.0297 32.3802 25.9714 32.1727 25.9135C32.195 26.4668 32.1308 26.9994 32.0057 27.5134C31.8985 27.9599 31.7478 28.3646 31.58 28.7371C31.1904 29.6108 30.6937 30.3492 30.1326 30.9919L30.1269 30.9984C29.7058 31.4733 29.2614 31.8946 28.7955 32.2759C28.7946 32.2767 28.7937 32.2774 28.7927 32.2782C28.5208 32.5692 28.2343 32.7805 28.0181 32.9371L28.0135 32.9405C27.522 33.2928 26.9898 33.6707 26.4275 34.0023L26.4246 34.004C25.484 34.555 24.5201 34.9851 23.5515 35.3332L23.5509 35.3334C22.9445 35.5509 22.3246 35.745 21.6902 35.899C21.2653 36.0037 20.8432 36.0832 20.4274 36.1474L20.4264 36.1475C19.847 36.2365 19.2773 36.2866 18.7305 36.3261C18.2996 36.3581 17.8686 36.3764 17.4375 36.381C17.0826 36.3853 16.7258 36.3627 16.4214 36.3434C16.381 36.3409 16.3415 36.3384 16.3031 36.336C16.0274 36.3211 15.7544 36.292 15.5176 36.2667C15.2106 36.2342 14.9043 36.1929 14.6068 36.148L14.603 36.1474C14.3413 36.107 14.0796 36.0621 13.818 36.0128C13.3495 35.9304 12.8992 35.8166 12.4756 35.7024L12.4705 35.701C11.651 35.4759 10.8517 35.1976 10.0647 34.8825L10.063 34.8819C8.99302 34.4515 7.96903 33.8954 6.98845 33.2526L6.93637 33.2185C6.47225 32.9145 5.9477 32.571 5.44372 32.1554C3.78024 30.7905 2.25514 29.1503 1.22206 27.1335L1.22032 27.1301C0.795584 26.2941 0.443441 25.3856 0.214697 24.3883C-0.155145 22.7786 -0.0359902 21.1027 0.48606 19.5686M28.8373 32.2292L28.8661 32.1958C28.8563 32.2078 28.8466 32.219 28.8373 32.2292ZM38.8362 23.5546C38.8312 23.5587 38.8262 23.5626 38.8215 23.5664L38.8362 23.5546ZM38.7114 23.6416C38.7002 23.648 38.696 23.65 38.7021 23.6466L38.706 23.6445L38.7114 23.6416ZM38.7383 21.4902C38.733 21.4869 38.7306 21.4855 38.7306 21.4855C38.7306 21.4855 38.7322 21.4866 38.7356 21.4886C38.7356 21.4886 38.7368 21.4894 38.7383 21.4902ZM37.5751 21.6321C37.5877 21.6247 37.5905 21.6235 37.5761 21.6315L37.5751 21.6321ZM37.5487 23.4685C37.5567 23.4735 37.5583 23.4742 37.5497 23.4691L37.5487 23.4685ZM14.8461 19.3784L14.8396 19.3802C14.4325 19.4918 14.0689 19.6087 13.7281 19.7629C13.1656 20.0235 12.6511 20.3539 12.1864 20.8025L12.1791 20.8094C11.9395 21.0368 11.7323 21.2846 11.5622 21.5751C11.3691 21.906 11.2344 22.2297 11.1685 22.5937L11.1679 22.5969C11.1209 22.8526 11.1053 22.9961 11.1136 23.1196L11.1137 23.1215C11.137 23.4792 11.2118 23.8234 11.329 24.161C11.3492 24.2184 11.3757 24.2784 11.4115 24.3464C11.4347 24.3893 11.4622 24.4354 11.5021 24.5005C11.5079 24.5098 11.514 24.5199 11.5206 24.5305C11.555 24.5865 11.5998 24.6592 11.6427 24.7335C11.7702 24.949 11.9191 25.1437 12.0903 25.3332C12.5141 25.795 12.9381 26.1533 13.3784 26.4121C13.39 26.4186 13.3981 26.4228 13.4131 26.4307C13.427 26.438 13.447 26.4484 13.4813 26.4667C13.5382 26.4971 13.6299 26.5472 13.7281 26.615L13.7371 26.6212C13.809 26.6719 13.8928 26.7182 14.0107 26.7715C14.5751 27.0251 15.1383 27.2038 15.7105 27.3091C16.1011 27.379 16.5063 27.4102 16.908 27.4265C17.2776 27.4246 17.7426 27.3753 18.1926 27.3015L18.1943 27.3012C18.5823 27.2382 18.9708 27.1318 19.3641 26.985L19.3667 26.9841C19.4829 26.941 19.5705 26.8963 19.704 26.8283C19.7823 26.7884 19.8762 26.7405 20.0009 26.6802C20.4942 26.4377 20.9462 26.1211 21.3579 25.6888L21.3602 25.6863C21.4647 25.5772 21.551 25.4782 21.6281 25.3746L21.6315 25.37C21.6379 25.3616 21.646 25.3506 21.6557 25.3372C21.6965 25.2819 21.7655 25.188 21.8483 25.0894C21.8766 25.0242 21.9055 24.9684 21.9312 24.9225C21.9558 24.8785 21.9795 24.84 21.9922 24.8194L21.9924 24.819C22.0085 24.7929 22.0115 24.7881 22.0142 24.7834L22.0181 24.7766C22.0283 24.7594 22.0454 24.7262 22.0777 24.6573C22.1598 24.4803 22.2246 24.2653 22.2921 23.974L22.2925 23.972C22.3774 23.6088 22.384 23.2369 22.3147 22.8495C22.2134 22.2978 22.0102 21.8542 21.735 21.4889C21.3443 20.9742 20.9014 20.575 20.4162 20.2574L20.4132 20.2554C19.9566 19.9545 19.4837 19.7278 18.9986 19.569C18.6282 19.4496 18.3323 19.36 18.0497 19.3119C17.4166 19.2072 16.8012 19.1832 16.0887 19.1832C15.7191 19.1832 15.2705 19.2594 14.8461 19.3784ZM18.2412 18.1741C18.6169 18.2379 18.9865 18.3527 19.356 18.4718C19.9411 18.6631 20.5077 18.9353 21.0497 19.2925C21.6409 19.6795 22.1829 20.1686 22.6572 20.7937C23.0452 21.3083 23.3193 21.9207 23.4517 22.6436C23.5471 23.1752 23.541 23.7068 23.4178 24.2341C23.3439 24.5531 23.2577 24.8592 23.1252 25.1442C23.0914 25.2165 23.0544 25.293 23.0144 25.3611C23.0034 25.3801 22.9921 25.3985 22.9808 25.4167C22.9417 25.4802 22.9035 25.5422 22.882 25.6247C22.8696 25.6715 22.8389 25.714 22.8081 25.7481C22.7323 25.8248 22.6669 25.9129 22.6 26.0031C22.5853 26.0229 22.5705 26.0428 22.5555 26.0627C22.4416 26.2158 22.3215 26.352 22.1953 26.4838C21.681 27.0239 21.1144 27.4193 20.5077 27.717C20.4357 27.7518 20.3643 27.7881 20.2929 27.8243C20.1199 27.912 19.9474 27.9995 19.7686 28.0658C19.3129 28.2359 18.851 28.3634 18.3798 28.44C17.8871 28.5208 17.3451 28.5803 16.8863 28.5803C16.4521 28.5633 15.9778 28.5293 15.5036 28.4442C14.8323 28.3209 14.1794 28.1125 13.5358 27.8233C13.3757 27.751 13.2217 27.6702 13.0709 27.5639C13.0148 27.5252 12.9547 27.4937 12.8951 27.4623C12.863 27.4455 12.8311 27.4287 12.7999 27.4108C12.2333 27.0791 11.719 26.6369 11.2355 26.1095C11.02 25.8714 10.8198 25.612 10.6442 25.3143C10.6097 25.2542 10.5741 25.1963 10.5385 25.1385C10.4885 25.0572 10.4385 24.976 10.3917 24.889C10.3332 24.7784 10.2809 24.6636 10.2378 24.5403C10.09 24.115 9.99144 23.6685 9.96062 23.1965C9.94213 22.92 9.98219 22.6564 10.0315 22.3885C10.1269 21.8611 10.3209 21.4103 10.5642 20.9936C10.7982 20.5938 11.0785 20.2621 11.3833 19.9729C11.9561 19.4201 12.5843 19.0203 13.2464 18.7142C13.6683 18.5228 14.0994 18.3867 14.5336 18.2676C15.0236 18.1302 15.5816 18.0295 16.0887 18.0295C16.8253 18.0295 17.5149 18.0537 18.2412 18.1741Z",fill:"#FAFAFA"}),Xe.jsx("path",{d:"M18.7169 6.0024C18.8659 6.09735 19.0088 6.20957 19.1485 6.3261C20.4557 7.40943 21.7692 8.48413 23.0857 9.54587C24.6786 10.8321 26.2622 12.1312 27.8582 13.4044C30.4043 15.4373 32.9318 17.5176 35.4718 19.5677C36.3505 20.2799 37.2323 20.9834 38.1142 21.6912C38.1483 21.7172 38.2043 21.7344 38.2043 21.7819C38.2073 21.851 38.1452 21.8596 38.1079 21.8898C37.1205 22.658 36.1331 23.4263 35.1488 24.1946C35.0153 24.2981 34.8818 24.406 34.7514 24.5183C34.6396 24.6175 34.5216 24.6348 34.3943 24.596C33.9689 24.4665 33.5404 24.337 33.115 24.2118C32.6648 24.0823 32.2115 23.9572 31.7581 23.832C31.6029 23.7889 31.4507 23.819 31.311 23.9227C31.224 23.9874 31.1433 24.0694 31.0657 24.1557C30.9756 24.255 30.9384 24.3801 30.9539 24.5355C30.9663 24.6521 30.9818 24.7686 30.9943 24.8808C31.0564 25.4246 31.0098 25.9512 30.8825 26.4734C30.7955 26.836 30.6714 27.1726 30.5254 27.4963C30.1869 28.2559 29.7554 28.899 29.2617 29.4644C28.8828 29.8917 28.4823 30.2716 28.06 30.6168C28.029 30.6427 27.9979 30.6643 27.9731 30.6945C27.7775 30.9103 27.5601 31.0743 27.3396 31.234C26.8459 31.5879 26.3522 31.9375 25.8399 32.2397C24.9705 32.749 24.0731 33.1504 23.1602 33.4784C22.5827 33.6855 22.002 33.8668 21.4152 34.0092C21.0302 34.1042 20.642 34.1776 20.2508 34.238C19.7167 34.32 19.1827 34.3675 18.6455 34.4063C18.2387 34.4366 17.832 34.4538 17.4252 34.4581C17.0743 34.4624 16.7204 34.4365 16.3695 34.415C16.1273 34.402 15.882 34.3761 15.6398 34.3502C15.3541 34.32 15.0654 34.2812 14.7797 34.238C14.5282 34.1991 14.2767 34.156 14.0252 34.1085C13.606 34.0352 13.193 33.9315 12.7769 33.8194C12.0069 33.6079 11.2493 33.3446 10.4947 33.0425C9.50732 32.6454 8.55093 32.1274 7.62254 31.5189C7.13504 31.1995 6.64446 30.8801 6.17868 30.496C4.59359 29.1955 3.19008 27.6727 2.25079 25.8389C1.86266 25.075 1.54595 24.255 1.34101 23.3615C1.02213 21.974 1.1223 20.5159 1.5801 19.1707C2.55609 16.2934 5.07277 14.1649 7.72191 12.8218C9.70927 11.815 11.851 11.4618 14.0686 11.4838C14.2984 11.4881 14.5251 11.5054 14.7518 11.5485C14.8884 11.5744 15.0188 11.5442 15.1461 11.4708C15.2641 11.3975 15.3728 11.2982 15.4752 11.186C15.5497 11.1083 15.5746 11.0004 15.5622 10.8752C15.5529 10.7846 15.5249 10.7026 15.4907 10.6249C15.3759 10.3573 15.261 10.0897 15.1492 9.82208C15.0157 9.49841 14.8821 9.1747 14.7486 8.851C14.7269 8.79488 14.7114 8.73877 14.6896 8.68697C14.7207 8.62224 14.7704 8.60066 14.8138 8.57045C15.4348 8.10431 16.0621 7.66407 16.6924 7.23247C17.1737 6.90445 17.6487 6.55917 18.1269 6.22683C18.2418 6.14482 18.3598 6.07577 18.4747 5.99808C18.5585 5.94197 18.6361 5.9506 18.7169 6.0024ZM16.0887 17.2603C15.5816 17.2603 15.0236 17.361 14.5336 17.4984C14.0994 17.6175 13.6683 17.7536 13.2464 17.945C12.5843 18.2512 11.9561 18.6509 11.3833 19.2037C11.0785 19.493 10.7982 19.8247 10.5642 20.2244C10.3209 20.6411 10.1269 21.092 10.0315 21.6193C9.98219 21.8872 9.94213 22.1509 9.96062 22.4273C9.99144 22.8993 10.09 23.3458 10.2378 23.7711C10.2809 23.8945 10.3332 24.0093 10.3917 24.1198C10.4718 24.2687 10.5611 24.4005 10.6442 24.5451C10.8198 24.8428 11.02 25.1022 11.2355 25.3404C11.719 25.8677 12.2333 26.31 12.7999 26.6417C12.8892 26.6927 12.9846 26.7352 13.0709 26.7948C13.2217 26.9011 13.3757 26.9819 13.5358 27.0542C14.1794 27.3433 14.8323 27.5518 15.5036 27.6751C15.9778 27.7601 16.4521 27.7942 16.8863 27.8112C17.3451 27.8112 17.8871 27.7516 18.3798 27.6708C18.851 27.5942 19.3129 27.4667 19.7686 27.2966C20.0212 27.203 20.2614 27.0669 20.5077 26.9479C21.1144 26.6502 21.681 26.2547 22.1953 25.7146C22.3215 25.5828 22.4416 25.4467 22.5555 25.2936C22.6387 25.183 22.7157 25.0724 22.8081 24.9789C22.8389 24.9449 22.8696 24.9023 22.882 24.8556C22.9097 24.7493 22.9651 24.677 23.0144 24.5919C23.0544 24.5238 23.0914 24.4473 23.1252 24.375C23.2577 24.0901 23.3439 23.7839 23.4178 23.4649C23.541 22.9376 23.5471 22.406 23.4517 21.8745C23.3193 21.1515 23.0452 20.5391 22.6572 20.0245C22.1829 19.3994 21.6409 18.9103 21.0497 18.5233C20.5077 18.1661 19.9411 17.894 19.356 17.7026C18.9865 17.5835 18.6169 17.4687 18.2412 17.4049C17.5149 17.2845 16.8253 17.2603 16.0887 17.2603Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 5.99808C18.427 6.03036 18.3787 6.06115 18.3303 6.092C18.2623 6.13539 18.1941 6.1789 18.1269 6.22683C17.9301 6.36359 17.7339 6.50254 17.5376 6.64158C17.2567 6.84042 16.9756 7.03943 16.6924 7.23247C16.0621 7.66407 15.4348 8.10431 14.8138 8.57045C14.8058 8.57607 14.7974 8.5814 14.7891 8.58676C14.7525 8.6102 14.7149 8.6343 14.6896 8.68697C14.7017 8.71558 14.7118 8.74554 14.7221 8.77608C14.7304 8.80077 14.7389 8.82588 14.7486 8.851L15.1492 9.82208C15.261 10.0897 15.3759 10.3573 15.4907 10.6249C15.5249 10.7026 15.5529 10.7846 15.5622 10.8752C15.5746 11.0004 15.5497 11.1083 15.4752 11.186C15.3728 11.2982 15.2641 11.3975 15.1461 11.4708C15.0188 11.5442 14.8884 11.5744 14.7518 11.5485C14.5251 11.5054 14.2984 11.4881 14.0686 11.4838C11.851 11.4618 9.70927 11.815 7.72191 12.8218C5.07277 14.1649 2.55609 16.2934 1.5801 19.1707C1.1223 20.5159 1.02213 21.974 1.34101 23.3615C1.54595 24.255 1.86266 25.075 2.25079 25.8389C3.19008 27.6727 4.59359 29.1955 6.17868 30.496C6.63302 30.8707 7.11101 31.1838 7.58668 31.4954L7.62254 31.5189C8.55093 32.1274 9.50732 32.6454 10.4947 33.0425C11.2493 33.3446 12.0069 33.6079 12.7769 33.8194C13.193 33.9315 13.606 34.0352 14.0252 34.1085C14.2767 34.156 14.5282 34.1991 14.7797 34.238C15.0654 34.2812 15.3541 34.32 15.6398 34.3502C15.882 34.3761 16.1273 34.402 16.3695 34.415C16.4118 34.4175 16.4542 34.4202 16.4966 34.4229C16.8057 34.4424 17.1166 34.4619 17.4252 34.4581C17.832 34.4538 18.2387 34.4366 18.6455 34.4063C19.1827 34.3675 19.7167 34.32 20.2508 34.238C20.642 34.1776 21.0302 34.1042 21.4152 34.0092C22.002 33.8668 22.5827 33.6855 23.1602 33.4784C24.0731 33.1504 24.9705 32.749 25.8399 32.2397C26.3522 31.9375 26.8459 31.5879 27.3396 31.234C27.5601 31.0743 27.7775 30.9103 27.9731 30.6945C27.9919 30.6716 28.0144 30.6536 28.0377 30.635C28.0451 30.629 28.0525 30.6231 28.06 30.6168C28.4823 30.2716 28.8828 29.8917 29.2617 29.4644C29.7554 28.899 30.1869 28.2559 30.5254 27.4963C30.6714 27.1726 30.7955 26.836 30.8825 26.4734C31.0098 25.9512 31.0564 25.4246 30.9943 24.8808C30.9886 24.8299 30.9824 24.778 30.976 24.7257C30.9684 24.6628 30.9607 24.5991 30.9539 24.5355C30.9384 24.3801 30.9756 24.255 31.0657 24.1557C31.1433 24.0694 31.224 23.9874 31.311 23.9227C31.4507 23.819 31.6029 23.7889 31.7581 23.832C32.2115 23.9572 32.6648 24.0823 33.115 24.2118C33.5404 24.337 33.9689 24.4665 34.3943 24.596C34.5216 24.6348 34.6396 24.6175 34.7514 24.5183C34.8818 24.406 35.0153 24.2981 35.1488 24.1946C35.8647 23.6358 36.5823 23.077 37.3002 22.5183C37.3066 22.5133 37.313 22.5083 37.3195 22.5033C37.4452 22.4055 37.571 22.3076 37.6967 22.2097C37.7156 22.195 37.7345 22.1804 37.7534 22.1656C37.8716 22.0737 37.9898 21.9817 38.1079 21.8898C38.1179 21.8817 38.1297 21.8751 38.1415 21.8686C38.1738 21.8506 38.2065 21.8324 38.2043 21.7819C38.2043 21.7465 38.1731 21.7278 38.1431 21.71C38.1329 21.7038 38.1228 21.6978 38.1142 21.6912C37.9706 21.576 37.827 21.4609 37.6834 21.3458C37.6663 21.3321 37.6492 21.3183 37.6321 21.3046C37.5463 21.2359 37.4606 21.1672 37.3748 21.0984C37.3598 21.0864 37.3448 21.0744 37.3299 21.0624C37.3235 21.0574 37.3172 21.0523 37.3109 21.0472C36.697 20.5553 36.0837 20.0637 35.4718 19.5677C34.4771 18.7649 33.4844 17.9574 32.4917 17.15C30.9494 15.8956 29.4073 14.6412 27.8582 13.4044C26.8417 12.5935 25.8302 11.772 24.8181 10.9501C24.2412 10.4816 23.6641 10.0129 23.0857 9.54587C21.7692 8.48413 20.4557 7.40943 19.1485 6.3261C19.0088 6.20957 18.8659 6.09735 18.7169 6.0024C18.6361 5.9506 18.5585 5.94197 18.4747 5.99808ZM19.34 5.03073C19.1872 4.93297 18.9498 4.81935 18.6438 4.80696C18.3205 4.79387 18.0424 4.89847 17.8314 5.03968L17.8268 5.04277C17.7929 5.06568 17.7598 5.08678 17.7123 5.11709C17.7016 5.12395 17.6901 5.13128 17.6777 5.13921C17.6188 5.17687 17.5421 5.22634 17.4614 5.28363C17.2467 5.43294 17.0473 5.57419 16.8525 5.71218C16.5827 5.90331 16.3218 6.08818 16.041 6.27953L16.0389 6.28095C15.4118 6.71038 14.7794 7.15387 14.1495 7.62575C14.1285 7.63935 14.0812 7.6704 14.0278 7.71283C13.8992 7.81491 13.7536 7.96742 13.6475 8.18864L13.6239 9.1329C13.6204 9.12452 13.6181 9.11829 13.6181 9.11829C13.6181 9.11829 13.62 9.12344 13.6245 9.13686L13.6265 9.14271C13.6301 9.15355 13.636 9.1709 13.6417 9.18724C13.6492 9.2087 13.659 9.23635 13.671 9.26724L13.6802 9.29035L14.0808 10.2615L14.0828 10.2662C14.0917 10.2877 14.1007 10.3092 14.1097 10.3306C14.1032 10.3305 14.0968 10.3304 14.0904 10.3302L14.0801 10.3301C11.7325 10.3068 9.39529 10.6803 7.19913 11.7928L7.19875 11.793C4.41337 13.2052 1.59829 15.5219 0.48606 18.7994M19.34 5.03073C19.5494 5.16434 19.7353 5.31224 19.888 5.43953C21.191 6.51937 22.4999 7.59039 23.8117 8.6483L23.8123 8.64873C24.3962 9.12021 24.9757 9.59087 25.5535 10.0601C26.5624 10.8795 27.5662 11.6946 28.5794 12.503L28.5798 12.5033C30.1313 13.742 31.6825 15.0038 33.2291 16.2617C34.2211 17.0685 35.2112 17.8738 36.1982 18.6705L36.2 18.6719C36.8304 19.1829 37.4613 19.6884 38.0956 20.1967C38.3258 20.3812 38.5565 20.566 38.7876 20.7516C38.8065 20.7637 38.8312 20.7803 38.8589 20.8007C38.986 20.8946 39.35 21.2036 39.3596 21.7596C39.3638 21.953 39.3234 22.1679 39.2109 22.3746C39.0985 22.5814 38.9517 22.7095 38.8566 22.7794C38.8219 22.8047 38.7907 22.825 38.7672 22.8396C37.7966 23.5947 36.827 24.3492 35.8604 25.1036L35.8578 25.1057C35.7379 25.1986 35.6215 25.2928 35.5102 25.3884C35.3248 25.5506 35.0888 25.6836 34.8055 25.7402C34.5213 25.797 34.2631 25.7623 34.0567 25.6993C33.6339 25.5707 33.2108 25.4428 32.7919 25.3196C32.5865 25.2605 32.3802 25.2023 32.1727 25.1443C32.195 25.6976 32.1308 26.2302 32.0057 26.7442C31.8985 27.1907 31.7478 27.5954 31.58 27.9679C31.1904 28.8417 30.6937 29.58 30.1326 30.2227L30.1269 30.2292C29.7058 30.7041 29.2614 31.1255 28.7955 31.5067C28.7946 31.5075 28.7937 31.5082 28.7927 31.509C28.5208 31.8 28.2343 32.0114 28.0181 32.1679L28.0135 32.1713C27.522 32.5236 26.9898 32.9015 26.4275 33.2331L26.4246 33.2348C25.484 33.7858 24.5201 34.216 23.5515 34.564L23.5509 34.5642C22.9445 34.7817 22.3246 34.9758 21.6902 35.1298C21.2653 35.2346 20.8432 35.314 20.4274 35.3782L20.4264 35.3784C19.847 35.4673 19.2773 35.5174 18.7305 35.557C18.2996 35.589 17.8686 35.6072 17.4375 35.6118C17.0826 35.6161 16.7258 35.5935 16.4214 35.5742C16.381 35.5717 16.3415 35.5692 16.3031 35.5668C16.0274 35.5519 15.7544 35.5228 15.5176 35.4975C15.2106 35.4651 14.9043 35.4237 14.6068 35.3788L14.603 35.3782C14.3413 35.3378 14.0796 35.2929 13.818 35.2436C13.3495 35.1612 12.8992 35.0474 12.4756 34.9332L12.4705 34.9318C11.651 34.7068 10.8517 34.4285 10.0647 34.1133L10.063 34.1127C8.99302 33.6824 7.96903 33.1262 6.98845 32.4834L6.93637 32.4493C6.47225 32.1453 5.9477 31.8018 5.44372 31.3863C3.78024 30.0213 2.25514 28.3812 1.22206 26.3643L1.22032 26.3609C0.795584 25.525 0.443441 24.6164 0.214697 23.6191C-0.155145 22.0094 -0.0359902 20.3335 0.48606 18.7994M28.8373 31.46L28.8661 31.4266C28.8563 31.4386 28.8466 31.4498 28.8373 31.46ZM38.8362 22.7854C38.8312 22.7895 38.8262 22.7935 38.8215 22.7973L38.8362 22.7854ZM38.7114 22.8724C38.7002 22.8788 38.696 22.8808 38.7021 22.8774L38.706 22.8753L38.7114 22.8724ZM38.7383 20.721C38.733 20.7178 38.7306 20.7163 38.7306 20.7163C38.7306 20.7163 38.7322 20.7175 38.7356 20.7194C38.7356 20.7194 38.7368 20.7202 38.7383 20.721ZM37.5751 20.8629C37.5877 20.8555 37.5905 20.8544 37.5761 20.8623L37.5751 20.8629ZM37.5487 22.6994C37.5567 22.7043 37.5583 22.705 37.5497 22.6999L37.5487 22.6994ZM14.8461 18.6092L14.8396 18.611C14.4325 18.7227 14.0689 18.8395 13.7281 18.9937C13.1656 19.2543 12.6511 19.5848 12.1864 20.0333L12.1791 20.0403C11.9395 20.2676 11.7323 20.5155 11.5622 20.8059C11.3691 21.1368 11.2344 21.4606 11.1685 21.8245L11.1679 21.8277C11.1209 22.0834 11.1053 22.2269 11.1136 22.3505L11.1137 22.3523C11.137 22.71 11.2118 23.0543 11.329 23.3918C11.3492 23.4492 11.3757 23.5093 11.4115 23.5773C11.4347 23.6201 11.4622 23.6663 11.5021 23.7313C11.5079 23.7407 11.514 23.7507 11.5206 23.7613C11.555 23.8173 11.5998 23.89 11.6427 23.9643C11.7702 24.1798 11.9191 24.3745 12.0903 24.564C12.5141 25.0258 12.9381 25.3842 13.3784 25.6429C13.39 25.6495 13.3981 25.6537 13.4131 25.6615C13.427 25.6688 13.447 25.6792 13.4813 25.6975C13.5382 25.7279 13.6299 25.778 13.7281 25.8458L13.7371 25.8521C13.809 25.9028 13.8928 25.9491 14.0107 26.0023C14.5751 26.2559 15.1383 26.4346 15.7105 26.5399C16.1011 26.6098 16.5063 26.641 16.908 26.6573C17.2776 26.6555 17.7426 26.6061 18.1926 26.5323L18.1943 26.532C18.5823 26.469 18.9708 26.3626 19.3641 26.2158L19.3667 26.2149C19.4829 26.1718 19.5705 26.1272 19.704 26.0591C19.7823 26.0192 19.8762 25.9713 20.0009 25.911C20.4942 25.6686 20.9462 25.3519 21.3579 24.9196L21.3602 24.9172C21.4647 24.8081 21.551 24.7091 21.6281 24.6054L21.6315 24.6008C21.6379 24.5924 21.646 24.5814 21.6557 24.5681C21.6965 24.5127 21.7655 24.4188 21.8483 24.3202C21.8766 24.255 21.9055 24.1993 21.9312 24.1533C21.9558 24.1093 21.9795 24.0708 21.9922 24.0502L21.9924 24.0498C22.0085 24.0237 22.0115 24.0189 22.0142 24.0142L22.0181 24.0075C22.0283 23.9902 22.0454 23.957 22.0777 23.8881C22.1598 23.7112 22.2246 23.4961 22.2921 23.2049L22.2925 23.2029C22.3774 22.8396 22.384 22.4677 22.3147 22.0803C22.2134 21.5286 22.0102 21.085 21.735 20.7197C21.3443 20.205 20.9014 19.8058 20.4162 19.4883L20.4132 19.4863C19.9566 19.1853 19.4837 18.9587 18.9986 18.7998C18.6282 18.6804 18.3323 18.5909 18.0497 18.5427C17.4166 18.438 16.8012 18.4141 16.0887 18.4141C15.7191 18.4141 15.2705 18.4902 14.8461 18.6092ZM18.2412 17.4049C18.6169 17.4687 18.9865 17.5835 19.356 17.7026C19.9411 17.894 20.5077 18.1661 21.0497 18.5233C21.6409 18.9103 22.1829 19.3994 22.6572 20.0245C23.0452 20.5391 23.3193 21.1515 23.4517 21.8745C23.5471 22.406 23.541 22.9376 23.4178 23.4649C23.3439 23.7839 23.2577 24.0901 23.1252 24.375C23.0914 24.4473 23.0544 24.5238 23.0144 24.5919C23.0034 24.6109 22.9921 24.6293 22.9808 24.6476C22.9417 24.711 22.9035 24.773 22.882 24.8556C22.8696 24.9023 22.8389 24.9449 22.8081 24.9789C22.7323 25.0556 22.6669 25.1437 22.6 25.2339C22.5853 25.2537 22.5705 25.2736 22.5555 25.2936C22.4416 25.4467 22.3215 25.5828 22.1953 25.7146C21.681 26.2547 21.1144 26.6502 20.5077 26.9479C20.4357 26.9826 20.3643 27.0189 20.2929 27.0551C20.1199 27.1428 19.9474 27.2304 19.7686 27.2966C19.3129 27.4667 18.851 27.5942 18.3798 27.6708C17.8871 27.7516 17.3451 27.8112 16.8863 27.8112C16.4521 27.7942 15.9778 27.7601 15.5036 27.6751C14.8323 27.5518 14.1794 27.3433 13.5358 27.0542C13.3757 26.9819 13.2217 26.9011 13.0709 26.7948C13.0148 26.756 12.9547 26.7245 12.8951 26.6931C12.863 26.6763 12.8311 26.6595 12.7999 26.6417C12.2333 26.31 11.719 25.8677 11.2355 25.3404C11.02 25.1022 10.8198 24.8428 10.6442 24.5451C10.6097 24.485 10.5741 24.4272 10.5385 24.3693C10.4885 24.288 10.4385 24.2068 10.3917 24.1198C10.3332 24.0093 10.2809 23.8945 10.2378 23.7711C10.09 23.3458 9.99144 22.8993 9.96062 22.4273C9.94213 22.1509 9.98219 21.8872 10.0315 21.6193C10.1269 21.092 10.3209 20.6411 10.5642 20.2244C10.7982 19.8247 11.0785 19.493 11.3833 19.2037C11.9561 18.6509 12.5843 18.2512 13.2464 17.945C13.6683 17.7536 14.0994 17.6175 14.5336 17.4984C15.0236 17.361 15.5816 17.2603 16.0887 17.2603C16.8253 17.2603 17.5149 17.2845 18.2412 17.4049Z",fill:"#1F1F1F"}),Xe.jsx("path",{d:"M18.7169 4.46404C18.8659 4.55899 19.0088 4.67121 19.1485 4.78774C20.4557 5.87107 21.7692 6.94577 23.0857 8.00752C24.6786 9.2937 26.2622 10.5928 27.8582 11.8661C30.4043 13.8989 32.9318 15.9793 35.4718 18.0294C36.3505 18.7415 37.2323 19.445 38.1142 20.1529C38.1483 20.1788 38.2043 20.196 38.2043 20.2435C38.2073 20.3126 38.1452 20.3212 38.1079 20.3514C37.1205 21.1197 36.1331 21.8879 35.1488 22.6562C35.0153 22.7598 34.8818 22.8677 34.7514 22.9799C34.6396 23.0792 34.5216 23.0964 34.3943 23.0576C33.9689 22.9281 33.5404 22.7986 33.115 22.6735C32.6648 22.544 32.2115 22.4188 31.7581 22.2937C31.6029 22.2505 31.4507 22.2807 31.311 22.3843C31.224 22.449 31.1433 22.531 31.0657 22.6174C30.9756 22.7166 30.9384 22.8418 30.9539 22.9971C30.9663 23.1137 30.9818 23.2302 30.9943 23.3424C31.0564 23.8863 31.0098 24.4128 30.8825 24.9351C30.7955 25.2976 30.6714 25.6343 30.5254 25.958C30.1869 26.7176 29.7554 27.3607 29.2617 27.9261C28.8828 28.3534 28.4823 28.7332 28.06 29.0785C28.029 29.1044 27.9979 29.126 27.9731 29.1562C27.7775 29.372 27.5601 29.536 27.3396 29.6957C26.8459 30.0496 26.3522 30.3992 25.8399 30.7013C24.9705 31.2106 24.0731 31.612 23.1602 31.94C22.5827 32.1472 22.002 32.3285 21.4152 32.4709C21.0302 32.5658 20.642 32.6392 20.2508 32.6996C19.7167 32.7817 19.1827 32.8291 18.6455 32.868C18.2387 32.8982 17.832 32.9155 17.4252 32.9198C17.0743 32.9241 16.7204 32.8982 16.3695 32.8766C16.1273 32.8637 15.882 32.8378 15.6398 32.8119C15.3541 32.7817 15.0654 32.7428 14.7797 32.6996C14.5282 32.6608 14.2767 32.6176 14.0252 32.5702C13.606 32.4968 13.193 32.3932 12.7769 32.281C12.0069 32.0695 11.2493 31.8062 10.4947 31.5041C9.50732 31.107 8.55093 30.5891 7.62254 29.9805C7.13504 29.6611 6.64446 29.3417 6.17868 28.9576C4.59359 27.6572 3.19008 26.1343 2.25079 24.3006C1.86266 23.5367 1.54595 22.7166 1.34101 21.8232C1.02213 20.4356 1.1223 18.9775 1.5801 17.6323C2.55609 14.7551 5.07277 12.6265 7.72191 11.2834C9.70927 10.2766 11.851 9.92342 14.0686 9.94542C14.2984 9.94973 14.5251 9.967 14.7518 10.0101C14.8884 10.0361 15.0188 10.0058 15.1461 9.93246C15.2641 9.85912 15.3728 9.75982 15.4752 9.64763C15.5497 9.56991 15.5746 9.46203 15.5622 9.33685C15.5529 9.24624 15.5249 9.16421 15.4907 9.08652C15.3759 8.81892 15.261 8.55132 15.1492 8.28373C15.0157 7.96006 14.8821 7.63635 14.7486 7.31264C14.7269 7.25653 14.7114 7.20042 14.6896 7.14861C14.7207 7.08388 14.7704 7.0623 14.8138 7.03209C15.4348 6.56596 16.0621 6.12572 16.6924 5.69411C17.1737 5.36609 17.6487 5.02081 18.1269 4.68847C18.2418 4.60647 18.3598 4.53741 18.4747 4.45972C18.5585 4.40361 18.6361 4.41225 18.7169 4.46404ZM16.0887 15.7219C15.5816 15.7219 15.0236 15.8226 14.5336 15.9601C14.0994 16.0792 13.6683 16.2153 13.2464 16.4066C12.5843 16.7128 11.9561 17.1125 11.3833 17.6654C11.0785 17.9546 10.7982 18.2863 10.5642 18.6861C10.3209 19.1028 10.1269 19.5536 10.0315 20.0809C9.98219 20.3488 9.94213 20.6125 9.96062 20.8889C9.99144 21.361 10.09 21.8075 10.2378 22.2328C10.2809 22.3561 10.3332 22.4709 10.3917 22.5815C10.4718 22.7303 10.5611 22.8622 10.6442 23.0068C10.8198 23.3044 11.02 23.5638 11.2355 23.802C11.719 24.3293 12.2333 24.7716 12.7999 25.1033C12.8892 25.1543 12.9846 25.1969 13.0709 25.2564C13.2217 25.3627 13.3757 25.4435 13.5358 25.5158C14.1794 25.805 14.8323 26.0134 15.5036 26.1367C15.9778 26.2218 16.4521 26.2558 16.8863 26.2728C17.3451 26.2728 17.8871 26.2133 18.3798 26.1325C18.851 26.0559 19.3129 25.9283 19.7686 25.7582C20.0212 25.6646 20.2614 25.5286 20.5077 25.4095C21.1144 25.1118 21.681 24.7163 22.1953 24.1763C22.3215 24.0444 22.4416 23.9083 22.5555 23.7552C22.6387 23.6446 22.7157 23.5341 22.8081 23.4405C22.8389 23.4065 22.8696 23.364 22.882 23.3172C22.9097 23.2109 22.9651 23.1386 23.0144 23.0535C23.0544 22.9855 23.0914 22.909 23.1252 22.8367C23.2577 22.5517 23.3439 22.2455 23.4178 21.9266C23.541 21.3993 23.5471 20.8677 23.4517 20.3361C23.3193 19.6131 23.0452 19.0008 22.6572 18.4862C22.1829 17.861 21.6409 17.372 21.0497 16.985C20.5077 16.6278 19.9411 16.3556 19.356 16.1642C18.9865 16.0452 18.6169 15.9303 18.2412 15.8666C17.5149 15.7462 16.8253 15.7219 16.0887 15.7219Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 4.45972C18.427 4.492 18.3787 4.5228 18.3303 4.55365C18.2623 4.59704 18.1941 4.64054 18.1269 4.68847C17.9301 4.82523 17.7339 4.96419 17.5376 5.10323C17.2567 5.30206 16.9756 5.50108 16.6924 5.69411C16.0621 6.12572 15.4348 6.56596 14.8138 7.03209C14.8058 7.03772 14.7974 7.04305 14.7891 7.04841C14.7525 7.07184 14.7149 7.09594 14.6896 7.14861C14.7017 7.17723 14.7118 7.20719 14.7221 7.23772C14.7304 7.26241 14.7389 7.28753 14.7486 7.31264L15.1492 8.28373C15.261 8.55132 15.3759 8.81892 15.4907 9.08652C15.5249 9.16421 15.5529 9.24624 15.5622 9.33685C15.5746 9.46203 15.5497 9.56991 15.4752 9.64763C15.3728 9.75982 15.2641 9.85912 15.1461 9.93246C15.0188 10.0058 14.8884 10.0361 14.7518 10.0101C14.5251 9.967 14.2984 9.94973 14.0686 9.94542C11.851 9.92342 9.70927 10.2766 7.72191 11.2834C5.07277 12.6265 2.55609 14.7551 1.5801 17.6323C1.1223 18.9775 1.02213 20.4356 1.34101 21.8232C1.54595 22.7166 1.86266 23.5367 2.25079 24.3006C3.19008 26.1343 4.59359 27.6572 6.17868 28.9576C6.63302 29.3323 7.11101 29.6455 7.58668 29.957L7.62254 29.9805C8.55093 30.5891 9.50732 31.107 10.4947 31.5041C11.2493 31.8062 12.0069 32.0695 12.7769 32.281C13.193 32.3932 13.606 32.4968 14.0252 32.5702C14.2767 32.6176 14.5282 32.6608 14.7797 32.6996C15.0654 32.7428 15.3541 32.7817 15.6398 32.8119C15.882 32.8378 16.1273 32.8637 16.3695 32.8766C16.4118 32.8792 16.4542 32.8819 16.4966 32.8845C16.8057 32.904 17.1166 32.9236 17.4252 32.9198C17.832 32.9155 18.2387 32.8982 18.6455 32.868C19.1827 32.8291 19.7167 32.7817 20.2508 32.6996C20.642 32.6392 21.0302 32.5658 21.4152 32.4709C22.002 32.3285 22.5827 32.1472 23.1602 31.94C24.0731 31.612 24.9705 31.2106 25.8399 30.7013C26.3522 30.3992 26.8459 30.0496 27.3396 29.6957C27.5601 29.536 27.7775 29.372 27.9731 29.1562C27.9919 29.1332 28.0144 29.1153 28.0377 29.0966C28.0451 29.0907 28.0525 29.0847 28.06 29.0785C28.4823 28.7332 28.8828 28.3534 29.2617 27.9261C29.7554 27.3607 30.1869 26.7176 30.5254 25.958C30.6714 25.6343 30.7955 25.2976 30.8825 24.9351C31.0098 24.4128 31.0564 23.8863 30.9943 23.3424C30.9886 23.2915 30.9824 23.2397 30.976 23.1873C30.9684 23.1244 30.9607 23.0608 30.9539 22.9971C30.9384 22.8418 30.9756 22.7166 31.0657 22.6174C31.1433 22.531 31.224 22.449 31.311 22.3843C31.4507 22.2807 31.6029 22.2505 31.7581 22.2937C32.2115 22.4188 32.6648 22.544 33.115 22.6735C33.5404 22.7986 33.9689 22.9281 34.3943 23.0576C34.5216 23.0964 34.6396 23.0792 34.7514 22.9799C34.8818 22.8677 35.0153 22.7598 35.1488 22.6562C35.8647 22.0974 36.5823 21.5387 37.3002 20.9799C37.3066 20.9749 37.313 20.9699 37.3195 20.965C37.4452 20.8671 37.571 20.7693 37.6967 20.6714C37.7156 20.6567 37.7345 20.642 37.7534 20.6273C37.8716 20.5353 37.9898 20.4434 38.1079 20.3514C38.1179 20.3433 38.1297 20.3368 38.1415 20.3302C38.1738 20.3122 38.2065 20.2941 38.2043 20.2435C38.2043 20.2081 38.1731 20.1895 38.1431 20.1716C38.1329 20.1655 38.1228 20.1595 38.1142 20.1529C37.9706 20.0376 37.827 19.9225 37.6834 19.8074C37.6663 19.7937 37.6492 19.78 37.6321 19.7662C37.5463 19.6975 37.4606 19.6288 37.3748 19.5601C37.3598 19.5481 37.3448 19.5361 37.3299 19.5241C37.3235 19.519 37.3172 19.514 37.3109 19.5089C36.697 19.017 36.0837 18.5253 35.4718 18.0294C34.4771 17.2265 33.4844 16.4191 32.4917 15.6116C30.9494 14.3572 29.4073 13.1029 27.8582 11.8661C26.8417 11.0551 25.8302 10.2337 24.8181 9.41177C24.2412 8.94322 23.6641 8.47452 23.0857 8.00752C21.7692 6.94577 20.4557 5.87107 19.1485 4.78774C19.0088 4.67121 18.8659 4.55899 18.7169 4.46404C18.6361 4.41225 18.5585 4.40361 18.4747 4.45972ZM19.34 3.49237C19.1872 3.39462 18.9498 3.28099 18.6438 3.2686C18.3205 3.25551 18.0424 3.36011 17.8314 3.50133L17.8268 3.50442C17.7929 3.52732 17.7598 3.54843 17.7123 3.57874C17.7016 3.5856 17.6901 3.59293 17.6777 3.60085C17.6188 3.63852 17.5421 3.68798 17.4614 3.74527C17.2467 3.89458 17.0473 4.03583 16.8525 4.17382C16.5827 4.36495 16.3218 4.54982 16.041 4.74117L16.0389 4.74259C15.4118 5.17202 14.7794 5.61552 14.1495 6.08739C14.1285 6.101 14.0812 6.13204 14.0278 6.17447C13.8992 6.27655 13.7536 6.42906 13.6475 6.65029L13.6239 7.59454C13.6204 7.58616 13.6181 7.57993 13.6181 7.57993C13.6181 7.57993 13.62 7.58508 13.6245 7.59851L13.6265 7.60435C13.6301 7.6152 13.636 7.63254 13.6417 7.64889C13.6492 7.67035 13.659 7.698 13.671 7.72888L13.6802 7.752L14.0808 8.72312L14.0828 8.72789C14.0917 8.74935 14.1007 8.77081 14.1097 8.79227C14.1032 8.79212 14.0968 8.792 14.0904 8.79185L14.0801 8.79173C11.7325 8.76842 9.39529 9.14194 7.19913 10.2545L7.19875 10.2547C4.41337 11.6669 1.59829 13.9835 0.48606 17.2611M19.34 3.49237C19.5494 3.62599 19.7353 3.77389 19.888 3.90117C21.191 4.98102 22.4999 6.05203 23.8117 7.10995L23.8123 7.11038C24.3962 7.58185 24.9757 8.05251 25.5535 8.52179C26.5624 9.34112 27.5662 10.1563 28.5794 10.9647L28.5798 10.965C30.1313 12.2037 31.6825 13.4654 33.2291 14.7233C34.2211 15.5302 35.2112 16.3355 36.1982 17.1321L36.2 17.1335C36.8304 17.6445 37.4613 18.1501 38.0956 18.6583C38.3258 18.8428 38.5565 19.0277 38.7876 19.2132C38.8065 19.2254 38.8312 19.2419 38.8589 19.2624C38.986 19.3562 39.35 19.6652 39.3596 20.2212C39.3638 20.4147 39.3234 20.6296 39.2109 20.8362C39.0985 21.0431 38.9517 21.1711 38.8566 21.2411C38.8219 21.2664 38.7907 21.2866 38.7672 21.3013C37.7966 22.0563 36.827 22.8108 35.8604 23.5652L35.8578 23.5673C35.7379 23.6602 35.6215 23.7544 35.5102 23.85C35.3248 24.0122 35.0888 24.1452 34.8055 24.2019C34.5213 24.2587 34.2631 24.224 34.0567 24.161C33.6339 24.0323 33.2108 23.9045 32.7919 23.7812C32.5865 23.7221 32.3802 23.6639 32.1727 23.6059C32.195 24.1593 32.1308 24.6918 32.0057 25.2058C31.8985 25.6523 31.7478 26.057 31.58 26.4295C31.1904 27.3033 30.6937 28.0417 30.1326 28.6843L30.1269 28.6909C29.7058 29.1658 29.2614 29.5871 28.7955 29.9684C28.7946 29.9691 28.7937 29.9699 28.7927 29.9706C28.5208 30.2616 28.2343 30.473 28.0181 30.6296L28.0135 30.6329C27.522 30.9852 26.9898 31.3632 26.4275 31.6948L26.4246 31.6965C25.484 32.2475 24.5201 32.6776 23.5515 33.0256L23.5509 33.0258C22.9445 33.2434 22.3246 33.4375 21.6902 33.5915C21.2653 33.6962 20.8432 33.7756 20.4274 33.8399L20.4264 33.84C19.847 33.929 19.2773 33.979 18.7305 34.0186C18.2996 34.0506 17.8686 34.0689 17.4375 34.0735C17.0826 34.0777 16.7258 34.0552 16.4214 34.0359C16.381 34.0333 16.3415 34.0308 16.3031 34.0285C16.0274 34.0136 15.7544 33.9845 15.5176 33.9592C15.2106 33.9267 14.9043 33.8854 14.6068 33.8404L14.603 33.8399C14.3413 33.7994 14.0796 33.7546 13.818 33.7053C13.3495 33.6229 12.8992 33.5091 12.4756 33.3949L12.4705 33.3935C11.651 33.1684 10.8517 32.8901 10.0647 32.575L10.063 32.5743C8.99302 32.144 7.96903 31.5878 6.98845 30.9451L6.93637 30.9109C6.47225 30.607 5.9477 30.2635 5.44372 29.8479C3.78024 28.4829 2.25514 26.8428 1.22206 24.826L1.22032 24.8226C0.795584 23.9866 0.443441 23.078 0.214697 22.0808C-0.155145 20.4711 -0.0359902 18.7951 0.48606 17.2611M28.8373 29.9217L28.8661 29.8883C28.8563 29.9003 28.8466 29.9114 28.8373 29.9217ZM38.8362 21.2471C38.8312 21.2511 38.8262 21.2551 38.8215 21.2589L38.8362 21.2471ZM38.7114 21.334C38.7002 21.3405 38.696 21.3424 38.7021 21.3391L38.706 21.337L38.7114 21.334ZM38.7383 19.1827C38.733 19.1794 38.7306 19.1779 38.7306 19.1779C38.7306 19.1779 38.7322 19.1791 38.7356 19.181C38.7356 19.181 38.7368 19.1819 38.7383 19.1827ZM37.5751 19.3245C37.5877 19.3172 37.5905 19.316 37.5761 19.324L37.5751 19.3245ZM37.5487 21.161C37.5567 21.1659 37.5583 21.1667 37.5497 21.1616L37.5487 21.161ZM14.8461 17.0709L14.8396 17.0727C14.4325 17.1843 14.0689 17.3011 13.7281 17.4554C13.1656 17.7159 12.6511 18.0464 12.1864 18.495L12.1791 18.5019C11.9395 18.7292 11.7323 18.9771 11.5622 19.2676C11.3691 19.5985 11.2344 19.9222 11.1685 20.2862L11.1679 20.2893C11.1209 20.5451 11.1053 20.6885 11.1136 20.8121L11.1137 20.8139C11.137 21.1717 11.2118 21.5159 11.329 21.8535C11.3492 21.9109 11.3757 21.9709 11.4115 22.0389C11.4347 22.0818 11.4622 22.1279 11.5021 22.193C11.5079 22.2023 11.514 22.2124 11.5206 22.223C11.555 22.2789 11.5998 22.3516 11.6427 22.426C11.7702 22.6414 11.9191 22.8362 12.0903 23.0256C12.5141 23.4875 12.9381 23.8458 13.3784 24.1046C13.39 24.1111 13.3981 24.1153 13.4131 24.1231C13.427 24.1304 13.447 24.1409 13.4813 24.1592C13.5382 24.1895 13.6299 24.2396 13.7281 24.3074L13.7371 24.3137C13.809 24.3644 13.8928 24.4107 14.0107 24.464C14.5751 24.7175 15.1383 24.8963 15.7105 25.0016C16.1011 25.0715 16.5063 25.1027 16.908 25.119C17.2776 25.1171 17.7426 25.0677 18.1926 24.994L18.1943 24.9937C18.5823 24.9306 18.9708 24.8243 19.3641 24.6775L19.3667 24.6765C19.4829 24.6335 19.5705 24.5888 19.704 24.5207C19.7823 24.4808 19.8762 24.433 20.0009 24.3727C20.4942 24.1302 20.9462 23.8135 21.3579 23.3812L21.3602 23.3788C21.4647 23.2697 21.551 23.1707 21.6281 23.0671L21.6315 23.0624C21.6379 23.0541 21.646 23.043 21.6557 23.0297C21.6965 22.9743 21.7655 22.8804 21.8483 22.7819C21.8766 22.7166 21.9055 22.6609 21.9312 22.615C21.9558 22.5709 21.9795 22.5325 21.9922 22.5118L21.9924 22.5114C22.0085 22.4854 22.0115 22.4805 22.0142 22.4758L22.0181 22.4691C22.0283 22.4518 22.0454 22.4186 22.0777 22.3498C22.1598 22.1728 22.2246 21.9578 22.2921 21.6665L22.2925 21.6645C22.3774 21.3012 22.384 20.9293 22.3147 20.5419C22.2134 19.9903 22.0102 19.5467 21.735 19.1814C21.3443 18.6667 20.9014 18.2675 20.4162 17.9499L20.4132 17.9479C19.9566 17.6469 19.4837 17.4203 18.9986 17.2614C18.6282 17.1421 18.3323 17.0525 18.0497 17.0043C17.4166 16.8996 16.8012 16.8757 16.0887 16.8757C15.7191 16.8757 15.2705 16.9518 14.8461 17.0709ZM18.2412 15.8666C18.6169 15.9303 18.9865 16.0452 19.356 16.1642C19.9411 16.3556 20.5077 16.6278 21.0497 16.985C21.6409 17.372 22.1829 17.861 22.6572 18.4862C23.0452 19.0008 23.3193 19.6131 23.4517 20.3361C23.5471 20.8677 23.541 21.3993 23.4178 21.9266C23.3439 22.2455 23.2577 22.5517 23.1252 22.8367C23.0914 22.909 23.0544 22.9855 23.0144 23.0535C23.0034 23.0726 22.9921 23.0909 22.9808 23.1092C22.9417 23.1726 22.9035 23.2347 22.882 23.3172C22.8696 23.364 22.8389 23.4065 22.8081 23.4405C22.7323 23.5172 22.6669 23.6054 22.6 23.6956C22.5853 23.7154 22.5705 23.7353 22.5555 23.7552C22.4416 23.9083 22.3215 24.0444 22.1953 24.1763C21.681 24.7163 21.1144 25.1118 20.5077 25.4095C20.4357 25.4443 20.3643 25.4805 20.2929 25.5167C20.1199 25.6045 19.9474 25.692 19.7686 25.7582C19.3129 25.9283 18.851 26.0559 18.3798 26.1325C17.8871 26.2133 17.3451 26.2728 16.8863 26.2728C16.4521 26.2558 15.9778 26.2218 15.5036 26.1367C14.8323 26.0134 14.1794 25.805 13.5358 25.5158C13.3757 25.4435 13.2217 25.3627 13.0709 25.2564C13.0148 25.2177 12.9547 25.1861 12.8951 25.1548C12.863 25.1379 12.8311 25.1211 12.7999 25.1033C12.2333 24.7716 11.719 24.3293 11.2355 23.802C11.02 23.5638 10.8198 23.3044 10.6442 23.0068C10.6097 22.9467 10.5741 22.8888 10.5385 22.831C10.4885 22.7497 10.4385 22.6685 10.3917 22.5815C10.3332 22.4709 10.2809 22.3561 10.2378 22.2328C10.09 21.8075 9.99144 21.361 9.96062 20.8889C9.94213 20.6125 9.98219 20.3488 10.0315 20.0809C10.1269 19.5536 10.3209 19.1028 10.5642 18.6861C10.7982 18.2863 11.0785 17.9546 11.3833 17.6654C11.9561 17.1125 12.5843 16.7128 13.2464 16.4066C13.6683 16.2153 14.0994 16.0792 14.5336 15.9601C15.0236 15.8226 15.5816 15.7219 16.0887 15.7219C16.8253 15.7219 17.5149 15.7462 18.2412 15.8666Z",fill:"#FAFAFA"}),Xe.jsx("path",{d:"M18.7169 3.69486C18.8659 3.78982 19.0088 3.90203 19.1485 4.01857C20.4557 5.1019 21.7692 6.17659 23.0857 7.23834C24.6786 8.52452 26.2622 9.82366 27.8582 11.0969C30.4043 13.1297 32.9318 15.2101 35.4718 17.2602C36.3505 17.9724 37.2323 18.6759 38.1142 19.3837C38.1483 19.4096 38.2043 19.4268 38.2043 19.4743C38.2073 19.5434 38.1452 19.552 38.1079 19.5823C37.1205 20.3505 36.1331 21.1188 35.1488 21.887C35.0153 21.9906 34.8818 22.0985 34.7514 22.2107C34.6396 22.31 34.5216 22.3273 34.3943 22.2884C33.9689 22.1589 33.5404 22.0294 33.115 21.9043C32.6648 21.7748 32.2115 21.6496 31.7581 21.5245C31.6029 21.4813 31.4507 21.5115 31.311 21.6151C31.224 21.6798 31.1433 21.7618 31.0657 21.8482C30.9756 21.9474 30.9384 22.0726 30.9539 22.228C30.9663 22.3445 30.9818 22.4611 30.9943 22.5732C31.0564 23.1171 31.0098 23.6436 30.8825 24.1659C30.7955 24.5284 30.6714 24.8651 30.5254 25.1888C30.1869 25.9484 29.7554 26.5915 29.2617 27.1569C28.8828 27.5842 28.4823 27.964 28.06 28.3093C28.029 28.3352 27.9979 28.3568 27.9731 28.387C27.7775 28.6028 27.5601 28.7668 27.3396 28.9265C26.8459 29.2804 26.3522 29.63 25.8399 29.9321C24.9705 30.4414 24.0731 30.8428 23.1602 31.1709C22.5827 31.378 22.002 31.5593 21.4152 31.7017C21.0302 31.7967 20.642 31.87 20.2508 31.9305C19.7167 32.0125 19.1827 32.0599 18.6455 32.0988C18.2387 32.129 17.832 32.1463 17.4252 32.1506C17.0743 32.1549 16.7204 32.129 16.3695 32.1074C16.1273 32.0945 15.882 32.0686 15.6398 32.0427C15.3541 32.0125 15.0654 31.9736 14.7797 31.9305C14.5282 31.8916 14.2767 31.8485 14.0252 31.801C13.606 31.7276 13.193 31.624 12.7769 31.5118C12.0069 31.3003 11.2493 31.0371 10.4947 30.7349C9.50732 30.3378 8.55093 29.8199 7.62254 29.2114C7.13504 28.892 6.64446 28.5726 6.17868 28.1884C4.59359 26.888 3.19008 25.3652 2.25079 23.5314C1.86266 22.7675 1.54595 21.9474 1.34101 21.054C1.02213 19.6664 1.1223 18.2083 1.5801 16.8631C2.55609 13.9859 5.07277 11.8574 7.72191 10.5142C9.70927 9.50745 11.851 9.15425 14.0686 9.17624C14.2984 9.18055 14.5251 9.19782 14.7518 9.24097C14.8884 9.26689 15.0188 9.23666 15.1461 9.16328C15.2641 9.08994 15.3728 8.99064 15.4752 8.87846C15.5497 8.80073 15.5746 8.69285 15.5622 8.56767C15.5529 8.47706 15.5249 8.39503 15.4907 8.31734C15.3759 8.04974 15.261 7.78215 15.1492 7.51455C15.0157 7.19088 14.8821 6.86717 14.7486 6.54346C14.7269 6.48735 14.7114 6.43124 14.6896 6.37944C14.7207 6.31471 14.7704 6.29313 14.8138 6.26291C15.4348 5.79678 16.0621 5.35654 16.6924 4.92494C17.1737 4.59692 17.6487 4.25163 18.1269 3.9193C18.2418 3.83729 18.3598 3.76823 18.4747 3.69055C18.5585 3.63444 18.6361 3.64307 18.7169 3.69486ZM16.0887 14.9528C15.5816 14.9528 15.0236 15.0535 14.5336 15.1909C14.0994 15.31 13.6683 15.4461 13.2464 15.6375C12.5843 15.9436 11.9561 16.3434 11.3833 16.8962C11.0785 17.1854 10.7982 17.5171 10.5642 17.9169C10.3209 18.3336 10.1269 18.7844 10.0315 19.3117C9.98219 19.5796 9.94213 19.8433 9.96062 20.1198C9.99144 20.5918 10.09 21.0383 10.2378 21.4636C10.2809 21.5869 10.3332 21.7017 10.3917 21.8123C10.4718 21.9611 10.5611 22.093 10.6442 22.2376C10.8198 22.5352 11.02 22.7947 11.2355 23.0328C11.719 23.5601 12.2333 24.0024 12.7999 24.3341C12.8892 24.3852 12.9846 24.4277 13.0709 24.4872C13.2217 24.5935 13.3757 24.6743 13.5358 24.7466C14.1794 25.0358 14.8323 25.2442 15.5036 25.3675C15.9778 25.4526 16.4521 25.4866 16.8863 25.5036C17.3451 25.5036 17.8871 25.4441 18.3798 25.3633C18.851 25.2867 19.3129 25.1591 19.7686 24.989C20.0212 24.8955 20.2614 24.7594 20.5077 24.6403C21.1144 24.3426 21.681 23.9472 22.1953 23.4071C22.3215 23.2752 22.4416 23.1391 22.5555 22.986C22.6387 22.8755 22.7157 22.7649 22.8081 22.6714C22.8389 22.6373 22.8696 22.5948 22.882 22.548C22.9097 22.4417 22.9651 22.3694 23.0144 22.2843C23.0544 22.2163 23.0914 22.1398 23.1252 22.0675C23.2577 21.7825 23.3439 21.4764 23.4178 21.1574C23.541 20.6301 23.5471 20.0985 23.4517 19.5669C23.3193 18.844 23.0452 18.2316 22.6572 17.717C22.1829 17.0919 21.6409 16.6028 21.0497 16.2158C20.5077 15.8586 19.9411 15.5864 19.356 15.395C18.9865 15.276 18.6169 15.1611 18.2412 15.0974C17.5149 14.977 16.8253 14.9528 16.0887 14.9528Z",fill:"#FAFAFA"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 3.69055C18.427 3.72283 18.3787 3.75362 18.3303 3.78447C18.2623 3.82786 18.1941 3.87137 18.1269 3.9193C17.9301 4.05606 17.7339 4.19501 17.5376 4.33405C17.2567 4.53288 16.9756 4.7319 16.6924 4.92494C16.0621 5.35654 15.4348 5.79678 14.8138 6.26291C14.8058 6.26854 14.7974 6.27387 14.7891 6.27923C14.7525 6.30266 14.7149 6.32676 14.6896 6.37944C14.7017 6.40805 14.7118 6.43801 14.7221 6.46854C14.7304 6.49324 14.7389 6.51835 14.7486 6.54346L15.1492 7.51455C15.261 7.78215 15.3759 8.04974 15.4907 8.31734C15.5249 8.39503 15.5529 8.47706 15.5622 8.56767C15.5746 8.69285 15.5497 8.80073 15.4752 8.87846C15.3728 8.99064 15.2641 9.08994 15.1461 9.16328C15.0188 9.23666 14.8884 9.26689 14.7518 9.24097C14.5251 9.19782 14.2984 9.18055 14.0686 9.17624C11.851 9.15425 9.70927 9.50745 7.72191 10.5142C5.07277 11.8574 2.55609 13.9859 1.5801 16.8631C1.1223 18.2083 1.02213 19.6664 1.34101 21.054C1.54595 21.9474 1.86266 22.7675 2.25079 23.5314C3.19008 25.3652 4.59359 26.888 6.17868 28.1884C6.63302 28.5631 7.11101 28.8763 7.58668 29.1879L7.62254 29.2114C8.55093 29.8199 9.50732 30.3378 10.4947 30.7349C11.2493 31.0371 12.0069 31.3003 12.7769 31.5118C13.193 31.624 13.606 31.7276 14.0252 31.801C14.2767 31.8485 14.5282 31.8916 14.7797 31.9305C15.0654 31.9736 15.3541 32.0125 15.6398 32.0427C15.882 32.0686 16.1273 32.0945 16.3695 32.1074C16.4118 32.11 16.4542 32.1127 16.4966 32.1154C16.8057 32.1348 17.1166 32.1544 17.4252 32.1506C17.832 32.1463 18.2387 32.129 18.6455 32.0988C19.1827 32.0599 19.7167 32.0125 20.2508 31.9305C20.642 31.87 21.0302 31.7967 21.4152 31.7017C22.002 31.5593 22.5827 31.378 23.1602 31.1709C24.0731 30.8428 24.9705 30.4414 25.8399 29.9321C26.3522 29.63 26.8459 29.2804 27.3396 28.9265C27.5601 28.7668 27.7775 28.6028 27.9731 28.387C27.9919 28.364 28.0144 28.3461 28.0377 28.3274C28.0451 28.3215 28.0525 28.3155 28.06 28.3093C28.4823 27.964 28.8828 27.5842 29.2617 27.1569C29.7554 26.5915 30.1869 25.9484 30.5254 25.1888C30.6714 24.8651 30.7955 24.5284 30.8825 24.1659C31.0098 23.6436 31.0564 23.1171 30.9943 22.5732C30.9886 22.5223 30.9824 22.4705 30.976 22.4181C30.9684 22.3552 30.9607 22.2916 30.9539 22.228C30.9384 22.0726 30.9756 21.9474 31.0657 21.8482C31.1433 21.7618 31.224 21.6798 31.311 21.6151C31.4507 21.5115 31.6029 21.4813 31.7581 21.5245C32.2115 21.6496 32.6648 21.7748 33.115 21.9043C33.5404 22.0294 33.9689 22.1589 34.3943 22.2884C34.5216 22.3273 34.6396 22.31 34.7514 22.2107C34.8818 22.0985 35.0153 21.9906 35.1488 21.887C35.8647 21.3283 36.5823 20.7695 37.3002 20.2108C37.3066 20.2058 37.313 20.2008 37.3195 20.1958C37.4452 20.0979 37.571 20.0001 37.6967 19.9022C37.7156 19.8875 37.7345 19.8728 37.7534 19.8581C37.8716 19.7661 37.9898 19.6742 38.1079 19.5823C38.1179 19.5741 38.1297 19.5676 38.1415 19.561C38.1738 19.5431 38.2065 19.5249 38.2043 19.4743C38.2043 19.4389 38.1731 19.4203 38.1431 19.4024C38.1329 19.3963 38.1228 19.3903 38.1142 19.3837C37.9706 19.2684 37.827 19.1533 37.6834 19.0383C37.6663 19.0245 37.6492 19.0108 37.6321 18.9971C37.5463 18.9283 37.4606 18.8596 37.3748 18.7909C37.3598 18.7789 37.3448 18.7669 37.3299 18.7549C37.3235 18.7499 37.3172 18.7448 37.3109 18.7397C36.697 18.2478 36.0837 17.7561 35.4718 17.2602C34.4771 16.4574 33.4844 15.6499 32.4917 14.8425C30.9494 13.5881 29.4073 12.3337 27.8582 11.0969C26.8417 10.2859 25.8302 9.46449 24.8181 8.64259C24.2412 8.17404 23.6641 7.70534 23.0857 7.23834C21.7692 6.17659 20.4557 5.1019 19.1485 4.01857C19.0088 3.90203 18.8659 3.78982 18.7169 3.69486C18.6361 3.64307 18.5585 3.63444 18.4747 3.69055ZM19.34 2.7232C19.1872 2.62544 18.9498 2.51181 18.6438 2.49942C18.3205 2.48633 18.0424 2.59094 17.8314 2.73215L17.8268 2.73524C17.7929 2.75814 17.7598 2.77925 17.7123 2.80956C17.7016 2.81642 17.6901 2.82375 17.6777 2.83168C17.6188 2.86934 17.5421 2.9188 17.4614 2.97609C17.2467 3.1254 17.0473 3.26666 16.8525 3.40464C16.5827 3.59577 16.3218 3.78064 16.041 3.97199L16.0389 3.97341C15.4118 4.40284 14.7794 4.84634 14.1495 5.31821C14.1285 5.33182 14.0812 5.36286 14.0278 5.40529C13.8992 5.50737 14.3861 6.37872 14.28 6.59995L13.6239 6.82537C13.6204 6.81698 13.6181 6.81075 13.6181 6.81075C13.6181 6.81075 13.62 6.81591 13.6245 6.82933L13.6265 6.83517C13.6301 6.84602 13.636 6.86336 13.6417 6.87971C13.6492 6.90117 13.659 6.92882 13.671 6.9597L13.6802 6.98282L14.0808 7.95394L14.0828 7.95871C14.0917 7.98017 14.1007 8.00163 14.1097 8.02309C14.1032 8.02294 14.0968 8.02282 14.0904 8.02267L14.0801 8.02255C11.7325 7.99925 9.39529 8.37276 7.19913 9.4853L7.19875 9.48549C4.41337 10.8977 1.59829 13.2144 0.48606 16.4919M19.34 2.7232C19.5494 2.85681 19.7353 3.00471 19.888 3.13199C21.191 4.21184 22.4999 5.28286 23.8117 6.34077L23.8123 6.3412C24.3962 6.81267 24.9757 7.28333 25.5535 7.75261C26.5624 8.57194 27.5662 9.38711 28.5794 10.1955L28.5798 10.1958C30.1313 11.4345 31.6825 12.6962 33.2291 13.9541C34.2211 14.761 35.2112 15.5663 36.1982 16.3629L36.2 16.3644C36.8304 16.8753 37.4613 17.3809 38.0956 17.8891C38.3258 18.0736 38.5565 18.2585 38.7876 18.4441C38.8065 18.4562 38.8312 18.4728 38.8589 18.4932C38.986 18.5871 39.35 18.896 39.3596 19.452C39.3638 19.6455 39.3234 19.8604 39.2109 20.067C39.0985 20.2739 38.9517 20.4019 38.8566 20.4719C38.8219 20.4972 38.7907 20.5174 38.7672 20.5321C37.7966 21.2871 36.827 22.0416 35.8604 22.796L35.8578 22.7981C35.7379 22.8911 35.6215 22.9852 35.5102 23.0809C35.3248 23.243 35.0888 23.376 34.8055 23.4327C34.5213 23.4895 34.2631 23.4548 34.0567 23.3918C33.6339 23.2631 33.2108 23.1353 32.7919 23.012C32.5865 22.953 32.3802 22.8947 32.1727 22.8368C32.195 23.3901 32.1308 23.9227 32.0057 24.4367C31.8985 24.8832 31.7478 25.2879 31.58 25.6603C31.1904 26.5341 30.6937 27.2725 30.1326 27.9152L30.1269 27.9217C29.7058 28.3966 29.2614 28.8179 28.7955 29.1992C28.7946 29.1999 28.7937 29.2007 28.7927 29.2014C28.5208 29.4925 28.2343 29.7038 28.0181 29.8604L28.0135 29.8637C27.522 30.2161 26.9898 30.594 26.4275 30.9256L26.4246 30.9273C25.484 31.4783 24.5201 31.9084 23.5515 32.2565L23.5509 32.2567C22.9445 32.4742 22.3246 32.6683 21.6902 32.8223C21.2653 32.927 20.8432 33.0065 20.4274 33.0707L20.4264 33.0708C19.847 33.1598 19.2773 33.2099 18.7305 33.2494C18.2996 33.2814 17.8686 33.2997 17.4375 33.3043C17.0826 33.3085 16.7258 33.286 16.4214 33.2667C16.381 33.2642 16.3415 33.2617 16.3031 33.2593C16.0274 33.2444 15.7544 33.2153 15.5176 33.19C15.2106 33.1575 14.9043 33.1162 14.6068 33.0713L14.603 33.0707C14.3413 33.0303 14.0796 32.9854 13.818 32.9361C13.3495 32.8537 12.8992 32.7399 12.4756 32.6257L12.4705 32.6243C11.651 32.3992 10.8517 32.1209 10.0647 31.8058L10.063 31.8052C8.99302 31.3748 7.96903 30.8186 6.98845 30.1759L6.93637 30.1418C6.47225 29.8378 5.9477 29.4943 5.44372 29.0787C3.78024 27.7137 2.25514 26.0736 1.22206 24.0568L1.22032 24.0534C0.795584 23.2174 0.443441 22.3088 0.214697 21.3116C-0.155145 19.7019 -0.0359902 18.0259 0.48606 16.4919M28.8373 29.1525L28.8661 29.1191C28.8563 29.1311 28.8466 29.1423 28.8373 29.1525ZM38.8362 20.4779C38.8312 20.482 38.8262 20.4859 38.8215 20.4897L38.8362 20.4779ZM38.7114 20.5648C38.7002 20.5713 38.696 20.5733 38.7021 20.5699L38.706 20.5678L38.7114 20.5648ZM38.7383 18.4135C38.733 18.4102 38.7306 18.4088 38.7306 18.4088C38.7306 18.4088 38.7322 18.4099 38.7356 18.4118C38.7356 18.4118 38.7368 18.4127 38.7383 18.4135ZM37.5751 18.5554C37.5877 18.548 37.5905 18.5468 37.5761 18.5548L37.5751 18.5554ZM37.5487 20.3918C37.5567 20.3967 37.5583 20.3975 37.5497 20.3924L37.5487 20.3918ZM14.8461 16.3017L14.8396 16.3035C14.4325 16.4151 14.0689 16.532 13.7281 16.6862C13.1656 16.9467 12.6511 17.2772 12.1864 17.7258L12.1791 17.7327C11.9395 17.9601 11.7323 18.2079 11.5622 18.4984C11.3691 18.8293 11.2344 19.153 11.1685 19.517L11.1679 19.5201C11.1209 19.7759 11.1053 19.9194 11.1136 20.0429L11.1137 20.0448C11.137 20.4025 11.2118 20.7467 11.329 21.0843C11.3492 21.1417 11.3757 21.2017 11.4115 21.2697C11.4347 21.3126 11.4622 21.3587 11.5021 21.4238C11.5079 21.4331 11.514 21.4432 11.5206 21.4538C11.555 21.5097 11.5998 21.5825 11.6427 21.6568C11.7702 21.8723 11.9191 22.067 12.0903 22.2565C12.5141 22.7183 12.9381 23.0766 13.3784 23.3354C13.39 23.3419 13.3981 23.3461 13.4131 23.354C13.427 23.3613 13.447 23.3717 13.4813 23.39C13.5382 23.4203 13.6299 23.4705 13.7281 23.5383L13.7371 23.5445C13.809 23.5952 13.8928 23.6415 14.0107 23.6948C14.5751 23.9483 15.1383 24.1271 15.7105 24.2324C16.1011 24.3023 16.5063 24.3335 16.908 24.3498C17.2776 24.3479 17.7426 24.2986 18.1926 24.2248L18.1943 24.2245C18.5823 24.1614 18.9708 24.0551 19.3641 23.9083L19.3667 23.9073C19.4829 23.8643 19.5705 23.8196 19.704 23.7516C19.7823 23.7117 19.8762 23.6638 20.0009 23.6035C20.4942 23.361 20.9462 23.0444 21.3579 22.6121L21.3602 22.6096C21.4647 22.5005 21.551 22.4015 21.6281 22.2979L21.6315 22.2933C21.6379 22.2849 21.646 22.2738 21.6557 22.2605C21.6965 22.2052 21.7655 22.1112 21.8483 22.0127C21.8766 21.9474 21.9055 21.8917 21.9312 21.8458C21.9558 21.8018 21.9795 21.7633 21.9922 21.7427L21.9924 21.7423C22.0085 21.7162 22.0115 21.7113 22.0142 21.7067L22.0181 21.6999C22.0283 21.6827 22.0454 21.6495 22.0777 21.5806C22.1598 21.4036 22.2246 21.1886 22.2921 20.8973L22.2925 20.8953C22.3774 20.532 22.384 20.1601 22.3147 19.7727C22.2134 19.2211 22.0102 18.7775 21.735 18.4122C21.3443 17.8975 20.9014 17.4983 20.4162 17.1807L20.4132 17.1787C19.9566 16.8778 19.4837 16.6511 18.9986 16.4922C18.6282 16.3729 18.3323 16.2833 18.0497 16.2351C17.4166 16.1305 16.8012 16.1065 16.0887 16.1065C15.7191 16.1065 15.2705 16.1826 14.8461 16.3017ZM18.2412 15.0974C18.6169 15.1611 18.9865 15.276 19.356 15.395C19.9411 15.5864 20.5077 15.8586 21.0497 16.2158C21.6409 16.6028 22.1829 17.0919 22.6572 17.717C23.0452 18.2316 23.3193 18.844 23.4517 19.5669C23.5471 20.0985 23.541 20.6301 23.4178 21.1574C23.3439 21.4764 23.2577 21.7825 23.1252 22.0675C23.0914 22.1398 23.0544 22.2163 23.0144 22.2843C23.0034 22.3034 22.9921 22.3218 22.9808 22.34C22.9417 22.4035 22.9035 22.4655 22.882 22.548C22.8696 22.5948 22.8389 22.6373 22.8081 22.6714C22.7323 22.748 22.6669 22.8362 22.6 22.9264C22.5853 22.9462 22.5705 22.9661 22.5555 22.986C22.4416 23.1391 22.3215 23.2752 22.1953 23.4071C21.681 23.9472 21.1144 24.3426 20.5077 24.6403C20.4357 24.6751 20.3643 24.7114 20.2929 24.7476C20.1199 24.8353 19.9474 24.9228 19.7686 24.989C19.3129 25.1591 18.851 25.2867 18.3798 25.3633C17.8871 25.4441 17.3451 25.5036 16.8863 25.5036C16.4521 25.4866 15.9778 25.4526 15.5036 25.3675C14.8323 25.2442 14.1794 25.0358 13.5358 24.7466C13.3757 24.6743 13.2217 24.5935 13.0709 24.4872C13.0148 24.4485 12.9547 24.417 12.8951 24.3856C12.863 24.3687 12.8311 24.352 12.7999 24.3341C12.2333 24.0024 11.719 23.5601 11.2355 23.0328C11.02 22.7947 10.8198 22.5352 10.6442 22.2376C10.6097 22.1775 10.5741 22.1196 10.5385 22.0618C10.4885 21.9805 10.4385 21.8993 10.3917 21.8123C10.3332 21.7017 10.2809 21.5869 10.2378 21.4636C10.09 21.0383 9.99144 20.5918 9.96062 20.1198C9.94213 19.8433 9.98219 19.5796 10.0315 19.3117C10.1269 18.7844 10.3209 18.3336 10.5642 17.9169C10.7982 17.5171 11.0785 17.1854 11.3833 16.8962C11.9561 16.3434 12.5843 15.9436 13.2464 15.6375C13.6683 15.4461 14.0994 15.31 14.5336 15.1909C15.0236 15.0535 15.5816 14.9528 16.0887 14.9528C16.8253 14.9528 17.5149 14.977 18.2412 15.0974Z",fill:"#1F1F1F"}),Xe.jsx("path",{d:"M22.7245 18.8433C22.7245 21.286 19.9654 23.2661 16.5619 23.2661C13.1584 23.2661 10.3994 21.286 10.3994 18.8433C10.3994 16.4007 13.1584 14.4206 16.5619 14.4206C19.9654 14.4206 22.7245 16.4007 22.7245 18.8433Z",fill:"white"}),Xe.jsx("path",{d:"M22.0777 21.3116C22.4413 23.9417 20.1839 26.4255 17.0357 26.8594C13.8874 27.2933 11.0406 25.513 10.677 22.8829C10.3134 20.2528 12.4916 18.0662 15.6398 17.6323C18.788 17.1984 21.7142 18.6815 22.0777 21.3116Z",fill:"#1F1F1F"}),Xe.jsx("path",{d:"M18.7169 2.15651C18.8659 2.25146 19.0088 2.36368 19.1485 2.48021C20.4557 3.56354 21.7692 4.63824 23.0857 5.69998C24.6786 6.98616 26.2622 8.2853 27.8582 9.55853C30.4043 11.5914 32.9318 13.6717 35.4718 15.7218C36.3505 16.434 37.2323 17.1375 38.1142 17.8453C38.1483 17.8713 38.2043 17.8885 38.2043 17.936C38.2073 18.0051 38.1452 18.0137 38.1079 18.0439C37.1205 18.8122 36.1331 19.5804 35.1488 20.3487C35.0153 20.4522 34.8818 20.5602 34.7514 20.6724C34.6396 20.7716 34.5216 20.7889 34.3943 20.7501C33.9689 20.6206 33.5404 20.4911 33.115 20.3659C32.6648 20.2364 32.2115 20.1113 31.7581 19.9861C31.6029 19.943 31.4507 19.9732 31.311 20.0768C31.224 20.1415 31.1433 20.2235 31.0657 20.3098C30.9756 20.4091 30.9384 20.5342 30.9539 20.6896C30.9663 20.8062 30.9818 20.9227 30.9943 21.0349C31.0564 21.5787 31.0098 22.1053 30.8825 22.6276C30.7955 22.9901 30.6714 23.3267 30.5254 23.6504C30.1869 24.41 29.7554 25.0532 29.2617 25.6185C28.8828 26.0459 28.4823 26.4257 28.06 26.771C28.029 26.7968 27.9979 26.8184 27.9731 26.8486C27.7775 27.0644 27.5601 27.2284 27.3396 27.3881C26.8459 27.742 26.3522 28.0916 25.8399 28.3938C24.9705 28.9031 24.0731 29.3045 23.1602 29.6325C22.5827 29.8396 22.002 30.0209 21.4152 30.1633C21.0302 30.2583 20.642 30.3317 20.2508 30.3921C19.7167 30.4741 19.1827 30.5216 18.6455 30.5604C18.2387 30.5907 17.832 30.6079 17.4252 30.6122C17.0743 30.6165 16.7204 30.5907 16.3695 30.5691C16.1273 30.5561 15.882 30.5302 15.6398 30.5043C15.3541 30.4741 15.0654 30.4353 14.7797 30.3921C14.5282 30.3533 14.2767 30.3101 14.0252 30.2626C13.606 30.1893 13.193 30.0857 12.7769 29.9735C12.0069 29.762 11.2493 29.4987 10.4947 29.1966C9.50732 28.7995 8.55093 28.2815 7.62254 27.673C7.13504 27.3536 6.64446 27.0342 6.17868 26.6501C4.59359 25.3496 3.19008 23.8268 2.25079 21.9931C1.86266 21.2291 1.54595 20.4091 1.34101 19.5156C1.02213 18.1281 1.1223 16.67 1.5801 15.3248C2.55609 12.4475 5.07277 10.319 7.72191 8.97587C9.70927 7.9691 11.851 7.61589 14.0686 7.63789C14.2984 7.64219 14.5251 7.65946 14.7518 7.70261C14.8884 7.72854 15.0188 7.69831 15.1461 7.62493C15.2641 7.55159 15.3728 7.45228 15.4752 7.3401C15.5497 7.26237 15.5746 7.1545 15.5622 7.02931C15.5529 6.9387 15.5249 6.85667 15.4907 6.77899C15.3759 6.51139 15.261 6.24379 15.1492 5.97619C15.0157 5.65252 14.8821 5.32881 14.7486 5.00511C14.7269 4.94899 14.7114 4.89288 14.6896 4.84108C14.7207 4.77635 14.7704 4.75477 14.8138 4.72456C15.4348 4.25842 16.0621 3.81818 16.6924 3.38658C17.1737 3.05856 17.6487 2.71328 18.1269 2.38094C18.2418 2.29893 18.3598 2.22988 18.4747 2.15219C18.5585 2.09608 18.6361 2.10471 18.7169 2.15651ZM16.0887 13.4144C15.5816 13.4144 15.0236 13.5151 14.5336 13.6526C14.0994 13.7716 13.6683 13.9077 13.2464 14.0991C12.5843 14.4053 11.9561 14.805 11.3833 15.3579C11.0785 15.6471 10.7982 15.9788 10.5642 16.3785C10.3209 16.7953 10.1269 17.2461 10.0315 17.7734C9.98219 18.0413 9.94213 18.305 9.96062 18.5814C9.99144 19.0535 10.09 19.5 10.2378 19.9252C10.2809 20.0486 10.3332 20.1634 10.3917 20.2739C10.4718 20.4228 10.5611 20.5546 10.6442 20.6992C10.8198 20.9969 11.02 21.2563 11.2355 21.4945C11.719 22.0218 12.2333 22.4641 12.7999 22.7958C12.8892 22.8468 12.9846 22.8893 13.0709 22.9489C13.2217 23.0552 13.3757 23.136 13.5358 23.2083C14.1794 23.4975 14.8323 23.7059 15.5036 23.8292C15.9778 23.9142 16.4521 23.9483 16.8863 23.9653C17.3451 23.9653 17.8871 23.9057 18.3798 23.8249C18.851 23.7484 19.3129 23.6208 19.7686 23.4507C20.0212 23.3571 20.2614 23.2211 20.5077 23.102C21.1144 22.8043 21.681 22.4088 22.1953 21.8687C22.3215 21.7369 22.4416 21.6008 22.5555 21.4477C22.6387 21.3371 22.7157 21.2265 22.8081 21.133C22.8389 21.099 22.8696 21.0564 22.882 21.0097C22.9097 20.9034 22.9651 20.8311 23.0144 20.746C23.0544 20.678 23.0914 20.6014 23.1252 20.5291C23.2577 20.2442 23.3439 19.938 23.4178 19.619C23.541 19.0917 23.5471 18.5601 23.4517 18.0286C23.3193 17.3056 23.0452 16.6932 22.6572 16.1786C22.1829 15.5535 21.6409 15.0645 21.0497 14.6774C20.5077 14.3202 19.9411 14.0481 19.356 13.8567C18.9865 13.7376 18.6169 13.6228 18.2412 13.559C17.5149 13.4386 16.8253 13.4144 16.0887 13.4144Z",fill:"#FE0230"}),Xe.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4747 2.15219C18.427 2.18447 18.3787 2.21526 18.3303 2.24611C18.2623 2.2895 18.1941 2.33301 18.1269 2.38094C17.9301 2.5177 17.7339 2.65665 17.5376 2.79569C17.2567 2.99453 16.9756 3.19354 16.6924 3.38658C16.0621 3.81818 15.4348 4.25842 14.8138 4.72456C14.8058 4.73018 14.7974 4.73551 14.7891 4.74087C14.7525 4.76431 14.7149 4.78841 14.6896 4.84108C14.7017 4.86969 14.7118 4.89965 14.7221 4.93019C14.7304 4.95488 14.7389 4.97999 14.7486 5.00511L15.1492 5.97619C15.261 6.24379 15.3759 6.51139 15.4907 6.77899C15.5249 6.85667 15.5529 6.9387 15.5622 7.02931C15.5746 7.1545 15.5497 7.26237 15.4752 7.3401C15.3728 7.45228 15.2641 7.55159 15.1461 7.62493C15.0188 7.69831 14.8884 7.72854 14.7518 7.70261C14.5251 7.65946 14.2984 7.64219 14.0686 7.63789C11.851 7.61589 9.70927 7.9691 7.72191 8.97587C5.07277 10.319 2.55609 12.4475 1.5801 15.3248C1.1223 16.67 1.02213 18.1281 1.34101 19.5156C1.54595 20.4091 1.86266 21.2291 2.25079 21.9931C3.19008 23.8268 4.59359 25.3496 6.17868 26.6501C6.63302 27.0248 7.11101 27.3379 7.58668 27.6495L7.62254 27.673C8.55093 28.2815 9.50732 28.7995 10.4947 29.1966C11.2493 29.4987 12.0069 29.762 12.7769 29.9735C13.193 30.0857 13.606 30.1893 14.0252 30.2626C14.2767 30.3101 14.5282 30.3533 14.7797 30.3921C15.0654 30.4353 15.3541 30.4741 15.6398 30.5043C15.882 30.5302 16.1273 30.5561 16.3695 30.5691C16.4118 30.5717 16.4542 30.5744 16.4966 30.577C16.8057 30.5965 17.1166 30.616 17.4252 30.6122C17.832 30.6079 18.2387 30.5907 18.6455 30.5604C19.1827 30.5216 19.7167 30.4741 20.2508 30.3921C20.642 30.3317 21.0302 30.2583 21.4152 30.1633C22.002 30.0209 22.5827 29.8396 23.1602 29.6325C24.0731 29.3045 24.9705 28.9031 25.8399 28.3938C26.3522 28.0916 26.8459 27.742 27.3396 27.3881C27.5601 27.2284 27.7775 27.0644 27.9731 26.8486C27.9919 26.8257 28.0144 26.8077 28.0377 26.7891C28.0451 26.7832 28.0525 26.7772 28.06 26.771C28.4823 26.4257 28.8828 26.0459 29.2617 25.6185C29.7554 25.0532 30.1869 24.41 30.5254 23.6504C30.6714 23.3267 30.7955 22.9901 30.8825 22.6276C31.0098 22.1053 31.0564 21.5787 30.9943 21.0349C30.9886 20.984 30.9824 20.9321 30.976 20.8798C30.9684 20.8169 30.9607 20.7533 30.9539 20.6896C30.9384 20.5342 30.9756 20.4091 31.0657 20.3098C31.1433 20.2235 31.224 20.1415 31.311 20.0768C31.4507 19.9732 31.6029 19.943 31.7581 19.9861C32.2115 20.1113 32.6648 20.2364 33.115 20.3659C33.5404 20.4911 33.9689 20.6206 34.3943 20.7501C34.5216 20.7889 34.6396 20.7716 34.7514 20.6724C34.8818 20.5602 35.0153 20.4522 35.1488 20.3487C35.8647 19.7899 36.5823 19.2311 37.3002 18.6724C37.3066 18.6674 37.313 18.6624 37.3195 18.6574C37.4452 18.5596 37.571 18.4617 37.6967 18.3638C37.7156 18.3492 37.7345 18.3345 37.7534 18.3197C37.8716 18.2278 37.9898 18.1358 38.1079 18.0439C38.1179 18.0358 38.1297 18.0293 38.1415 18.0227C38.1738 18.0047 38.2065 17.9865 38.2043 17.936C38.2043 17.9006 38.1731 17.882 38.1431 17.8641C38.1329 17.858 38.1228 17.8519 38.1142 17.8453C37.9706 17.7301 37.827 17.615 37.6834 17.4999C37.6663 17.4862 37.6492 17.4724 37.6321 17.4587C37.5463 17.39 37.4606 17.3213 37.3748 17.2525C37.3598 17.2405 37.3448 17.2285 37.3299 17.2165C37.3235 17.2115 37.3172 17.2064 37.3109 17.2013C36.697 16.7095 36.0837 16.2178 35.4718 15.7218C34.4771 14.919 33.4844 14.1116 32.4917 13.3041C30.9494 12.0497 29.4073 10.7953 27.8582 9.55853C26.8417 8.74758 25.8302 7.92614 24.8181 7.10423C24.2412 6.63569 23.6641 6.16699 23.0857 5.69998C21.7692 4.63824 20.4557 3.56354 19.1485 2.48021C19.0088 2.36368 18.8659 2.25146 18.7169 2.15651C18.6361 2.10471 18.5585 2.09608 18.4747 2.15219ZM19.34 1.18484C19.1872 1.08708 18.9498 0.973456 18.6438 0.961067C18.3205 0.947977 18.0424 1.05258 17.8314 1.19379L17.8268 1.19688C17.7929 1.21979 17.7598 1.24089 17.7123 1.2712C17.7016 1.27806 17.6901 1.28539 17.6777 1.29332C17.6188 1.33098 17.5421 1.38045 17.4614 1.43774C17.2467 1.58704 17.0473 1.7283 16.8525 1.86629C16.5827 2.05742 16.3218 2.24229 16.041 2.43364L16.0389 2.43506C15.4118 2.86449 14.7794 3.30798 14.1495 3.77986C14.1285 3.79346 14.0812 3.82451 14.0278 3.86694C13.8992 3.96902 13.7536 4.12153 13.6475 4.34275L13.6239 5.28701C13.6204 5.27863 13.6181 5.2724 13.6181 5.2724C13.6181 5.2724 13.62 5.27755 13.6245 5.29097L13.6265 5.29682C13.6301 5.30766 13.636 5.32501 13.6417 5.34135C13.6492 5.36281 13.659 5.39046 13.671 5.42135L13.6802 5.44446L14.0808 6.41559L14.0828 6.42036C14.0917 6.44182 14.1007 6.46328 14.1097 6.48474C14.1032 6.48458 14.0968 6.48447 14.0904 6.48431L14.0801 6.4842C11.7325 6.46089 9.39529 6.8344 7.19913 7.94694L7.19875 7.94714C4.41337 9.35935 1.59829 11.676 0.48606 14.9535M19.34 1.18484C19.5494 1.31845 19.7353 1.46635 19.888 1.59364C21.191 2.67348 22.4999 3.7445 23.8117 4.80241L23.8123 4.80284C24.3962 5.27432 24.9757 5.74498 25.5535 6.21425C26.5624 7.03358 27.5662 7.84876 28.5794 8.65712L28.5798 8.65743C30.1313 9.89612 31.6825 11.1579 33.2291 12.4158C34.2211 13.2227 35.2112 14.0279 36.1982 14.8246L36.2 14.826C36.8304 15.337 37.4613 15.8426 38.0956 16.3508C38.3258 16.5353 38.5565 16.7201 38.7876 16.9057C38.8065 16.9178 38.8312 16.9344 38.8589 16.9548C38.986 17.0487 39.35 17.3577 39.3596 17.9137C39.3638 18.1071 39.3234 18.322 39.2109 18.5287C39.0985 18.7355 38.9517 18.8636 38.8566 18.9335C38.8219 18.9588 38.7907 18.9791 38.7672 18.9937C37.7966 19.7488 36.827 20.5033 35.8604 21.2577L35.8578 21.2598C35.7379 21.3527 35.6215 21.4469 35.5102 21.5425C35.3248 21.7047 35.0888 21.8377 34.8055 21.8943C34.5213 21.9511 34.2631 21.9164 34.0567 21.8535C33.6339 21.7248 33.2108 21.5969 32.7919 21.4737C32.5865 21.4146 32.3802 21.3564 32.1727 21.2984C32.195 21.8518 32.1308 22.3843 32.0057 22.8983C31.8985 23.3448 31.7478 23.7495 31.58 24.122C31.1904 24.9958 30.6937 25.7341 30.1326 26.3768L30.1269 26.3833C29.7058 26.8582 29.2614 27.2796 28.7955 27.6608C28.7946 27.6616 28.7937 27.6623 28.7927 27.6631C28.5208 27.9541 28.2343 28.1655 28.0181 28.322L28.0135 28.3254C27.522 28.6777 26.9898 29.0557 26.4275 29.3872L26.4246 29.3889C25.484 29.9399 24.5201 30.3701 23.5515 30.7181L23.5509 30.7183C22.9445 30.9358 22.3246 31.1299 21.6902 31.284C21.2653 31.3887 20.8432 31.4681 20.4274 31.5323L20.4264 31.5325C19.847 31.6214 19.2773 31.6715 18.7305 31.7111C18.2996 31.7431 17.8686 31.7613 17.4375 31.7659C17.0826 31.7702 16.7258 31.7476 16.4214 31.7284C16.381 31.7258 16.3415 31.7233 16.3031 31.7209C16.0274 31.706 15.7544 31.6769 15.5176 31.6516C15.2106 31.6192 14.9043 31.5778 14.6068 31.5329L14.603 31.5323C14.3413 31.4919 14.0796 31.447 13.818 31.3977C13.3495 31.3153 12.8992 31.2015 12.4756 31.0873L12.4705 31.0859C11.651 30.8609 10.8517 30.5826 10.0647 30.2674L10.063 30.2668C8.99302 29.8365 7.96903 29.2803 6.98845 28.6375L6.93637 28.6034C6.47225 28.2994 5.9477 27.956 5.44372 27.5404C3.78024 26.1754 2.25514 24.5353 1.22206 22.5184L1.22032 22.5151C0.795584 21.6791 0.443441 20.7705 0.214697 19.7732C-0.155145 18.1635 -0.0359902 16.4876 0.48606 14.9535M28.8373 27.6141L28.8661 27.5808C28.8563 27.5928 28.8466 27.6039 28.8373 27.6141ZM38.8362 18.9395C38.8312 18.9436 38.8262 18.9476 38.8215 18.9514L38.8362 18.9395ZM38.7114 19.0265C38.7002 19.033 38.696 19.0349 38.7021 19.0315L38.706 19.0295L38.7114 19.0265ZM38.7383 16.8751C38.733 16.8719 38.7306 16.8704 38.7306 16.8704C38.7306 16.8704 38.7322 16.8716 38.7356 16.8735C38.7356 16.8735 38.7368 16.8743 38.7383 16.8751ZM37.5751 17.017C37.5877 17.0096 37.5905 17.0085 37.5761 17.0164L37.5751 17.017ZM37.5487 18.8535C37.5567 18.8584 37.5583 18.8592 37.5497 18.854L37.5487 18.8535ZM14.8461 14.7633L14.8396 14.7651C14.4325 14.8768 14.0689 14.9936 13.7281 15.1478C13.1656 15.4084 12.6511 15.7389 12.1864 16.1874L12.1791 16.1944C11.9395 16.4217 11.7323 16.6696 11.5622 16.96C11.3691 17.2909 11.2344 17.6147 11.1685 17.9786L11.1679 17.9818C11.1209 18.2375 11.1053 18.381 11.1136 18.5046L11.1137 18.5064C11.137 18.8642 11.2118 19.2084 11.329 19.546C11.3492 19.6033 11.3757 19.6634 11.4115 19.7314C11.4347 19.7742 11.4622 19.8204 11.5021 19.8854C11.5079 19.8948 11.514 19.9048 11.5206 19.9154C11.555 19.9714 11.5998 20.0441 11.6427 20.1185C11.7702 20.3339 11.9191 20.5287 12.0903 20.7181C12.5141 21.18 12.9381 21.5383 13.3784 21.797C13.39 21.8036 13.3981 21.8078 13.4131 21.8156C13.427 21.8229 13.447 21.8333 13.4813 21.8516C13.5382 21.882 13.6299 21.9321 13.7281 21.9999L13.7371 22.0062C13.809 22.0569 13.8928 22.1032 14.0107 22.1564C14.5751 22.41 15.1383 22.5887 15.7105 22.694C16.1011 22.7639 16.5063 22.7951 16.908 22.8114C17.2776 22.8096 17.7426 22.7602 18.1926 22.6864L18.1943 22.6861C18.5823 22.6231 18.9708 22.5168 19.3641 22.37L19.3667 22.369C19.4829 22.326 19.5705 22.2813 19.704 22.2132C19.7823 22.1733 19.8762 22.1254 20.0009 22.0651C20.4942 21.8227 20.9462 21.506 21.3579 21.0737L21.3602 21.0713C21.4647 20.9622 21.551 20.8632 21.6281 20.7595L21.6315 20.7549C21.6379 20.7465 21.646 20.7355 21.6557 20.7222C21.6965 20.6668 21.7655 20.5729 21.8483 20.4744C21.8766 20.4091 21.9055 20.3534 21.9312 20.3074C21.9558 20.2634 21.9795 20.2249 21.9922 20.2043L21.9924 20.2039C22.0085 20.1778 22.0115 20.173 22.0142 20.1683L22.0181 20.1616C22.0283 20.1443 22.0454 20.1111 22.0777 20.0422C22.1598 19.8653 22.2246 19.6502 22.2921 19.359L22.2925 19.357C22.3774 18.9937 22.384 18.6218 22.3147 18.2344C22.2134 17.6827 22.0102 17.2392 21.735 16.8738C21.3443 16.3591 20.9014 15.9599 20.4162 15.6424L20.4132 15.6404C19.9566 15.3394 19.4837 15.1128 18.9986 14.9539C18.6282 14.8345 18.3323 14.745 18.0497 14.6968C17.4166 14.5921 16.8012 14.5682 16.0887 14.5682C15.7191 14.5682 15.2705 14.6443 14.8461 14.7633ZM18.2412 13.559C18.6169 13.6228 18.9865 13.7376 19.356 13.8567C19.9411 14.0481 20.5077 14.3202 21.0497 14.6774C21.6409 15.0645 22.1829 15.5535 22.6572 16.1786C23.0452 16.6932 23.3193 17.3056 23.4517 18.0286C23.5471 18.5601 23.541 19.0917 23.4178 19.619C23.3439 19.938 23.2577 20.2442 23.1252 20.5291C23.0914 20.6014 23.0544 20.678 23.0144 20.746C23.0034 20.765 22.9921 20.7834 22.9808 20.8017C22.9417 20.8651 22.9035 20.9271 22.882 21.0097C22.8696 21.0564 22.8389 21.099 22.8081 21.133C22.7323 21.2097 22.6669 21.2978 22.6 21.388C22.5853 21.4078 22.5705 21.4277 22.5555 21.4477C22.4416 21.6008 22.3215 21.7369 22.1953 21.8687C21.681 22.4088 21.1144 22.8043 20.5077 23.102C20.4357 23.1367 20.3643 23.173 20.2929 23.2092C20.1199 23.2969 19.9474 23.3845 19.7686 23.4507C19.3129 23.6208 18.851 23.7484 18.3798 23.8249C17.8871 23.9057 17.3451 23.9653 16.8863 23.9653C16.4521 23.9483 15.9778 23.9142 15.5036 23.8292C14.8323 23.7059 14.1794 23.4975 13.5358 23.2083C13.3757 23.136 13.2217 23.0552 13.0709 22.9489C13.0148 22.9101 12.9547 22.8786 12.8951 22.8472C12.863 22.8304 12.8311 22.8136 12.7999 22.7958C12.2333 22.4641 11.719 22.0218 11.2355 21.4945C11.02 21.2563 10.8198 20.9969 10.6442 20.6992C10.6097 20.6391 10.5741 20.5813 10.5385 20.5234C10.4885 20.4421 10.4385 20.3609 10.3917 20.2739C10.3332 20.1634 10.2809 20.0486 10.2378 19.9252C10.09 19.5 9.99144 19.0535 9.96062 18.5814C9.94213 18.305 9.98219 18.0413 10.0315 17.7734C10.1269 17.2461 10.3209 16.7953 10.5642 16.3785C10.7982 15.9788 11.0785 15.6471 11.3833 15.3579C11.9561 14.805 12.5843 14.4053 13.2464 14.0991C13.6683 13.9077 14.0994 13.7716 14.5336 13.6526C15.0236 13.5151 15.5816 13.4144 16.0887 13.4144C16.8253 13.4144 17.5149 13.4386 18.2412 13.559Z",fill:"#FAFAFA"})]})}var ya={},Ah={};function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}function S9(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function QO(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ku(e,t)}function Iu(e){return Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Iu(e)}var ek=function(e){XO(r,e);var t=YO(r);function r(n){var a;return ZO(this,r),a=t.call(this,`Format functions must be synchronous taking a two arguments: (info, opts) Found: `.concat(n.toString().split(` `)[0],` `)),Error.captureStackTrace(I_(a),r),a}return GO(r)}(A4(Error)),In=function(e){if(e.length>2)throw new ek(e);function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=n}t.prototype.transform=e;function r(n){return new t(n)}return r.Format=t,r},R1={exports:{}},L_={exports:{}},N_={exports:{}},Te={},r0={};r0.byteLength=nk;r0.toByteArray=ak;r0.fromByteArray=sk;var Yi=[],zn=[],tk=typeof Uint8Array<"u"?Uint8Array:Array,n2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var If=0,rk=n2.length;If0)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 nk(e){var t=D_(e),r=t[0],n=t[1];return(r+n)*3/4-n}function ik(e,t,r){return(t+r)*3/4-r}function ak(e){var t,r=D_(e),n=r[0],a=r[1],i=new tk(ik(e,n,a)),f=0,l=a>0?n-4:n,c;for(c=0;c>16&255,i[f++]=t>>8&255,i[f++]=t&255;return a===2&&(t=zn[e.charCodeAt(c)]<<2|zn[e.charCodeAt(c+1)]>>4,i[f++]=t&255),a===1&&(t=zn[e.charCodeAt(c)]<<10|zn[e.charCodeAt(c+1)]<<4|zn[e.charCodeAt(c+2)]>>2,i[f++]=t>>8&255,i[f++]=t&255),i}function ok(e){return Yi[e>>18&63]+Yi[e>>12&63]+Yi[e>>6&63]+Yi[e&63]}function fk(e,t,r){for(var n,a=[],i=t;il?l:f+i));return n===1?(t=e[r-1],a.push(Yi[t>>2]+Yi[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Yi[t>>10]+Yi[t>>4&63]+Yi[t<<2&63]+"=")),a.join("")}var q8={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */q8.read=function(e,t,r,n,a){var i,f,l=a*8-n-1,c=(1<>1,g=-7,_=r?a-1:0,S=r?-1:1,M=e[t+_];for(_+=S,i=M&(1<<-g)-1,M>>=-g,g+=l;g>0;i=i*256+e[t+_],_+=S,g-=8);for(f=i&(1<<-g)-1,i>>=-g,g+=n;g>0;f=f*256+e[t+_],_+=S,g-=8);if(i===0)i=1-m;else{if(i===c)return f?NaN:(M?-1:1)*(1/0);f=f+Math.pow(2,n),i=i-m}return(M?-1:1)*f*Math.pow(2,i-n)};q8.write=function(e,t,r,n,a,i){var f,l,c,m=i*8-a-1,g=(1<>1,S=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=n?0:i-1,P=n?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,f=g):(f=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-f))<1&&(f--,c*=2),f+_>=1?t+=S/c:t+=S*Math.pow(2,1-_),t*c>=2&&(f++,c/=2),f+_>=g?(l=0,f=g):f+_>=1?(l=(t*c-1)*Math.pow(2,a),f=f+_):(l=t*Math.pow(2,_-1)*Math.pow(2,a),f=0));a>=8;e[r+M]=l&255,M+=P,l/=256,a-=8);for(f=f<0;e[r+M]=f&255,M+=P,f/=256,m-=8);e[r+M-P]|=I*128};/*! @@ -45,41 +45,41 @@ Found: `.concat(n.toString().split(` * * @author Feross Aboukhadijeh * @license MIT - */(function(e){var t=r0,r=q8,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=A,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=i(),!l.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 i(){try{var Y=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(Y,T),Y.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function f(Y){if(Y>a)throw new RangeError('The value "'+Y+'" is invalid for option "size"');var T=new Uint8Array(Y);return Object.setPrototypeOf(T,l.prototype),T}function l(Y,T,O){if(typeof Y=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(Y)}return c(Y,T,O)}l.poolSize=8192;function c(Y,T,O){if(typeof Y=="string")return S(Y,T);if(ArrayBuffer.isView(Y))return P(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(oe(Y,ArrayBuffer)||Y&&oe(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(Y,SharedArrayBuffer)||Y&&oe(Y.buffer,SharedArrayBuffer)))return I(Y,T,O);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var W=Y.valueOf&&Y.valueOf();if(W!=null&&W!==Y)return l.from(W,T,O);var ie=B(Y);if(ie)return ie;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return l.from(Y[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}l.from=function(Y,T,O){return c(Y,T,O)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function m(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function g(Y,T,O){return m(Y),Y<=0?f(Y):T!==void 0?typeof O=="string"?f(Y).fill(T,O):f(Y).fill(T):f(Y)}l.alloc=function(Y,T,O){return g(Y,T,O)};function _(Y){return m(Y),f(Y<0?0:R(Y)|0)}l.allocUnsafe=function(Y){return _(Y)},l.allocUnsafeSlow=function(Y){return _(Y)};function S(Y,T){if((typeof T!="string"||T==="")&&(T="utf8"),!l.isEncoding(T))throw new TypeError("Unknown encoding: "+T);var O=U(Y,T)|0,W=f(O),ie=W.write(Y,T);return ie!==O&&(W=W.slice(0,ie)),W}function M(Y){for(var T=Y.length<0?0:R(Y.length)|0,O=f(T),W=0;W=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return Y|0}function A(Y){return+Y!=Y&&(Y=0),l.alloc(+Y)}l.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==l.prototype},l.compare=function(T,O){if(oe(T,Uint8Array)&&(T=l.from(T,T.offset,T.byteLength)),oe(O,Uint8Array)&&(O=l.from(O,O.offset,O.byteLength)),!l.isBuffer(T)||!l.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;for(var W=T.length,ie=O.length,ue=0,we=Math.min(W,ie);ueie.length?l.from(we).copy(ie,ue):Uint8Array.prototype.set.call(ie,we,ue);else if(l.isBuffer(we))we.copy(ie,ue);else throw new TypeError('"list" argument must be an Array of Buffers');ue+=we.length}return ie};function U(Y,T){if(l.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||oe(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);var O=Y.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&O===0)return 0;for(var ie=!1;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return H(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return k(Y).length;default:if(ie)return W?-1:H(Y).length;T=(""+T).toLowerCase(),ie=!0}}l.byteLength=U;function V(Y,T,O){var W=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return w(this,T,O);case"utf8":case"utf-8":return o(this,T,O);case"ascii":return y(this,T,O);case"latin1":case"binary":return x(this,T,O);case"base64":return d(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,T,O);default:if(W)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),W=!0}}l.prototype._isBuffer=!0;function j(Y,T,O){var W=Y[T];Y[T]=Y[O],Y[O]=W}l.prototype.swap16=function(){var T=this.length;if(T%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var O=0;OO&&(T+=" ... "),""},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(T,O,W,ie,ue){if(oe(T,Uint8Array)&&(T=l.from(T,T.offset,T.byteLength)),!l.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),W===void 0&&(W=T?T.length:0),ie===void 0&&(ie=0),ue===void 0&&(ue=this.length),O<0||W>T.length||ie<0||ue>this.length)throw new RangeError("out of range index");if(ie>=ue&&O>=W)return 0;if(ie>=ue)return-1;if(O>=W)return 1;if(O>>>=0,W>>>=0,ie>>>=0,ue>>>=0,this===T)return 0;for(var we=ue-ie,_e=W-O,Z=Math.min(we,_e),le=this.slice(ie,ue),fe=T.slice(O,W),pe=0;pe2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,re(O)&&(O=ie?0:Y.length-1),O<0&&(O=Y.length+O),O>=Y.length){if(ie)return-1;O=Y.length-1}else if(O<0)if(ie)O=0;else return-1;if(typeof T=="string"&&(T=l.from(T,W)),l.isBuffer(T))return T.length===0?-1:K(Y,T,O,W,ie);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(Y,T,O):Uint8Array.prototype.lastIndexOf.call(Y,T,O):K(Y,[T],O,W,ie);throw new TypeError("val must be string, number or Buffer")}function K(Y,T,O,W,ie){var ue=1,we=Y.length,_e=T.length;if(W!==void 0&&(W=String(W).toLowerCase(),W==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(Y.length<2||T.length<2)return-1;ue=2,we/=2,_e/=2,O/=2}function Z(Me,Ee){return ue===1?Me[Ee]:Me.readUInt16BE(Ee*ue)}var le;if(ie){var fe=-1;for(le=O;lewe&&(O=we-_e),le=O;le>=0;le--){for(var pe=!0,Ce=0;Ce<_e;Ce++)if(Z(Y,le+Ce)!==Z(T,Ce)){pe=!1;break}if(pe)return le}return-1}l.prototype.includes=function(T,O,W){return this.indexOf(T,O,W)!==-1},l.prototype.indexOf=function(T,O,W){return N(this,T,O,W,!0)},l.prototype.lastIndexOf=function(T,O,W){return N(this,T,O,W,!1)};function J(Y,T,O,W){O=Number(O)||0;var ie=Y.length-O;W?(W=Number(W),W>ie&&(W=ie)):W=ie;var ue=T.length;W>ue/2&&(W=ue/2);for(var we=0;we>>0,isFinite(W)?(W=W>>>0,ie===void 0&&(ie="utf8")):(ie=W,W=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-O;if((W===void 0||W>ue)&&(W=ue),T.length>0&&(W<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");for(var we=!1;;)switch(ie){case"hex":return J(this,T,O,W);case"utf8":case"utf-8":return te(this,T,O,W);case"ascii":case"latin1":case"binary":return ee(this,T,O,W);case"base64":return G(this,T,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,T,O,W);default:if(we)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),we=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function d(Y,T,O){return T===0&&O===Y.length?t.fromByteArray(Y):t.fromByteArray(Y.slice(T,O))}function o(Y,T,O){O=Math.min(Y.length,O);for(var W=[],ie=T;ie239?4:ue>223?3:ue>191?2:1;if(ie+_e<=O){var Z,le,fe,pe;switch(_e){case 1:ue<128&&(we=ue);break;case 2:Z=Y[ie+1],(Z&192)===128&&(pe=(ue&31)<<6|Z&63,pe>127&&(we=pe));break;case 3:Z=Y[ie+1],le=Y[ie+2],(Z&192)===128&&(le&192)===128&&(pe=(ue&15)<<12|(Z&63)<<6|le&63,pe>2047&&(pe<55296||pe>57343)&&(we=pe));break;case 4:Z=Y[ie+1],le=Y[ie+2],fe=Y[ie+3],(Z&192)===128&&(le&192)===128&&(fe&192)===128&&(pe=(ue&15)<<18|(Z&63)<<12|(le&63)<<6|fe&63,pe>65535&&pe<1114112&&(we=pe))}}we===null?(we=65533,_e=1):we>65535&&(we-=65536,W.push(we>>>10&1023|55296),we=56320|we&1023),W.push(we),ie+=_e}return p(W)}var u=4096;function p(Y){var T=Y.length;if(T<=u)return String.fromCharCode.apply(String,Y);for(var O="",W=0;WW)&&(O=W);for(var ie="",ue=T;ueW&&(T=W),O<0?(O+=W,O<0&&(O=0)):O>W&&(O=W),OO)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(T,O,W){T=T>>>0,O=O>>>0,W||h(T,O,this.length);for(var ie=this[T],ue=1,we=0;++we>>0,O=O>>>0,W||h(T,O,this.length);for(var ie=this[T+--O],ue=1;O>0&&(ue*=256);)ie+=this[T+--O]*ue;return ie},l.prototype.readUint8=l.prototype.readUInt8=function(T,O){return T=T>>>0,O||h(T,1,this.length),this[T]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||h(T,2,this.length),this[T]|this[T+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||h(T,2,this.length),this[T]<<8|this[T+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||h(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||h(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},l.prototype.readIntLE=function(T,O,W){T=T>>>0,O=O>>>0,W||h(T,O,this.length);for(var ie=this[T],ue=1,we=0;++we=ue&&(ie-=Math.pow(2,8*O)),ie},l.prototype.readIntBE=function(T,O,W){T=T>>>0,O=O>>>0,W||h(T,O,this.length);for(var ie=O,ue=1,we=this[T+--ie];ie>0&&(ue*=256);)we+=this[T+--ie]*ue;return ue*=128,we>=ue&&(we-=Math.pow(2,8*O)),we},l.prototype.readInt8=function(T,O){return T=T>>>0,O||h(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},l.prototype.readInt16LE=function(T,O){T=T>>>0,O||h(T,2,this.length);var W=this[T]|this[T+1]<<8;return W&32768?W|4294901760:W},l.prototype.readInt16BE=function(T,O){T=T>>>0,O||h(T,2,this.length);var W=this[T+1]|this[T]<<8;return W&32768?W|4294901760:W},l.prototype.readInt32LE=function(T,O){return T=T>>>0,O||h(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},l.prototype.readInt32BE=function(T,O){return T=T>>>0,O||h(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},l.prototype.readFloatLE=function(T,O){return T=T>>>0,O||h(T,4,this.length),r.read(this,T,!0,23,4)},l.prototype.readFloatBE=function(T,O){return T=T>>>0,O||h(T,4,this.length),r.read(this,T,!1,23,4)},l.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||h(T,8,this.length),r.read(this,T,!0,52,8)},l.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||h(T,8,this.length),r.read(this,T,!1,52,8)};function s(Y,T,O,W,ie,ue){if(!l.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>ie||TY.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(T,O,W,ie){if(T=+T,O=O>>>0,W=W>>>0,!ie){var ue=Math.pow(2,8*W)-1;s(this,T,O,W,ue,0)}var we=1,_e=0;for(this[O]=T&255;++_e>>0,W=W>>>0,!ie){var ue=Math.pow(2,8*W)-1;s(this,T,O,W,ue,0)}var we=W-1,_e=1;for(this[O+we]=T&255;--we>=0&&(_e*=256);)this[O+we]=T/_e&255;return O+W},l.prototype.writeUint8=l.prototype.writeUInt8=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,1,255,0),this[O]=T&255,O+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},l.prototype.writeIntLE=function(T,O,W,ie){if(T=+T,O=O>>>0,!ie){var ue=Math.pow(2,8*W-1);s(this,T,O,W,ue-1,-ue)}var we=0,_e=1,Z=0;for(this[O]=T&255;++we>0)-Z&255;return O+W},l.prototype.writeIntBE=function(T,O,W,ie){if(T=+T,O=O>>>0,!ie){var ue=Math.pow(2,8*W-1);s(this,T,O,W,ue-1,-ue)}var we=W-1,_e=1,Z=0;for(this[O+we]=T&255;--we>=0&&(_e*=256);)T<0&&Z===0&&this[O+we+1]!==0&&(Z=1),this[O+we]=(T/_e>>0)-Z&255;return O+W},l.prototype.writeInt8=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},l.prototype.writeInt16LE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},l.prototype.writeInt16BE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},l.prototype.writeInt32LE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},l.prototype.writeInt32BE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function b(Y,T,O,W,ie,ue){if(O+W>Y.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function D(Y,T,O,W,ie){return T=+T,O=O>>>0,ie||b(Y,T,O,4),r.write(Y,T,O,W,23,4),O+4}l.prototype.writeFloatLE=function(T,O,W){return D(this,T,O,!0,W)},l.prototype.writeFloatBE=function(T,O,W){return D(this,T,O,!1,W)};function C(Y,T,O,W,ie){return T=+T,O=O>>>0,ie||b(Y,T,O,8),r.write(Y,T,O,W,52,8),O+8}l.prototype.writeDoubleLE=function(T,O,W){return C(this,T,O,!0,W)},l.prototype.writeDoubleBE=function(T,O,W){return C(this,T,O,!1,W)},l.prototype.copy=function(T,O,W,ie){if(!l.isBuffer(T))throw new TypeError("argument should be a Buffer");if(W||(W=0),!ie&&ie!==0&&(ie=this.length),O>=T.length&&(O=T.length),O||(O=0),ie>0&&ie=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),T.length-O>>0,W=W===void 0?this.length:W>>>0,T||(T=0);var we;if(typeof T=="number")for(we=O;we55295&&O<57344){if(!ie){if(O>56319){(T-=3)>-1&&ue.push(239,191,189);continue}else if(we+1===W){(T-=3)>-1&&ue.push(239,191,189);continue}ie=O;continue}if(O<56320){(T-=3)>-1&&ue.push(239,191,189),ie=O;continue}O=(ie-55296<<10|O-56320)+65536}else ie&&(T-=3)>-1&&ue.push(239,191,189);if(ie=null,O<128){if((T-=1)<0)break;ue.push(O)}else if(O<2048){if((T-=2)<0)break;ue.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;ue.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;ue.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return ue}function X(Y){for(var T=[],O=0;O>8,ie=O%256,ue.push(ie),ue.push(W);return ue}function k(Y){return t.toByteArray($(Y))}function L(Y,T,O,W){for(var ie=0;ie=T.length||ie>=Y.length);++ie)T[ie+O]=Y[ie];return ie}function oe(Y,T){return Y instanceof T||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===T.name}function re(Y){return Y!==Y}var se=function(){for(var Y="0123456789abcdef",T=new Array(256),O=0;O<16;++O)for(var W=O*16,ie=0;ie<16;++ie)T[W+ie]=Y[O]+Y[ie];return T}()})(Te);var F_={exports:{}},fr=F_.exports={},Gi,Wi;function R4(){throw new Error("setTimeout has not been defined")}function T4(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Gi=setTimeout:Gi=R4}catch{Gi=R4}try{typeof clearTimeout=="function"?Wi=clearTimeout:Wi=T4}catch{Wi=T4}})();function U_(e){if(Gi===setTimeout)return setTimeout(e,0);if((Gi===R4||!Gi)&&setTimeout)return Gi=setTimeout,setTimeout(e,0);try{return Gi(e,0)}catch{try{return Gi.call(null,e,0)}catch{return Gi.call(this,e,0)}}}function uk(e){if(Wi===clearTimeout)return clearTimeout(e);if((Wi===T4||!Wi)&&clearTimeout)return Wi=clearTimeout,clearTimeout(e);try{return Wi(e)}catch{try{return Wi.call(null,e)}catch{return Wi.call(this,e)}}}var wa=[],vs=!1,tf,Dc=-1;function lk(){!vs||!tf||(vs=!1,tf.length?wa=tf.concat(wa):Dc=-1,wa.length&&j_())}function j_(){if(!vs){var e=U_(lk);vs=!0;for(var t=wa.length;t;){for(tf=wa,wa=[];++Dc1)for(var r=1;r"u"||!wr?lt:wr(Uint8Array),sf={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":Bf&&wr?wr([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":Hf,"%AsyncGenerator%":Hf,"%AsyncGeneratorFunction%":Hf,"%AsyncIteratorPrototype%":Hf,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":$_,"%GeneratorFunction%":Hf,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bf&&wr?wr(wr([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Bf||!wr?lt:wr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Bf||!wr?lt:wr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bf&&wr?wr(""[Symbol.iterator]()):lt,"%Symbol%":Bf?Symbol:lt,"%SyntaxError%":Is,"%ThrowTypeError%":Pk,"%TypedArray%":kk,"%TypeError%":gs,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet};if(wr)try{null.error}catch(e){var Ik=wr(wr(e));sf["%Error.prototype%"]=Ik}var Bk=function e(t){var r;if(t==="%AsyncFunction%")r=i2("async function () {}");else if(t==="%GeneratorFunction%")r=i2("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=i2("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&wr&&(r=wr(a.prototype))}return sf[t]=r,r},A9={"%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"]},ul=H8,T1=Tk,Lk=ul.call(Function.call,Array.prototype.concat),Nk=ul.call(Function.apply,Array.prototype.splice),R9=ul.call(Function.call,String.prototype.replace),P1=ul.call(Function.call,String.prototype.slice),Dk=ul.call(Function.call,RegExp.prototype.exec),Fk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uk=/\\(\\)?/g,jk=function(t){var r=P1(t,0,1),n=P1(t,-1);if(r==="%"&&n!=="%")throw new Is("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Is("invalid intrinsic syntax, expected opening `%`");var a=[];return R9(t,Fk,function(i,f,l,c){a[a.length]=l?R9(c,Uk,"$1"):f||i}),a},qk=function(t,r){var n=t,a;if(T1(A9,n)&&(a=A9[n],n="%"+a[0]+"%"),T1(sf,n)){var i=sf[n];if(i===Hf&&(i=Bk(n)),typeof i>"u"&&!r)throw new gs("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new Is("intrinsic "+t+" does not exist!")},n0=function(t,r){if(typeof t!="string"||t.length===0)throw new gs("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new gs('"allowMissing" argument must be a boolean');if(Dk(/^%?[^%]*%?$/,t)===null)throw new Is("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=jk(t),a=n.length>0?n[0]:"",i=qk("%"+a+"%",r),f=i.name,l=i.value,c=!1,m=i.alias;m&&(a=m[0],Nk(n,Lk([0,1],m)));for(var g=1,_=!0;g=n.length){var I=ff(l,S);_=!!I,_&&"get"in I&&!("originalValue"in I.get)?l=I.get:l=l[S]}else _=T1(l,S),l=l[S];_&&!c&&(sf[f]=l)}}return l},H_={exports:{}},zk=n0,O4=zk("%Object.defineProperty%",!0),k4=function(){if(O4)try{return O4({},"a",{value:1}),!0}catch{return!1}return!1};k4.hasArrayLengthDefineBug=function(){if(!k4())return null;try{return O4([],"length",{value:1}).length!==1}catch{return!0}};var K8=k4,$k=n0,Fc=$k("%Object.getOwnPropertyDescriptor%",!0);if(Fc)try{Fc([],"length")}catch{Fc=null}var G8=Fc,Hk=K8(),W8=n0,uu=Hk&&W8("%Object.defineProperty%",!0);if(uu)try{uu({},"a",{value:1})}catch{uu=!1}var Kk=W8("%SyntaxError%"),Lf=W8("%TypeError%"),T9=G8,K_=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Lf("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Lf("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Lf("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Lf("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Lf("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Lf("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!T9&&T9(t,r);if(uu)uu(t,r,{configurable:f===null&&c?c.configurable:!f,enumerable:a===null&&c?c.enumerable:!a,value:n,writable:i===null&&c?c.writable:!i});else if(l||!a&&!i&&!f)t[r]=n;else throw new Kk("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},G_=n0,P9=K_,Gk=K8(),O9=G8,k9=G_("%TypeError%"),Wk=G_("%Math.floor%"),Vk=function(t,r){if(typeof t!="function")throw new k9("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Wk(r)!==r)throw new k9("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,i=!0;if("length"in t&&O9){var f=O9(t,"length");f&&!f.configurable&&(a=!1),f&&!f.writable&&(i=!1)}return(a||i||!n)&&(Gk?P9(t,"length",r,!0,!0):P9(t,"length",r)),t};(function(e){var t=H8,r=n0,n=Vk,a=r("%TypeError%"),i=r("%Function.prototype.apply%"),f=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(f,i),c=r("%Object.defineProperty%",!0),m=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(S){if(typeof S!="function")throw new a("a function is required");var M=l(t,f,arguments);return n(M,1+m(0,S.length-(arguments.length-1)),!0)};var g=function(){return l(t,i,arguments)};c?c(e.exports,"apply",{value:g}):e.exports.apply=g})(H_);var Rh=H_.exports,W_=n0,V_=Rh,Zk=V_(W_("String.prototype.indexOf")),Th=function(t,r){var n=W_(t,!!r);return typeof n=="function"&&Zk(t,".prototype.")>-1?V_(n):n},Xk=$8(),Yk=Th,I4=Yk("Object.prototype.toString"),Ph=function(t){return Xk&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:I4(t)==="[object Arguments]"},Z_=function(t){return Ph(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&I4(t)!=="[object Array]"&&I4(t.callee)==="[object Function]"},Jk=function(){return Ph(arguments)}();Ph.isLegacyArguments=Z_;var Qk=Jk?Ph:Z_,eI=Object.prototype.toString,tI=Function.prototype.toString,rI=/^\s*(?:function)?\*/,X_=$8(),o2=Object.getPrototypeOf,nI=function(){if(!X_)return!1;try{return Function("return function*() {}")()}catch{}},f2,iI=function(t){if(typeof t!="function")return!1;if(rI.test(tI.call(t)))return!0;if(!X_){var r=eI.call(t);return r==="[object GeneratorFunction]"}if(!o2)return!1;if(typeof f2>"u"){var n=nI();f2=n?o2(n):!1}return o2(t)===f2},Y_=Function.prototype.toString,is=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,B4,Uc;if(typeof is=="function"&&typeof Object.defineProperty=="function")try{B4=Object.defineProperty({},"length",{get:function(){throw Uc}}),Uc={},is(function(){throw 42},null,B4)}catch(e){e!==Uc&&(is=null)}else is=null;var aI=/^\s*class\b/,L4=function(t){try{var r=Y_.call(t);return aI.test(r)}catch{return!1}},s2=function(t){try{return L4(t)?!1:(Y_.call(t),!0)}catch{return!1}},jc=Object.prototype.toString,oI="[object Object]",fI="[object Function]",sI="[object GeneratorFunction]",uI="[object HTMLAllCollection]",lI="[object HTML document.all class]",cI="[object HTMLCollection]",hI=typeof Symbol=="function"&&!!Symbol.toStringTag,dI=!(0 in[,]),N4=function(){return!1};if(typeof document=="object"){var pI=document.all;jc.call(pI)===jc.call(document.all)&&(N4=function(t){if((dI||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=jc.call(t);return(r===uI||r===lI||r===cI||r===oI)&&t("")==null}catch{}return!1})}var vI=is?function(t){if(N4(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{is(t,null,B4)}catch(r){if(r!==Uc)return!1}return!L4(t)&&s2(t)}:function(t){if(N4(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(hI)return s2(t);if(L4(t))return!1;var r=jc.call(t);return r!==fI&&r!==sI&&!/^\[object HTML/.test(r)?!1:s2(t)},gI=vI,yI=Object.prototype.toString,J_=Object.prototype.hasOwnProperty,mI=function(t,r,n){for(var a=0,i=t.length;a=3&&(a=n),yI.call(t)==="[object Array]"?mI(t,r,a):typeof t=="string"?bI(t,r,a):xI(t,r,a)},_I=wI,u2=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],SI=typeof globalThis>"u"?Oe:globalThis,EI=function(){for(var t=[],r=0;r"u"?Oe:globalThis,D4=CI(),Z8=V8("String.prototype.slice"),l2=Object.getPrototypeOf,AI=V8("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:TI(t)}return qc?RI(t):null},PI=eS,OI=function(t){return!!PI(t)};(function(e){var t=Qk,r=iI,n=eS,a=OI;function i(W){return W.call.bind(W)}var f=typeof BigInt<"u",l=typeof Symbol<"u",c=i(Object.prototype.toString),m=i(Number.prototype.valueOf),g=i(String.prototype.valueOf),_=i(Boolean.prototype.valueOf);if(f)var S=i(BigInt.prototype.valueOf);if(l)var M=i(Symbol.prototype.valueOf);function P(W,ie){if(typeof W!="object")return!1;try{return ie(W),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function I(W){return typeof Promise<"u"&&W instanceof Promise||W!==null&&typeof W=="object"&&typeof W.then=="function"&&typeof W.catch=="function"}e.isPromise=I;function B(W){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(W):a(W)||b(W)}e.isArrayBufferView=B;function R(W){return n(W)==="Uint8Array"}e.isUint8Array=R;function A(W){return n(W)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function U(W){return n(W)==="Uint16Array"}e.isUint16Array=U;function V(W){return n(W)==="Uint32Array"}e.isUint32Array=V;function j(W){return n(W)==="Int8Array"}e.isInt8Array=j;function N(W){return n(W)==="Int16Array"}e.isInt16Array=N;function K(W){return n(W)==="Int32Array"}e.isInt32Array=K;function J(W){return n(W)==="Float32Array"}e.isFloat32Array=J;function te(W){return n(W)==="Float64Array"}e.isFloat64Array=te;function ee(W){return n(W)==="BigInt64Array"}e.isBigInt64Array=ee;function G(W){return n(W)==="BigUint64Array"}e.isBigUint64Array=G;function E(W){return c(W)==="[object Map]"}E.working=typeof Map<"u"&&E(new Map);function d(W){return typeof Map>"u"?!1:E.working?E(W):W instanceof Map}e.isMap=d;function o(W){return c(W)==="[object Set]"}o.working=typeof Set<"u"&&o(new Set);function u(W){return typeof Set>"u"?!1:o.working?o(W):W instanceof Set}e.isSet=u;function p(W){return c(W)==="[object WeakMap]"}p.working=typeof WeakMap<"u"&&p(new WeakMap);function y(W){return typeof WeakMap>"u"?!1:p.working?p(W):W instanceof WeakMap}e.isWeakMap=y;function x(W){return c(W)==="[object WeakSet]"}x.working=typeof WeakSet<"u"&&x(new WeakSet);function w(W){return x(W)}e.isWeakSet=w;function v(W){return c(W)==="[object ArrayBuffer]"}v.working=typeof ArrayBuffer<"u"&&v(new ArrayBuffer);function h(W){return typeof ArrayBuffer>"u"?!1:v.working?v(W):W instanceof ArrayBuffer}e.isArrayBuffer=h;function s(W){return c(W)==="[object DataView]"}s.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&s(new DataView(new ArrayBuffer(1),0,1));function b(W){return typeof DataView>"u"?!1:s.working?s(W):W instanceof DataView}e.isDataView=b;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function C(W){return c(W)==="[object SharedArrayBuffer]"}function F(W){return typeof D>"u"?!1:(typeof C.working>"u"&&(C.working=C(new D)),C.working?C(W):W instanceof D)}e.isSharedArrayBuffer=F;function $(W){return c(W)==="[object AsyncFunction]"}e.isAsyncFunction=$;function H(W){return c(W)==="[object Map Iterator]"}e.isMapIterator=H;function X(W){return c(W)==="[object Set Iterator]"}e.isSetIterator=X;function z(W){return c(W)==="[object Generator]"}e.isGeneratorObject=z;function k(W){return c(W)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=k;function L(W){return P(W,m)}e.isNumberObject=L;function oe(W){return P(W,g)}e.isStringObject=oe;function re(W){return P(W,_)}e.isBooleanObject=re;function se(W){return f&&P(W,S)}e.isBigIntObject=se;function Y(W){return l&&P(W,M)}e.isSymbolObject=Y;function T(W){return L(W)||oe(W)||re(W)||se(W)||Y(W)}e.isBoxedPrimitive=T;function O(W){return typeof Uint8Array<"u"&&(h(W)||F(W))}e.isAnyArrayBuffer=O,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(W){Object.defineProperty(e,W,{enumerable:!1,value:function(){throw new Error(W+" is not supported in userland")}})})})(z_);var kI=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},F4={exports:{}};typeof Object.create=="function"?F4.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:F4.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 ot=F4.exports;(function(e){var t={},r=Object.getOwnPropertyDescriptors||function(D){for(var C=Object.keys(D),F={},$=0;$=$)return z;switch(z){case"%s":return String(F[C++]);case"%d":return Number(F[C++]);case"%j":try{return JSON.stringify(F[C++])}catch{return"[Circular]"}default:return z}}),X=F[C];C<$;X=F[++C])U(X)||!ee(X)?H+=" "+X:H+=" "+l(X);return H},e.deprecate=function(b,D){if(typeof He<"u"&&He.noDeprecation===!0)return b;if(typeof He>"u")return function(){return e.deprecate(b,D).apply(this,arguments)};var C=!1;function F(){if(!C){if(He.throwDeprecation)throw new Error(D);He.traceDeprecation?console.trace(D):console.error(D),C=!0}return b.apply(this,arguments)}return F};var a={},i=/^$/;if(t.NODE_DEBUG){var f=t.NODE_DEBUG;f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+f+"$","i")}e.debuglog=function(b){if(b=b.toUpperCase(),!a[b])if(i.test(b)){var D=He.pid;a[b]=function(){var C=e.format.apply(e,arguments);console.error("%s %d: %s",b,D,C)}}else a[b]=function(){};return a[b]};function l(b,D){var C={seen:[],stylize:m};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),A(D)?C.showHidden=D:D&&e._extend(C,D),J(C.showHidden)&&(C.showHidden=!1),J(C.depth)&&(C.depth=2),J(C.colors)&&(C.colors=!1),J(C.customInspect)&&(C.customInspect=!0),C.colors&&(C.stylize=c),_(C,b,C.depth)}e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(b,D){var C=l.styles[D];return C?"\x1B["+l.colors[C][0]+"m"+b+"\x1B["+l.colors[C][1]+"m":b}function m(b,D){return b}function g(b){var D={};return b.forEach(function(C,F){D[C]=!0}),D}function _(b,D,C){if(b.customInspect&&D&&d(D.inspect)&&D.inspect!==e.inspect&&!(D.constructor&&D.constructor.prototype===D)){var F=D.inspect(C,b);return N(F)||(F=_(b,F,C)),F}var $=S(b,D);if($)return $;var H=Object.keys(D),X=g(H);if(b.showHidden&&(H=Object.getOwnPropertyNames(D)),E(D)&&(H.indexOf("message")>=0||H.indexOf("description")>=0))return M(D);if(H.length===0){if(d(D)){var z=D.name?": "+D.name:"";return b.stylize("[Function"+z+"]","special")}if(te(D))return b.stylize(RegExp.prototype.toString.call(D),"regexp");if(G(D))return b.stylize(Date.prototype.toString.call(D),"date");if(E(D))return M(D)}var k="",L=!1,oe=["{","}"];if(R(D)&&(L=!0,oe=["[","]"]),d(D)){var re=D.name?": "+D.name:"";k=" [Function"+re+"]"}if(te(D)&&(k=" "+RegExp.prototype.toString.call(D)),G(D)&&(k=" "+Date.prototype.toUTCString.call(D)),E(D)&&(k=" "+M(D)),H.length===0&&(!L||D.length==0))return oe[0]+k+oe[1];if(C<0)return te(D)?b.stylize(RegExp.prototype.toString.call(D),"regexp"):b.stylize("[Object]","special");b.seen.push(D);var se;return L?se=P(b,D,C,X,H):se=H.map(function(Y){return I(b,D,C,X,Y,L)}),b.seen.pop(),B(se,k,oe)}function S(b,D){if(J(D))return b.stylize("undefined","undefined");if(N(D)){var C="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return b.stylize(C,"string")}if(j(D))return b.stylize(""+D,"number");if(A(D))return b.stylize(""+D,"boolean");if(U(D))return b.stylize("null","null")}function M(b){return"["+Error.prototype.toString.call(b)+"]"}function P(b,D,C,F,$){for(var H=[],X=0,z=D.length;Xa)throw new RangeError('The value "'+Y+'" is invalid for option "size"');var T=new Uint8Array(Y);return Object.setPrototypeOf(T,l.prototype),T}function l(Y,T,O){if(typeof Y=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(Y)}return c(Y,T,O)}l.poolSize=8192;function c(Y,T,O){if(typeof Y=="string")return S(Y,T);if(ArrayBuffer.isView(Y))return P(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(oe(Y,ArrayBuffer)||Y&&oe(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(Y,SharedArrayBuffer)||Y&&oe(Y.buffer,SharedArrayBuffer)))return I(Y,T,O);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var W=Y.valueOf&&Y.valueOf();if(W!=null&&W!==Y)return l.from(W,T,O);var ie=B(Y);if(ie)return ie;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return l.from(Y[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}l.from=function(Y,T,O){return c(Y,T,O)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function m(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function g(Y,T,O){return m(Y),Y<=0?f(Y):T!==void 0?typeof O=="string"?f(Y).fill(T,O):f(Y).fill(T):f(Y)}l.alloc=function(Y,T,O){return g(Y,T,O)};function _(Y){return m(Y),f(Y<0?0:R(Y)|0)}l.allocUnsafe=function(Y){return _(Y)},l.allocUnsafeSlow=function(Y){return _(Y)};function S(Y,T){if((typeof T!="string"||T==="")&&(T="utf8"),!l.isEncoding(T))throw new TypeError("Unknown encoding: "+T);var O=F(Y,T)|0,W=f(O),ie=W.write(Y,T);return ie!==O&&(W=W.slice(0,ie)),W}function M(Y){for(var T=Y.length<0?0:R(Y.length)|0,O=f(T),W=0;W=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return Y|0}function A(Y){return+Y!=Y&&(Y=0),l.alloc(+Y)}l.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==l.prototype},l.compare=function(T,O){if(oe(T,Uint8Array)&&(T=l.from(T,T.offset,T.byteLength)),oe(O,Uint8Array)&&(O=l.from(O,O.offset,O.byteLength)),!l.isBuffer(T)||!l.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;for(var W=T.length,ie=O.length,ue=0,we=Math.min(W,ie);ueie.length?l.from(we).copy(ie,ue):Uint8Array.prototype.set.call(ie,we,ue);else if(l.isBuffer(we))we.copy(ie,ue);else throw new TypeError('"list" argument must be an Array of Buffers');ue+=we.length}return ie};function F(Y,T){if(l.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||oe(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);var O=Y.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&O===0)return 0;for(var ie=!1;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return H(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return k(Y).length;default:if(ie)return W?-1:H(Y).length;T=(""+T).toLowerCase(),ie=!0}}l.byteLength=F;function V(Y,T,O){var W=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return w(this,T,O);case"utf8":case"utf-8":return o(this,T,O);case"ascii":return y(this,T,O);case"latin1":case"binary":return x(this,T,O);case"base64":return d(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,T,O);default:if(W)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),W=!0}}l.prototype._isBuffer=!0;function j(Y,T,O){var W=Y[T];Y[T]=Y[O],Y[O]=W}l.prototype.swap16=function(){var T=this.length;if(T%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var O=0;OO&&(T+=" ... "),""},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(T,O,W,ie,ue){if(oe(T,Uint8Array)&&(T=l.from(T,T.offset,T.byteLength)),!l.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),W===void 0&&(W=T?T.length:0),ie===void 0&&(ie=0),ue===void 0&&(ue=this.length),O<0||W>T.length||ie<0||ue>this.length)throw new RangeError("out of range index");if(ie>=ue&&O>=W)return 0;if(ie>=ue)return-1;if(O>=W)return 1;if(O>>>=0,W>>>=0,ie>>>=0,ue>>>=0,this===T)return 0;for(var we=ue-ie,_e=W-O,Z=Math.min(we,_e),le=this.slice(ie,ue),fe=T.slice(O,W),pe=0;pe2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,re(O)&&(O=ie?0:Y.length-1),O<0&&(O=Y.length+O),O>=Y.length){if(ie)return-1;O=Y.length-1}else if(O<0)if(ie)O=0;else return-1;if(typeof T=="string"&&(T=l.from(T,W)),l.isBuffer(T))return T.length===0?-1:K(Y,T,O,W,ie);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(Y,T,O):Uint8Array.prototype.lastIndexOf.call(Y,T,O):K(Y,[T],O,W,ie);throw new TypeError("val must be string, number or Buffer")}function K(Y,T,O,W,ie){var ue=1,we=Y.length,_e=T.length;if(W!==void 0&&(W=String(W).toLowerCase(),W==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(Y.length<2||T.length<2)return-1;ue=2,we/=2,_e/=2,O/=2}function Z(Me,Ee){return ue===1?Me[Ee]:Me.readUInt16BE(Ee*ue)}var le;if(ie){var fe=-1;for(le=O;lewe&&(O=we-_e),le=O;le>=0;le--){for(var pe=!0,Ce=0;Ce<_e;Ce++)if(Z(Y,le+Ce)!==Z(T,Ce)){pe=!1;break}if(pe)return le}return-1}l.prototype.includes=function(T,O,W){return this.indexOf(T,O,W)!==-1},l.prototype.indexOf=function(T,O,W){return N(this,T,O,W,!0)},l.prototype.lastIndexOf=function(T,O,W){return N(this,T,O,W,!1)};function J(Y,T,O,W){O=Number(O)||0;var ie=Y.length-O;W?(W=Number(W),W>ie&&(W=ie)):W=ie;var ue=T.length;W>ue/2&&(W=ue/2);for(var we=0;we>>0,isFinite(W)?(W=W>>>0,ie===void 0&&(ie="utf8")):(ie=W,W=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-O;if((W===void 0||W>ue)&&(W=ue),T.length>0&&(W<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");for(var we=!1;;)switch(ie){case"hex":return J(this,T,O,W);case"utf8":case"utf-8":return te(this,T,O,W);case"ascii":case"latin1":case"binary":return ee(this,T,O,W);case"base64":return G(this,T,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,T,O,W);default:if(we)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),we=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function d(Y,T,O){return T===0&&O===Y.length?t.fromByteArray(Y):t.fromByteArray(Y.slice(T,O))}function o(Y,T,O){O=Math.min(Y.length,O);for(var W=[],ie=T;ie239?4:ue>223?3:ue>191?2:1;if(ie+_e<=O){var Z,le,fe,pe;switch(_e){case 1:ue<128&&(we=ue);break;case 2:Z=Y[ie+1],(Z&192)===128&&(pe=(ue&31)<<6|Z&63,pe>127&&(we=pe));break;case 3:Z=Y[ie+1],le=Y[ie+2],(Z&192)===128&&(le&192)===128&&(pe=(ue&15)<<12|(Z&63)<<6|le&63,pe>2047&&(pe<55296||pe>57343)&&(we=pe));break;case 4:Z=Y[ie+1],le=Y[ie+2],fe=Y[ie+3],(Z&192)===128&&(le&192)===128&&(fe&192)===128&&(pe=(ue&15)<<18|(Z&63)<<12|(le&63)<<6|fe&63,pe>65535&&pe<1114112&&(we=pe))}}we===null?(we=65533,_e=1):we>65535&&(we-=65536,W.push(we>>>10&1023|55296),we=56320|we&1023),W.push(we),ie+=_e}return p(W)}var u=4096;function p(Y){var T=Y.length;if(T<=u)return String.fromCharCode.apply(String,Y);for(var O="",W=0;WW)&&(O=W);for(var ie="",ue=T;ueW&&(T=W),O<0?(O+=W,O<0&&(O=0)):O>W&&(O=W),OO)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(T,O,W){T=T>>>0,O=O>>>0,W||h(T,O,this.length);for(var ie=this[T],ue=1,we=0;++we>>0,O=O>>>0,W||h(T,O,this.length);for(var ie=this[T+--O],ue=1;O>0&&(ue*=256);)ie+=this[T+--O]*ue;return ie},l.prototype.readUint8=l.prototype.readUInt8=function(T,O){return T=T>>>0,O||h(T,1,this.length),this[T]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||h(T,2,this.length),this[T]|this[T+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||h(T,2,this.length),this[T]<<8|this[T+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||h(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||h(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},l.prototype.readIntLE=function(T,O,W){T=T>>>0,O=O>>>0,W||h(T,O,this.length);for(var ie=this[T],ue=1,we=0;++we=ue&&(ie-=Math.pow(2,8*O)),ie},l.prototype.readIntBE=function(T,O,W){T=T>>>0,O=O>>>0,W||h(T,O,this.length);for(var ie=O,ue=1,we=this[T+--ie];ie>0&&(ue*=256);)we+=this[T+--ie]*ue;return ue*=128,we>=ue&&(we-=Math.pow(2,8*O)),we},l.prototype.readInt8=function(T,O){return T=T>>>0,O||h(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},l.prototype.readInt16LE=function(T,O){T=T>>>0,O||h(T,2,this.length);var W=this[T]|this[T+1]<<8;return W&32768?W|4294901760:W},l.prototype.readInt16BE=function(T,O){T=T>>>0,O||h(T,2,this.length);var W=this[T+1]|this[T]<<8;return W&32768?W|4294901760:W},l.prototype.readInt32LE=function(T,O){return T=T>>>0,O||h(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},l.prototype.readInt32BE=function(T,O){return T=T>>>0,O||h(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},l.prototype.readFloatLE=function(T,O){return T=T>>>0,O||h(T,4,this.length),r.read(this,T,!0,23,4)},l.prototype.readFloatBE=function(T,O){return T=T>>>0,O||h(T,4,this.length),r.read(this,T,!1,23,4)},l.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||h(T,8,this.length),r.read(this,T,!0,52,8)},l.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||h(T,8,this.length),r.read(this,T,!1,52,8)};function s(Y,T,O,W,ie,ue){if(!l.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>ie||TY.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(T,O,W,ie){if(T=+T,O=O>>>0,W=W>>>0,!ie){var ue=Math.pow(2,8*W)-1;s(this,T,O,W,ue,0)}var we=1,_e=0;for(this[O]=T&255;++_e>>0,W=W>>>0,!ie){var ue=Math.pow(2,8*W)-1;s(this,T,O,W,ue,0)}var we=W-1,_e=1;for(this[O+we]=T&255;--we>=0&&(_e*=256);)this[O+we]=T/_e&255;return O+W},l.prototype.writeUint8=l.prototype.writeUInt8=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,1,255,0),this[O]=T&255,O+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},l.prototype.writeIntLE=function(T,O,W,ie){if(T=+T,O=O>>>0,!ie){var ue=Math.pow(2,8*W-1);s(this,T,O,W,ue-1,-ue)}var we=0,_e=1,Z=0;for(this[O]=T&255;++we>0)-Z&255;return O+W},l.prototype.writeIntBE=function(T,O,W,ie){if(T=+T,O=O>>>0,!ie){var ue=Math.pow(2,8*W-1);s(this,T,O,W,ue-1,-ue)}var we=W-1,_e=1,Z=0;for(this[O+we]=T&255;--we>=0&&(_e*=256);)T<0&&Z===0&&this[O+we+1]!==0&&(Z=1),this[O+we]=(T/_e>>0)-Z&255;return O+W},l.prototype.writeInt8=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},l.prototype.writeInt16LE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},l.prototype.writeInt16BE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},l.prototype.writeInt32LE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},l.prototype.writeInt32BE=function(T,O,W){return T=+T,O=O>>>0,W||s(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function b(Y,T,O,W,ie,ue){if(O+W>Y.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function D(Y,T,O,W,ie){return T=+T,O=O>>>0,ie||b(Y,T,O,4),r.write(Y,T,O,W,23,4),O+4}l.prototype.writeFloatLE=function(T,O,W){return D(this,T,O,!0,W)},l.prototype.writeFloatBE=function(T,O,W){return D(this,T,O,!1,W)};function C(Y,T,O,W,ie){return T=+T,O=O>>>0,ie||b(Y,T,O,8),r.write(Y,T,O,W,52,8),O+8}l.prototype.writeDoubleLE=function(T,O,W){return C(this,T,O,!0,W)},l.prototype.writeDoubleBE=function(T,O,W){return C(this,T,O,!1,W)},l.prototype.copy=function(T,O,W,ie){if(!l.isBuffer(T))throw new TypeError("argument should be a Buffer");if(W||(W=0),!ie&&ie!==0&&(ie=this.length),O>=T.length&&(O=T.length),O||(O=0),ie>0&&ie=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),T.length-O>>0,W=W===void 0?this.length:W>>>0,T||(T=0);var we;if(typeof T=="number")for(we=O;we55295&&O<57344){if(!ie){if(O>56319){(T-=3)>-1&&ue.push(239,191,189);continue}else if(we+1===W){(T-=3)>-1&&ue.push(239,191,189);continue}ie=O;continue}if(O<56320){(T-=3)>-1&&ue.push(239,191,189),ie=O;continue}O=(ie-55296<<10|O-56320)+65536}else ie&&(T-=3)>-1&&ue.push(239,191,189);if(ie=null,O<128){if((T-=1)<0)break;ue.push(O)}else if(O<2048){if((T-=2)<0)break;ue.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;ue.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;ue.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return ue}function X(Y){for(var T=[],O=0;O>8,ie=O%256,ue.push(ie),ue.push(W);return ue}function k(Y){return t.toByteArray($(Y))}function L(Y,T,O,W){for(var ie=0;ie=T.length||ie>=Y.length);++ie)T[ie+O]=Y[ie];return ie}function oe(Y,T){return Y instanceof T||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===T.name}function re(Y){return Y!==Y}var se=function(){for(var Y="0123456789abcdef",T=new Array(256),O=0;O<16;++O)for(var W=O*16,ie=0;ie<16;++ie)T[W+ie]=Y[O]+Y[ie];return T}()})(Te);var F_={exports:{}},fr=F_.exports={},Gi,Wi;function R4(){throw new Error("setTimeout has not been defined")}function T4(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Gi=setTimeout:Gi=R4}catch{Gi=R4}try{typeof clearTimeout=="function"?Wi=clearTimeout:Wi=T4}catch{Wi=T4}})();function U_(e){if(Gi===setTimeout)return setTimeout(e,0);if((Gi===R4||!Gi)&&setTimeout)return Gi=setTimeout,setTimeout(e,0);try{return Gi(e,0)}catch{try{return Gi.call(null,e,0)}catch{return Gi.call(this,e,0)}}}function uk(e){if(Wi===clearTimeout)return clearTimeout(e);if((Wi===T4||!Wi)&&clearTimeout)return Wi=clearTimeout,clearTimeout(e);try{return Wi(e)}catch{try{return Wi.call(null,e)}catch{return Wi.call(this,e)}}}var wa=[],vs=!1,tf,Dc=-1;function lk(){!vs||!tf||(vs=!1,tf.length?wa=tf.concat(wa):Dc=-1,wa.length&&j_())}function j_(){if(!vs){var e=U_(lk);vs=!0;for(var t=wa.length;t;){for(tf=wa,wa=[];++Dc1)for(var r=1;r"u"||!wr?lt:wr(Uint8Array),sf={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":Bf&&wr?wr([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":Hf,"%AsyncGenerator%":Hf,"%AsyncGeneratorFunction%":Hf,"%AsyncIteratorPrototype%":Hf,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":$_,"%GeneratorFunction%":Hf,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bf&&wr?wr(wr([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Bf||!wr?lt:wr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Bf||!wr?lt:wr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bf&&wr?wr(""[Symbol.iterator]()):lt,"%Symbol%":Bf?Symbol:lt,"%SyntaxError%":Is,"%ThrowTypeError%":Pk,"%TypedArray%":kk,"%TypeError%":gs,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet};if(wr)try{null.error}catch(e){var Ik=wr(wr(e));sf["%Error.prototype%"]=Ik}var Bk=function e(t){var r;if(t==="%AsyncFunction%")r=i2("async function () {}");else if(t==="%GeneratorFunction%")r=i2("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=i2("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&wr&&(r=wr(a.prototype))}return sf[t]=r,r},A9={"%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"]},ul=H8,T1=Tk,Lk=ul.call(Function.call,Array.prototype.concat),Nk=ul.call(Function.apply,Array.prototype.splice),R9=ul.call(Function.call,String.prototype.replace),P1=ul.call(Function.call,String.prototype.slice),Dk=ul.call(Function.call,RegExp.prototype.exec),Fk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uk=/\\(\\)?/g,jk=function(t){var r=P1(t,0,1),n=P1(t,-1);if(r==="%"&&n!=="%")throw new Is("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Is("invalid intrinsic syntax, expected opening `%`");var a=[];return R9(t,Fk,function(i,f,l,c){a[a.length]=l?R9(c,Uk,"$1"):f||i}),a},qk=function(t,r){var n=t,a;if(T1(A9,n)&&(a=A9[n],n="%"+a[0]+"%"),T1(sf,n)){var i=sf[n];if(i===Hf&&(i=Bk(n)),typeof i>"u"&&!r)throw new gs("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new Is("intrinsic "+t+" does not exist!")},n0=function(t,r){if(typeof t!="string"||t.length===0)throw new gs("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new gs('"allowMissing" argument must be a boolean');if(Dk(/^%?[^%]*%?$/,t)===null)throw new Is("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=jk(t),a=n.length>0?n[0]:"",i=qk("%"+a+"%",r),f=i.name,l=i.value,c=!1,m=i.alias;m&&(a=m[0],Nk(n,Lk([0,1],m)));for(var g=1,_=!0;g=n.length){var I=ff(l,S);_=!!I,_&&"get"in I&&!("originalValue"in I.get)?l=I.get:l=l[S]}else _=T1(l,S),l=l[S];_&&!c&&(sf[f]=l)}}return l},H_={exports:{}},zk=n0,O4=zk("%Object.defineProperty%",!0),k4=function(){if(O4)try{return O4({},"a",{value:1}),!0}catch{return!1}return!1};k4.hasArrayLengthDefineBug=function(){if(!k4())return null;try{return O4([],"length",{value:1}).length!==1}catch{return!0}};var K8=k4,$k=n0,Fc=$k("%Object.getOwnPropertyDescriptor%",!0);if(Fc)try{Fc([],"length")}catch{Fc=null}var G8=Fc,Hk=K8(),W8=n0,uu=Hk&&W8("%Object.defineProperty%",!0);if(uu)try{uu({},"a",{value:1})}catch{uu=!1}var Kk=W8("%SyntaxError%"),Lf=W8("%TypeError%"),T9=G8,K_=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Lf("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Lf("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Lf("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Lf("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Lf("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Lf("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!T9&&T9(t,r);if(uu)uu(t,r,{configurable:f===null&&c?c.configurable:!f,enumerable:a===null&&c?c.enumerable:!a,value:n,writable:i===null&&c?c.writable:!i});else if(l||!a&&!i&&!f)t[r]=n;else throw new Kk("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},G_=n0,P9=K_,Gk=K8(),O9=G8,k9=G_("%TypeError%"),Wk=G_("%Math.floor%"),Vk=function(t,r){if(typeof t!="function")throw new k9("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Wk(r)!==r)throw new k9("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,i=!0;if("length"in t&&O9){var f=O9(t,"length");f&&!f.configurable&&(a=!1),f&&!f.writable&&(i=!1)}return(a||i||!n)&&(Gk?P9(t,"length",r,!0,!0):P9(t,"length",r)),t};(function(e){var t=H8,r=n0,n=Vk,a=r("%TypeError%"),i=r("%Function.prototype.apply%"),f=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(f,i),c=r("%Object.defineProperty%",!0),m=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(S){if(typeof S!="function")throw new a("a function is required");var M=l(t,f,arguments);return n(M,1+m(0,S.length-(arguments.length-1)),!0)};var g=function(){return l(t,i,arguments)};c?c(e.exports,"apply",{value:g}):e.exports.apply=g})(H_);var Rh=H_.exports,W_=n0,V_=Rh,Zk=V_(W_("String.prototype.indexOf")),Th=function(t,r){var n=W_(t,!!r);return typeof n=="function"&&Zk(t,".prototype.")>-1?V_(n):n},Xk=$8(),Yk=Th,I4=Yk("Object.prototype.toString"),Ph=function(t){return Xk&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:I4(t)==="[object Arguments]"},Z_=function(t){return Ph(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&I4(t)!=="[object Array]"&&I4(t.callee)==="[object Function]"},Jk=function(){return Ph(arguments)}();Ph.isLegacyArguments=Z_;var Qk=Jk?Ph:Z_,eI=Object.prototype.toString,tI=Function.prototype.toString,rI=/^\s*(?:function)?\*/,X_=$8(),o2=Object.getPrototypeOf,nI=function(){if(!X_)return!1;try{return Function("return function*() {}")()}catch{}},f2,iI=function(t){if(typeof t!="function")return!1;if(rI.test(tI.call(t)))return!0;if(!X_){var r=eI.call(t);return r==="[object GeneratorFunction]"}if(!o2)return!1;if(typeof f2>"u"){var n=nI();f2=n?o2(n):!1}return o2(t)===f2},Y_=Function.prototype.toString,is=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,B4,Uc;if(typeof is=="function"&&typeof Object.defineProperty=="function")try{B4=Object.defineProperty({},"length",{get:function(){throw Uc}}),Uc={},is(function(){throw 42},null,B4)}catch(e){e!==Uc&&(is=null)}else is=null;var aI=/^\s*class\b/,L4=function(t){try{var r=Y_.call(t);return aI.test(r)}catch{return!1}},s2=function(t){try{return L4(t)?!1:(Y_.call(t),!0)}catch{return!1}},jc=Object.prototype.toString,oI="[object Object]",fI="[object Function]",sI="[object GeneratorFunction]",uI="[object HTMLAllCollection]",lI="[object HTML document.all class]",cI="[object HTMLCollection]",hI=typeof Symbol=="function"&&!!Symbol.toStringTag,dI=!(0 in[,]),N4=function(){return!1};if(typeof document=="object"){var pI=document.all;jc.call(pI)===jc.call(document.all)&&(N4=function(t){if((dI||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=jc.call(t);return(r===uI||r===lI||r===cI||r===oI)&&t("")==null}catch{}return!1})}var vI=is?function(t){if(N4(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{is(t,null,B4)}catch(r){if(r!==Uc)return!1}return!L4(t)&&s2(t)}:function(t){if(N4(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(hI)return s2(t);if(L4(t))return!1;var r=jc.call(t);return r!==fI&&r!==sI&&!/^\[object HTML/.test(r)?!1:s2(t)},gI=vI,yI=Object.prototype.toString,J_=Object.prototype.hasOwnProperty,mI=function(t,r,n){for(var a=0,i=t.length;a=3&&(a=n),yI.call(t)==="[object Array]"?mI(t,r,a):typeof t=="string"?bI(t,r,a):xI(t,r,a)},_I=wI,u2=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],SI=typeof globalThis>"u"?Oe:globalThis,EI=function(){for(var t=[],r=0;r"u"?Oe:globalThis,D4=CI(),Z8=V8("String.prototype.slice"),l2=Object.getPrototypeOf,AI=V8("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:TI(t)}return qc?RI(t):null},PI=eS,OI=function(t){return!!PI(t)};(function(e){var t=Qk,r=iI,n=eS,a=OI;function i(W){return W.call.bind(W)}var f=typeof BigInt<"u",l=typeof Symbol<"u",c=i(Object.prototype.toString),m=i(Number.prototype.valueOf),g=i(String.prototype.valueOf),_=i(Boolean.prototype.valueOf);if(f)var S=i(BigInt.prototype.valueOf);if(l)var M=i(Symbol.prototype.valueOf);function P(W,ie){if(typeof W!="object")return!1;try{return ie(W),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function I(W){return typeof Promise<"u"&&W instanceof Promise||W!==null&&typeof W=="object"&&typeof W.then=="function"&&typeof W.catch=="function"}e.isPromise=I;function B(W){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(W):a(W)||b(W)}e.isArrayBufferView=B;function R(W){return n(W)==="Uint8Array"}e.isUint8Array=R;function A(W){return n(W)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function F(W){return n(W)==="Uint16Array"}e.isUint16Array=F;function V(W){return n(W)==="Uint32Array"}e.isUint32Array=V;function j(W){return n(W)==="Int8Array"}e.isInt8Array=j;function N(W){return n(W)==="Int16Array"}e.isInt16Array=N;function K(W){return n(W)==="Int32Array"}e.isInt32Array=K;function J(W){return n(W)==="Float32Array"}e.isFloat32Array=J;function te(W){return n(W)==="Float64Array"}e.isFloat64Array=te;function ee(W){return n(W)==="BigInt64Array"}e.isBigInt64Array=ee;function G(W){return n(W)==="BigUint64Array"}e.isBigUint64Array=G;function E(W){return c(W)==="[object Map]"}E.working=typeof Map<"u"&&E(new Map);function d(W){return typeof Map>"u"?!1:E.working?E(W):W instanceof Map}e.isMap=d;function o(W){return c(W)==="[object Set]"}o.working=typeof Set<"u"&&o(new Set);function u(W){return typeof Set>"u"?!1:o.working?o(W):W instanceof Set}e.isSet=u;function p(W){return c(W)==="[object WeakMap]"}p.working=typeof WeakMap<"u"&&p(new WeakMap);function y(W){return typeof WeakMap>"u"?!1:p.working?p(W):W instanceof WeakMap}e.isWeakMap=y;function x(W){return c(W)==="[object WeakSet]"}x.working=typeof WeakSet<"u"&&x(new WeakSet);function w(W){return x(W)}e.isWeakSet=w;function v(W){return c(W)==="[object ArrayBuffer]"}v.working=typeof ArrayBuffer<"u"&&v(new ArrayBuffer);function h(W){return typeof ArrayBuffer>"u"?!1:v.working?v(W):W instanceof ArrayBuffer}e.isArrayBuffer=h;function s(W){return c(W)==="[object DataView]"}s.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&s(new DataView(new ArrayBuffer(1),0,1));function b(W){return typeof DataView>"u"?!1:s.working?s(W):W instanceof DataView}e.isDataView=b;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function C(W){return c(W)==="[object SharedArrayBuffer]"}function U(W){return typeof D>"u"?!1:(typeof C.working>"u"&&(C.working=C(new D)),C.working?C(W):W instanceof D)}e.isSharedArrayBuffer=U;function $(W){return c(W)==="[object AsyncFunction]"}e.isAsyncFunction=$;function H(W){return c(W)==="[object Map Iterator]"}e.isMapIterator=H;function X(W){return c(W)==="[object Set Iterator]"}e.isSetIterator=X;function z(W){return c(W)==="[object Generator]"}e.isGeneratorObject=z;function k(W){return c(W)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=k;function L(W){return P(W,m)}e.isNumberObject=L;function oe(W){return P(W,g)}e.isStringObject=oe;function re(W){return P(W,_)}e.isBooleanObject=re;function se(W){return f&&P(W,S)}e.isBigIntObject=se;function Y(W){return l&&P(W,M)}e.isSymbolObject=Y;function T(W){return L(W)||oe(W)||re(W)||se(W)||Y(W)}e.isBoxedPrimitive=T;function O(W){return typeof Uint8Array<"u"&&(h(W)||U(W))}e.isAnyArrayBuffer=O,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(W){Object.defineProperty(e,W,{enumerable:!1,value:function(){throw new Error(W+" is not supported in userland")}})})})(z_);var kI=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},F4={exports:{}};typeof Object.create=="function"?F4.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:F4.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 ot=F4.exports;(function(e){var t={},r=Object.getOwnPropertyDescriptors||function(D){for(var C=Object.keys(D),U={},$=0;$=$)return z;switch(z){case"%s":return String(U[C++]);case"%d":return Number(U[C++]);case"%j":try{return JSON.stringify(U[C++])}catch{return"[Circular]"}default:return z}}),X=U[C];C<$;X=U[++C])F(X)||!ee(X)?H+=" "+X:H+=" "+l(X);return H},e.deprecate=function(b,D){if(typeof He<"u"&&He.noDeprecation===!0)return b;if(typeof He>"u")return function(){return e.deprecate(b,D).apply(this,arguments)};var C=!1;function U(){if(!C){if(He.throwDeprecation)throw new Error(D);He.traceDeprecation?console.trace(D):console.error(D),C=!0}return b.apply(this,arguments)}return U};var a={},i=/^$/;if(t.NODE_DEBUG){var f=t.NODE_DEBUG;f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+f+"$","i")}e.debuglog=function(b){if(b=b.toUpperCase(),!a[b])if(i.test(b)){var D=He.pid;a[b]=function(){var C=e.format.apply(e,arguments);console.error("%s %d: %s",b,D,C)}}else a[b]=function(){};return a[b]};function l(b,D){var C={seen:[],stylize:m};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),A(D)?C.showHidden=D:D&&e._extend(C,D),J(C.showHidden)&&(C.showHidden=!1),J(C.depth)&&(C.depth=2),J(C.colors)&&(C.colors=!1),J(C.customInspect)&&(C.customInspect=!0),C.colors&&(C.stylize=c),_(C,b,C.depth)}e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(b,D){var C=l.styles[D];return C?"\x1B["+l.colors[C][0]+"m"+b+"\x1B["+l.colors[C][1]+"m":b}function m(b,D){return b}function g(b){var D={};return b.forEach(function(C,U){D[C]=!0}),D}function _(b,D,C){if(b.customInspect&&D&&d(D.inspect)&&D.inspect!==e.inspect&&!(D.constructor&&D.constructor.prototype===D)){var U=D.inspect(C,b);return N(U)||(U=_(b,U,C)),U}var $=S(b,D);if($)return $;var H=Object.keys(D),X=g(H);if(b.showHidden&&(H=Object.getOwnPropertyNames(D)),E(D)&&(H.indexOf("message")>=0||H.indexOf("description")>=0))return M(D);if(H.length===0){if(d(D)){var z=D.name?": "+D.name:"";return b.stylize("[Function"+z+"]","special")}if(te(D))return b.stylize(RegExp.prototype.toString.call(D),"regexp");if(G(D))return b.stylize(Date.prototype.toString.call(D),"date");if(E(D))return M(D)}var k="",L=!1,oe=["{","}"];if(R(D)&&(L=!0,oe=["[","]"]),d(D)){var re=D.name?": "+D.name:"";k=" [Function"+re+"]"}if(te(D)&&(k=" "+RegExp.prototype.toString.call(D)),G(D)&&(k=" "+Date.prototype.toUTCString.call(D)),E(D)&&(k=" "+M(D)),H.length===0&&(!L||D.length==0))return oe[0]+k+oe[1];if(C<0)return te(D)?b.stylize(RegExp.prototype.toString.call(D),"regexp"):b.stylize("[Object]","special");b.seen.push(D);var se;return L?se=P(b,D,C,X,H):se=H.map(function(Y){return I(b,D,C,X,Y,L)}),b.seen.pop(),B(se,k,oe)}function S(b,D){if(J(D))return b.stylize("undefined","undefined");if(N(D)){var C="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return b.stylize(C,"string")}if(j(D))return b.stylize(""+D,"number");if(A(D))return b.stylize(""+D,"boolean");if(F(D))return b.stylize("null","null")}function M(b){return"["+Error.prototype.toString.call(b)+"]"}function P(b,D,C,U,$){for(var H=[],X=0,z=D.length;X-1&&(H?z=z.split(` `).map(function(L){return" "+L}).join(` `).slice(2):z=` `+z.split(` `).map(function(L){return" "+L}).join(` -`))):z=b.stylize("[Circular]","special")),J(X)){if(H&&$.match(/^\d+$/))return z;X=JSON.stringify(""+$),X.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(X=X.slice(1,-1),X=b.stylize(X,"name")):(X=X.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),X=b.stylize(X,"string"))}return X+": "+z}function B(b,D,C){var F=b.reduce(function($,H){return H.indexOf(` -`)>=0,$+H.replace(/\u001b\[\d\d?m/g,"").length+1},0);return F>60?C[0]+(D===""?"":D+` +`))):z=b.stylize("[Circular]","special")),J(X)){if(H&&$.match(/^\d+$/))return z;X=JSON.stringify(""+$),X.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(X=X.slice(1,-1),X=b.stylize(X,"name")):(X=X.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),X=b.stylize(X,"string"))}return X+": "+z}function B(b,D,C){var U=b.reduce(function($,H){return H.indexOf(` +`)>=0,$+H.replace(/\u001b\[\d\d?m/g,"").length+1},0);return U>60?C[0]+(D===""?"":D+` `)+" "+b.join(`, - `)+" "+C[1]:C[0]+D+" "+b.join(", ")+" "+C[1]}e.types=z_;function R(b){return Array.isArray(b)}e.isArray=R;function A(b){return typeof b=="boolean"}e.isBoolean=A;function U(b){return b===null}e.isNull=U;function V(b){return b==null}e.isNullOrUndefined=V;function j(b){return typeof b=="number"}e.isNumber=j;function N(b){return typeof b=="string"}e.isString=N;function K(b){return typeof b=="symbol"}e.isSymbol=K;function J(b){return b===void 0}e.isUndefined=J;function te(b){return ee(b)&&u(b)==="[object RegExp]"}e.isRegExp=te,e.types.isRegExp=te;function ee(b){return typeof b=="object"&&b!==null}e.isObject=ee;function G(b){return ee(b)&&u(b)==="[object Date]"}e.isDate=G,e.types.isDate=G;function E(b){return ee(b)&&(u(b)==="[object Error]"||b instanceof Error)}e.isError=E,e.types.isNativeError=E;function d(b){return typeof b=="function"}e.isFunction=d;function o(b){return b===null||typeof b=="boolean"||typeof b=="number"||typeof b=="string"||typeof b=="symbol"||typeof b>"u"}e.isPrimitive=o,e.isBuffer=kI;function u(b){return Object.prototype.toString.call(b)}function p(b){return b<10?"0"+b.toString(10):b.toString(10)}var y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var b=new Date,D=[p(b.getHours()),p(b.getMinutes()),p(b.getSeconds())].join(":");return[b.getDate(),y[b.getMonth()],D].join(" ")}e.log=function(){console.log("%s - %s",x(),e.format.apply(e,arguments))},e.inherits=ot,e._extend=function(b,D){if(!D||!ee(D))return b;for(var C=Object.keys(D),F=C.length;F--;)b[C[F]]=D[C[F]];return b};function w(b,D){return Object.prototype.hasOwnProperty.call(b,D)}var v=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');if(v&&D[v]){var C=D[v];if(typeof C!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(C,v,{value:C,enumerable:!1,writable:!1,configurable:!0}),C}function C(){for(var F,$,H=new Promise(function(k,L){F=k,$=L}),X=[],z=0;z"u"}e.isPrimitive=o,e.isBuffer=kI;function u(b){return Object.prototype.toString.call(b)}function p(b){return b<10?"0"+b.toString(10):b.toString(10)}var y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var b=new Date,D=[p(b.getHours()),p(b.getMinutes()),p(b.getSeconds())].join(":");return[b.getDate(),y[b.getMonth()],D].join(" ")}e.log=function(){console.log("%s - %s",x(),e.format.apply(e,arguments))},e.inherits=ot,e._extend=function(b,D){if(!D||!ee(D))return b;for(var C=Object.keys(D),U=C.length;U--;)b[C[U]]=D[C[U]];return b};function w(b,D){return Object.prototype.hasOwnProperty.call(b,D)}var v=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');if(v&&D[v]){var C=D[v];if(typeof C!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(C,v,{value:C,enumerable:!1,writable:!1,configurable:!0}),C}function C(){for(var U,$,H=new Promise(function(k,L){U=k,$=L}),X=[],z=0;z=2,has16m:e>=3}}function FI(e){if(ys===!1)return 0;if(Ei("color=16m")||Ei("color=full")||Ei("color=truecolor"))return 3;if(Ei("color=256"))return 2;if(e&&!e.isTTY&&ys!==!0)return 0;var t=ys?1:0;if(He.platform==="win32"){var r=NI.release().split(".");return Number(He.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in en)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in en})||en.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in en)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(en.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in en){var n=parseInt((en.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(en.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(en.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(en.TERM)||"COLORTERM"in en?1:(en.TERM==="dumb",t)}function c2(e){var t=FI(e);return DI(t)}var UI={supportsColor:c2,stdout:c2(He.stdout),stderr:c2(He.stderr)},h2={exports:{}},L9;function jI(){return L9||(L9=1,function(e){e.exports=function(r,n){var a="";r=r||"Run the trap, drop the bass",r=r.split("");var i={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return r.forEach(function(f){f=f.toLowerCase();var l=i[f]||[" "],c=Math.floor(Math.random()*l.length);typeof i[f]<"u"?a+=i[f][c]:a+=f}),a}}(h2)),h2.exports}var d2={exports:{}},N9;function qI(){return N9||(N9=1,function(e){e.exports=function(r,n){r=r||" he is here ";var a={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},i=[].concat(a.up,a.down,a.mid);function f(m){var g=Math.floor(Math.random()*m);return g}function l(m){var g=!1;return i.filter(function(_){g=_===m}),g}function c(m,g){var _="",S,M;g=g||{},g.up=typeof g.up<"u"?g.up:!0,g.mid=typeof g.mid<"u"?g.mid:!0,g.down=typeof g.down<"u"?g.down:!0,g.size=typeof g.size<"u"?g.size:"maxi",m=m.split("");for(M in m)if(!l(M)){switch(_=_+m[M],S={up:0,down:0,mid:0},g.size){case"mini":S.up=f(8),S.mid=f(2),S.down=f(8);break;case"maxi":S.up=f(16)+3,S.mid=f(4)+1,S.down=f(64)+3;break;default:S.up=f(8)+1,S.mid=f(6)/2,S.down=f(8)+1;break}var P=["up","mid","down"];for(var I in P)for(var B=P[I],R=0;R<=S[B];R++)g[B]&&(_=_+a[B][f(a[B].length)])}return _}return c(r,n)}}(d2)),d2.exports}var p2={exports:{}},D9;function zI(){return D9||(D9=1,function(e){e.exports=function(t){return function(r,n,a){if(r===" ")return r;switch(n%3){case 0:return t.red(r);case 1:return t.white(r);case 2:return t.blue(r)}}}}(p2)),p2.exports}var v2={exports:{}},F9;function $I(){return F9||(F9=1,function(e){e.exports=function(t){return function(r,n,a){return n%2===0?r:t.inverse(r)}}}(v2)),v2.exports}var g2={exports:{}},U9;function HI(){return U9||(U9=1,function(e){e.exports=function(t){var r=["red","yellow","green","blue","magenta"];return function(n,a,i){return n===" "?n:t[r[a++%r.length]](n)}}}(g2)),g2.exports}var y2={exports:{}},j9;function KI(){return j9||(j9=1,function(e){e.exports=function(t){var r=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,a,i){return n===" "?n:t[r[Math.round(Math.random()*(r.length-2))]](n)}}}(y2)),y2.exports}(function(e){var t={};e.exports=t,t.themes={};var r=Mr,n=t.styles=II,a=Object.defineProperties,i=new RegExp(/[\r\n]+/g);t.supportsColor=UI.supportsColor,typeof t.enabled>"u"&&(t.enabled=t.supportsColor()!==!1),t.enable=function(){t.enabled=!0},t.disable=function(){t.enabled=!1},t.stripColors=t.strip=function(I){return(""+I).replace(/\x1B\[\d+m/g,"")},t.stylize=function(B,R){if(!t.enabled)return B+"";var A=n[R];return!A&&R in t?t[R](B):A.open+B+A.close};var f=/[|\\{}()[\]^$+*?.]/g,l=function(I){if(typeof I!="string")throw new TypeError("Expected a string");return I.replace(f,"\\$&")};function c(I){var B=function R(){return _.apply(R,arguments)};return B._styles=I,B.__proto__=g,B}var m=function(){var I={};return n.grey=n.gray,Object.keys(n).forEach(function(B){n[B].closeRe=new RegExp(l(n[B].close),"g"),I[B]={get:function(){return c(this._styles.concat(B))}}}),I}(),g=a(function(){},m);function _(){var I=Array.prototype.slice.call(arguments),B=I.map(function(j){return j!=null&&j.constructor===String?j:r.inspect(j)}).join(" ");if(!t.enabled||!B)return B;for(var R=B.indexOf(` -`)!=-1,A=this._styles,U=A.length;U--;){var V=n[A[U]];B=V.open+B.replace(V.closeRe,V.open)+V.close,R&&(B=B.replace(i,function(j){return V.close+j+V.open}))}return B}t.setTheme=function(I){if(typeof I=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var B in I)(function(R){t[R]=function(A){if(typeof I[R]=="object"){var U=A;for(var V in I[R])U=t[I[R][V]](U);return U}return t[I[R]](A)}})(B)};function S(){var I={};return Object.keys(m).forEach(function(B){I[B]={get:function(){return c([B])}}}),I}var M=function(B,R){var A=R.split("");return A=A.map(B),A.join("")};t.trap=jI(),t.zalgo=qI(),t.maps={},t.maps.america=zI()(t),t.maps.zebra=$I()(t),t.maps.rainbow=HI()(t),t.maps.random=KI()(t);for(var P in t.maps)(function(I){t[I]=function(B){return M(t.maps[I],B)}})(P);a(t,S())})(N_);var GI=N_.exports;(function(e){var t=GI;e.exports=t})(L_);var rS=L_.exports,nr={},nS={},X8={};X8.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};X8.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"};var Y8={};Y8.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Y8.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"};var J8={};J8.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};J8.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"};(function(e){Object.defineProperty(e,"cli",{value:X8}),Object.defineProperty(e,"npm",{value:Y8}),Object.defineProperty(e,"syslog",{value:J8})})(nS);(function(e){Object.defineProperty(e,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(e,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(e,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(e,"configs",{value:nS})})(nr);function Bu(e){"@babel/helpers - typeof";return Bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}function WI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q9(e,t){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:{};WI(this,e),t.colors&&this.addColors(t.colors),this.options=t}return VI(e,[{key:"addColors",value:function(r){return e.addColors(r)}},{key:"colorize",value:function(r,n,a){if(typeof a>"u"&&(a=n),!Array.isArray(e.allColors[r]))return U4[e.allColors[r]](a);for(var i=0,f=e.allColors[r].length;i0&&arguments[0]!==void 0?arguments[0]:{};WI(this,e),t.colors&&this.addColors(t.colors),this.options=t}return VI(e,[{key:"addColors",value:function(r){return e.addColors(r)}},{key:"colorize",value:function(r,n,a){if(typeof a>"u"&&(a=n),!Array.isArray(e.allColors[r]))return U4[e.allColors[r]](a);for(var i=0,f=e.allColors[r].length;ie.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:{levels:cB.npm.levels};fB(this,e),this.paddings=e.paddingForLevels(t.levels,t.filler),this.options=t}return sB(e,[{key:"transform",value:function(r,n){return r.message="".concat(this.paddings[r[H9]]).concat(r.message),r[x2]&&(r[x2]="".concat(this.paddings[r[H9]]).concat(r[x2])),r}}],[{key:"getLongestLevel",value:function(r){var n=Object.keys(r).map(function(a){return a.length});return Math.max.apply(Math,rB(n))}},{key:"paddingForLevel",value:function(r,n,a){var i=a+1-r.length,f=Math.floor(i/n.length),l="".concat(n).concat(n.repeat(f));return l.slice(0,i)}},{key:"paddingForLevels",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",a=e.getLongestLevel(r);return Object.keys(r).reduce(function(i,f){return i[f]=e.paddingForLevel(f,n,a),i},{})}}]),e}();I1.exports=function(e){return new oS(e)};I1.exports.Padder=I1.exports.Format=oS;var fS=I1.exports;function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function hB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K9(e,t){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:{};hB(this,e),t.levels||(t.levels=xB.cli.levels),this.colorizer=new yB(t),this.padder=new bB(t),this.options=t}return dB(e,[{key:"transform",value:function(r,n){return this.colorizer.transform(this.padder.transform(r,n),n),r[wB]="".concat(r.level,":").concat(r.message),r}}]),e}();e5.exports=function(e){return new uS(e)};e5.exports.Format=uS;var _B=e5.exports,r5={exports:{}},SB=In;function lS(e){if(e.every(EB))return function(t){for(var r=t,n=0;n200)return R.sort();for(let A=1;AU;)R[V]=R[V-1],V--;R[V]=U}return R}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(R){return l.call(R)!==void 0&&R.length!==0}function m(R,A,U){R.length= 1`)}return U===void 0?1/0:U}function M(R){return R===1?"1 item":`${R} items`}function P(R){const A=new Set;for(const U of R)(typeof U=="string"||typeof U=="number")&&A.add(String(U));return A}function I(R){if(r.call(R,"strict")){const A=R.strict;if(typeof A!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(A)return U=>{let V=`Object can not safely be stringified. Received type ${typeof U}`;throw typeof U!="function"&&(V+=` (${U.toString()})`),new Error(V)}}}function B(R){R={...R};const A=I(R);A&&(R.bigint===void 0&&(R.bigint=!1),"circularValue"in R||(R.circularValue=Error));const U=g(R),V=_(R,"bigint"),j=_(R,"deterministic"),N=S(R,"maximumDepth"),K=S(R,"maximumBreadth");function J(d,o,u,p,y,x){let w=o[d];switch(typeof w=="object"&&w!==null&&typeof w.toJSON=="function"&&(w=w.toJSON(d)),w=p.call(o,d,w),typeof w){case"string":return i(w);case"object":{if(w===null)return"null";if(u.indexOf(w)!==-1)return U;let v="",h=",";const s=x;if(Array.isArray(w)){if(w.length===0)return"[]";if(N200)return R.sort();for(let A=1;AF;)R[V]=R[V-1],V--;R[V]=F}return R}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(R){return l.call(R)!==void 0&&R.length!==0}function m(R,A,F){R.length= 1`)}return F===void 0?1/0:F}function M(R){return R===1?"1 item":`${R} items`}function P(R){const A=new Set;for(const F of R)(typeof F=="string"||typeof F=="number")&&A.add(String(F));return A}function I(R){if(r.call(R,"strict")){const A=R.strict;if(typeof A!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(A)return F=>{let V=`Object can not safely be stringified. Received type ${typeof F}`;throw typeof F!="function"&&(V+=` (${F.toString()})`),new Error(V)}}}function B(R){R={...R};const A=I(R);A&&(R.bigint===void 0&&(R.bigint=!1),"circularValue"in R||(R.circularValue=Error));const F=g(R),V=_(R,"bigint"),j=_(R,"deterministic"),N=S(R,"maximumDepth"),K=S(R,"maximumBreadth");function J(d,o,u,p,y,x){let w=o[d];switch(typeof w=="object"&&w!==null&&typeof w.toJSON=="function"&&(w=w.toJSON(d)),w=p.call(o,d,w),typeof w){case"string":return i(w);case"object":{if(w===null)return"null";if(u.indexOf(w)!==-1)return F;let v="",h=",";const s=x;if(Array.isArray(w)){if(w.length===0)return"[]";if(NK){const k=w.length-K-1;v+=`${h}"... ${M(k)} not stringified"`}return y!==""&&(v+=` -${s}`),u.pop(),`[${v}]`}let b=Object.keys(w);const D=b.length;if(D===0)return"{}";if(NK){const H=D-K;v+=`${F}"...":${C}"${M(H)} not stringified"`,F=h}return y!==""&&F.length>1&&(v=` +${s}`),u.pop(),`[${v}]`}let b=Object.keys(w);const D=b.length;if(D===0)return"{}";if(NK){const H=D-K;v+=`${U}"...":${C}"${M(H)} not stringified"`,U=h}return y!==""&&U.length>1&&(v=` ${x}${v} -${s}`),u.pop(),`{${v}}`}case"number":return isFinite(w)?String(w):A?A(w):"null";case"boolean":return w===!0?"true":"false";case"undefined":return;case"bigint":if(V)return String(w);default:return A?A(w):void 0}}function te(d,o,u,p,y,x){switch(typeof o=="object"&&o!==null&&typeof o.toJSON=="function"&&(o=o.toJSON(d)),typeof o){case"string":return i(o);case"object":{if(o===null)return"null";if(u.indexOf(o)!==-1)return U;const w=x;let v="",h=",";if(Array.isArray(o)){if(o.length===0)return"[]";if(NK){const $=o.length-K-1;v+=`${h}"... ${M($)} not stringified"`}return y!==""&&(v+=` +${x}`);const D=Math.min(o.length,K);let C=0;for(;CK){const $=o.length-K-1;v+=`${h}"... ${M($)} not stringified"`}return y!==""&&(v+=` ${w}`),u.pop(),`[${v}]`}u.push(o);let s="";y!==""&&(x+=y,h=`, ${x}`,s=" ");let b="";for(const D of p){const C=te(D,o[D],u,p,y,x);C!==void 0&&(v+=`${b}${i(D)}:${s}${C}`,b=h)}return y!==""&&b.length>1&&(v=` ${x}${v} -${w}`),u.pop(),`{${v}}`}case"number":return isFinite(o)?String(o):A?A(o):"null";case"boolean":return o===!0?"true":"false";case"undefined":return;case"bigint":if(V)return String(o);default:return A?A(o):void 0}}function ee(d,o,u,p,y){switch(typeof o){case"string":return i(o);case"object":{if(o===null)return"null";if(typeof o.toJSON=="function"){if(o=o.toJSON(d),typeof o!="object")return ee(d,o,u,p,y);if(o===null)return"null"}if(u.indexOf(o)!==-1)return U;const x=y;if(Array.isArray(o)){if(o.length===0)return"[]";if(NK){const z=o.length-K-1;C+=`${F}"... ${M(z)} not stringified"`}return C+=` +${w}`),u.pop(),`{${v}}`}case"number":return isFinite(o)?String(o):A?A(o):"null";case"boolean":return o===!0?"true":"false";case"undefined":return;case"bigint":if(V)return String(o);default:return A?A(o):void 0}}function ee(d,o,u,p,y){switch(typeof o){case"string":return i(o);case"object":{if(o===null)return"null";if(typeof o.toJSON=="function"){if(o=o.toJSON(d),typeof o!="object")return ee(d,o,u,p,y);if(o===null)return"null"}if(u.indexOf(o)!==-1)return F;const x=y;if(Array.isArray(o)){if(o.length===0)return"[]";if(NK){const z=o.length-K-1;C+=`${U}"... ${M(z)} not stringified"`}return C+=` ${x}`,u.pop(),`[${C}]`}let w=Object.keys(o);const v=w.length;if(v===0)return"{}";if(NK){const C=v-K;s+=`${b}"...": "${M(C)} not stringified"`,b=h}return b!==""&&(s=` +${y}`;let s="",b="",D=Math.min(v,K);c(o)&&(s+=m(o,h,K),w=w.slice(o.length),D-=o.length,b=h),j&&(w=f(w)),u.push(o);for(let C=0;CK){const C=v-K;s+=`${b}"...": "${M(C)} not stringified"`,b=h}return b!==""&&(s=` ${y}${s} -${x}`),u.pop(),`{${s}}`}case"number":return isFinite(o)?String(o):A?A(o):"null";case"boolean":return o===!0?"true":"false";case"undefined":return;case"bigint":if(V)return String(o);default:return A?A(o):void 0}}function G(d,o,u){switch(typeof o){case"string":return i(o);case"object":{if(o===null)return"null";if(typeof o.toJSON=="function"){if(o=o.toJSON(d),typeof o!="object")return G(d,o,u);if(o===null)return"null"}if(u.indexOf(o)!==-1)return U;let p="";if(Array.isArray(o)){if(o.length===0)return"[]";if(NK){const D=o.length-K-1;p+=`,"... ${M(D)} not stringified"`}return u.pop(),`[${p}]`}let y=Object.keys(o);const x=y.length;if(x===0)return"{}";if(NK){const h=x-K;p+=`${w}"...":"${M(h)} not stringified"`}return u.pop(),`{${p}}`}case"number":return isFinite(o)?String(o):A?A(o):"null";case"boolean":return o===!0?"true":"false";case"undefined":return;case"bigint":if(V)return String(o);default:return A?A(o):void 0}}function E(d,o,u){if(arguments.length>1){let p="";if(typeof u=="number"?p=" ".repeat(Math.min(u,10)):typeof u=="string"&&(p=u.slice(0,10)),o!=null){if(typeof o=="function")return J("",{"":d},[],o,p,"");if(Array.isArray(o))return te("",d,[],P(o),p,"")}if(p.length!==0)return ee("",d,[],p,"")}return G("",d,[])}return E}})(q4,q4.exports);var ll=q4.exports,PB=In,OB=nr,kB=OB.MESSAGE,IB=ll;function BB(e,t){return typeof t=="bigint"?t.toString():t}var LB=PB(function(e,t){var r=IB.configure(t);return e[kB]=r(e,t.replacer||BB,t.space),e}),NB=In,DB=NB(function(e,t){return t.message?(e.message="[".concat(t.label,"] ").concat(e.message),e):(e.label=t.label,e)}),FB=In,UB=nr,jB=UB.MESSAGE,qB=ll,zB=FB(function(e){var t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[jB]=qB(t),e});function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function $B(e,t,r){return t=HB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HB(e){var t=KB(e,"string");return Fu(t)==="symbol"?t:String(t)}function KB(e,t){if(Fu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GB=In;function WB(e,t,r){var n=t.reduce(function(i,f){return i[f]=e[f],delete e[f],i},{}),a=Object.keys(e).reduce(function(i,f){return i[f]=e[f],delete e[f],i},{});return Object.assign(e,n,$B({},r,a)),e}function VB(e,t,r){return e[r]=t.reduce(function(n,a){return n[a]=e[a],delete e[a],n},{}),e}var ZB=GB(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="metadata";t.key&&(r=t.key);var n=[];return!t.fillExcept&&!t.fillWith&&(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?WB(e,n,r):t.fillWith?VB(e,t.fillWith,r):e}),Bs=1e3,Ls=Bs*60,Ns=Ls*60,gf=Ns*24,XB=gf*7,YB=gf*365.25,JB=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return QB(e);if(r==="number"&&isFinite(e))return t.long?tL(e):eL(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function QB(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*YB;case"weeks":case"week":case"w":return r*XB;case"days":case"day":case"d":return r*gf;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ns;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ls;case"seconds":case"second":case"secs":case"sec":case"s":return r*Bs;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function eL(e){var t=Math.abs(e);return t>=gf?Math.round(e/gf)+"d":t>=Ns?Math.round(e/Ns)+"h":t>=Ls?Math.round(e/Ls)+"m":t>=Bs?Math.round(e/Bs)+"s":e+"ms"}function tL(e){var t=Math.abs(e);return t>=gf?tc(e,t,gf,"day"):t>=Ns?tc(e,t,Ns,"hour"):t>=Ls?tc(e,t,Ls,"minute"):t>=Bs?tc(e,t,Bs,"second"):e+" ms"}function tc(e,t,r,n){var a=t>=r*1.5;return Math.round(e/r)+" "+n+(a?"s":"")}var rc=void 0,rL=In,nL=JB,iL=rL(function(e){var t=+new Date;return rc.diff=t-(rc.prevTime||t),rc.prevTime=t,e.ms="+".concat(nL(rc.diff)),e}),aL=Mr.inspect,oL=In,n5=nr,fL=n5.LEVEL,W9=n5.MESSAGE,sL=n5.SPLAT,uL=oL(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({},e);return delete r[fL],delete r[W9],delete r[sL],e[W9]=aL(r,!1,t.depth||null,t.colorize),e}),B1={exports:{}};function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function lL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V9(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?a.splice(0):a,l=f.length;if(l)for(var c=0;c-1?a:null}};function Ao(e){for(var t=[],r=1;r3?0:(e-e%10!==10?1:0)*e%10]}},L1=Ao({},i5),mS=function(e){return L1=Ao(L1,e)},eg=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},un=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length0?"-":"+")+un(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+un(Math.floor(Math.abs(t)/60),2)+":"+un(Math.abs(t)%60,2)}},tg=function(e){return+e-1},rg=[null,Ya],ng=[null,lu],ig=["isPm",lu,function(e,t){var r=e.toLowerCase();return r===t.amPm[0]?0:r===t.amPm[1]?1:null}],ag=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var r=+t[1]*60+parseInt(t[2],10);return t[0]==="+"?r:-r}return 0}],jL={D:["day",Ya],DD:["day",$a],Do:["day",Ya+lu,function(e){return parseInt(e,10)}],M:["month",Ya,tg],MM:["month",$a,tg],YY:["year",$a,function(e){var t=new Date,r=+(""+t.getFullYear()).substr(0,2);return+(""+(+e>68?r-1:r)+e)}],h:["hour",Ya,void 0,"isPm"],hh:["hour",$a,void 0,"isPm"],H:["hour",Ya],HH:["hour",$a],m:["minute",Ya],mm:["minute",$a],s:["second",Ya],ss:["second",$a],YYYY:["year",NL],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",$a,function(e){return+e*10}],SSS:["millisecond",LL],d:rg,dd:rg,ddd:ng,dddd:ng,MMM:["month",lu,Q9("monthNamesShort")],MMMM:["month",lu,Q9("monthNames")],a:ig,A:ig,ZZ:ag,Z:ag},N1={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},bS=function(e){return Ao(N1,e)},xS=function(e,t,r){if(t===void 0&&(t=N1.default),r===void 0&&(r={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=N1[t]||t;var n=[];t=t.replace(pS,function(i,f){return n.push(f),"@@@"});var a=Ao(Ao({},L1),r);return t=t.replace(dS,function(i){return UL[i](e,a)}),t.replace(/@@@/g,function(){return n.shift()})};function wS(e,t,r){if(r===void 0&&(r={}),typeof t!="string")throw new Error("Invalid format in fecha parse");if(t=N1[t]||t,e.length>1e3)return null;var n=new Date,a={year:n.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],f=[],l=t.replace(pS,function(V,j){return f.push(eg(j)),"@@@"}),c={},m={};l=eg(l).replace(dS,function(V){var j=jL[V],N=j[0],K=j[1],J=j[3];if(c[N])throw new Error("Invalid format. "+N+" specified twice in format");return c[N]=!0,J&&(m[J]=!0),i.push(j),"("+K+")"}),Object.keys(m).forEach(function(V){if(!c[V])throw new Error("Invalid format. "+V+" is required in specified format")}),l=l.replace(/@@@/g,function(){return f.shift()});var g=e.match(new RegExp(l,"i"));if(!g)return null;for(var _=Ao(Ao({},L1),r),S=1;S11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return R}var qL={format:xS,parse:wS,defaultI18n:i5,setGlobalDateI18n:mS,setGlobalDateMasks:bS};const zL=Object.freeze(Object.defineProperty({__proto__:null,assign:Ao,default:qL,defaultI18n:i5,format:xS,parse:wS,setGlobalDateI18n:mS,setGlobalDateMasks:bS},Symbol.toStringTag,{value:"Module"})),$L=gT(zL);var HL=$L,KL=In,GL=KL(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.format&&(e.timestamp=typeof t.format=="function"?t.format():HL.format(new Date,t.format)),e.timestamp||(e.timestamp=new Date().toISOString()),t.alias&&(e[t.alias]=e.timestamp),e}),S2=rS,WL=In,VL=nr,E2=VL.MESSAGE,ZL=WL(function(e,t){return t.level!==!1&&(e.level=S2.strip(e.level)),t.message!==!1&&(e.message=S2.strip(String(e.message))),t.raw!==!1&&e[E2]&&(e[E2]=S2.strip(String(e[E2]))),e}),Dr=Ah.format=In;Ah.levels=QI;Object.defineProperty(Dr,"align",{value:tB});Object.defineProperty(Dr,"cli",{value:_B});Object.defineProperty(Dr,"colorize",{value:Q8});Object.defineProperty(Dr,"combine",{value:CB});Object.defineProperty(Dr,"errors",{value:TB});Object.defineProperty(Dr,"json",{value:LB});Object.defineProperty(Dr,"label",{value:DB});Object.defineProperty(Dr,"logstash",{value:zB});Object.defineProperty(Dr,"metadata",{value:ZB});Object.defineProperty(Dr,"ms",{value:iL});Object.defineProperty(Dr,"padLevels",{value:fS});Object.defineProperty(Dr,"prettyPrint",{value:uL});Object.defineProperty(Dr,"printf",{value:gL});Object.defineProperty(Dr,"simple",{value:xL});Object.defineProperty(Dr,"splat",{value:BL});Object.defineProperty(Dr,"timestamp",{value:GL});Object.defineProperty(Dr,"uncolorize",{value:ZL});var a5={};(function(e){var t=Mr,r=t.format;e.warn={deprecated:function(a){return function(){throw new Error(r("{ %s } was removed in winston@3.0.0.",a))}},useFormat:function(a){return function(){throw new Error([r("{ %s } was removed in winston@3.0.0.",a),"Use a custom winston.format = winston.format(function) instead."].join(` -`))}},forFunctions:function(a,i,f){f.forEach(function(l){a[l]=e.warn[i](l)})},forProperties:function(a,i,f){f.forEach(function(l){var c=e.warn[i](l);Object.defineProperty(a,l,{get:c,set:c})})}}})(a5);const XL="winston",YL="A logger for just about everything.",JL="3.11.0",QL="Charlie Robbins ",eN=["David Hyde "],tN={type:"git",url:"https://github.com/winstonjs/winston.git"},rN=["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],nN={"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.5.0"},iN={"@babel/cli":"^7.17.0","@babel/core":"^7.17.2","@babel/preset-env":"^7.16.7","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.3.1","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.9.0",hock:"^1.4.1",mocha:"8.1.3",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^1.0.1",through2:"^4.0.2","winston-compat":"^0.1.5"},aN="./lib/winston.js",oN="./dist/winston",fN="./index.d.ts",sN={lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},uN={node:">= 12.0.0"},lN="MIT",cN={name:XL,description:YL,version:JL,author:QL,maintainers:eN,repository:tN,keywords:rN,dependencies:nN,devDependencies:iN,main:aN,browser:oN,types:fN,scripts:sN,engines:uN,license:lN};var _S={},nc={exports:{}},hN=dN;function dN(e,t){if(C2("noDeprecation"))return e;var r=!1;function n(){if(!r){if(C2("throwDeprecation"))throw new Error(t);C2("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function C2(e){try{if(!Oe.localStorage)return!1}catch{return!1}var t=Oe.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var o5={exports:{}},ms=typeof Reflect=="object"?Reflect:null,og=ms&&typeof ms.apply=="function"?ms.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},zc;ms&&typeof ms.ownKeys=="function"?zc=ms.ownKeys:Object.getOwnPropertySymbols?zc=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:zc=function(t){return Object.getOwnPropertyNames(t)};function pN(e){console&&console.warn&&console.warn(e)}var SS=Number.isNaN||function(t){return t!==t};function Pt(){Pt.init.call(this)}o5.exports=Pt;o5.exports.once=mN;Pt.EventEmitter=Pt;Pt.prototype._events=void 0;Pt.prototype._eventsCount=0;Pt.prototype._maxListeners=void 0;var fg=10;function Oh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Pt,"defaultMaxListeners",{enumerable:!0,get:function(){return fg},set:function(e){if(typeof e!="number"||e<0||SS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");fg=e}});Pt.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};Pt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||SS(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 ES(e){return e._maxListeners===void 0?Pt.defaultMaxListeners:e._maxListeners}Pt.prototype.getMaxListeners=function(){return ES(this)};Pt.prototype.emit=function(t){for(var r=[],n=1;n0&&(f=r[0]),f instanceof Error)throw f;var l=new Error("Unhandled error."+(f?" ("+f.message+")":""));throw l.context=f,l}var c=i[t];if(c===void 0)return!1;if(typeof c=="function")og(c,this,r);else for(var m=c.length,g=TS(c,m),n=0;n0&&f.length>a&&!f.warned){f.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=f.length,pN(l)}return e}Pt.prototype.addListener=function(t,r){return CS(this,t,r,!1)};Pt.prototype.on=Pt.prototype.addListener;Pt.prototype.prependListener=function(t,r){return CS(this,t,r,!0)};function vN(){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 MS(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=vN.bind(n);return a.listener=r,n.wrapFn=a,a}Pt.prototype.once=function(t,r){return Oh(r),this.on(t,MS(this,t,r)),this};Pt.prototype.prependOnceListener=function(t,r){return Oh(r),this.prependListener(t,MS(this,t,r)),this};Pt.prototype.removeListener=function(t,r){var n,a,i,f,l;if(Oh(r),a=this._events,a===void 0)return this;if(n=a[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(i=-1,f=n.length-1;f>=0;f--)if(n[f]===r||n[f].listener===r){l=n[f].listener,i=f;break}if(i<0)return this;i===0?n.shift():gN(n,i),n.length===1&&(a[t]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Pt.prototype.off=Pt.prototype.removeListener;Pt.prototype.removeAllListeners=function(t){var r,n,a;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 i=Object.keys(n),f;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function AS(e,t,r){var n=e._events;if(n===void 0)return[];var a=n[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?yN(a):TS(a,a.length)}Pt.prototype.listeners=function(t){return AS(this,t,!0)};Pt.prototype.rawListeners=function(t){return AS(this,t,!1)};Pt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):RS.call(e,t)};Pt.prototype.listenerCount=RS;function RS(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}Pt.prototype.eventNames=function(){return this._eventsCount>0?zc(this._events):[]};function TS(e,t){for(var r=new Array(t),n=0;n2?"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 EN(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function CN(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function MN(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"&&EN(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var a;if(CN(e," argument"))a="The ".concat(e," ").concat(n," ").concat(ug(t,"type"));else{var i=MN(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(i," ").concat(n," ").concat(ug(t,"type"))}return a+=". Received type ".concat(typeof r),a},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");Cf.codes=IS;var AN=Cf.codes.ERR_INVALID_OPT_VALUE;function RN(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function TN(e,t,r,n){var a=RN(t,n,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?r:"highWaterMark";throw new AN(i,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var BS={getHighWaterMark:TN},M2,lg;function PN(){if(lg)return M2;lg=1;function e(P,I){var B=Object.keys(P);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(P);I&&(R=R.filter(function(A){return Object.getOwnPropertyDescriptor(P,A).enumerable})),B.push.apply(B,R)}return B}function t(P){for(var I=1;I0?this.tail.next=R:this.head=R,this.tail=R,++this.length}},{key:"unshift",value:function(B){var R={data:B,next:this.head};this.length===0&&(this.tail=R),this.head=R,++this.length}},{key:"shift",value:function(){if(this.length!==0){var B=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,B}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(B){if(this.length===0)return"";for(var R=this.head,A=""+R.data;R=R.next;)A+=B+R.data;return A}},{key:"concat",value:function(B){if(this.length===0)return m.alloc(0);for(var R=m.allocUnsafe(B>>>0),A=this.head,U=0;A;)M(A.data,R,U),U+=A.data.length,A=A.next;return R}},{key:"consume",value:function(B,R){var A;return BV.length?V.length:B;if(j===V.length?U+=V:U+=V.slice(0,B),B-=j,B===0){j===V.length?(++A,R.next?this.head=R.next:this.head=this.tail=null):(this.head=R,R.data=V.slice(j));break}++A}return this.length-=A,U}},{key:"_getBuffer",value:function(B){var R=m.allocUnsafe(B),A=this.head,U=1;for(A.data.copy(R),B-=A.data.length;A=A.next;){var V=A.data,j=B>V.length?V.length:B;if(V.copy(R,R.length-B,0,j),B-=j,B===0){j===V.length?(++U,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=V.slice(j));break}++U}return this.length-=U,R}},{key:S,value:function(B,R){return _(this,t(t({},R),{},{depth:0,customInspect:!1}))}}]),P}(),M2}var qu={},H4={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(e,t){var r=Te,n=r.Buffer;function a(f,l){for(var c in f)l[c]=f[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=i);function i(f,l,c){return n(f,l,c)}i.prototype=Object.create(n.prototype),a(n,i),i.from=function(f,l,c){if(typeof f=="number")throw new TypeError("Argument must not be a number");return n(f,l,c)},i.alloc=function(f,l,c){if(typeof f!="number")throw new TypeError("Argument must be a number");var m=n(f);return l!==void 0?typeof c=="string"?m.fill(l,c):m.fill(l):m.fill(0),m},i.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return n(f)},i.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(f)}})(H4,H4.exports);var st=H4.exports,s5=st.Buffer,cg=s5.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 ON(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 kN(e){var t=ON(e);if(typeof t!="string"&&(s5.isEncoding===cg||!cg(e)))throw new Error("Unknown encoding: "+e);return t||e}qu.StringDecoder=cl;function cl(e){this.encoding=kN(e);var t;switch(this.encoding){case"utf16le":this.text=FN,this.end=UN,t=4;break;case"utf8":this.fillLast=LN,t=4;break;case"base64":this.text=jN,this.end=qN,t=3;break;default:this.write=zN,this.end=$N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=s5.allocUnsafe(t)}cl.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>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function IN(e,t,r){var n=t.length-1;if(n=0?(a>0&&(e.lastNeed=a-1),a):--n=0?(a>0&&(e.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}function BN(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function LN(e){var t=this.lastTotal-this.lastNeed,r=BN(this,e);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 NN(e,t){var r=IN(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 DN(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function FN(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 UN(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 jN(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 qN(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function zN(e){return e.toString(this.encoding)}function $N(e){return e&&e.length?this.write(e):""}var hg=Cf.codes.ERR_STREAM_PREMATURE_CLOSE;function HN(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a0)if(typeof L!="string"&&!Y.objectMode&&Object.getPrototypeOf(L)!==n.prototype&&(L=i(L)),re)Y.endEmitted?j(k,new R):G(k,Y,L,!0);else if(Y.ended)j(k,new I);else{if(Y.destroyed)return!1;Y.reading=!1,Y.decoder&&!oe?(L=Y.decoder.write(L),Y.objectMode||L.length!==0?G(k,Y,L,!1):w(k,Y)):G(k,Y,L,!1)}else re||(Y.reading=!1,w(k,Y))}return!Y.ended&&(Y.length=d?k=d:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function u(k,L){return k<=0||L.length===0&&L.ended?0:L.objectMode?1:k!==k?L.flowing&&L.length?L.buffer.head.data.length:L.length:(k>L.highWaterMark&&(L.highWaterMark=o(k)),k<=L.length?k:L.ended?L.length:(L.needReadable=!0,0))}te.prototype.read=function(k){c("read",k),k=parseInt(k,10);var L=this._readableState,oe=k;if(k!==0&&(L.emittedReadable=!1),k===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return c("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?H(this):y(this),null;if(k=u(k,L),k===0&&L.ended)return L.length===0&&H(this),null;var re=L.needReadable;c("need readable",re),(L.length===0||L.length-k0?se=$(k,L):se=null,se===null?(L.needReadable=L.length<=L.highWaterMark,k=0):(L.length-=k,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),oe!==k&&L.ended&&H(this)),se!==null&&this.emit("data",se),se};function p(k,L){if(c("onEofChunk"),!L.ended){if(L.decoder){var oe=L.decoder.end();oe&&oe.length&&(L.buffer.push(oe),L.length+=L.objectMode?1:oe.length)}L.ended=!0,L.sync?y(k):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,x(k)))}}function y(k){var L=k._readableState;c("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(c("emitReadable",L.flowing),L.emittedReadable=!0,He.nextTick(x,k))}function x(k){var L=k._readableState;c("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(k.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,F(k)}function w(k,L){L.readingMore||(L.readingMore=!0,He.nextTick(v,k,L))}function v(k,L){for(;!L.reading&&!L.ended&&(L.length1&&z(re.pipes,k)!==-1)&&!ie&&(c("false write response, pause",re.awaitDrain),re.awaitDrain++),oe.pause())}function _e(pe){c("onerror",pe),fe(),k.removeListener("error",_e),t(k,"error")===0&&j(k,pe)}K(k,"error",_e);function Z(){k.removeListener("finish",le),fe()}k.once("close",Z);function le(){c("onfinish"),k.removeListener("close",Z),fe()}k.once("finish",le);function fe(){c("unpipe"),oe.unpipe(k)}return k.emit("pipe",oe),re.flowing||(c("pipe resume"),oe.resume()),k};function h(k){return function(){var oe=k._readableState;c("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&t(k,"data")&&(oe.flowing=!0,F(k))}}te.prototype.unpipe=function(k){var L=this._readableState,oe={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return k&&k!==L.pipes?this:(k||(k=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,k&&k.emit("unpipe",this,oe),this);if(!k){var re=L.pipes,se=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var Y=0;Y0,re.flowing!==!1&&this.resume()):k==="readable"&&!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.flowing=!1,re.emittedReadable=!1,c("on readable",re.length,re.reading),re.length?y(this):re.reading||He.nextTick(b,this)),oe},te.prototype.addListener=te.prototype.on,te.prototype.removeListener=function(k,L){var oe=r.prototype.removeListener.call(this,k,L);return k==="readable"&&He.nextTick(s,this),oe},te.prototype.removeAllListeners=function(k){var L=r.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&He.nextTick(s,this),L};function s(k){var L=k._readableState;L.readableListening=k.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:k.listenerCount("data")>0&&k.resume()}function b(k){c("readable nexttick read 0"),k.read(0)}te.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,D(this,k)),k.paused=!1,this};function D(k,L){L.resumeScheduled||(L.resumeScheduled=!0,He.nextTick(C,k,L))}function C(k,L){c("resume",L.reading),L.reading||k.read(0),L.resumeScheduled=!1,k.emit("resume"),F(k),L.flowing&&!L.reading&&k.read(0)}te.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function F(k){var L=k._readableState;for(c("flow",L.flowing);L.flowing&&k.read()!==null;);}te.prototype.wrap=function(k){var L=this,oe=this._readableState,re=!1;k.on("end",function(){if(c("wrapped end"),oe.decoder&&!oe.ended){var T=oe.decoder.end();T&&T.length&&L.push(T)}L.push(null)}),k.on("data",function(T){if(c("wrapped data"),oe.decoder&&(T=oe.decoder.write(T)),!(oe.objectMode&&T==null)&&!(!oe.objectMode&&(!T||!T.length))){var O=L.push(T);O||(re=!0,k.pause())}});for(var se in k)this[se]===void 0&&typeof k[se]=="function"&&(this[se]=function(O){return function(){return k[O].apply(k,arguments)}}(se));for(var Y=0;Y=L.length?(L.decoder?oe=L.buffer.join(""):L.buffer.length===1?oe=L.buffer.first():oe=L.buffer.concat(L.length),L.buffer.clear()):oe=L.buffer.consume(k,L.decoder),oe}function H(k){var L=k._readableState;c("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,He.nextTick(X,L,k))}function X(k,L){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,L.readable=!1,L.emit("end"),k.autoDestroy)){var oe=L._writableState;(!oe||oe.autoDestroy&&oe.finished)&&L.destroy()}}typeof Symbol=="function"&&(te.from=function(k,L){return V===void 0&&(V=VN()),V(te,k,L)});function z(k,L){for(var oe=0,re=k.length;oe-1))throw new U($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(F,$,H){return!F.objectMode&&F.decodeStrings!==!1&&typeof $=="string"&&($=a.from($,H)),$}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function E(F,$,H,X,z,k){if(!H){var L=G($,X,z);X!==L&&(H=!0,z="buffer",X=L)}var oe=$.objectMode?1:X.length;$.length+=oe;var re=$.length<$.highWaterMark;if(re||($.needDrain=!0),$.writing||$.corked){var se=$.lastBufferedRequest;$.lastBufferedRequest={chunk:X,encoding:z,isBuf:H,callback:k,next:null},se?se.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else d(F,$,!1,oe,X,z,k);return re}function d(F,$,H,X,z,k,L){$.writelen=X,$.writecb=L,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new B("write")):H?F._writev(z,$.onwrite):F._write(z,k,$.onwrite),$.sync=!1}function o(F,$,H,X,z){--$.pendingcb,H?(He.nextTick(z,X),He.nextTick(b,F,$),F._writableState.errorEmitted=!0,V(F,X)):(z(X),F._writableState.errorEmitted=!0,V(F,X),b(F,$))}function u(F){F.writing=!1,F.writecb=null,F.length-=F.writelen,F.writelen=0}function p(F,$){var H=F._writableState,X=H.sync,z=H.writecb;if(typeof z!="function")throw new P;if(u(H),$)o(F,H,X,$,z);else{var k=v(H)||F.destroyed;!k&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&w(F,H),X?He.nextTick(y,F,H,k,z):y(F,H,k,z)}}function y(F,$,H,X){H||x(F,$),$.pendingcb--,X(),b(F,$)}function x(F,$){$.length===0&&$.needDrain&&($.needDrain=!1,F.emit("drain"))}function w(F,$){$.bufferProcessing=!0;var H=$.bufferedRequest;if(F._writev&&H&&H.next){var X=$.bufferedRequestCount,z=new Array(X),k=$.corkedRequestsFree;k.entry=H;for(var L=0,oe=!0;H;)z[L]=H,H.isBuf||(oe=!1),H=H.next,L+=1;z.allBuffers=oe,d(F,$,!0,$.length,z,"",k.finish),$.pendingcb++,$.lastBufferedRequest=null,k.next?($.corkedRequestsFree=k.next,k.next=null):$.corkedRequestsFree=new e($),$.bufferedRequestCount=0}else{for(;H;){var re=H.chunk,se=H.encoding,Y=H.callback,T=$.objectMode?1:re.length;if(d(F,$,!1,T,re,se,Y),H=H.next,$.bufferedRequestCount--,$.writing)break}H===null&&($.lastBufferedRequest=null)}$.bufferedRequest=H,$.bufferProcessing=!1}J.prototype._write=function(F,$,H){H(new M("_write()"))},J.prototype._writev=null,J.prototype.end=function(F,$,H){var X=this._writableState;return typeof F=="function"?(H=F,F=null,$=null):typeof $=="function"&&(H=$,$=null),F!=null&&this.write(F,$),X.corked&&(X.corked=1,this.uncork()),X.ending||D(this,X,H),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function v(F){return F.ending&&F.length===0&&F.bufferedRequest===null&&!F.finished&&!F.writing}function h(F,$){F._final(function(H){$.pendingcb--,H&&V(F,H),$.prefinished=!0,F.emit("prefinish"),b(F,$)})}function s(F,$){!$.prefinished&&!$.finalCalled&&(typeof F._final=="function"&&!$.destroyed?($.pendingcb++,$.finalCalled=!0,He.nextTick(h,F,$)):($.prefinished=!0,F.emit("prefinish")))}function b(F,$){var H=v($);if(H&&(s(F,$),$.pendingcb===0&&($.finished=!0,F.emit("finish"),$.autoDestroy))){var X=F._readableState;(!X||X.autoDestroy&&X.endEmitted)&&F.destroy()}return H}function D(F,$,H){$.ending=!0,b(F,$),H&&($.finished?He.nextTick(H):F.once("finish",H)),$.ended=!0,F.writable=!1}function C(F,$,H){var X=F.entry;for(F.entry=null;X;){var z=X.callback;$.pendingcb--,z(H),X=X.next}$.corkedRequestsFree.next=F}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),J.prototype.destroy=c.destroy,J.prototype._undestroy=c.undestroy,J.prototype._destroy=function(F,$){$(F)},k2}var I2={exports:{}},mg;function ZN(){if(mg)return I2.exports;mg=1;var e=Mr,t=nr,r=t.LEVEL,n=Mf(),a=I2.exports=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(n.call(this,f),!f.transport||typeof f.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=f.transport,this.level=this.level||f.transport.level,this.handleExceptions=this.handleExceptions||f.transport.handleExceptions,this._deprecated();function l(c){this.emit("error",c,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=l.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(a,n),a.prototype._write=function(f,l,c){if(this.silent||f.exception===!0&&!this.handleExceptions)return c(null);(!this.level||this.levels[this.level]>=this.levels[f[r]])&&this.transport.log(f[r],f.message,f,this._nop),c(null)},a.prototype._writev=function(f,l){for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:{};t.call(this,{objectMode:!0,highWaterMark:l.highWaterMark}),this.format=l.format,this.level=l.level,this.handleExceptions=l.handleExceptions,this.handleRejections=l.handleRejections,this.silent=l.silent,l.log&&(this.log=l.log),l.logv&&(this.logv=l.logv),l.close&&(this.close=l.close),this.once("pipe",function(c){f.levels=c.levels,f.parent=c}),this.once("unpipe",function(c){c===f.parent&&(f.parent=null,f.close&&f.close())})};return e.inherits(a,t),a.prototype._write=function(f,l,c){if(this.silent||f.exception===!0&&!this.handleExceptions)return c(null);var m=this.level||this.parent&&this.parent.level;if(!m||this.levels[m]>=this.levels[f[n]]){if(f&&!this.format)return this.log(f,c);var g=void 0,_=void 0;try{_=this.format.transform(Object.assign({},f),this.format.options)}catch(S){g=S}if(g||!_){if(c(),g)throw g;return}return this.log(_,c)}return this._writableState.sync=!1,c(null)},a.prototype._writev=function(f,l){if(this.logv){var c=f.filter(this._accept,this);return c.length?this.logv(c,l):l(null)}for(var m=0;m=this.levels[l[n]])&&(this.handleExceptions||l.exception!==!0))},a.prototype._nop=function(){},nc.exports.LegacyTransportStream=ZN(),nc.exports}var B2,xg;function XN(){if(xg)return B2;xg=1;function e(A){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},e(A)}function t(A,U){if(!(A instanceof U))throw new TypeError("Cannot call a class as a function")}function r(A,U){for(var V=0;V"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(A){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},S(A)}var M=er,P=nr,I=P.LEVEL,B=P.MESSAGE,R=Mf();return B2=function(A){f(V,A);var U=c(V);function V(){var j,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t(this,V),j=U.call(this,N),j.name=N.name||"console",j.stderrLevels=j._stringArrayToSet(N.stderrLevels),j.consoleWarnLevels=j._stringArrayToSet(N.consoleWarnLevels),j.eol=typeof N.eol=="string"?N.eol:M.EOL,j.setMaxListeners(30),j}return n(V,[{key:"log",value:function(N,K){var J=this;if(setImmediate(function(){return J.emit("logged",N)}),this.stderrLevels[N[I]]){console._stderr?console._stderr.write("".concat(N[B]).concat(this.eol)):console.error(N[B]),K&&K();return}else if(this.consoleWarnLevels[N[I]]){console._stderr?console._stderr.write("".concat(N[B]).concat(this.eol)):console.warn(N[B]),K&&K();return}console._stdout?console._stdout.write("".concat(N[B]).concat(this.eol)):console.log(N[B]),K&&K()}},{key:"_stringArrayToSet",value:function(N,K){if(!N)return{};if(K=K||"Cannot make set from type other than Array of string elements",!Array.isArray(N))throw new Error(K);return N.reduce(function(J,te){if(typeof te!="string")throw new Error(K);return J[te]=!0,J},{})}}]),V}(R),B2}var L2,wg;function NS(){if(wg)return L2;wg=1;var e=null;return L2=e,L2}var N2,_g;function YN(){if(_g)return N2;_g=1;function e(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function t(a,i){for(var f="",l=0,c=-1,m=0,g,_=0;_<=a.length;++_){if(_2){var S=f.lastIndexOf("/");if(S!==f.length-1){S===-1?(f="",l=0):(f=f.slice(0,S),l=f.length-1-f.lastIndexOf("/")),c=_,m=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=_,m=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,_):f=a.slice(c+1,_),l=_-c-1;c=_,m=0}else g===46&&m!==-1?++m:m=-1}return f}function r(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var n={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var m;c>=0?m=arguments[c]:(l===void 0&&(l=He.cwd()),m=l),e(m),m.length!==0&&(i=m+"/"+i,f=m.charCodeAt(0)===47)}return i=t(i,!f),f?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var f=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return i=t(i,!f),i.length===0&&!f&&(i="."),i.length>0&&l&&(i+="/"),f?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,f=0;f0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":n.normalize(i)},relative:function(i,f){if(e(i),e(f),i===f||(i=n.resolve(i),f=n.resolve(f),i===f))return"";for(var l=1;lM){if(f.charCodeAt(g+I)===47)return f.slice(g+I+1);if(I===0)return f.slice(g+I)}else m>M&&(i.charCodeAt(l+I)===47?P=I:I===0&&(P=0));break}var B=i.charCodeAt(l+I),R=f.charCodeAt(g+I);if(B!==R)break;B===47&&(P=I)}var A="";for(I=l+P+1;I<=c;++I)(I===c||i.charCodeAt(I)===47)&&(A.length===0?A+="..":A+="/..");return A.length>0?A+f.slice(g+P):(g+=P,f.charCodeAt(g)===47&&++g,f.slice(g))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var f=i.charCodeAt(0),l=f===47,c=-1,m=!0,g=i.length-1;g>=1;--g)if(f=i.charCodeAt(g),f===47){if(!m){c=g;break}}else m=!1;return c===-1?l?"/":".":l&&c===1?"//":i.slice(0,c)},basename:function(i,f){if(f!==void 0&&typeof f!="string")throw new TypeError('"ext" argument must be a string');e(i);var l=0,c=-1,m=!0,g;if(f!==void 0&&f.length>0&&f.length<=i.length){if(f.length===i.length&&f===i)return"";var _=f.length-1,S=-1;for(g=i.length-1;g>=0;--g){var M=i.charCodeAt(g);if(M===47){if(!m){l=g+1;break}}else S===-1&&(m=!1,S=g+1),_>=0&&(M===f.charCodeAt(_)?--_===-1&&(c=g):(_=-1,c=S))}return l===c?c=S:c===-1&&(c=i.length),i.slice(l,c)}else{for(g=i.length-1;g>=0;--g)if(i.charCodeAt(g)===47){if(!m){l=g+1;break}}else c===-1&&(m=!1,c=g+1);return c===-1?"":i.slice(l,c)}},extname:function(i){e(i);for(var f=-1,l=0,c=-1,m=!0,g=0,_=i.length-1;_>=0;--_){var S=i.charCodeAt(_);if(S===47){if(!m){l=_+1;break}continue}c===-1&&(m=!1,c=_+1),S===46?f===-1?f=_:g!==1&&(g=1):f!==-1&&(g=-1)}return f===-1||c===-1||g===0||g===1&&f===c-1&&f===l+1?"":i.slice(f,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){e(i);var f={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return f;var l=i.charCodeAt(0),c=l===47,m;c?(f.root="/",m=1):m=0;for(var g=-1,_=0,S=-1,M=!0,P=i.length-1,I=0;P>=m;--P){if(l=i.charCodeAt(P),l===47){if(!M){_=P+1;break}continue}S===-1&&(M=!1,S=P+1),l===46?g===-1?g=P:I!==1&&(I=1):g!==-1&&(I=-1)}return g===-1||S===-1||I===0||I===1&&g===S-1&&g===_+1?S!==-1&&(_===0&&c?f.base=f.name=i.slice(1,S):f.base=f.name=i.slice(_,S)):(_===0&&c?(f.name=i.slice(1,g),f.base=i.slice(1,S)):(f.name=i.slice(_,g),f.base=i.slice(_,S)),f.ext=i.slice(g,S)),_>0?f.dir=i.slice(0,_-1):c&&(f.dir="/"),f},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,N2=n,N2}var ic={exports:{}},ac={exports:{}},K4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return n&&typeof n.length=="number"&&n.length>=0&&n.length%1===0}e.exports=t.default})(K4,K4.exports);var l5=K4.exports,zi={},oc={exports:{}},G4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){return function(...n){var a=n.pop();return r.call(this,n,a)}},e.exports=t.default})(G4,G4.exports);var JN=G4.exports,Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.fallback=DS;Lo.wrap=FS;var QN=Lo.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,eD=Lo.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,tD=Lo.hasNextTick=typeof He=="object"&&typeof He.nextTick=="function";function DS(e){setTimeout(e,0)}function FS(e){return(t,...r)=>e(()=>t(...r))}var W0;QN?W0=queueMicrotask:eD?W0=setImmediate:tD?W0=He.nextTick:W0=DS;Lo.default=FS(W0);var Sg;function rD(){return Sg||(Sg=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=JN,n=l(r),a=Lo,i=l(a),f=i0();function l(_){return _&&_.__esModule?_:{default:_}}function c(_){return(0,f.isAsync)(_)?function(...S){const M=S.pop(),P=_.apply(this,S);return m(P,M)}:(0,n.default)(function(S,M){var P;try{P=_.apply(this,S)}catch(I){return M(I)}if(P&&typeof P.then=="function")return m(P,M);M(null,P)})}function m(_,S){return _.then(M=>{g(S,null,M)},M=>{g(S,M&&(M instanceof Error||M.message)?M:new Error(M))})}function g(_,S,M){try{_(S,M)}catch(P){(0,i.default)(I=>{throw I},P)}}e.exports=t.default}(oc,oc.exports)),oc.exports}var Eg;function i0(){if(Eg)return zi;Eg=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.isAsyncIterable=zi.isAsyncGenerator=zi.isAsync=void 0;var e=rD(),t=r(e);function r(l){return l&&l.__esModule?l:{default:l}}function n(l){return l[Symbol.toStringTag]==="AsyncFunction"}function a(l){return l[Symbol.toStringTag]==="AsyncGenerator"}function i(l){return typeof l[Symbol.asyncIterator]=="function"}function f(l){if(typeof l!="function")throw new Error("expected a function");return n(l)?(0,t.default)(l):l}return zi.default=f,zi.isAsync=n,zi.isAsyncGenerator=a,zi.isAsyncIterable=i,zi}var W4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){if(a||(a=n.length),!a)throw new Error("arity is undefined");function i(...f){return typeof f[a-1]=="function"?n.apply(this,f):new Promise((l,c)=>{f[a-1]=(m,...g)=>{if(m)return c(m);l(g.length>1?g:g[0])},n.apply(this,f)})}return i}e.exports=t.default})(W4,W4.exports);var hl=W4.exports,Cg;function nD(){return Cg||(Cg=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=l5,n=c(r),a=i0(),i=c(a),f=hl,l=c(f);function c(m){return m&&m.__esModule?m:{default:m}}t.default=(0,l.default)((m,g,_)=>{var S=(0,n.default)(g)?[]:{};m(g,(M,P,I)=>{(0,i.default)(M)((B,...R)=>{R.length<2&&([R]=R),S[P]=R,I(B)})},M=>_(M,S))},3),e.exports=t.default}(ac,ac.exports)),ac.exports}var fc={exports:{}},V4={exports:{}},Z4={exports:{}},X4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){function a(...i){if(n!==null){var f=n;n=null,f.apply(this,i)}}return Object.assign(a,n),a}e.exports=t.default})(X4,X4.exports);var US=X4.exports,Y4={exports:{}},J4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()},e.exports=t.default})(J4,J4.exports);var iD=J4.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var r=l5,n=f(r),a=iD,i=f(a);function f(_){return _&&_.__esModule?_:{default:_}}function l(_){var S=-1,M=_.length;return function(){return++S=l||S||g||(S=!0,f.next().then(({value:A,done:U})=>{if(!(_||g)){if(S=!1,U){g=!0,M<=0&&m(null);return}M++,c(A,P,B),P++,I()}}).catch(R))}function B(A,U){if(M-=1,!_){if(A)return R(A);if(A===!1){g=!0,_=!0;return}if(U===n.default||g&&M<=0)return g=!0,m(null);I()}}function R(A){_||(S=!1,g=!0,m(A))}I()}e.exports=t.default})(e6,e6.exports);var oD=e6.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=US,n=M(r),a=aD,i=M(a),f=jS,l=M(f),c=i0(),m=oD,g=M(m),_=c5,S=M(_);function M(P){return P&&P.__esModule?P:{default:P}}t.default=P=>(I,B,R)=>{if(R=(0,n.default)(R),P<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!I)return R(null);if((0,c.isAsyncGenerator)(I))return(0,g.default)(I,P,B,R);if((0,c.isAsyncIterable)(I))return(0,g.default)(I[Symbol.asyncIterator](),P,B,R);var A=(0,i.default)(I),U=!1,V=!1,j=0,N=!1;function K(te,ee){if(!V)if(j-=1,te)U=!0,R(te);else if(te===!1)U=!0,V=!0;else{if(ee===S.default||U&&j<=0)return U=!0,R(null);N||J()}}function J(){for(N=!0;j0;return xD(f,c,m,function(g){a||(a=g),g&&i.forEach(Pg),!c&&(i.forEach(Pg),n(a))})});return t.reduce(wD)}var KS=SD,Nh=ri,d5=f5.EventEmitter,ED=ot;ED(ri,d5);ri.Readable=u5();ri.Writable=Ih();ri.Duplex=yf();ri.Transform=h5;ri.PassThrough=zS;ri.finished=kh;ri.pipeline=KS;ri.Stream=ri;function ri(){d5.call(this)}ri.prototype.pipe=function(e,t){var r=this;function n(g){e.writable&&e.write(g)===!1&&r.pause&&r.pause()}r.on("data",n);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",f),r.on("close",l));var i=!1;function f(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function c(g){if(m(),d5.listenerCount(this,"error")===0)throw g}r.on("error",c),e.on("error",c);function m(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",f),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",m),r.removeListener("close",m),e.removeListener("close",m)}return r.on("end",m),r.on("close",m),e.on("close",m),e.emit("pipe",r),e};var U2={},j2={exports:{}},q2={},Og;function GS(){if(Og)return q2;Og=1;function e(j){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},e(j)}function t(j,N){for(var K=0;K"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(j){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},S(j)}var M={},P,I;function B(j,N,K){K||(K=Error);function J(ee,G,E){return typeof N=="string"?N:N(ee,G,E)}var te=function(ee){f(E,ee);var G=c(E);function E(d,o,u){var p;return i(this,E),p=G.call(this,J(d,o,u)),p.code=j,p}return r(E)}(K);M[j]=te}function R(j,N){if(Array.isArray(j)){var K=j.length;return j=j.map(function(J){return String(J)}),K>2?"one of ".concat(N," ").concat(j.slice(0,K-1).join(", "),", or ")+j[K-1]:K===2?"one of ".concat(N," ").concat(j[0]," or ").concat(j[1]):"of ".concat(N," ").concat(j[0])}else return"of ".concat(N," ").concat(String(j))}function A(j,N,K){return j.substr(!K||K<0?0:+K,N.length)===N}function U(j,N,K){return(K===void 0||K>j.length)&&(K=j.length),j.substring(K-N.length,K)===N}function V(j,N,K){return typeof K!="number"&&(K=0),K+N.length>j.length?!1:j.indexOf(N,K)!==-1}return B("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),B("ERR_INVALID_ARG_TYPE",function(j,N,K){P===void 0&&(P=D1()),P(typeof j=="string","'name' must be a string");var J;typeof N=="string"&&A(N,"not ")?(J="must not be",N=N.replace(/^not /,"")):J="must be";var te;if(U(j," argument"))te="The ".concat(j," ").concat(J," ").concat(R(N,"type"));else{var ee=V(j,".")?"property":"argument";te='The "'.concat(j,'" ').concat(ee," ").concat(J," ").concat(R(N,"type"))}return te+=". Received type ".concat(e(K)),te},TypeError),B("ERR_INVALID_ARG_VALUE",function(j,N){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";I===void 0&&(I=Mr);var J=I.inspect(N);return J.length>128&&(J="".concat(J.slice(0,128),"...")),"The argument '".concat(j,"' ").concat(K,". Received ").concat(J)},TypeError),B("ERR_INVALID_RETURN_VALUE",function(j,N,K){var J;return K&&K.constructor&&K.constructor.name?J="instance of ".concat(K.constructor.name):J="type ".concat(e(K)),"Expected ".concat(j,' to be returned from the "').concat(N,'"')+" function but got ".concat(J,".")},TypeError),B("ERR_MISSING_ARGS",function(){for(var j=arguments.length,N=new Array(j),K=0;K0,"At least one arg needs to be specified");var J="The ",te=N.length;switch(N=N.map(function(ee){return'"'.concat(ee,'"')}),te){case 1:J+="".concat(N[0]," argument");break;case 2:J+="".concat(N[0]," and ").concat(N[1]," arguments");break;default:J+=N.slice(0,te-1).join(", "),J+=", and ".concat(N[te-1]," arguments");break}return"".concat(J," must be specified")},TypeError),q2.codes=M,q2}var z2,kg;function CD(){if(kg)return z2;kg=1;function e(w,v){var h=Object.keys(w);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(w);v&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(w,b).enumerable})),h.push.apply(h,s)}return h}function t(w){for(var v=1;v"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function I(w){return Function.toString.call(w).indexOf("[native code]")!==-1}function B(w,v){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,b){return s.__proto__=b,s},B(w,v)}function R(w){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},R(w)}function A(w){"@babel/helpers - typeof";return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},A(w)}var U=Mr,V=U.inspect,j=GS(),N=j.codes.ERR_INVALID_ARG_TYPE;function K(w,v,h){return(h===void 0||h>w.length)&&(h=w.length),w.substring(h-v.length,h)===v}function J(w,v){if(v=Math.floor(v),w.length==0||v==0)return"";var h=w.length*v;for(v=Math.floor(Math.log(v)/Math.log(2));v;)w+=w,v--;return w+=w.substring(0,h-w.length),w}var te="",ee="",G="",E="",d={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},o=10;function u(w){var v=Object.keys(w),h=Object.create(Object.getPrototypeOf(w));return v.forEach(function(s){h[s]=w[s]}),Object.defineProperty(h,"message",{value:w.message}),h}function p(w){return V(w,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function y(w,v,h){var s="",b="",D=0,C="",F=!1,$=p(w),H=$.split(` +${x}`),u.pop(),`{${s}}`}case"number":return isFinite(o)?String(o):A?A(o):"null";case"boolean":return o===!0?"true":"false";case"undefined":return;case"bigint":if(V)return String(o);default:return A?A(o):void 0}}function G(d,o,u){switch(typeof o){case"string":return i(o);case"object":{if(o===null)return"null";if(typeof o.toJSON=="function"){if(o=o.toJSON(d),typeof o!="object")return G(d,o,u);if(o===null)return"null"}if(u.indexOf(o)!==-1)return F;let p="";if(Array.isArray(o)){if(o.length===0)return"[]";if(NK){const D=o.length-K-1;p+=`,"... ${M(D)} not stringified"`}return u.pop(),`[${p}]`}let y=Object.keys(o);const x=y.length;if(x===0)return"{}";if(NK){const h=x-K;p+=`${w}"...":"${M(h)} not stringified"`}return u.pop(),`{${p}}`}case"number":return isFinite(o)?String(o):A?A(o):"null";case"boolean":return o===!0?"true":"false";case"undefined":return;case"bigint":if(V)return String(o);default:return A?A(o):void 0}}function E(d,o,u){if(arguments.length>1){let p="";if(typeof u=="number"?p=" ".repeat(Math.min(u,10)):typeof u=="string"&&(p=u.slice(0,10)),o!=null){if(typeof o=="function")return J("",{"":d},[],o,p,"");if(Array.isArray(o))return te("",d,[],P(o),p,"")}if(p.length!==0)return ee("",d,[],p,"")}return G("",d,[])}return E}})(q4,q4.exports);var ll=q4.exports,PB=In,OB=nr,kB=OB.MESSAGE,IB=ll;function BB(e,t){return typeof t=="bigint"?t.toString():t}var LB=PB(function(e,t){var r=IB.configure(t);return e[kB]=r(e,t.replacer||BB,t.space),e}),NB=In,DB=NB(function(e,t){return t.message?(e.message="[".concat(t.label,"] ").concat(e.message),e):(e.label=t.label,e)}),FB=In,UB=nr,jB=UB.MESSAGE,qB=ll,zB=FB(function(e){var t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[jB]=qB(t),e});function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function $B(e,t,r){return t=HB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HB(e){var t=KB(e,"string");return Fu(t)==="symbol"?t:String(t)}function KB(e,t){if(Fu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GB=In;function WB(e,t,r){var n=t.reduce(function(i,f){return i[f]=e[f],delete e[f],i},{}),a=Object.keys(e).reduce(function(i,f){return i[f]=e[f],delete e[f],i},{});return Object.assign(e,n,$B({},r,a)),e}function VB(e,t,r){return e[r]=t.reduce(function(n,a){return n[a]=e[a],delete e[a],n},{}),e}var ZB=GB(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="metadata";t.key&&(r=t.key);var n=[];return!t.fillExcept&&!t.fillWith&&(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?WB(e,n,r):t.fillWith?VB(e,t.fillWith,r):e}),Bs=1e3,Ls=Bs*60,Ns=Ls*60,gf=Ns*24,XB=gf*7,YB=gf*365.25,JB=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return QB(e);if(r==="number"&&isFinite(e))return t.long?tL(e):eL(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function QB(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*YB;case"weeks":case"week":case"w":return r*XB;case"days":case"day":case"d":return r*gf;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ns;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ls;case"seconds":case"second":case"secs":case"sec":case"s":return r*Bs;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function eL(e){var t=Math.abs(e);return t>=gf?Math.round(e/gf)+"d":t>=Ns?Math.round(e/Ns)+"h":t>=Ls?Math.round(e/Ls)+"m":t>=Bs?Math.round(e/Bs)+"s":e+"ms"}function tL(e){var t=Math.abs(e);return t>=gf?tc(e,t,gf,"day"):t>=Ns?tc(e,t,Ns,"hour"):t>=Ls?tc(e,t,Ls,"minute"):t>=Bs?tc(e,t,Bs,"second"):e+" ms"}function tc(e,t,r,n){var a=t>=r*1.5;return Math.round(e/r)+" "+n+(a?"s":"")}var rc=void 0,rL=In,nL=JB,iL=rL(function(e){var t=+new Date;return rc.diff=t-(rc.prevTime||t),rc.prevTime=t,e.ms="+".concat(nL(rc.diff)),e}),aL=Mr.inspect,oL=In,n5=nr,fL=n5.LEVEL,W9=n5.MESSAGE,sL=n5.SPLAT,uL=oL(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({},e);return delete r[fL],delete r[W9],delete r[sL],e[W9]=aL(r,!1,t.depth||null,t.colorize),e}),B1={exports:{}};function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function lL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V9(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?a.splice(0):a,l=f.length;if(l)for(var c=0;c-1?a:null}};function Ao(e){for(var t=[],r=1;r3?0:(e-e%10!==10?1:0)*e%10]}},L1=Ao({},i5),mS=function(e){return L1=Ao(L1,e)},eg=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},un=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length0?"-":"+")+un(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+un(Math.floor(Math.abs(t)/60),2)+":"+un(Math.abs(t)%60,2)}},tg=function(e){return+e-1},rg=[null,Ya],ng=[null,lu],ig=["isPm",lu,function(e,t){var r=e.toLowerCase();return r===t.amPm[0]?0:r===t.amPm[1]?1:null}],ag=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var r=+t[1]*60+parseInt(t[2],10);return t[0]==="+"?r:-r}return 0}],jL={D:["day",Ya],DD:["day",$a],Do:["day",Ya+lu,function(e){return parseInt(e,10)}],M:["month",Ya,tg],MM:["month",$a,tg],YY:["year",$a,function(e){var t=new Date,r=+(""+t.getFullYear()).substr(0,2);return+(""+(+e>68?r-1:r)+e)}],h:["hour",Ya,void 0,"isPm"],hh:["hour",$a,void 0,"isPm"],H:["hour",Ya],HH:["hour",$a],m:["minute",Ya],mm:["minute",$a],s:["second",Ya],ss:["second",$a],YYYY:["year",NL],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",$a,function(e){return+e*10}],SSS:["millisecond",LL],d:rg,dd:rg,ddd:ng,dddd:ng,MMM:["month",lu,Q9("monthNamesShort")],MMMM:["month",lu,Q9("monthNames")],a:ig,A:ig,ZZ:ag,Z:ag},N1={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},bS=function(e){return Ao(N1,e)},xS=function(e,t,r){if(t===void 0&&(t=N1.default),r===void 0&&(r={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=N1[t]||t;var n=[];t=t.replace(pS,function(i,f){return n.push(f),"@@@"});var a=Ao(Ao({},L1),r);return t=t.replace(dS,function(i){return UL[i](e,a)}),t.replace(/@@@/g,function(){return n.shift()})};function wS(e,t,r){if(r===void 0&&(r={}),typeof t!="string")throw new Error("Invalid format in fecha parse");if(t=N1[t]||t,e.length>1e3)return null;var n=new Date,a={year:n.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],f=[],l=t.replace(pS,function(V,j){return f.push(eg(j)),"@@@"}),c={},m={};l=eg(l).replace(dS,function(V){var j=jL[V],N=j[0],K=j[1],J=j[3];if(c[N])throw new Error("Invalid format. "+N+" specified twice in format");return c[N]=!0,J&&(m[J]=!0),i.push(j),"("+K+")"}),Object.keys(m).forEach(function(V){if(!c[V])throw new Error("Invalid format. "+V+" is required in specified format")}),l=l.replace(/@@@/g,function(){return f.shift()});var g=e.match(new RegExp(l,"i"));if(!g)return null;for(var _=Ao(Ao({},L1),r),S=1;S11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return R}var qL={format:xS,parse:wS,defaultI18n:i5,setGlobalDateI18n:mS,setGlobalDateMasks:bS};const zL=Object.freeze(Object.defineProperty({__proto__:null,assign:Ao,default:qL,defaultI18n:i5,format:xS,parse:wS,setGlobalDateI18n:mS,setGlobalDateMasks:bS},Symbol.toStringTag,{value:"Module"})),$L=gT(zL);var HL=$L,KL=In,GL=KL(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.format&&(e.timestamp=typeof t.format=="function"?t.format():HL.format(new Date,t.format)),e.timestamp||(e.timestamp=new Date().toISOString()),t.alias&&(e[t.alias]=e.timestamp),e}),S2=rS,WL=In,VL=nr,E2=VL.MESSAGE,ZL=WL(function(e,t){return t.level!==!1&&(e.level=S2.strip(e.level)),t.message!==!1&&(e.message=S2.strip(String(e.message))),t.raw!==!1&&e[E2]&&(e[E2]=S2.strip(String(e[E2]))),e}),Dr=Ah.format=In;Ah.levels=QI;Object.defineProperty(Dr,"align",{value:tB});Object.defineProperty(Dr,"cli",{value:_B});Object.defineProperty(Dr,"colorize",{value:Q8});Object.defineProperty(Dr,"combine",{value:CB});Object.defineProperty(Dr,"errors",{value:TB});Object.defineProperty(Dr,"json",{value:LB});Object.defineProperty(Dr,"label",{value:DB});Object.defineProperty(Dr,"logstash",{value:zB});Object.defineProperty(Dr,"metadata",{value:ZB});Object.defineProperty(Dr,"ms",{value:iL});Object.defineProperty(Dr,"padLevels",{value:fS});Object.defineProperty(Dr,"prettyPrint",{value:uL});Object.defineProperty(Dr,"printf",{value:gL});Object.defineProperty(Dr,"simple",{value:xL});Object.defineProperty(Dr,"splat",{value:BL});Object.defineProperty(Dr,"timestamp",{value:GL});Object.defineProperty(Dr,"uncolorize",{value:ZL});var a5={};(function(e){var t=Mr,r=t.format;e.warn={deprecated:function(a){return function(){throw new Error(r("{ %s } was removed in winston@3.0.0.",a))}},useFormat:function(a){return function(){throw new Error([r("{ %s } was removed in winston@3.0.0.",a),"Use a custom winston.format = winston.format(function) instead."].join(` +`))}},forFunctions:function(a,i,f){f.forEach(function(l){a[l]=e.warn[i](l)})},forProperties:function(a,i,f){f.forEach(function(l){var c=e.warn[i](l);Object.defineProperty(a,l,{get:c,set:c})})}}})(a5);const XL="winston",YL="A logger for just about everything.",JL="3.11.0",QL="Charlie Robbins ",eN=["David Hyde "],tN={type:"git",url:"https://github.com/winstonjs/winston.git"},rN=["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],nN={"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.5.0"},iN={"@babel/cli":"^7.17.0","@babel/core":"^7.17.2","@babel/preset-env":"^7.16.7","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.3.1","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.9.0",hock:"^1.4.1",mocha:"8.1.3",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^1.0.1",through2:"^4.0.2","winston-compat":"^0.1.5"},aN="./lib/winston.js",oN="./dist/winston",fN="./index.d.ts",sN={lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},uN={node:">= 12.0.0"},lN="MIT",cN={name:XL,description:YL,version:JL,author:QL,maintainers:eN,repository:tN,keywords:rN,dependencies:nN,devDependencies:iN,main:aN,browser:oN,types:fN,scripts:sN,engines:uN,license:lN};var _S={},nc={exports:{}},hN=dN;function dN(e,t){if(C2("noDeprecation"))return e;var r=!1;function n(){if(!r){if(C2("throwDeprecation"))throw new Error(t);C2("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function C2(e){try{if(!Oe.localStorage)return!1}catch{return!1}var t=Oe.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var o5={exports:{}},ms=typeof Reflect=="object"?Reflect:null,og=ms&&typeof ms.apply=="function"?ms.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},zc;ms&&typeof ms.ownKeys=="function"?zc=ms.ownKeys:Object.getOwnPropertySymbols?zc=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:zc=function(t){return Object.getOwnPropertyNames(t)};function pN(e){console&&console.warn&&console.warn(e)}var SS=Number.isNaN||function(t){return t!==t};function Pt(){Pt.init.call(this)}o5.exports=Pt;o5.exports.once=mN;Pt.EventEmitter=Pt;Pt.prototype._events=void 0;Pt.prototype._eventsCount=0;Pt.prototype._maxListeners=void 0;var fg=10;function Oh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Pt,"defaultMaxListeners",{enumerable:!0,get:function(){return fg},set:function(e){if(typeof e!="number"||e<0||SS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");fg=e}});Pt.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};Pt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||SS(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 ES(e){return e._maxListeners===void 0?Pt.defaultMaxListeners:e._maxListeners}Pt.prototype.getMaxListeners=function(){return ES(this)};Pt.prototype.emit=function(t){for(var r=[],n=1;n0&&(f=r[0]),f instanceof Error)throw f;var l=new Error("Unhandled error."+(f?" ("+f.message+")":""));throw l.context=f,l}var c=i[t];if(c===void 0)return!1;if(typeof c=="function")og(c,this,r);else for(var m=c.length,g=TS(c,m),n=0;n0&&f.length>a&&!f.warned){f.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=f.length,pN(l)}return e}Pt.prototype.addListener=function(t,r){return CS(this,t,r,!1)};Pt.prototype.on=Pt.prototype.addListener;Pt.prototype.prependListener=function(t,r){return CS(this,t,r,!0)};function vN(){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 MS(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=vN.bind(n);return a.listener=r,n.wrapFn=a,a}Pt.prototype.once=function(t,r){return Oh(r),this.on(t,MS(this,t,r)),this};Pt.prototype.prependOnceListener=function(t,r){return Oh(r),this.prependListener(t,MS(this,t,r)),this};Pt.prototype.removeListener=function(t,r){var n,a,i,f,l;if(Oh(r),a=this._events,a===void 0)return this;if(n=a[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(i=-1,f=n.length-1;f>=0;f--)if(n[f]===r||n[f].listener===r){l=n[f].listener,i=f;break}if(i<0)return this;i===0?n.shift():gN(n,i),n.length===1&&(a[t]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Pt.prototype.off=Pt.prototype.removeListener;Pt.prototype.removeAllListeners=function(t){var r,n,a;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 i=Object.keys(n),f;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function AS(e,t,r){var n=e._events;if(n===void 0)return[];var a=n[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?yN(a):TS(a,a.length)}Pt.prototype.listeners=function(t){return AS(this,t,!0)};Pt.prototype.rawListeners=function(t){return AS(this,t,!1)};Pt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):RS.call(e,t)};Pt.prototype.listenerCount=RS;function RS(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}Pt.prototype.eventNames=function(){return this._eventsCount>0?zc(this._events):[]};function TS(e,t){for(var r=new Array(t),n=0;n2?"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 EN(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function CN(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function MN(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"&&EN(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var a;if(CN(e," argument"))a="The ".concat(e," ").concat(n," ").concat(ug(t,"type"));else{var i=MN(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(i," ").concat(n," ").concat(ug(t,"type"))}return a+=". Received type ".concat(typeof r),a},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");Cf.codes=IS;var AN=Cf.codes.ERR_INVALID_OPT_VALUE;function RN(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function TN(e,t,r,n){var a=RN(t,n,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?r:"highWaterMark";throw new AN(i,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var BS={getHighWaterMark:TN},M2,lg;function PN(){if(lg)return M2;lg=1;function e(P,I){var B=Object.keys(P);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(P);I&&(R=R.filter(function(A){return Object.getOwnPropertyDescriptor(P,A).enumerable})),B.push.apply(B,R)}return B}function t(P){for(var I=1;I0?this.tail.next=R:this.head=R,this.tail=R,++this.length}},{key:"unshift",value:function(B){var R={data:B,next:this.head};this.length===0&&(this.tail=R),this.head=R,++this.length}},{key:"shift",value:function(){if(this.length!==0){var B=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,B}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(B){if(this.length===0)return"";for(var R=this.head,A=""+R.data;R=R.next;)A+=B+R.data;return A}},{key:"concat",value:function(B){if(this.length===0)return m.alloc(0);for(var R=m.allocUnsafe(B>>>0),A=this.head,F=0;A;)M(A.data,R,F),F+=A.data.length,A=A.next;return R}},{key:"consume",value:function(B,R){var A;return BV.length?V.length:B;if(j===V.length?F+=V:F+=V.slice(0,B),B-=j,B===0){j===V.length?(++A,R.next?this.head=R.next:this.head=this.tail=null):(this.head=R,R.data=V.slice(j));break}++A}return this.length-=A,F}},{key:"_getBuffer",value:function(B){var R=m.allocUnsafe(B),A=this.head,F=1;for(A.data.copy(R),B-=A.data.length;A=A.next;){var V=A.data,j=B>V.length?V.length:B;if(V.copy(R,R.length-B,0,j),B-=j,B===0){j===V.length?(++F,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=V.slice(j));break}++F}return this.length-=F,R}},{key:S,value:function(B,R){return _(this,t(t({},R),{},{depth:0,customInspect:!1}))}}]),P}(),M2}var qu={},H4={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(e,t){var r=Te,n=r.Buffer;function a(f,l){for(var c in f)l[c]=f[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=i);function i(f,l,c){return n(f,l,c)}i.prototype=Object.create(n.prototype),a(n,i),i.from=function(f,l,c){if(typeof f=="number")throw new TypeError("Argument must not be a number");return n(f,l,c)},i.alloc=function(f,l,c){if(typeof f!="number")throw new TypeError("Argument must be a number");var m=n(f);return l!==void 0?typeof c=="string"?m.fill(l,c):m.fill(l):m.fill(0),m},i.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return n(f)},i.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(f)}})(H4,H4.exports);var st=H4.exports,s5=st.Buffer,cg=s5.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 ON(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 kN(e){var t=ON(e);if(typeof t!="string"&&(s5.isEncoding===cg||!cg(e)))throw new Error("Unknown encoding: "+e);return t||e}qu.StringDecoder=cl;function cl(e){this.encoding=kN(e);var t;switch(this.encoding){case"utf16le":this.text=FN,this.end=UN,t=4;break;case"utf8":this.fillLast=LN,t=4;break;case"base64":this.text=jN,this.end=qN,t=3;break;default:this.write=zN,this.end=$N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=s5.allocUnsafe(t)}cl.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>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function IN(e,t,r){var n=t.length-1;if(n=0?(a>0&&(e.lastNeed=a-1),a):--n=0?(a>0&&(e.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}function BN(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function LN(e){var t=this.lastTotal-this.lastNeed,r=BN(this,e);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 NN(e,t){var r=IN(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 DN(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function FN(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 UN(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 jN(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 qN(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function zN(e){return e.toString(this.encoding)}function $N(e){return e&&e.length?this.write(e):""}var hg=Cf.codes.ERR_STREAM_PREMATURE_CLOSE;function HN(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a0)if(typeof L!="string"&&!Y.objectMode&&Object.getPrototypeOf(L)!==n.prototype&&(L=i(L)),re)Y.endEmitted?j(k,new R):G(k,Y,L,!0);else if(Y.ended)j(k,new I);else{if(Y.destroyed)return!1;Y.reading=!1,Y.decoder&&!oe?(L=Y.decoder.write(L),Y.objectMode||L.length!==0?G(k,Y,L,!1):w(k,Y)):G(k,Y,L,!1)}else re||(Y.reading=!1,w(k,Y))}return!Y.ended&&(Y.length=d?k=d:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function u(k,L){return k<=0||L.length===0&&L.ended?0:L.objectMode?1:k!==k?L.flowing&&L.length?L.buffer.head.data.length:L.length:(k>L.highWaterMark&&(L.highWaterMark=o(k)),k<=L.length?k:L.ended?L.length:(L.needReadable=!0,0))}te.prototype.read=function(k){c("read",k),k=parseInt(k,10);var L=this._readableState,oe=k;if(k!==0&&(L.emittedReadable=!1),k===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return c("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?H(this):y(this),null;if(k=u(k,L),k===0&&L.ended)return L.length===0&&H(this),null;var re=L.needReadable;c("need readable",re),(L.length===0||L.length-k0?se=$(k,L):se=null,se===null?(L.needReadable=L.length<=L.highWaterMark,k=0):(L.length-=k,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),oe!==k&&L.ended&&H(this)),se!==null&&this.emit("data",se),se};function p(k,L){if(c("onEofChunk"),!L.ended){if(L.decoder){var oe=L.decoder.end();oe&&oe.length&&(L.buffer.push(oe),L.length+=L.objectMode?1:oe.length)}L.ended=!0,L.sync?y(k):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,x(k)))}}function y(k){var L=k._readableState;c("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(c("emitReadable",L.flowing),L.emittedReadable=!0,He.nextTick(x,k))}function x(k){var L=k._readableState;c("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(k.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,U(k)}function w(k,L){L.readingMore||(L.readingMore=!0,He.nextTick(v,k,L))}function v(k,L){for(;!L.reading&&!L.ended&&(L.length1&&z(re.pipes,k)!==-1)&&!ie&&(c("false write response, pause",re.awaitDrain),re.awaitDrain++),oe.pause())}function _e(pe){c("onerror",pe),fe(),k.removeListener("error",_e),t(k,"error")===0&&j(k,pe)}K(k,"error",_e);function Z(){k.removeListener("finish",le),fe()}k.once("close",Z);function le(){c("onfinish"),k.removeListener("close",Z),fe()}k.once("finish",le);function fe(){c("unpipe"),oe.unpipe(k)}return k.emit("pipe",oe),re.flowing||(c("pipe resume"),oe.resume()),k};function h(k){return function(){var oe=k._readableState;c("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&t(k,"data")&&(oe.flowing=!0,U(k))}}te.prototype.unpipe=function(k){var L=this._readableState,oe={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return k&&k!==L.pipes?this:(k||(k=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,k&&k.emit("unpipe",this,oe),this);if(!k){var re=L.pipes,se=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var Y=0;Y0,re.flowing!==!1&&this.resume()):k==="readable"&&!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.flowing=!1,re.emittedReadable=!1,c("on readable",re.length,re.reading),re.length?y(this):re.reading||He.nextTick(b,this)),oe},te.prototype.addListener=te.prototype.on,te.prototype.removeListener=function(k,L){var oe=r.prototype.removeListener.call(this,k,L);return k==="readable"&&He.nextTick(s,this),oe},te.prototype.removeAllListeners=function(k){var L=r.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&He.nextTick(s,this),L};function s(k){var L=k._readableState;L.readableListening=k.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:k.listenerCount("data")>0&&k.resume()}function b(k){c("readable nexttick read 0"),k.read(0)}te.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,D(this,k)),k.paused=!1,this};function D(k,L){L.resumeScheduled||(L.resumeScheduled=!0,He.nextTick(C,k,L))}function C(k,L){c("resume",L.reading),L.reading||k.read(0),L.resumeScheduled=!1,k.emit("resume"),U(k),L.flowing&&!L.reading&&k.read(0)}te.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function U(k){var L=k._readableState;for(c("flow",L.flowing);L.flowing&&k.read()!==null;);}te.prototype.wrap=function(k){var L=this,oe=this._readableState,re=!1;k.on("end",function(){if(c("wrapped end"),oe.decoder&&!oe.ended){var T=oe.decoder.end();T&&T.length&&L.push(T)}L.push(null)}),k.on("data",function(T){if(c("wrapped data"),oe.decoder&&(T=oe.decoder.write(T)),!(oe.objectMode&&T==null)&&!(!oe.objectMode&&(!T||!T.length))){var O=L.push(T);O||(re=!0,k.pause())}});for(var se in k)this[se]===void 0&&typeof k[se]=="function"&&(this[se]=function(O){return function(){return k[O].apply(k,arguments)}}(se));for(var Y=0;Y=L.length?(L.decoder?oe=L.buffer.join(""):L.buffer.length===1?oe=L.buffer.first():oe=L.buffer.concat(L.length),L.buffer.clear()):oe=L.buffer.consume(k,L.decoder),oe}function H(k){var L=k._readableState;c("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,He.nextTick(X,L,k))}function X(k,L){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,L.readable=!1,L.emit("end"),k.autoDestroy)){var oe=L._writableState;(!oe||oe.autoDestroy&&oe.finished)&&L.destroy()}}typeof Symbol=="function"&&(te.from=function(k,L){return V===void 0&&(V=VN()),V(te,k,L)});function z(k,L){for(var oe=0,re=k.length;oe-1))throw new F($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(U,$,H){return!U.objectMode&&U.decodeStrings!==!1&&typeof $=="string"&&($=a.from($,H)),$}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function E(U,$,H,X,z,k){if(!H){var L=G($,X,z);X!==L&&(H=!0,z="buffer",X=L)}var oe=$.objectMode?1:X.length;$.length+=oe;var re=$.length<$.highWaterMark;if(re||($.needDrain=!0),$.writing||$.corked){var se=$.lastBufferedRequest;$.lastBufferedRequest={chunk:X,encoding:z,isBuf:H,callback:k,next:null},se?se.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else d(U,$,!1,oe,X,z,k);return re}function d(U,$,H,X,z,k,L){$.writelen=X,$.writecb=L,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new B("write")):H?U._writev(z,$.onwrite):U._write(z,k,$.onwrite),$.sync=!1}function o(U,$,H,X,z){--$.pendingcb,H?(He.nextTick(z,X),He.nextTick(b,U,$),U._writableState.errorEmitted=!0,V(U,X)):(z(X),U._writableState.errorEmitted=!0,V(U,X),b(U,$))}function u(U){U.writing=!1,U.writecb=null,U.length-=U.writelen,U.writelen=0}function p(U,$){var H=U._writableState,X=H.sync,z=H.writecb;if(typeof z!="function")throw new P;if(u(H),$)o(U,H,X,$,z);else{var k=v(H)||U.destroyed;!k&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&w(U,H),X?He.nextTick(y,U,H,k,z):y(U,H,k,z)}}function y(U,$,H,X){H||x(U,$),$.pendingcb--,X(),b(U,$)}function x(U,$){$.length===0&&$.needDrain&&($.needDrain=!1,U.emit("drain"))}function w(U,$){$.bufferProcessing=!0;var H=$.bufferedRequest;if(U._writev&&H&&H.next){var X=$.bufferedRequestCount,z=new Array(X),k=$.corkedRequestsFree;k.entry=H;for(var L=0,oe=!0;H;)z[L]=H,H.isBuf||(oe=!1),H=H.next,L+=1;z.allBuffers=oe,d(U,$,!0,$.length,z,"",k.finish),$.pendingcb++,$.lastBufferedRequest=null,k.next?($.corkedRequestsFree=k.next,k.next=null):$.corkedRequestsFree=new e($),$.bufferedRequestCount=0}else{for(;H;){var re=H.chunk,se=H.encoding,Y=H.callback,T=$.objectMode?1:re.length;if(d(U,$,!1,T,re,se,Y),H=H.next,$.bufferedRequestCount--,$.writing)break}H===null&&($.lastBufferedRequest=null)}$.bufferedRequest=H,$.bufferProcessing=!1}J.prototype._write=function(U,$,H){H(new M("_write()"))},J.prototype._writev=null,J.prototype.end=function(U,$,H){var X=this._writableState;return typeof U=="function"?(H=U,U=null,$=null):typeof $=="function"&&(H=$,$=null),U!=null&&this.write(U,$),X.corked&&(X.corked=1,this.uncork()),X.ending||D(this,X,H),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function v(U){return U.ending&&U.length===0&&U.bufferedRequest===null&&!U.finished&&!U.writing}function h(U,$){U._final(function(H){$.pendingcb--,H&&V(U,H),$.prefinished=!0,U.emit("prefinish"),b(U,$)})}function s(U,$){!$.prefinished&&!$.finalCalled&&(typeof U._final=="function"&&!$.destroyed?($.pendingcb++,$.finalCalled=!0,He.nextTick(h,U,$)):($.prefinished=!0,U.emit("prefinish")))}function b(U,$){var H=v($);if(H&&(s(U,$),$.pendingcb===0&&($.finished=!0,U.emit("finish"),$.autoDestroy))){var X=U._readableState;(!X||X.autoDestroy&&X.endEmitted)&&U.destroy()}return H}function D(U,$,H){$.ending=!0,b(U,$),H&&($.finished?He.nextTick(H):U.once("finish",H)),$.ended=!0,U.writable=!1}function C(U,$,H){var X=U.entry;for(U.entry=null;X;){var z=X.callback;$.pendingcb--,z(H),X=X.next}$.corkedRequestsFree.next=U}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($){this._writableState&&(this._writableState.destroyed=$)}}),J.prototype.destroy=c.destroy,J.prototype._undestroy=c.undestroy,J.prototype._destroy=function(U,$){$(U)},k2}var I2={exports:{}},mg;function ZN(){if(mg)return I2.exports;mg=1;var e=Mr,t=nr,r=t.LEVEL,n=Mf(),a=I2.exports=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(n.call(this,f),!f.transport||typeof f.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=f.transport,this.level=this.level||f.transport.level,this.handleExceptions=this.handleExceptions||f.transport.handleExceptions,this._deprecated();function l(c){this.emit("error",c,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=l.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(a,n),a.prototype._write=function(f,l,c){if(this.silent||f.exception===!0&&!this.handleExceptions)return c(null);(!this.level||this.levels[this.level]>=this.levels[f[r]])&&this.transport.log(f[r],f.message,f,this._nop),c(null)},a.prototype._writev=function(f,l){for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:{};t.call(this,{objectMode:!0,highWaterMark:l.highWaterMark}),this.format=l.format,this.level=l.level,this.handleExceptions=l.handleExceptions,this.handleRejections=l.handleRejections,this.silent=l.silent,l.log&&(this.log=l.log),l.logv&&(this.logv=l.logv),l.close&&(this.close=l.close),this.once("pipe",function(c){f.levels=c.levels,f.parent=c}),this.once("unpipe",function(c){c===f.parent&&(f.parent=null,f.close&&f.close())})};return e.inherits(a,t),a.prototype._write=function(f,l,c){if(this.silent||f.exception===!0&&!this.handleExceptions)return c(null);var m=this.level||this.parent&&this.parent.level;if(!m||this.levels[m]>=this.levels[f[n]]){if(f&&!this.format)return this.log(f,c);var g=void 0,_=void 0;try{_=this.format.transform(Object.assign({},f),this.format.options)}catch(S){g=S}if(g||!_){if(c(),g)throw g;return}return this.log(_,c)}return this._writableState.sync=!1,c(null)},a.prototype._writev=function(f,l){if(this.logv){var c=f.filter(this._accept,this);return c.length?this.logv(c,l):l(null)}for(var m=0;m=this.levels[l[n]])&&(this.handleExceptions||l.exception!==!0))},a.prototype._nop=function(){},nc.exports.LegacyTransportStream=ZN(),nc.exports}var B2,xg;function XN(){if(xg)return B2;xg=1;function e(A){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},e(A)}function t(A,F){if(!(A instanceof F))throw new TypeError("Cannot call a class as a function")}function r(A,F){for(var V=0;V"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(A){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},S(A)}var M=er,P=nr,I=P.LEVEL,B=P.MESSAGE,R=Mf();return B2=function(A){f(V,A);var F=c(V);function V(){var j,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t(this,V),j=F.call(this,N),j.name=N.name||"console",j.stderrLevels=j._stringArrayToSet(N.stderrLevels),j.consoleWarnLevels=j._stringArrayToSet(N.consoleWarnLevels),j.eol=typeof N.eol=="string"?N.eol:M.EOL,j.setMaxListeners(30),j}return n(V,[{key:"log",value:function(N,K){var J=this;if(setImmediate(function(){return J.emit("logged",N)}),this.stderrLevels[N[I]]){console._stderr?console._stderr.write("".concat(N[B]).concat(this.eol)):console.error(N[B]),K&&K();return}else if(this.consoleWarnLevels[N[I]]){console._stderr?console._stderr.write("".concat(N[B]).concat(this.eol)):console.warn(N[B]),K&&K();return}console._stdout?console._stdout.write("".concat(N[B]).concat(this.eol)):console.log(N[B]),K&&K()}},{key:"_stringArrayToSet",value:function(N,K){if(!N)return{};if(K=K||"Cannot make set from type other than Array of string elements",!Array.isArray(N))throw new Error(K);return N.reduce(function(J,te){if(typeof te!="string")throw new Error(K);return J[te]=!0,J},{})}}]),V}(R),B2}var L2,wg;function NS(){if(wg)return L2;wg=1;var e=null;return L2=e,L2}var N2,_g;function YN(){if(_g)return N2;_g=1;function e(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function t(a,i){for(var f="",l=0,c=-1,m=0,g,_=0;_<=a.length;++_){if(_2){var S=f.lastIndexOf("/");if(S!==f.length-1){S===-1?(f="",l=0):(f=f.slice(0,S),l=f.length-1-f.lastIndexOf("/")),c=_,m=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=_,m=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,_):f=a.slice(c+1,_),l=_-c-1;c=_,m=0}else g===46&&m!==-1?++m:m=-1}return f}function r(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var n={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var m;c>=0?m=arguments[c]:(l===void 0&&(l=He.cwd()),m=l),e(m),m.length!==0&&(i=m+"/"+i,f=m.charCodeAt(0)===47)}return i=t(i,!f),f?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var f=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return i=t(i,!f),i.length===0&&!f&&(i="."),i.length>0&&l&&(i+="/"),f?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,f=0;f0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":n.normalize(i)},relative:function(i,f){if(e(i),e(f),i===f||(i=n.resolve(i),f=n.resolve(f),i===f))return"";for(var l=1;lM){if(f.charCodeAt(g+I)===47)return f.slice(g+I+1);if(I===0)return f.slice(g+I)}else m>M&&(i.charCodeAt(l+I)===47?P=I:I===0&&(P=0));break}var B=i.charCodeAt(l+I),R=f.charCodeAt(g+I);if(B!==R)break;B===47&&(P=I)}var A="";for(I=l+P+1;I<=c;++I)(I===c||i.charCodeAt(I)===47)&&(A.length===0?A+="..":A+="/..");return A.length>0?A+f.slice(g+P):(g+=P,f.charCodeAt(g)===47&&++g,f.slice(g))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var f=i.charCodeAt(0),l=f===47,c=-1,m=!0,g=i.length-1;g>=1;--g)if(f=i.charCodeAt(g),f===47){if(!m){c=g;break}}else m=!1;return c===-1?l?"/":".":l&&c===1?"//":i.slice(0,c)},basename:function(i,f){if(f!==void 0&&typeof f!="string")throw new TypeError('"ext" argument must be a string');e(i);var l=0,c=-1,m=!0,g;if(f!==void 0&&f.length>0&&f.length<=i.length){if(f.length===i.length&&f===i)return"";var _=f.length-1,S=-1;for(g=i.length-1;g>=0;--g){var M=i.charCodeAt(g);if(M===47){if(!m){l=g+1;break}}else S===-1&&(m=!1,S=g+1),_>=0&&(M===f.charCodeAt(_)?--_===-1&&(c=g):(_=-1,c=S))}return l===c?c=S:c===-1&&(c=i.length),i.slice(l,c)}else{for(g=i.length-1;g>=0;--g)if(i.charCodeAt(g)===47){if(!m){l=g+1;break}}else c===-1&&(m=!1,c=g+1);return c===-1?"":i.slice(l,c)}},extname:function(i){e(i);for(var f=-1,l=0,c=-1,m=!0,g=0,_=i.length-1;_>=0;--_){var S=i.charCodeAt(_);if(S===47){if(!m){l=_+1;break}continue}c===-1&&(m=!1,c=_+1),S===46?f===-1?f=_:g!==1&&(g=1):f!==-1&&(g=-1)}return f===-1||c===-1||g===0||g===1&&f===c-1&&f===l+1?"":i.slice(f,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){e(i);var f={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return f;var l=i.charCodeAt(0),c=l===47,m;c?(f.root="/",m=1):m=0;for(var g=-1,_=0,S=-1,M=!0,P=i.length-1,I=0;P>=m;--P){if(l=i.charCodeAt(P),l===47){if(!M){_=P+1;break}continue}S===-1&&(M=!1,S=P+1),l===46?g===-1?g=P:I!==1&&(I=1):g!==-1&&(I=-1)}return g===-1||S===-1||I===0||I===1&&g===S-1&&g===_+1?S!==-1&&(_===0&&c?f.base=f.name=i.slice(1,S):f.base=f.name=i.slice(_,S)):(_===0&&c?(f.name=i.slice(1,g),f.base=i.slice(1,S)):(f.name=i.slice(_,g),f.base=i.slice(_,S)),f.ext=i.slice(g,S)),_>0?f.dir=i.slice(0,_-1):c&&(f.dir="/"),f},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,N2=n,N2}var ic={exports:{}},ac={exports:{}},K4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return n&&typeof n.length=="number"&&n.length>=0&&n.length%1===0}e.exports=t.default})(K4,K4.exports);var l5=K4.exports,zi={},oc={exports:{}},G4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){return function(...n){var a=n.pop();return r.call(this,n,a)}},e.exports=t.default})(G4,G4.exports);var JN=G4.exports,Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.fallback=DS;Lo.wrap=FS;var QN=Lo.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,eD=Lo.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,tD=Lo.hasNextTick=typeof He=="object"&&typeof He.nextTick=="function";function DS(e){setTimeout(e,0)}function FS(e){return(t,...r)=>e(()=>t(...r))}var W0;QN?W0=queueMicrotask:eD?W0=setImmediate:tD?W0=He.nextTick:W0=DS;Lo.default=FS(W0);var Sg;function rD(){return Sg||(Sg=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=JN,n=l(r),a=Lo,i=l(a),f=i0();function l(_){return _&&_.__esModule?_:{default:_}}function c(_){return(0,f.isAsync)(_)?function(...S){const M=S.pop(),P=_.apply(this,S);return m(P,M)}:(0,n.default)(function(S,M){var P;try{P=_.apply(this,S)}catch(I){return M(I)}if(P&&typeof P.then=="function")return m(P,M);M(null,P)})}function m(_,S){return _.then(M=>{g(S,null,M)},M=>{g(S,M&&(M instanceof Error||M.message)?M:new Error(M))})}function g(_,S,M){try{_(S,M)}catch(P){(0,i.default)(I=>{throw I},P)}}e.exports=t.default}(oc,oc.exports)),oc.exports}var Eg;function i0(){if(Eg)return zi;Eg=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.isAsyncIterable=zi.isAsyncGenerator=zi.isAsync=void 0;var e=rD(),t=r(e);function r(l){return l&&l.__esModule?l:{default:l}}function n(l){return l[Symbol.toStringTag]==="AsyncFunction"}function a(l){return l[Symbol.toStringTag]==="AsyncGenerator"}function i(l){return typeof l[Symbol.asyncIterator]=="function"}function f(l){if(typeof l!="function")throw new Error("expected a function");return n(l)?(0,t.default)(l):l}return zi.default=f,zi.isAsync=n,zi.isAsyncGenerator=a,zi.isAsyncIterable=i,zi}var W4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){if(a||(a=n.length),!a)throw new Error("arity is undefined");function i(...f){return typeof f[a-1]=="function"?n.apply(this,f):new Promise((l,c)=>{f[a-1]=(m,...g)=>{if(m)return c(m);l(g.length>1?g:g[0])},n.apply(this,f)})}return i}e.exports=t.default})(W4,W4.exports);var hl=W4.exports,Cg;function nD(){return Cg||(Cg=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=l5,n=c(r),a=i0(),i=c(a),f=hl,l=c(f);function c(m){return m&&m.__esModule?m:{default:m}}t.default=(0,l.default)((m,g,_)=>{var S=(0,n.default)(g)?[]:{};m(g,(M,P,I)=>{(0,i.default)(M)((B,...R)=>{R.length<2&&([R]=R),S[P]=R,I(B)})},M=>_(M,S))},3),e.exports=t.default}(ac,ac.exports)),ac.exports}var fc={exports:{}},V4={exports:{}},Z4={exports:{}},X4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){function a(...i){if(n!==null){var f=n;n=null,f.apply(this,i)}}return Object.assign(a,n),a}e.exports=t.default})(X4,X4.exports);var US=X4.exports,Y4={exports:{}},J4={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()},e.exports=t.default})(J4,J4.exports);var iD=J4.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var r=l5,n=f(r),a=iD,i=f(a);function f(_){return _&&_.__esModule?_:{default:_}}function l(_){var S=-1,M=_.length;return function(){return++S=l||S||g||(S=!0,f.next().then(({value:A,done:F})=>{if(!(_||g)){if(S=!1,F){g=!0,M<=0&&m(null);return}M++,c(A,P,B),P++,I()}}).catch(R))}function B(A,F){if(M-=1,!_){if(A)return R(A);if(A===!1){g=!0,_=!0;return}if(F===n.default||g&&M<=0)return g=!0,m(null);I()}}function R(A){_||(S=!1,g=!0,m(A))}I()}e.exports=t.default})(e6,e6.exports);var oD=e6.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=US,n=M(r),a=aD,i=M(a),f=jS,l=M(f),c=i0(),m=oD,g=M(m),_=c5,S=M(_);function M(P){return P&&P.__esModule?P:{default:P}}t.default=P=>(I,B,R)=>{if(R=(0,n.default)(R),P<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!I)return R(null);if((0,c.isAsyncGenerator)(I))return(0,g.default)(I,P,B,R);if((0,c.isAsyncIterable)(I))return(0,g.default)(I[Symbol.asyncIterator](),P,B,R);var A=(0,i.default)(I),F=!1,V=!1,j=0,N=!1;function K(te,ee){if(!V)if(j-=1,te)F=!0,R(te);else if(te===!1)F=!0,V=!0;else{if(ee===S.default||F&&j<=0)return F=!0,R(null);N||J()}}function J(){for(N=!0;j0;return xD(f,c,m,function(g){a||(a=g),g&&i.forEach(Pg),!c&&(i.forEach(Pg),n(a))})});return t.reduce(wD)}var KS=SD,Nh=ri,d5=f5.EventEmitter,ED=ot;ED(ri,d5);ri.Readable=u5();ri.Writable=Ih();ri.Duplex=yf();ri.Transform=h5;ri.PassThrough=zS;ri.finished=kh;ri.pipeline=KS;ri.Stream=ri;function ri(){d5.call(this)}ri.prototype.pipe=function(e,t){var r=this;function n(g){e.writable&&e.write(g)===!1&&r.pause&&r.pause()}r.on("data",n);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",f),r.on("close",l));var i=!1;function f(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function c(g){if(m(),d5.listenerCount(this,"error")===0)throw g}r.on("error",c),e.on("error",c);function m(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",f),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",m),r.removeListener("close",m),e.removeListener("close",m)}return r.on("end",m),r.on("close",m),e.on("close",m),e.emit("pipe",r),e};var U2={},j2={exports:{}},q2={},Og;function GS(){if(Og)return q2;Og=1;function e(j){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},e(j)}function t(j,N){for(var K=0;K"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(j){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},S(j)}var M={},P,I;function B(j,N,K){K||(K=Error);function J(ee,G,E){return typeof N=="string"?N:N(ee,G,E)}var te=function(ee){f(E,ee);var G=c(E);function E(d,o,u){var p;return i(this,E),p=G.call(this,J(d,o,u)),p.code=j,p}return r(E)}(K);M[j]=te}function R(j,N){if(Array.isArray(j)){var K=j.length;return j=j.map(function(J){return String(J)}),K>2?"one of ".concat(N," ").concat(j.slice(0,K-1).join(", "),", or ")+j[K-1]:K===2?"one of ".concat(N," ").concat(j[0]," or ").concat(j[1]):"of ".concat(N," ").concat(j[0])}else return"of ".concat(N," ").concat(String(j))}function A(j,N,K){return j.substr(!K||K<0?0:+K,N.length)===N}function F(j,N,K){return(K===void 0||K>j.length)&&(K=j.length),j.substring(K-N.length,K)===N}function V(j,N,K){return typeof K!="number"&&(K=0),K+N.length>j.length?!1:j.indexOf(N,K)!==-1}return B("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),B("ERR_INVALID_ARG_TYPE",function(j,N,K){P===void 0&&(P=D1()),P(typeof j=="string","'name' must be a string");var J;typeof N=="string"&&A(N,"not ")?(J="must not be",N=N.replace(/^not /,"")):J="must be";var te;if(F(j," argument"))te="The ".concat(j," ").concat(J," ").concat(R(N,"type"));else{var ee=V(j,".")?"property":"argument";te='The "'.concat(j,'" ').concat(ee," ").concat(J," ").concat(R(N,"type"))}return te+=". Received type ".concat(e(K)),te},TypeError),B("ERR_INVALID_ARG_VALUE",function(j,N){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";I===void 0&&(I=Mr);var J=I.inspect(N);return J.length>128&&(J="".concat(J.slice(0,128),"...")),"The argument '".concat(j,"' ").concat(K,". Received ").concat(J)},TypeError),B("ERR_INVALID_RETURN_VALUE",function(j,N,K){var J;return K&&K.constructor&&K.constructor.name?J="instance of ".concat(K.constructor.name):J="type ".concat(e(K)),"Expected ".concat(j,' to be returned from the "').concat(N,'"')+" function but got ".concat(J,".")},TypeError),B("ERR_MISSING_ARGS",function(){for(var j=arguments.length,N=new Array(j),K=0;K0,"At least one arg needs to be specified");var J="The ",te=N.length;switch(N=N.map(function(ee){return'"'.concat(ee,'"')}),te){case 1:J+="".concat(N[0]," argument");break;case 2:J+="".concat(N[0]," and ").concat(N[1]," arguments");break;default:J+=N.slice(0,te-1).join(", "),J+=", and ".concat(N[te-1]," arguments");break}return"".concat(J," must be specified")},TypeError),q2.codes=M,q2}var z2,kg;function CD(){if(kg)return z2;kg=1;function e(w,v){var h=Object.keys(w);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(w);v&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(w,b).enumerable})),h.push.apply(h,s)}return h}function t(w){for(var v=1;v"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function I(w){return Function.toString.call(w).indexOf("[native code]")!==-1}function B(w,v){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,b){return s.__proto__=b,s},B(w,v)}function R(w){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},R(w)}function A(w){"@babel/helpers - typeof";return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},A(w)}var F=Mr,V=F.inspect,j=GS(),N=j.codes.ERR_INVALID_ARG_TYPE;function K(w,v,h){return(h===void 0||h>w.length)&&(h=w.length),w.substring(h-v.length,h)===v}function J(w,v){if(v=Math.floor(v),w.length==0||v==0)return"";var h=w.length*v;for(v=Math.floor(Math.log(v)/Math.log(2));v;)w+=w,v--;return w+=w.substring(0,h-w.length),w}var te="",ee="",G="",E="",d={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},o=10;function u(w){var v=Object.keys(w),h=Object.create(Object.getPrototypeOf(w));return v.forEach(function(s){h[s]=w[s]}),Object.defineProperty(h,"message",{value:w.message}),h}function p(w){return V(w,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function y(w,v,h){var s="",b="",D=0,C="",U=!1,$=p(w),H=$.split(` `),X=p(v).split(` `),z=0,k="";if(h==="strictEqual"&&A(w)==="object"&&A(v)==="object"&&w!==null&&v!==null&&(h="strictEqualObject"),H.length===1&&X.length===1&&H[0]!==X[0]){var L=H[0].length+X[0].length;if(L<=o){if((A(w)!=="object"||w===null)&&(A(v)!=="object"||v===null)&&(w!==0||v!==0))return"".concat(d[h],` @@ -92,18 +92,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(T.join(` `),` `)}z>3&&(C=` -`.concat(te,"...").concat(E).concat(C),F=!0),s!==""&&(C=` +`.concat(te,"...").concat(E).concat(C),U=!0),s!==""&&(C=` `.concat(s).concat(C),s="");var O=0,W=d[h]+` `.concat(ee,"+ actual").concat(E," ").concat(G,"- expected").concat(E),ie=" ".concat(te,"...").concat(E," Lines skipped");for(z=0;z1&&z>2&&(ue>4?(b+=` -`.concat(te,"...").concat(E),F=!0):ue>3&&(b+=` +`.concat(te,"...").concat(E),U=!0):ue>3&&(b+=` `.concat(X[z-2]),O++),b+=` `.concat(X[z-1]),O++),D=z,s+=` `.concat(G,"-").concat(E," ").concat(X[z]),O++;else if(X.length1&&z>2&&(ue>4?(b+=` -`.concat(te,"...").concat(E),F=!0):ue>3&&(b+=` +`.concat(te,"...").concat(E),U=!0):ue>3&&(b+=` `.concat(H[z-2]),O++),b+=` `.concat(H[z-1]),O++),D=z,b+=` `.concat(ee,"+").concat(E," ").concat(H[z]),O++;else{var we=X[z],_e=H[z],Z=_e!==we&&(!K(_e,",")||_e.slice(0,-1)!==we);Z&&K(we,",")&&we.slice(0,-1)===_e&&(Z=!1,_e+=","),Z?(ue>1&&z>2&&(ue>4?(b+=` -`.concat(te,"...").concat(E),F=!0):ue>3&&(b+=` +`.concat(te,"...").concat(E),U=!0):ue>3&&(b+=` `.concat(H[z-2]),O++),b+=` `.concat(H[z-1]),O++),D=z,b+=` `.concat(ee,"+").concat(E," ").concat(_e),s+=` @@ -111,27 +111,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `.concat(_e),O++))}if(O>20&&z30)for(L[26]="".concat(te,"...").concat(E);L.length>27;)L.pop();L.length===1?D=h.call(this,"".concat(k," ").concat(L[0])):D=h.call(this,"".concat(k,` +`)+"".concat(te,"...").concat(E)}return"".concat(W).concat(U?ie:"",` +`).concat(b).concat(s).concat(C).concat(k)}var x=function(w,v){c(s,w);var h=m(s);function s(b){var D;if(n(this,s),A(b)!=="object"||b===null)throw new N("options","Object",b);var C=b.message,U=b.operator,$=b.stackStartFn,H=b.actual,X=b.expected,z=Error.stackTraceLimit;if(Error.stackTraceLimit=0,C!=null)D=h.call(this,String(C));else if(He.stderr&&He.stderr.isTTY&&(He.stderr&&He.stderr.getColorDepth&&He.stderr.getColorDepth()!==1?(te="\x1B[34m",ee="\x1B[32m",E="\x1B[39m",G="\x1B[31m"):(te="",ee="",E="",G="")),A(H)==="object"&&H!==null&&A(X)==="object"&&X!==null&&"stack"in H&&H instanceof Error&&"stack"in X&&X instanceof Error&&(H=u(H),X=u(X)),U==="deepStrictEqual"||U==="strictEqual")D=h.call(this,y(H,X,U));else if(U==="notDeepStrictEqual"||U==="notStrictEqual"){var k=d[U],L=p(H).split(` +`);if(U==="notStrictEqual"&&A(H)==="object"&&H!==null&&(k=d.notStrictEqualObject),L.length>30)for(L[26]="".concat(te,"...").concat(E);L.length>27;)L.pop();L.length===1?D=h.call(this,"".concat(k," ").concat(L[0])):D=h.call(this,"".concat(k,` `).concat(L.join(` `),` -`))}else{var oe=p(H),re="",se=d[F];F==="notDeepEqual"||F==="notEqual"?(oe="".concat(d[F],` +`))}else{var oe=p(H),re="",se=d[U];U==="notDeepEqual"||U==="notEqual"?(oe="".concat(d[U],` -`).concat(oe),oe.length>1024&&(oe="".concat(oe.slice(0,1021),"..."))):(re="".concat(p(X)),oe.length>512&&(oe="".concat(oe.slice(0,509),"...")),re.length>512&&(re="".concat(re.slice(0,509),"...")),F==="deepEqual"||F==="equal"?oe="".concat(se,` +`).concat(oe),oe.length>1024&&(oe="".concat(oe.slice(0,1021),"..."))):(re="".concat(p(X)),oe.length>512&&(oe="".concat(oe.slice(0,509),"...")),re.length>512&&(re="".concat(re.slice(0,509),"...")),U==="deepEqual"||U==="equal"?oe="".concat(se,` `).concat(oe,` should equal -`):re=" ".concat(F," ").concat(re)),D=h.call(this,"".concat(oe).concat(re))}return Error.stackTraceLimit=z,D.generatedMessage=!C,Object.defineProperty(_(D),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),D.code="ERR_ASSERTION",D.actual=H,D.expected=X,D.operator=F,Error.captureStackTrace&&Error.captureStackTrace(_(D),$),D.stack,D.name="AssertionError",g(D)}return i(s,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:v,value:function(D,C){return V(this,t(t({},C),{},{customInspect:!1,depth:0}))}}]),s}(S(Error),V.custom);return z2=x,z2}var $2,Ig;function WS(){if(Ig)return $2;Ig=1;var e=Object.prototype.toString;return $2=function(r){var n=e.call(r),a=n==="[object Arguments]";return a||(a=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),a},$2}var H2,Bg;function MD(){if(Bg)return H2;Bg=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=WS(),a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),f=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(S){var M=S.constructor;return M&&M.prototype===S},m={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if(typeof window>"u")return!1;for(var S in window)try{if(!m["$"+S]&&t.call(window,S)&&window[S]!==null&&typeof window[S]=="object")try{c(window[S])}catch{return!0}}catch{return!0}return!1}(),_=function(S){if(typeof window>"u"||!g)return c(S);try{return c(S)}catch{return!1}};e=function(M){var P=M!==null&&typeof M=="object",I=r.call(M)==="[object Function]",B=n(M),R=P&&r.call(M)==="[object String]",A=[];if(!P&&!I&&!B)throw new TypeError("Object.keys called on a non-object");var U=f&&I;if(R&&M.length>0&&!t.call(M,0))for(var V=0;V0)for(var j=0;j2?arguments[2]:{},S=e(g);t&&(S=n.call(S,Object.getOwnPropertySymbols(g)));for(var M=0;MZ.length)&&(le=Z.length);for(var fe=0,pe=new Array(le);fe10)return!0;for(var le=0;le57)return!0}return Z.length===10&&Z>=Math.pow(2,32)}function x(Z){return Object.keys(Z).filter(y).concat(_(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}/*! +`):re=" ".concat(U," ").concat(re)),D=h.call(this,"".concat(oe).concat(re))}return Error.stackTraceLimit=z,D.generatedMessage=!C,Object.defineProperty(_(D),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),D.code="ERR_ASSERTION",D.actual=H,D.expected=X,D.operator=U,Error.captureStackTrace&&Error.captureStackTrace(_(D),$),D.stack,D.name="AssertionError",g(D)}return i(s,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:v,value:function(D,C){return V(this,t(t({},C),{},{customInspect:!1,depth:0}))}}]),s}(S(Error),V.custom);return z2=x,z2}var $2,Ig;function WS(){if(Ig)return $2;Ig=1;var e=Object.prototype.toString;return $2=function(r){var n=e.call(r),a=n==="[object Arguments]";return a||(a=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),a},$2}var H2,Bg;function MD(){if(Bg)return H2;Bg=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=WS(),a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),f=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(S){var M=S.constructor;return M&&M.prototype===S},m={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if(typeof window>"u")return!1;for(var S in window)try{if(!m["$"+S]&&t.call(window,S)&&window[S]!==null&&typeof window[S]=="object")try{c(window[S])}catch{return!0}}catch{return!0}return!1}(),_=function(S){if(typeof window>"u"||!g)return c(S);try{return c(S)}catch{return!1}};e=function(M){var P=M!==null&&typeof M=="object",I=r.call(M)==="[object Function]",B=n(M),R=P&&r.call(M)==="[object String]",A=[];if(!P&&!I&&!B)throw new TypeError("Object.keys called on a non-object");var F=f&&I;if(R&&M.length>0&&!t.call(M,0))for(var V=0;V0)for(var j=0;j2?arguments[2]:{},S=e(g);t&&(S=n.call(S,Object.getOwnPropertySymbols(g)));for(var M=0;MZ.length)&&(le=Z.length);for(var fe=0,pe=new Array(le);fe10)return!0;for(var le=0;le57)return!0}return Z.length===10&&Z>=Math.pow(2,32)}function x(Z){return Object.keys(Z).filter(y).concat(_(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function w(Z,le){if(Z===le)return 0;for(var fe=Z.length,pe=le.length,Ce=0,Me=Math.min(fe,pe);Ce1?X-1:0),k=1;k1?X-1:0),k=1;k1?X-1:0),k=1;k1?X-1:0),k=1;k=0;)ne[me]=0}var f=0,l=1,c=2,m=3,g=258,_=29,S=256,M=S+1+_,P=30,I=19,B=2*M+1,R=15,A=16,U=7,V=256,j=16,N=17,K=18,J=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],te=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=512,d=new Array((M+2)*2);i(d);var o=new Array(P*2);i(o);var u=new Array(E);i(u);var p=new Array(g-m+1);i(p);var y=new Array(_);i(y);var x=new Array(P);i(x);function w(ne,me,ye,Ie,he){this.static_tree=ne,this.extra_bits=me,this.extra_base=ye,this.elems=Ie,this.max_length=he,this.has_stree=ne&&ne.length}var v,h,s;function b(ne,me){this.dyn_tree=ne,this.max_code=0,this.stat_desc=me}function D(ne){return ne<256?u[ne]:u[256+(ne>>>7)]}function C(ne,me){ne.pending_buf[ne.pending++]=me&255,ne.pending_buf[ne.pending++]=me>>>8&255}function F(ne,me,ye){ne.bi_valid>A-ye?(ne.bi_buf|=me<>A-ne.bi_valid,ne.bi_valid+=ye-A):(ne.bi_buf|=me<>>=1,ye<<=1;while(--me>0);return ye>>>1}function X(ne){ne.bi_valid===16?(C(ne,ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0):ne.bi_valid>=8&&(ne.pending_buf[ne.pending++]=ne.bi_buf&255,ne.bi_buf>>=8,ne.bi_valid-=8)}function z(ne,me){var ye=me.dyn_tree,Ie=me.max_code,he=me.stat_desc.static_tree,ve=me.stat_desc.has_stree,Q=me.stat_desc.extra_bits,xe=me.stat_desc.extra_base,Ae=me.stat_desc.max_length,q,be,de,ae,ce,ge,Ue=0;for(ae=0;ae<=R;ae++)ne.bl_count[ae]=0;for(ye[ne.heap[ne.heap_max]*2+1]=0,q=ne.heap_max+1;qAe&&(ae=Ae,Ue++),ye[be*2+1]=ae,!(be>Ie)&&(ne.bl_count[ae]++,ce=0,be>=xe&&(ce=Q[be-xe]),ge=ye[be*2],ne.opt_len+=ge*(ae+ce),ve&&(ne.static_len+=ge*(he[be*2+1]+ce)));if(Ue!==0){do{for(ae=Ae-1;ne.bl_count[ae]===0;)ae--;ne.bl_count[ae]--,ne.bl_count[ae+1]+=2,ne.bl_count[Ae]--,Ue-=2}while(Ue>0);for(ae=Ae;ae!==0;ae--)for(be=ne.bl_count[ae];be!==0;)de=ne.heap[--q],!(de>Ie)&&(ye[de*2+1]!==ae&&(ne.opt_len+=(ae-ye[de*2+1])*ye[de*2],ye[de*2+1]=ae),be--)}}function k(ne,me,ye){var Ie=new Array(R+1),he=0,ve,Q;for(ve=1;ve<=R;ve++)Ie[ve]=he=he+ye[ve-1]<<1;for(Q=0;Q<=me;Q++){var xe=ne[Q*2+1];xe!==0&&(ne[Q*2]=H(Ie[xe]++,xe))}}function L(){var ne,me,ye,Ie,he,ve=new Array(R+1);for(ye=0,Ie=0;Ie<_-1;Ie++)for(y[Ie]=ye,ne=0;ne<1<>=7;Ie8?C(ne,ne.bi_buf):ne.bi_valid>0&&(ne.pending_buf[ne.pending++]=ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0}function se(ne,me,ye,Ie){re(ne),Ie&&(C(ne,ye),C(ne,~ye)),e.arraySet(ne.pending_buf,ne.window,me,ye,ne.pending),ne.pending+=ye}function Y(ne,me,ye,Ie){var he=me*2,ve=ye*2;return ne[he]>1;Q>=1;Q--)T(ne,ye,Q);q=ve;do Q=ne.heap[1],ne.heap[1]=ne.heap[ne.heap_len--],T(ne,ye,1),xe=ne.heap[1],ne.heap[--ne.heap_max]=Q,ne.heap[--ne.heap_max]=xe,ye[q*2]=ye[Q*2]+ye[xe*2],ne.depth[q]=(ne.depth[Q]>=ne.depth[xe]?ne.depth[Q]:ne.depth[xe])+1,ye[Q*2+1]=ye[xe*2+1]=q,ne.heap[1]=q++,T(ne,ye,1);while(ne.heap_len>=2);ne.heap[--ne.heap_max]=ne.heap[1],z(ne,me),k(ye,Ae,ne.bl_count)}function ie(ne,me,ye){var Ie,he=-1,ve,Q=me[0*2+1],xe=0,Ae=7,q=4;for(Q===0&&(Ae=138,q=3),me[(ye+1)*2+1]=65535,Ie=0;Ie<=ye;Ie++)ve=Q,Q=me[(Ie+1)*2+1],!(++xe=3&&ne.bl_tree[G[me]*2+1]===0;me--);return ne.opt_len+=3*(me+1)+5+5+4,me}function _e(ne,me,ye,Ie){var he;for(F(ne,me-257,5),F(ne,ye-1,5),F(ne,Ie-4,4),he=0;he>>=1)if(me&1&&ne.dyn_ltree[ye*2]!==0)return r;if(ne.dyn_ltree[9*2]!==0||ne.dyn_ltree[10*2]!==0||ne.dyn_ltree[13*2]!==0)return n;for(ye=32;ye0?(ne.strm.data_type===a&&(ne.strm.data_type=Z(ne)),W(ne,ne.l_desc),W(ne,ne.d_desc),Q=we(ne),he=ne.opt_len+3+7>>>3,ve=ne.static_len+3+7>>>3,ve<=he&&(he=ve)):he=ve=ye+5,ye+4<=he&&me!==-1?pe(ne,me,ye,Ie):ne.strategy===t||ve===he?(F(ne,(l<<1)+(Ie?1:0),3),O(ne,d,o)):(F(ne,(c<<1)+(Ie?1:0),3),_e(ne,ne.l_desc.max_code+1,ne.d_desc.max_code+1,Q+1),O(ne,ne.dyn_ltree,ne.dyn_dtree)),oe(ne),Ie&&re(ne)}function Ee(ne,me,ye){return ne.pending_buf[ne.d_buf+ne.last_lit*2]=me>>>8&255,ne.pending_buf[ne.d_buf+ne.last_lit*2+1]=me&255,ne.pending_buf[ne.l_buf+ne.last_lit]=ye&255,ne.last_lit++,me===0?ne.dyn_ltree[ye*2]++:(ne.matches++,me--,ne.dyn_ltree[(p[ye]+S+1)*2]++,ne.dyn_dtree[D(me)*2]++),ne.last_lit===ne.lit_bufsize-1}return zo._tr_init=fe,zo._tr_stored_block=pe,zo._tr_flush_block=Me,zo._tr_tally=Ee,zo._tr_align=Ce,zo}var o3,Jg;function JS(){if(Jg)return o3;Jg=1;function e(t,r,n,a){for(var i=t&65535|0,f=t>>>16&65535|0,l=0;n!==0;){l=n>2e3?2e3:n,n-=l;do i=i+r[a++]|0,f=f+i|0;while(--l);i%=65521,f%=65521}return i|f<<16|0}return o3=e,o3}var f3,Qg;function QS(){if(Qg)return f3;Qg=1;function e(){for(var n,a=[],i=0;i<256;i++){n=i;for(var f=0;f<8;f++)n=n&1?3988292384^n>>>1:n>>>1;a[i]=n}return a}var t=e();function r(n,a,i,f){var l=t,c=f+i;n^=-1;for(var m=f;m>>8^l[(n^a[m])&255];return n^-1}return f3=r,f3}var s3,ey;function ND(){return ey||(ey=1,s3={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),s3}var ty;function DD(){if(ty)return vi;ty=1;var e=Fh(),t=LD(),r=JS(),n=QS(),a=ND(),i=0,f=1,l=3,c=4,m=5,g=0,_=1,S=-2,M=-3,P=-5,I=-1,B=1,R=2,A=3,U=4,V=0,j=2,N=8,K=9,J=15,te=8,ee=29,G=256,E=G+1+ee,d=30,o=19,u=2*E+1,p=15,y=3,x=258,w=x+y+1,v=32,h=42,s=69,b=73,D=91,C=103,F=113,$=666,H=1,X=2,z=3,k=4,L=3;function oe(q,be){return q.msg=a[be],be}function re(q){return(q<<1)-(q>4?9:0)}function se(q){for(var be=q.length;--be>=0;)q[be]=0}function Y(q){var be=q.state,de=be.pending;de>q.avail_out&&(de=q.avail_out),de!==0&&(e.arraySet(q.output,be.pending_buf,be.pending_out,de,q.next_out),q.next_out+=de,be.pending_out+=de,q.total_out+=de,q.avail_out-=de,be.pending-=de,be.pending===0&&(be.pending_out=0))}function T(q,be){t._tr_flush_block(q,q.block_start>=0?q.block_start:-1,q.strstart-q.block_start,be),q.block_start=q.strstart,Y(q.strm)}function O(q,be){q.pending_buf[q.pending++]=be}function W(q,be){q.pending_buf[q.pending++]=be>>>8&255,q.pending_buf[q.pending++]=be&255}function ie(q,be,de,ae){var ce=q.avail_in;return ce>ae&&(ce=ae),ce===0?0:(q.avail_in-=ce,e.arraySet(be,q.input,q.next_in,ce,de),q.state.wrap===1?q.adler=r(q.adler,be,ce,de):q.state.wrap===2&&(q.adler=n(q.adler,be,ce,de)),q.next_in+=ce,q.total_in+=ce,ce)}function ue(q,be){var de=q.max_chain_length,ae=q.strstart,ce,ge,Ue=q.prev_length,Re=q.nice_match,Se=q.strstart>q.w_size-w?q.strstart-(q.w_size-w):0,Ve=q.window,je=q.w_mask,ke=q.prev,Ze=q.strstart+x,Ne=Ve[ae+Ue-1],Be=Ve[ae+Ue];q.prev_length>=q.good_match&&(de>>=2),Re>q.lookahead&&(Re=q.lookahead);do if(ce=be,!(Ve[ce+Ue]!==Be||Ve[ce+Ue-1]!==Ne||Ve[ce]!==Ve[ae]||Ve[++ce]!==Ve[ae+1])){ae+=2,ce++;do;while(Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&aeUe){if(q.match_start=be,Ue=ge,ge>=Re)break;Ne=Ve[ae+Ue-1],Be=Ve[ae+Ue]}}while((be=ke[be&je])>Se&&--de!==0);return Ue<=q.lookahead?Ue:q.lookahead}function we(q){var be=q.w_size,de,ae,ce,ge,Ue;do{if(ge=q.window_size-q.lookahead-q.strstart,q.strstart>=be+(be-w)){e.arraySet(q.window,q.window,be,be,0),q.match_start-=be,q.strstart-=be,q.block_start-=be,ae=q.hash_size,de=ae;do ce=q.head[--de],q.head[de]=ce>=be?ce-be:0;while(--ae);ae=be,de=ae;do ce=q.prev[--de],q.prev[de]=ce>=be?ce-be:0;while(--ae);ge+=be}if(q.strm.avail_in===0)break;if(ae=ie(q.strm,q.window,q.strstart+q.lookahead,ge),q.lookahead+=ae,q.lookahead+q.insert>=y)for(Ue=q.strstart-q.insert,q.ins_h=q.window[Ue],q.ins_h=(q.ins_h<q.pending_buf_size-5&&(de=q.pending_buf_size-5);;){if(q.lookahead<=1){if(we(q),q.lookahead===0&&be===i)return H;if(q.lookahead===0)break}q.strstart+=q.lookahead,q.lookahead=0;var ae=q.block_start+de;if((q.strstart===0||q.strstart>=ae)&&(q.lookahead=q.strstart-ae,q.strstart=ae,T(q,!1),q.strm.avail_out===0)||q.strstart-q.block_start>=q.w_size-w&&(T(q,!1),q.strm.avail_out===0))return H}return q.insert=0,be===c?(T(q,!0),q.strm.avail_out===0?z:k):(q.strstart>q.block_start&&(T(q,!1),q.strm.avail_out===0),H)}function Z(q,be){for(var de,ae;;){if(q.lookahead=y&&(q.ins_h=(q.ins_h<=y)if(ae=t._tr_tally(q,q.strstart-q.match_start,q.match_length-y),q.lookahead-=q.match_length,q.match_length<=q.max_lazy_match&&q.lookahead>=y){q.match_length--;do q.strstart++,q.ins_h=(q.ins_h<=y&&(q.ins_h=(q.ins_h<4096)&&(q.match_length=y-1)),q.prev_length>=y&&q.match_length<=q.prev_length){ce=q.strstart+q.lookahead-y,ae=t._tr_tally(q,q.strstart-1-q.prev_match,q.prev_length-y),q.lookahead-=q.prev_length-1,q.prev_length-=2;do++q.strstart<=ce&&(q.ins_h=(q.ins_h<=y&&q.strstart>0&&(ce=q.strstart-1,ae=Ue[ce],ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce])){ge=q.strstart+x;do;while(ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ceq.lookahead&&(q.match_length=q.lookahead)}if(q.match_length>=y?(de=t._tr_tally(q,1,q.match_length-y),q.lookahead-=q.match_length,q.strstart+=q.match_length,q.match_length=0):(de=t._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++),de&&(T(q,!1),q.strm.avail_out===0))return H}return q.insert=0,be===c?(T(q,!0),q.strm.avail_out===0?z:k):q.last_lit&&(T(q,!1),q.strm.avail_out===0)?H:X}function pe(q,be){for(var de;;){if(q.lookahead===0&&(we(q),q.lookahead===0)){if(be===i)return H;break}if(q.match_length=0,de=t._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++,de&&(T(q,!1),q.strm.avail_out===0))return H}return q.insert=0,be===c?(T(q,!0),q.strm.avail_out===0?z:k):q.last_lit&&(T(q,!1),q.strm.avail_out===0)?H:X}function Ce(q,be,de,ae,ce){this.good_length=q,this.max_lazy=be,this.nice_length=de,this.max_chain=ae,this.func=ce}var Me;Me=[new Ce(0,0,0,0,_e),new Ce(4,4,8,4,Z),new Ce(4,5,16,8,Z),new Ce(4,6,32,32,Z),new Ce(4,4,16,16,le),new Ce(8,16,32,32,le),new Ce(8,16,128,128,le),new Ce(8,32,128,256,le),new Ce(32,128,258,1024,le),new Ce(32,258,258,4096,le)];function Ee(q){q.window_size=2*q.w_size,se(q.head),q.max_lazy_match=Me[q.level].max_lazy,q.good_match=Me[q.level].good_length,q.nice_match=Me[q.level].nice_length,q.max_chain_length=Me[q.level].max_chain,q.strstart=0,q.block_start=0,q.lookahead=0,q.insert=0,q.match_length=q.prev_length=y-1,q.match_available=0,q.ins_h=0}function ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=N,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(u*2),this.dyn_dtree=new e.Buf16((2*d+1)*2),this.bl_tree=new e.Buf16((2*o+1)*2),se(this.dyn_ltree),se(this.dyn_dtree),se(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(p+1),this.heap=new e.Buf16(2*E+1),se(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*E+1),se(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function me(q){var be;return!q||!q.state?oe(q,S):(q.total_in=q.total_out=0,q.data_type=j,be=q.state,be.pending=0,be.pending_out=0,be.wrap<0&&(be.wrap=-be.wrap),be.status=be.wrap?h:F,q.adler=be.wrap===2?0:1,be.last_flush=i,t._tr_init(be),g)}function ye(q){var be=me(q);return be===g&&Ee(q.state),be}function Ie(q,be){return!q||!q.state||q.state.wrap!==2?S:(q.state.gzhead=be,g)}function he(q,be,de,ae,ce,ge){if(!q)return S;var Ue=1;if(be===I&&(be=6),ae<0?(Ue=0,ae=-ae):ae>15&&(Ue=2,ae-=16),ce<1||ce>K||de!==N||ae<8||ae>15||be<0||be>9||ge<0||ge>U)return oe(q,S);ae===8&&(ae=9);var Re=new ne;return q.state=Re,Re.strm=q,Re.wrap=Ue,Re.gzhead=null,Re.w_bits=ae,Re.w_size=1<m||be<0)return q?oe(q,S):S;if(ae=q.state,!q.output||!q.input&&q.avail_in!==0||ae.status===$&&be!==c)return oe(q,q.avail_out===0?P:S);if(ae.strm=q,de=ae.last_flush,ae.last_flush=be,ae.status===h)if(ae.wrap===2)q.adler=0,O(ae,31),O(ae,139),O(ae,8),ae.gzhead?(O(ae,(ae.gzhead.text?1:0)+(ae.gzhead.hcrc?2:0)+(ae.gzhead.extra?4:0)+(ae.gzhead.name?8:0)+(ae.gzhead.comment?16:0)),O(ae,ae.gzhead.time&255),O(ae,ae.gzhead.time>>8&255),O(ae,ae.gzhead.time>>16&255),O(ae,ae.gzhead.time>>24&255),O(ae,ae.level===9?2:ae.strategy>=R||ae.level<2?4:0),O(ae,ae.gzhead.os&255),ae.gzhead.extra&&ae.gzhead.extra.length&&(O(ae,ae.gzhead.extra.length&255),O(ae,ae.gzhead.extra.length>>8&255)),ae.gzhead.hcrc&&(q.adler=n(q.adler,ae.pending_buf,ae.pending,0)),ae.gzindex=0,ae.status=s):(O(ae,0),O(ae,0),O(ae,0),O(ae,0),O(ae,0),O(ae,ae.level===9?2:ae.strategy>=R||ae.level<2?4:0),O(ae,L),ae.status=F);else{var Ue=N+(ae.w_bits-8<<4)<<8,Re=-1;ae.strategy>=R||ae.level<2?Re=0:ae.level<6?Re=1:ae.level===6?Re=2:Re=3,Ue|=Re<<6,ae.strstart!==0&&(Ue|=v),Ue+=31-Ue%31,ae.status=F,W(ae,Ue),ae.strstart!==0&&(W(ae,q.adler>>>16),W(ae,q.adler&65535)),q.adler=1}if(ae.status===s)if(ae.gzhead.extra){for(ce=ae.pending;ae.gzindex<(ae.gzhead.extra.length&65535)&&!(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>ce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),Y(q),ce=ae.pending,ae.pending===ae.pending_buf_size));)O(ae,ae.gzhead.extra[ae.gzindex]&255),ae.gzindex++;ae.gzhead.hcrc&&ae.pending>ce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),ae.gzindex===ae.gzhead.extra.length&&(ae.gzindex=0,ae.status=b)}else ae.status=b;if(ae.status===b)if(ae.gzhead.name){ce=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>ce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),Y(q),ce=ae.pending,ae.pending===ae.pending_buf_size)){ge=1;break}ae.gzindexce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),ge===0&&(ae.gzindex=0,ae.status=D)}else ae.status=D;if(ae.status===D)if(ae.gzhead.comment){ce=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>ce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),Y(q),ce=ae.pending,ae.pending===ae.pending_buf_size)){ge=1;break}ae.gzindexce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),ge===0&&(ae.status=C)}else ae.status=C;if(ae.status===C&&(ae.gzhead.hcrc?(ae.pending+2>ae.pending_buf_size&&Y(q),ae.pending+2<=ae.pending_buf_size&&(O(ae,q.adler&255),O(ae,q.adler>>8&255),q.adler=0,ae.status=F)):ae.status=F),ae.pending!==0){if(Y(q),q.avail_out===0)return ae.last_flush=-1,g}else if(q.avail_in===0&&re(be)<=re(de)&&be!==c)return oe(q,P);if(ae.status===$&&q.avail_in!==0)return oe(q,P);if(q.avail_in!==0||ae.lookahead!==0||be!==i&&ae.status!==$){var Se=ae.strategy===R?pe(ae,be):ae.strategy===A?fe(ae,be):Me[ae.level].func(ae,be);if((Se===z||Se===k)&&(ae.status=$),Se===H||Se===z)return q.avail_out===0&&(ae.last_flush=-1),g;if(Se===X&&(be===f?t._tr_align(ae):be!==m&&(t._tr_stored_block(ae,0,0,!1),be===l&&(se(ae.head),ae.lookahead===0&&(ae.strstart=0,ae.block_start=0,ae.insert=0))),Y(q),q.avail_out===0))return ae.last_flush=-1,g}return be!==c?g:ae.wrap<=0?_:(ae.wrap===2?(O(ae,q.adler&255),O(ae,q.adler>>8&255),O(ae,q.adler>>16&255),O(ae,q.adler>>24&255),O(ae,q.total_in&255),O(ae,q.total_in>>8&255),O(ae,q.total_in>>16&255),O(ae,q.total_in>>24&255)):(W(ae,q.adler>>>16),W(ae,q.adler&65535)),Y(q),ae.wrap>0&&(ae.wrap=-ae.wrap),ae.pending!==0?g:_)}function xe(q){var be;return!q||!q.state?S:(be=q.state.status,be!==h&&be!==s&&be!==b&&be!==D&&be!==C&&be!==F&&be!==$?oe(q,S):(q.state=null,be===F?oe(q,M):g))}function Ae(q,be){var de=be.length,ae,ce,ge,Ue,Re,Se,Ve,je;if(!q||!q.state||(ae=q.state,Ue=ae.wrap,Ue===2||Ue===1&&ae.status!==h||ae.lookahead))return S;for(Ue===1&&(q.adler=r(q.adler,be,de,0)),ae.wrap=0,de>=ae.w_size&&(Ue===0&&(se(ae.head),ae.strstart=0,ae.block_start=0,ae.insert=0),je=new e.Buf8(ae.w_size),e.arraySet(je,be,de-ae.w_size,ae.w_size,0),be=je,de=ae.w_size),Re=q.avail_in,Se=q.next_in,Ve=q.input,q.avail_in=de,q.next_in=0,q.input=be,we(ae);ae.lookahead>=y;){ce=ae.strstart,ge=ae.lookahead-(y-1);do ae.ins_h=(ae.ins_h<>>24,B>>>=K,R-=K,K=N>>>16&255,K===0)d[c++]=N&65535;else if(K&16){J=N&65535,K&=15,K&&(R>>=K,R-=K),R<15&&(B+=E[f++]<>>24,B>>>=K,R-=K,K=N>>>16&255,K&16){if(te=N&65535,K&=15,R_){n.msg="invalid distance too far back",i.mode=e;break e}if(B>>>=K,R-=K,K=c-m,te>K){if(K=te-K,K>M&&i.sane){n.msg="invalid distance too far back",i.mode=e;break e}if(ee=0,G=I,P===0){if(ee+=S-K,K2;)d[c++]=G[ee++],d[c++]=G[ee++],d[c++]=G[ee++],J-=3;J&&(d[c++]=G[ee++],J>1&&(d[c++]=G[ee++]))}else{ee=c-te;do d[c++]=d[ee++],d[c++]=d[ee++],d[c++]=d[ee++],J-=3;while(J>2);J&&(d[c++]=d[ee++],J>1&&(d[c++]=d[ee++]))}}else if(K&64){n.msg="invalid distance code",i.mode=e;break e}else{N=U[(N&65535)+(B&(1<>3,f-=J,R-=J<<3,B&=(1<=1&&b[J]===0;J--);if(te>J&&(te=J),J===0)return B[R++]=1<<24|64<<16|0,B[R++]=1<<24|64<<16|0,U.bits=1,0;for(K=1;K0&&(S===a||J!==1))return-1;for(D[1]=0,j=1;jr||S===f&&d>n)return 1;for(;;){$=j-G,A[N]s?(H=C[F+A[N]],X=v[h+A[N]]):(H=96,X=0),u=1<>G)+p]=$<<24|H<<16|X|0;while(p!==0);for(u=1<>=1;if(u!==0?(o&=u-1,o+=u):o=0,N++,--b[j]===0){if(j===J)break;j=M[P+A[N]]}if(j>te&&(o&x)!==y){for(G===0&&(G=te),w+=K,ee=j-G,E=1<r||S===f&&d>n)return 1;y=o&x,B[y]=te<<24|ee<<16|w-R|0}}return o!==0&&(B[w+o]=j-G<<24|64<<16|0),U.bits=te,0},l3}var iy;function jD(){if(iy)return Fn;iy=1;var e=Fh(),t=JS(),r=QS(),n=FD(),a=UD(),i=0,f=1,l=2,c=4,m=5,g=6,_=0,S=1,M=2,P=-2,I=-3,B=-4,R=-5,A=8,U=1,V=2,j=3,N=4,K=5,J=6,te=7,ee=8,G=9,E=10,d=11,o=12,u=13,p=14,y=15,x=16,w=17,v=18,h=19,s=20,b=21,D=22,C=23,F=24,$=25,H=26,X=27,z=28,k=29,L=30,oe=31,re=32,se=852,Y=592,T=15,O=T;function W(he){return(he>>>24&255)+(he>>>8&65280)+((he&65280)<<8)+((he&255)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ue(he){var ve;return!he||!he.state?P:(ve=he.state,he.total_in=he.total_out=ve.total=0,he.msg="",ve.wrap&&(he.adler=ve.wrap&1),ve.mode=U,ve.last=0,ve.havedict=0,ve.dmax=32768,ve.head=null,ve.hold=0,ve.bits=0,ve.lencode=ve.lendyn=new e.Buf32(se),ve.distcode=ve.distdyn=new e.Buf32(Y),ve.sane=1,ve.back=-1,_)}function we(he){var ve;return!he||!he.state?P:(ve=he.state,ve.wsize=0,ve.whave=0,ve.wnext=0,ue(he))}function _e(he,ve){var Q,xe;return!he||!he.state||(xe=he.state,ve<0?(Q=0,ve=-ve):(Q=(ve>>4)+1,ve<48&&(ve&=15)),ve&&(ve<8||ve>15))?P:(xe.window!==null&&xe.wbits!==ve&&(xe.window=null),xe.wrap=Q,xe.wbits=ve,we(he))}function Z(he,ve){var Q,xe;return he?(xe=new ie,he.state=xe,xe.window=null,Q=_e(he,ve),Q!==_&&(he.state=null),Q):P}function le(he){return Z(he,O)}var fe=!0,pe,Ce;function Me(he){if(fe){var ve;for(pe=new e.Buf32(512),Ce=new e.Buf32(32),ve=0;ve<144;)he.lens[ve++]=8;for(;ve<256;)he.lens[ve++]=9;for(;ve<280;)he.lens[ve++]=7;for(;ve<288;)he.lens[ve++]=8;for(a(f,he.lens,0,288,pe,0,he.work,{bits:9}),ve=0;ve<32;)he.lens[ve++]=5;a(l,he.lens,0,32,Ce,0,he.work,{bits:5}),fe=!1}he.lencode=pe,he.lenbits=9,he.distcode=Ce,he.distbits=5}function Ee(he,ve,Q,xe){var Ae,q=he.state;return q.window===null&&(q.wsize=1<=q.wsize?(e.arraySet(q.window,ve,Q-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(Ae=q.wsize-q.wnext,Ae>xe&&(Ae=xe),e.arraySet(q.window,ve,Q-xe,Ae,q.wnext),xe-=Ae,xe?(e.arraySet(q.window,ve,Q-xe,xe,0),q.wnext=xe,q.whave=q.wsize):(q.wnext+=Ae,q.wnext===q.wsize&&(q.wnext=0),q.whave>>8&255,Q.check=r(Q.check,Le,2,0),ce=0,ge=0,Q.mode=V;break}if(Q.flags=0,Q.head&&(Q.head.done=!1),!(Q.wrap&1)||(((ce&255)<<8)+(ce>>8))%31){he.msg="incorrect header check",Q.mode=L;break}if((ce&15)!==A){he.msg="unknown compression method",Q.mode=L;break}if(ce>>>=4,ge-=4,Qe=(ce&15)+8,Q.wbits===0)Q.wbits=Qe;else if(Qe>Q.wbits){he.msg="invalid window size",Q.mode=L;break}Q.dmax=1<>8&1),Q.flags&512&&(Le[0]=ce&255,Le[1]=ce>>>8&255,Q.check=r(Q.check,Le,2,0)),ce=0,ge=0,Q.mode=j;case j:for(;ge<32;){if(de===0)break e;de--,ce+=xe[q++]<>>8&255,Le[2]=ce>>>16&255,Le[3]=ce>>>24&255,Q.check=r(Q.check,Le,4,0)),ce=0,ge=0,Q.mode=N;case N:for(;ge<16;){if(de===0)break e;de--,ce+=xe[q++]<>8),Q.flags&512&&(Le[0]=ce&255,Le[1]=ce>>>8&255,Q.check=r(Q.check,Le,2,0)),ce=0,ge=0,Q.mode=K;case K:if(Q.flags&1024){for(;ge<16;){if(de===0)break e;de--,ce+=xe[q++]<>>8&255,Q.check=r(Q.check,Le,2,0)),ce=0,ge=0}else Q.head&&(Q.head.extra=null);Q.mode=J;case J:if(Q.flags&1024&&(Se=Q.length,Se>de&&(Se=de),Se&&(Q.head&&(Qe=Q.head.extra_len-Q.length,Q.head.extra||(Q.head.extra=new Array(Q.head.extra_len)),e.arraySet(Q.head.extra,xe,q,Se,Qe)),Q.flags&512&&(Q.check=r(Q.check,xe,Se,q)),de-=Se,q+=Se,Q.length-=Se),Q.length))break e;Q.length=0,Q.mode=te;case te:if(Q.flags&2048){if(de===0)break e;Se=0;do Qe=xe[q+Se++],Q.head&&Qe&&Q.length<65536&&(Q.head.name+=String.fromCharCode(Qe));while(Qe&&Se>9&1,Q.head.done=!0),he.adler=Q.check=0,Q.mode=o;break;case E:for(;ge<32;){if(de===0)break e;de--,ce+=xe[q++]<>>=ge&7,ge-=ge&7,Q.mode=X;break}for(;ge<3;){if(de===0)break e;de--,ce+=xe[q++]<>>=1,ge-=1,ce&3){case 0:Q.mode=p;break;case 1:if(Me(Q),Q.mode=s,ve===g){ce>>>=2,ge-=2;break e}break;case 2:Q.mode=w;break;case 3:he.msg="invalid block type",Q.mode=L}ce>>>=2,ge-=2;break;case p:for(ce>>>=ge&7,ge-=ge&7;ge<32;){if(de===0)break e;de--,ce+=xe[q++]<>>16^65535)){he.msg="invalid stored block lengths",Q.mode=L;break}if(Q.length=ce&65535,ce=0,ge=0,Q.mode=y,ve===g)break e;case y:Q.mode=x;case x:if(Se=Q.length,Se){if(Se>de&&(Se=de),Se>ae&&(Se=ae),Se===0)break e;e.arraySet(Ae,xe,q,Se,be),de-=Se,q+=Se,ae-=Se,be+=Se,Q.length-=Se;break}Q.mode=o;break;case w:for(;ge<14;){if(de===0)break e;de--,ce+=xe[q++]<>>=5,ge-=5,Q.ndist=(ce&31)+1,ce>>>=5,ge-=5,Q.ncode=(ce&15)+4,ce>>>=4,ge-=4,Q.nlen>286||Q.ndist>30){he.msg="too many length or distance symbols",Q.mode=L;break}Q.have=0,Q.mode=v;case v:for(;Q.have>>=3,ge-=3}for(;Q.have<19;)Q.lens[Ge[Q.have++]]=0;if(Q.lencode=Q.lendyn,Q.lenbits=7,rt={bits:Q.lenbits},qe=a(i,Q.lens,0,19,Q.lencode,0,Q.work,rt),Q.lenbits=rt.bits,qe){he.msg="invalid code lengths set",Q.mode=L;break}Q.have=0,Q.mode=h;case h:for(;Q.have>>24,Ne=ke>>>16&255,Be=ke&65535,!(Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>>=Ze,ge-=Ze,Q.lens[Q.have++]=Be;else{if(Be===16){for(ze=Ze+2;ge>>=Ze,ge-=Ze,Q.have===0){he.msg="invalid bit length repeat",Q.mode=L;break}Qe=Q.lens[Q.have-1],Se=3+(ce&3),ce>>>=2,ge-=2}else if(Be===17){for(ze=Ze+3;ge>>=Ze,ge-=Ze,Qe=0,Se=3+(ce&7),ce>>>=3,ge-=3}else{for(ze=Ze+7;ge>>=Ze,ge-=Ze,Qe=0,Se=11+(ce&127),ce>>>=7,ge-=7}if(Q.have+Se>Q.nlen+Q.ndist){he.msg="invalid bit length repeat",Q.mode=L;break}for(;Se--;)Q.lens[Q.have++]=Qe}}if(Q.mode===L)break;if(Q.lens[256]===0){he.msg="invalid code -- missing end-of-block",Q.mode=L;break}if(Q.lenbits=9,rt={bits:Q.lenbits},qe=a(f,Q.lens,0,Q.nlen,Q.lencode,0,Q.work,rt),Q.lenbits=rt.bits,qe){he.msg="invalid literal/lengths set",Q.mode=L;break}if(Q.distbits=6,Q.distcode=Q.distdyn,rt={bits:Q.distbits},qe=a(l,Q.lens,Q.nlen,Q.ndist,Q.distcode,0,Q.work,rt),Q.distbits=rt.bits,qe){he.msg="invalid distances set",Q.mode=L;break}if(Q.mode=s,ve===g)break e;case s:Q.mode=b;case b:if(de>=6&&ae>=258){he.next_out=be,he.avail_out=ae,he.next_in=q,he.avail_in=de,Q.hold=ce,Q.bits=ge,n(he,Re),be=he.next_out,Ae=he.output,ae=he.avail_out,q=he.next_in,xe=he.input,de=he.avail_in,ce=Q.hold,ge=Q.bits,Q.mode===o&&(Q.back=-1);break}for(Q.back=0;ke=Q.lencode[ce&(1<>>24,Ne=ke>>>16&255,Be=ke&65535,!(Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>et)],Ze=ke>>>24,Ne=ke>>>16&255,Be=ke&65535,!(et+Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>>=et,ge-=et,Q.back+=et}if(ce>>>=Ze,ge-=Ze,Q.back+=Ze,Q.length=Be,Ne===0){Q.mode=H;break}if(Ne&32){Q.back=-1,Q.mode=o;break}if(Ne&64){he.msg="invalid literal/length code",Q.mode=L;break}Q.extra=Ne&15,Q.mode=D;case D:if(Q.extra){for(ze=Q.extra;ge>>=Q.extra,ge-=Q.extra,Q.back+=Q.extra}Q.was=Q.length,Q.mode=C;case C:for(;ke=Q.distcode[ce&(1<>>24,Ne=ke>>>16&255,Be=ke&65535,!(Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>et)],Ze=ke>>>24,Ne=ke>>>16&255,Be=ke&65535,!(et+Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>>=et,ge-=et,Q.back+=et}if(ce>>>=Ze,ge-=Ze,Q.back+=Ze,Ne&64){he.msg="invalid distance code",Q.mode=L;break}Q.offset=Be,Q.extra=Ne&15,Q.mode=F;case F:if(Q.extra){for(ze=Q.extra;ge>>=Q.extra,ge-=Q.extra,Q.back+=Q.extra}if(Q.offset>Q.dmax){he.msg="invalid distance too far back",Q.mode=L;break}Q.mode=$;case $:if(ae===0)break e;if(Se=Re-ae,Q.offset>Se){if(Se=Q.offset-Se,Se>Q.whave&&Q.sane){he.msg="invalid distance too far back",Q.mode=L;break}Se>Q.wnext?(Se-=Q.wnext,Ve=Q.wsize-Se):Ve=Q.wnext-Se,Se>Q.length&&(Se=Q.length),je=Q.window}else je=Ae,Ve=be-Q.offset,Se=Q.length;Se>ae&&(Se=ae),ae-=Se,Q.length-=Se;do Ae[be++]=je[Ve++];while(--Se);Q.length===0&&(Q.mode=b);break;case H:if(ae===0)break e;Ae[be++]=Q.length,ae--,Q.mode=b;break;case X:if(Q.wrap){for(;ge<32;){if(de===0)break e;de--,ce|=xe[q++]<e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=g,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}m.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,t(this.init_done,"close before init"),t(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?n.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&a.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},m.prototype.write=function(g,_,S,M,P,I,B){return this._write(!0,g,_,S,M,P,I,B)},m.prototype.writeSync=function(g,_,S,M,P,I,B){return this._write(!1,g,_,S,M,P,I,B)},m.prototype._write=function(g,_,S,M,P,I,B,R){if(t.equal(arguments.length,8),t(this.init_done,"write before init"),t(this.mode!==e.NONE,"already finalized"),t.equal(!1,this.write_in_progress,"write already in progress"),t.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,t.equal(!1,_===void 0,"must provide flush value"),this.write_in_progress=!0,_!==e.Z_NO_FLUSH&&_!==e.Z_PARTIAL_FLUSH&&_!==e.Z_SYNC_FLUSH&&_!==e.Z_FULL_FLUSH&&_!==e.Z_FINISH&&_!==e.Z_BLOCK)throw new Error("Invalid flush value");if(S==null&&(S=Te.Buffer.alloc(0),P=0,M=0),this.strm.avail_in=P,this.strm.input=S,this.strm.next_in=M,this.strm.avail_out=R,this.strm.output=I,this.strm.next_out=B,this.flush=_,!g)return this._process(),this._checkError()?this._afterSync():void 0;var A=this;return He.nextTick(function(){A._process(),A._after()}),this},m.prototype._afterSync=function(){var g=this.strm.avail_out,_=this.strm.avail_in;return this.write_in_progress=!1,[_,g]},m.prototype._process=function(){var g=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=n.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(g=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(g===null)break;if(this.strm.input[g]===l){if(this.gzip_id_bytes_read=1,g++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(g===null)break;this.strm.input[g]===c?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},m.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},m.prototype._after=function(){if(this._checkError()){var g=this.strm.avail_out,_=this.strm.avail_in;this.write_in_progress=!1,this.callback(_,g),this.pending_close&&this.close()}},m.prototype._error=function(g){this.strm.msg&&(g=this.strm.msg),this.onerror(g,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},m.prototype.init=function(g,_,S,M,P){t(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),t(g>=8&&g<=15,"invalid windowBits"),t(_>=-1&&_<=9,"invalid compression level"),t(S>=1&&S<=9,"invalid memlevel"),t(M===e.Z_FILTERED||M===e.Z_HUFFMAN_ONLY||M===e.Z_RLE||M===e.Z_FIXED||M===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(_,g,S,M,P),this._setDictionary()},m.prototype.params=function(){throw new Error("deflateParams Not supported")},m.prototype.reset=function(){this._reset(),this._setDictionary()},m.prototype._init=function(g,_,S,M,P){switch(this.level=g,this.windowBits=_,this.memLevel=S,this.strategy=M,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new r,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=n.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=P,this.write_in_progress=!1,this.init_done=!0},m.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=n.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},m.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=n.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=m}(U2)),U2}var fy;function $D(){return fy||(fy=1,function(e){var t=Te.Buffer,r=Nh.Transform,n=zD(),a=Mr,i=D1().ok,f=Te.kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+f.toString(16)+" bytes";n.Z_MIN_WINDOWBITS=8,n.Z_MAX_WINDOWBITS=15,n.Z_DEFAULT_WINDOWBITS=15,n.Z_MIN_CHUNK=64,n.Z_MAX_CHUNK=1/0,n.Z_DEFAULT_CHUNK=16*1024,n.Z_MIN_MEMLEVEL=1,n.Z_MAX_MEMLEVEL=9,n.Z_DEFAULT_MEMLEVEL=8,n.Z_MIN_LEVEL=-1,n.Z_MAX_LEVEL=9,n.Z_DEFAULT_LEVEL=n.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(n),m=0;m=f?h=new RangeError(l):v=t.concat(u,p),u=[],E.close(),o(h,v)}}function B(E,d){if(typeof d=="string"&&(d=t.from(d)),!t.isBuffer(d))throw new TypeError("Not a string or buffer");var o=E._finishFlushFlag;return E._processChunk(d,o)}function R(E){if(!(this instanceof R))return new R(E);te.call(this,E,n.DEFLATE)}function A(E){if(!(this instanceof A))return new A(E);te.call(this,E,n.INFLATE)}function U(E){if(!(this instanceof U))return new U(E);te.call(this,E,n.GZIP)}function V(E){if(!(this instanceof V))return new V(E);te.call(this,E,n.GUNZIP)}function j(E){if(!(this instanceof j))return new j(E);te.call(this,E,n.DEFLATERAW)}function N(E){if(!(this instanceof N))return new N(E);te.call(this,E,n.INFLATERAW)}function K(E){if(!(this instanceof K))return new K(E);te.call(this,E,n.UNZIP)}function J(E){return E===n.Z_NO_FLUSH||E===n.Z_PARTIAL_FLUSH||E===n.Z_SYNC_FLUSH||E===n.Z_FULL_FLUSH||E===n.Z_FINISH||E===n.Z_BLOCK}function te(E,d){var o=this;if(this._opts=E=E||{},this._chunkSize=E.chunkSize||e.Z_DEFAULT_CHUNK,r.call(this,E),E.flush&&!J(E.flush))throw new Error("Invalid flush flag: "+E.flush);if(E.finishFlush&&!J(E.finishFlush))throw new Error("Invalid flush flag: "+E.finishFlush);if(this._flushFlag=E.flush||n.Z_NO_FLUSH,this._finishFlushFlag=typeof E.finishFlush<"u"?E.finishFlush:n.Z_FINISH,E.chunkSize&&(E.chunkSizee.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+E.chunkSize);if(E.windowBits&&(E.windowBitse.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+E.windowBits);if(E.level&&(E.levele.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+E.level);if(E.memLevel&&(E.memLevele.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+E.memLevel);if(E.strategy&&E.strategy!=e.Z_FILTERED&&E.strategy!=e.Z_HUFFMAN_ONLY&&E.strategy!=e.Z_RLE&&E.strategy!=e.Z_FIXED&&E.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+E.strategy);if(E.dictionary&&!t.isBuffer(E.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new n.Zlib(d);var u=this;this._hadError=!1,this._handle.onerror=function(x,w){ee(u),u._hadError=!0;var v=new Error(x);v.errno=w,v.code=e.codes[w],u.emit("error",v)};var p=e.Z_DEFAULT_COMPRESSION;typeof E.level=="number"&&(p=E.level);var y=e.Z_DEFAULT_STRATEGY;typeof E.strategy=="number"&&(y=E.strategy),this._handle.init(E.windowBits||e.Z_DEFAULT_WINDOWBITS,p,E.memLevel||e.Z_DEFAULT_MEMLEVEL,y,E.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=p,this._strategy=y,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!o._handle},configurable:!0,enumerable:!0})}a.inherits(te,r),te.prototype.params=function(E,d,o){if(Ee.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+E);if(d!=e.Z_FILTERED&&d!=e.Z_HUFFMAN_ONLY&&d!=e.Z_RLE&&d!=e.Z_FIXED&&d!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+d);if(this._level!==E||this._strategy!==d){var u=this;this.flush(n.Z_SYNC_FLUSH,function(){i(u._handle,"zlib binding closed"),u._handle.params(E,d),u._hadError||(u._level=E,u._strategy=d,o&&o())})}else He.nextTick(o)},te.prototype.reset=function(){return i(this._handle,"zlib binding closed"),this._handle.reset()},te.prototype._flush=function(E){this._transform(t.alloc(0),"",E)},te.prototype.flush=function(E,d){var o=this,u=this._writableState;(typeof E=="function"||E===void 0&&!d)&&(d=E,E=n.Z_FULL_FLUSH),u.ended?d&&He.nextTick(d):u.ending?d&&this.once("end",d):u.needDrain?d&&this.once("drain",function(){return o.flush(E,d)}):(this._flushFlag=E,this.write(t.alloc(0),"",d))},te.prototype.close=function(E){ee(this,E),He.nextTick(G,this)};function ee(E,d){d&&He.nextTick(d),E._handle&&(E._handle.close(),E._handle=null)}function G(E){E.emit("close")}te.prototype._transform=function(E,d,o){var u,p=this._writableState,y=p.ending||p.ended,x=y&&(!E||p.length===E.length);if(E!==null&&!t.isBuffer(E))return o(new Error("invalid input"));if(!this._handle)return o(new Error("zlib binding closed"));x?u=this._finishFlushFlag:(u=this._flushFlag,E.length>=p.length&&(this._flushFlag=this._opts.flush||n.Z_NO_FLUSH)),this._processChunk(E,u,o)},te.prototype._processChunk=function(E,d,o){var u=E&&E.length,p=this._chunkSize-this._offset,y=0,x=this,w=typeof o=="function";if(!w){var v=[],h=0,s;this.on("error",function($){s=$}),i(this._handle,"zlib binding closed");do var b=this._handle.writeSync(d,E,y,u,this._buffer,this._offset,p);while(!this._hadError&&F(b[0],b[1]));if(this._hadError)throw s;if(h>=f)throw ee(this),new RangeError(l);var D=t.concat(v,h);return ee(this),D}i(this._handle,"zlib binding closed");var C=this._handle.write(d,E,y,u,this._buffer,this._offset,p);C.buffer=E,C.callback=F;function F($,H){if(this&&(this.buffer=null,this.callback=null),!x._hadError){var X=p-H;if(i(X>=0,"have should not go down"),X>0){var z=x._buffer.slice(x._offset,x._offset+X);x._offset+=X,w?x.push(z):(v.push(z),h+=z.length)}if((H===0||x._offset>=x._chunkSize)&&(p=x._chunkSize,x._offset=0,x._buffer=t.allocUnsafe(x._chunkSize)),H===0){if(y+=u-$,u=$,!w)return!0;var k=x._handle.write(d,E,y,u,x._buffer,x._offset,x._chunkSize);k.callback=F,k.buffer=E;return}if(!w)return!1;o()}}},a.inherits(R,te),a.inherits(A,te),a.inherits(U,te),a.inherits(V,te),a.inherits(j,te),a.inherits(N,te),a.inherits(K,te)}(D2)),D2}var r6={exports:{}};(function(e,t){t=e.exports=u5(),t.Stream=t,t.Readable=t,t.Writable=Ih(),t.Duplex=yf(),t.Transform=h5,t.PassThrough=zS,t.finished=kh,t.pipeline=KS})(r6,r6.exports);var Li=r6.exports,eE={exports:{}},as=[],cu=[],n6=function(){};function v5(e){return~as.indexOf(e)?!1:(as.push(e),!0)}function g5(e){n6=e}function HD(e){for(var t=[],r=0;rf.start)&&(l?l(null,_):g.emit("line",_)),M++,_=""),setTimeout(B,1e3);var U=m.write(c.slice(0,A));l||g.emit("data",U),U=(_+U).split(/\n+/);for(var V=U.length-1,j=0;jf.start)&&(l?l(null,U[j]):g.emit("line",U[j])),M++;return _=U[V],S+=A,B()})})()}),l?g.destroy:g},h3}var d3,uy;function JD(){if(uy)return d3;uy=1;function e(ee){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},e(ee)}function t(ee,G){if(!(ee instanceof G))throw new TypeError("Cannot call a class as a function")}function r(ee,G){for(var E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(ee){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},S(ee)}var M=NS(),P=YN(),I=uD(),B=$D(),R=nr,A=R.MESSAGE,U=Li,V=U.Stream,j=U.PassThrough,N=Mf(),K=Uh("winston:file"),J=er,te=YD();return d3=function(ee){f(E,ee);var G=c(E);function E(){var d,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t(this,E),d=G.call(this,o),d.name=o.name||"file";function u(p){for(var y=arguments.length,x=new Array(y>1?y-1:0),w=1;w1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return p(),!0;if(this._drain){this._stream.once("drain",function(){u._drain=!1,u.log(o,p)});return}if(this._rotate){this._stream.once("rotate",function(){u._rotate=!1,u.log(o,p)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",function(){u._fileExist=!0,u.log(o,p)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",function(){u._opening||u.open(),u.once("open",function(){u.log(o,p)})});return}}var y="".concat(o[A]).concat(this.eol),x=Te.Buffer.byteLength(y);function w(){var h=this;if(this._size+=x,this._pendingSize-=x,K("logged %s %s",this._size,y),this.emit("logged",o),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(function(){h.emit("fileclosed")});return}this._rotate=!0,this._endStream(function(){return h._rotateFile()})}}this._pendingSize+=x,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var v=this._stream.write(y,w.bind(this));return v?p():(this._drain=!0,this._stream.once("drain",function(){u._drain=!1,p()})),K("written",v,this._drain),this.finishIfEnding(),v}},{key:"query",value:function(o,u){typeof o=="function"&&(u=o,o={}),o=D(o);var p=P.join(this.dirname,this.filename),y="",x=[],w=0,v=M.createReadStream(p,{encoding:"utf8"});v.on("error",function(C){if(v.readable&&v.destroy(),!!u)return C.code!=="ENOENT"?u(C):u(null,x)}),v.on("data",function(C){C=(y+C).split(/\n+/);for(var F=C.length-1,$=0;$=o.start)&&h(C[$]),w++;y=C[F]}),v.on("close",function(){y&&h(y,!0),o.order==="desc"&&(x=x.reverse()),u&&u(null,x)});function h(C,F){try{var $=JSON.parse(C);b($)&&s($)}catch(H){F||v.emit("error",H)}}function s(C){if(o.rows&&x.length>=o.rows&&o.order!=="desc"){v.readable&&v.destroy();return}o.fields&&(C=o.fields.reduce(function(F,$){return F[$]=C[$],F},{})),o.order==="desc"&&x.length>=o.rows&&x.shift(),x.push(C)}function b(C){if(C&&e(C)==="object"){var F=new Date(C.timestamp);if(!(o.from&&Fo.until||o.level&&o.level!==C.level))return!0}}function D(C){return C=C||{},C.rows=C.rows||C.limit||10,C.start=C.start||0,C.until=C.until||new Date,e(C.until)!=="object"&&(C.until=new Date(C.until)),C.from=C.from||C.until-24*60*60*1e3,e(C.from)!=="object"&&(C.from=new Date(C.from)),C.order=C.order||"desc",C}}},{key:"stream",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=P.join(this.dirname,this.filename),p=new V,y={file:u,start:o.start};return p.destroy=te(y,function(x,w){if(x)return p.emit("error",x);try{p.emit("data",w),w=JSON.parse(w),p.emit("log",w)}catch(v){p.emit("error",v)}}),p}},{key:"open",value:function(){var o=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(u,p){if(u)return o.emit("error",u);K("stat done: %s { size: %s }",o.filename,p),o._size=p,o._dest=o._createStream(o._stream),o._opening=!1,o.once("open",function(){o._stream.eventNames().includes("rotate")?o._stream.emit("rotate"):o._rotate=!1})})))}},{key:"stat",value:function(o){var u=this,p=this._getFile(),y=P.join(this.dirname,p);M.stat(y,function(x,w){if(x&&x.code==="ENOENT")return K("ENOENT ok",y),u.filename=p,o(null,0);if(x)return K("err ".concat(x.code," ").concat(y)),o(x);if(!w||u._needsNewFile(w.size))return u._incFile(function(){return u.stat(o)});u.filename=p,o(null,w.size)})}},{key:"close",value:function(o){var u=this;this._stream&&this._stream.end(function(){o&&o(),u.emit("flush"),u.emit("closed")})}},{key:"_needsNewFile",value:function(o){return o=o||this._size,this.maxsize&&o>=this.maxsize}},{key:"_onError",value:function(o){this.emit("error",o)}},{key:"_setupStream",value:function(o){return o.on("error",this._onError),o}},{key:"_cleanupStream",value:function(o){return o.removeListener("error",this._onError),o.destroy(),o}},{key:"_rotateFile",value:function(){var o=this;this._incFile(function(){return o.open()})}},{key:"_endStream",value:function(){var o=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){o._cleanupStream(o._dest),u()})):u()}},{key:"_createStream",value:function(o){var u=this,p=P.join(this.dirname,this.filename);K("create stream start",p,this.options);var y=M.createWriteStream(p,this.options).on("error",function(w){return K(w)}).on("close",function(){return K("close",y.path,y.bytesWritten)}).on("open",function(){K("file open ok",p),u.emit("open",p),o.pipe(y),u.rotatedWhileOpening&&(u._stream=new j,u._stream.setMaxListeners(30),u._rotateFile(),u.rotatedWhileOpening=!1,u._cleanupStream(y),o.end())});if(K("create stream ok",p),this.zippedArchive){var x=B.createGzip();return x.pipe(y),x}return y}},{key:"_incFile",value:function(o){K("_incFile",this.filename);var u=P.extname(this._basename),p=P.basename(this._basename,u);this.tailable?this._checkMaxFilesTailable(u,p,o):(this._created+=1,this._checkMaxFilesIncrementing(u,p,o))}},{key:"_getFile",value:function(){var o=P.extname(this._basename),u=P.basename(this._basename,o),p=this.rotationFormat?this.rotationFormat():this._created,y=!this.tailable&&this._created?"".concat(u).concat(p).concat(o):"".concat(u).concat(o);return this.zippedArchive&&!this.tailable?"".concat(y,".gz"):y}},{key:"_checkMaxFilesIncrementing",value:function(o,u,p){if(!this.maxFiles||this._created1;v--)x.push((function(h,s){var b=this,D="".concat(u).concat(h-1).concat(o).concat(w),C=P.join(this.dirname,D);M.exists(C,function(F){if(!F)return s(null);D="".concat(u).concat(h).concat(o).concat(w),M.rename(C,P.join(b.dirname,D),s)})}).bind(this,v));I(x,function(){M.rename(P.join(y.dirname,"".concat(u).concat(o)),P.join(y.dirname,"".concat(u,"1").concat(o).concat(w)),p)})}}},{key:"_createLogDirIfNotExist",value:function(o){M.existsSync(o)||M.mkdirSync(o,{recursive:!0})}}]),E}(N),d3}var p3={},v3={exports:{}},g3={},ly;function rE(){return ly||(ly=1,function(e){e.fetch=a(Oe.fetch)&&a(Oe.ReadableStream),e.writableStream=a(Oe.WritableStream),e.abortController=a(Oe.AbortController);var t;function r(){if(t!==void 0)return t;if(Oe.XMLHttpRequest){t=new Oe.XMLHttpRequest;try{t.open("GET",Oe.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(i){var f=r();if(!f)return!1;try{return f.responseType=i,f.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?a(r().overrideMimeType):!1);function a(i){return typeof i=="function"}t=null}(g3)),g3}var sc={},cy;function nE(){if(cy)return sc;cy=1;var e=rE(),t=ot,r=Li,n=sc.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=sc.IncomingMessage=function(i,f,l,c){var m=this;if(r.Readable.call(m),m._mode=l,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){He.nextTick(function(){m.emit("close")})}),l==="fetch"){let B=function(){_.read().then(function(R){if(!m._destroyed){if(c(R.done),R.done){m.push(null);return}m.push(Te.Buffer.from(R.value)),B()}}).catch(function(R){c(!0),m._destroyed||m.emit("error",R)})};var I=B;if(m._fetchResponse=f,m.url=f.url,m.statusCode=f.status,m.statusMessage=f.statusText,f.headers.forEach(function(R,A){m.headers[A.toLowerCase()]=R,m.rawHeaders.push(A,R)}),e.writableStream){var g=new WritableStream({write:function(R){return c(!1),new Promise(function(A,U){m._destroyed?U():m.push(Te.Buffer.from(R))?A():m._resumeFetch=A})},close:function(){c(!0),m._destroyed||m.push(null)},abort:function(R){c(!0),m._destroyed||m.emit("error",R)}});try{f.body.pipeTo(g).catch(function(R){c(!0),m._destroyed||m.emit("error",R)});return}catch{}}var _=f.body.getReader();B()}else{m._xhr=i,m._pos=0,m.url=i.responseURL,m.statusCode=i.status,m.statusMessage=i.statusText;var S=i.getAllResponseHeaders().split(/\r?\n/);if(S.forEach(function(B){var R=B.match(/^([^:]+):\s*(.*)/);if(R){var A=R[1].toLowerCase();A==="set-cookie"?(m.headers[A]===void 0&&(m.headers[A]=[]),m.headers[A].push(R[2])):m.headers[A]!==void 0?m.headers[A]+=", "+R[2]:m.headers[A]=R[2],m.rawHeaders.push(R[1],R[2])}}),m._charset="x-user-defined",!e.overrideMimeType){var M=m.rawHeaders["mime-type"];if(M){var P=M.match(/;\s*charset=([^;])(;|$)/);P&&(m._charset=P[1].toLowerCase())}m._charset||(m._charset="utf-8")}}};return t(a,r.Readable),a.prototype._read=function(){var i=this,f=i._resumeFetch;f&&(i._resumeFetch=null,f())},a.prototype._onXHRProgress=function(i){var f=this,l=f._xhr,c=null;switch(f._mode){case"text":if(c=l.responseText,c.length>f._pos){var m=c.substr(f._pos);if(f._charset==="x-user-defined"){for(var g=Te.Buffer.alloc(m.length),_=0;_f._pos&&(f.push(Te.Buffer.from(new Uint8Array(S.result.slice(f._pos)))),f._pos=S.result.byteLength)},S.onload=function(){i(!0),f.push(null)},S.readAsArrayBuffer(c);break}f._xhr.readyState===n.DONE&&f._mode!=="ms-stream"&&(i(!0),f.push(null))},sc}var hy;function QD(){if(hy)return v3.exports;hy=1;var e=rE(),t=ot,r=nE(),n=Li,a=r.IncomingMessage,i=r.readyStates;function f(g,_){return e.fetch&&_?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&g?"arraybuffer":"text"}var l=v3.exports=function(g){var _=this;n.Writable.call(_),_._opts=g,_._body=[],_._headers={},g.auth&&_.setHeader("Authorization","Basic "+Te.Buffer.from(g.auth).toString("base64")),Object.keys(g.headers).forEach(function(P){_.setHeader(P,g.headers[P])});var S,M=!0;if(g.mode==="disable-fetch"||"requestTimeout"in g&&!e.abortController)M=!1,S=!0;else if(g.mode==="prefer-streaming")S=!1;else if(g.mode==="allow-wrong-content-type")S=!e.overrideMimeType;else if(!g.mode||g.mode==="default"||g.mode==="prefer-fast")S=!0;else throw new Error("Invalid value for opts.mode");_._mode=f(S,M),_._fetchTimer=null,_._socketTimeout=null,_._socketTimer=null,_.on("finish",function(){_._onFinish()})};t(l,n.Writable),l.prototype.setHeader=function(g,_){var S=this,M=g.toLowerCase();m.indexOf(M)===-1&&(S._headers[M]={name:g,value:_})},l.prototype.getHeader=function(g){var _=this._headers[g.toLowerCase()];return _?_.value:null},l.prototype.removeHeader=function(g){var _=this;delete _._headers[g.toLowerCase()]},l.prototype._onFinish=function(){var g=this;if(!g._destroyed){var _=g._opts;"timeout"in _&&_.timeout!==0&&g.setTimeout(_.timeout);var S=g._headers,M=null;_.method!=="GET"&&_.method!=="HEAD"&&(M=new Blob(g._body,{type:(S["content-type"]||{}).value||""}));var P=[];if(Object.keys(S).forEach(function(A){var U=S[A].name,V=S[A].value;Array.isArray(V)?V.forEach(function(j){P.push([U,j])}):P.push([U,V])}),g._mode==="fetch"){var I=null;if(e.abortController){var B=new AbortController;I=B.signal,g._fetchAbortController=B,"requestTimeout"in _&&_.requestTimeout!==0&&(g._fetchTimer=Oe.setTimeout(function(){g.emit("requestTimeout"),g._fetchAbortController&&g._fetchAbortController.abort()},_.requestTimeout))}Oe.fetch(g._opts.url,{method:g._opts.method,headers:P,body:M||void 0,mode:"cors",credentials:_.withCredentials?"include":"same-origin",signal:I}).then(function(A){g._fetchResponse=A,g._resetTimers(!1),g._connect()},function(A){g._resetTimers(!0),g._destroyed||g.emit("error",A)})}else{var R=g._xhr=new Oe.XMLHttpRequest;try{R.open(g._opts.method,g._opts.url,!0)}catch(A){He.nextTick(function(){g.emit("error",A)});return}"responseType"in R&&(R.responseType=g._mode),"withCredentials"in R&&(R.withCredentials=!!_.withCredentials),g._mode==="text"&&"overrideMimeType"in R&&R.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in _&&(R.timeout=_.requestTimeout,R.ontimeout=function(){g.emit("requestTimeout")}),P.forEach(function(A){R.setRequestHeader(A[0],A[1])}),g._response=null,R.onreadystatechange=function(){switch(R.readyState){case i.LOADING:case i.DONE:g._onXHRProgress();break}},g._mode==="moz-chunked-arraybuffer"&&(R.onprogress=function(){g._onXHRProgress()}),R.onerror=function(){g._destroyed||(g._resetTimers(!0),g.emit("error",new Error("XHR error")))};try{R.send(M)}catch(A){He.nextTick(function(){g.emit("error",A)});return}}}};function c(g){try{var _=g.status;return _!==null&&_!==0}catch{return!1}}l.prototype._onXHRProgress=function(){var g=this;g._resetTimers(!1),!(!c(g._xhr)||g._destroyed)&&(g._response||g._connect(),g._response._onXHRProgress(g._resetTimers.bind(g)))},l.prototype._connect=function(){var g=this;g._destroyed||(g._response=new a(g._xhr,g._fetchResponse,g._mode,g._resetTimers.bind(g)),g._response.on("error",function(_){g.emit("error",_)}),g.emit("response",g._response))},l.prototype._write=function(g,_,S){var M=this;M._body.push(g),S()},l.prototype._resetTimers=function(g){var _=this;Oe.clearTimeout(_._socketTimer),_._socketTimer=null,g?(Oe.clearTimeout(_._fetchTimer),_._fetchTimer=null):_._socketTimeout&&(_._socketTimer=Oe.setTimeout(function(){_.emit("timeout")},_._socketTimeout))},l.prototype.abort=l.prototype.destroy=function(g){var _=this;_._destroyed=!0,_._resetTimers(!0),_._response&&(_._response._destroyed=!0),_._xhr?_._xhr.abort():_._fetchAbortController&&_._fetchAbortController.abort(),g&&_.emit("error",g)},l.prototype.end=function(g,_,S){var M=this;typeof g=="function"&&(S=g,g=void 0),n.Writable.prototype.end.call(M,g,_,S)},l.prototype.setTimeout=function(g,_){var S=this;_&&S.once("timeout",_),S._socketTimeout=g,S._resetTimers(!1)},l.prototype.flushHeaders=function(){},l.prototype.setNoDelay=function(){},l.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return v3.exports}var y3,dy;function eF(){if(dy)return y3;dy=1,y3=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=c-m,j=Math.floor,N=String.fromCharCode,K;function J(v){throw new RangeError(U[v])}function te(v,h){for(var s=v.length,b=[];s--;)b[s]=h(v[s]);return b}function ee(v,h){var s=v.split("@"),b="";s.length>1&&(b=s[0]+"@",v=s[1]),v=v.replace(A,".");var D=v.split("."),C=te(D,h).join(".");return b+C}function G(v){for(var h=[],s=0,b=v.length,D,C;s=55296&&D<=56319&&s65535&&(h-=65536,s+=N(h>>>10&1023|55296),h=56320|h&1023),s+=N(h),s}).join("")}function d(v){return v-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c}function o(v,h){return v+22+75*(v<26)-((h!=0)<<5)}function u(v,h,s){var b=0;for(v=s?j(v/S):v>>1,v+=j(v/h);v>V*g>>1;b+=c)v=j(v/V);return j(b+(V+1)*v/(v+_))}function p(v){var h=[],s=v.length,b,D=0,C=P,F=M,$,H,X,z,k,L,oe,re,se;for($=v.lastIndexOf(I),$<0&&($=0),H=0;H<$;++H)v.charCodeAt(H)>=128&&J("not-basic"),h.push(v.charCodeAt(H));for(X=$>0?$+1:0;X=s&&J("invalid-input"),oe=d(v.charCodeAt(X++)),(oe>=c||oe>j((l-D)/k))&&J("overflow"),D+=oe*k,re=L<=F?m:L>=F+g?g:L-F,!(oej(l/se)&&J("overflow"),k*=se;b=h.length+1,F=u(D-z,b,z==0),j(D/b)>l-C&&J("overflow"),C+=j(D/b),D%=b,h.splice(D++,0,C)}return E(h)}function y(v){var h,s,b,D,C,F,$,H,X,z,k,L=[],oe,re,se,Y;for(v=G(v),oe=v.length,h=P,s=0,C=M,F=0;F=h&&k<$&&($=k);for(re=b+1,$-h>j((l-s)/re)&&J("overflow"),s+=($-h)*re,h=$,F=0;Fl&&J("overflow"),k==h){for(H=s,X=c;z=X<=C?m:X>=C+g?g:X-C,!(H0&&m>c&&(m=c);for(var g=0;g=0?(M=_.substr(0,S),P=_.substr(S+1)):(M=_,P=""),I=decodeURIComponent(M),B=decodeURIComponent(P),e(f,I)?t(f[I])?f[I].push(B):f[I]=[f[I],B]:f[I]=B}return f};var t=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};return b3}var x3,yy;function iF(){if(yy)return x3;yy=1;var e=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};x3=function(a,i,f,l){return i=i||"&",f=f||"=",a===null&&(a=void 0),typeof a=="object"?r(n(a),function(c){var m=encodeURIComponent(e(c))+f;return t(a[c])?r(a[c],function(g){return m+encodeURIComponent(e(g))}).join(i):m+encodeURIComponent(e(a[c]))}).join(i):l?encodeURIComponent(e(l))+f+encodeURIComponent(e(a)):""};var t=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function r(a,i){if(a.map)return a.map(i);for(var f=[],l=0;l",'"',"`"," ","\r",` -`," "],V=["{","}","|","\\","^","`"].concat(U),j=["'"].concat(V),N=["%","/","?",";","#"].concat(j),K=["/","?","#"],J=255,te=/^[+a-z0-9A-Z_-]{0,63}$/,ee=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,G={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},o=f.default;function u(Z,le,fe){if(Z&&m.isObject(Z)&&Z instanceof I)return Z;var pe=new I;return pe.parse(Z,le,fe),pe}I.prototype.parse=function(Z,le,fe){if(!m.isString(Z))throw new TypeError("Parameter 'url' must be a string, not "+typeof Z);var pe=Z.indexOf("?"),Ce=pe!==-1&&pe127?ge+="x":ge+=ce[Ue];if(!ge.match(te)){var Se=de.slice(0,Q),Ve=de.slice(Q+1),je=ce.match(ee);je&&(Se.push(je[1]),Ve.unshift(je[2])),Ve.length&&(ne="/"+Ve.join(".")+ne),this.hostname=Se.join(".");break}}}this.hostname.length>J?this.hostname="":this.hostname=this.hostname.toLowerCase(),be||(this.hostname=c.toASCII(this.hostname));var ke=this.port?":"+this.port:"",Ze=this.hostname||"";this.host=Ze+ke,this.href+=this.host,be&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ne[0]!=="/"&&(ne="/"+ne))}if(!G[Ie])for(var Q=0,ae=j.length;Q0?fe.host.split("@"):!1;ge&&(fe.auth=ge.shift(),fe.host=fe.hostname=ge.shift())}return fe.search=Z.search,fe.query=Z.query,(!m.isNull(fe.pathname)||!m.isNull(fe.search))&&(fe.path=(fe.pathname?fe.pathname:"")+(fe.search?fe.search:"")),fe.href=fe.format(),fe}if(!de.length)return fe.pathname=null,fe.search?fe.path="/"+fe.search:fe.path=null,fe.href=fe.format(),fe;for(var Ue=de.slice(-1)[0],Re=(fe.host||Z.host||de.length>1)&&(Ue==="."||Ue==="..")||Ue==="",Se=0,Ve=de.length;Ve>=0;Ve--)Ue=de[Ve],Ue==="."?de.splice(Ve,1):Ue===".."?(de.splice(Ve,1),Se++):Se&&(de.splice(Ve,1),Se--);if(!q&&!be)for(;Se--;Se)de.unshift("..");q&&de[0]!==""&&(!de[0]||de[0].charAt(0)!=="/")&&de.unshift(""),Re&&de.join("/").substr(-1)!=="/"&&de.push("");var je=de[0]===""||de[0]&&de[0].charAt(0)==="/";if(ce){fe.hostname=fe.host=je?"":de.length?de.shift():"";var ge=fe.host&&fe.host.indexOf("@")>0?fe.host.split("@"):!1;ge&&(fe.auth=ge.shift(),fe.host=fe.hostname=ge.shift())}return q=q||fe.host&&de.length,q&&!je&&de.unshift(""),de.length?fe.pathname=de.join("/"):(fe.pathname=null,fe.path=null),(!m.isNull(fe.pathname)||!m.isNull(fe.search))&&(fe.path=(fe.pathname?fe.pathname:"")+(fe.search?fe.search:"")),fe.auth=Z.auth||fe.auth,fe.slashes=fe.slashes||Z.slashes,fe.href=fe.format(),fe},I.prototype.parseHost=function(){var Z=this.host,le=R.exec(Z);le&&(le=le[0],le!==":"&&(this.port=le.substr(1)),Z=Z.substr(0,Z.length-le.length)),Z&&(this.hostname=Z)};function w(Z,le){for(var fe=0,pe=Z.length-1;pe>=0;pe--){var Ce=Z[pe];Ce==="."?Z.splice(pe,1):Ce===".."?(Z.splice(pe,1),fe++):fe&&(Z.splice(pe,1),fe--)}if(le)for(;fe--;fe)Z.unshift("..");return Z}function v(){for(var Z="",le=!1,fe=arguments.length-1;fe>=-1&&!le;fe--){var pe=fe>=0?arguments[fe]:"/";if(typeof pe!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!pe)continue;Z=pe+"/"+Z,le=pe.charAt(0)==="/"}return Z=w(h(Z.split("/"),function(Ce){return!!Ce}),!le).join("/"),(le?"/":"")+Z||"."}function h(Z,le){if(Z.filter)return Z.filter(le);for(var fe=[],pe=0;pe"u")throw new TypeError('The "domain" argument must be specified');return new $("http://"+le).hostname},W=function(le){if(typeof le>"u")throw new TypeError('The "domain" argument must be specified');return new $("http://"+le).hostname},ie=function(le){var fe=new $("file://"),pe=v(le),Ce=le.charCodeAt(le.length-1);return Ce===re&&pe[pe.length-1]!=="/"&&(pe+="/"),fe.pathname=T(pe),fe},ue=function(le){if(!se(le)&&typeof le!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof le+" ("+le+")");var fe=new $(le);if(fe.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return Y(fe)},we=function(le,fe){var pe,Ce,Me;if(fe===void 0&&(fe={}),!(le instanceof $))return b(le);if(typeof fe!="object"||fe===null)throw new TypeError('The "options" argument must be of type object.');var Ee=(pe=fe.auth)!=null?pe:!0,ne=(Ce=fe.fragment)!=null?Ce:!0,me=(Me=fe.search)!=null?Me:!0,ye=new $(le.toString());return Ee||(ye.username="",ye.password=""),ne||(ye.hash=""),me||(ye.search=""),ye.toString()},_e={format:we,parse:D,resolve:C,resolveObject:S,Url:F,URL:$,URLSearchParams:H,domainToASCII:O,domainToUnicode:W,pathToFileURL:ie,fileURLToPath:ue};t.URL=$,t.URLSearchParams=H,t.Url=F,t.default=_e,t.domainToASCII=O,t.domainToUnicode=W,t.fileURLToPath=ue,t.format=we,t.parse=D,t.pathToFileURL=ie,t.resolve=C,t.resolveObject=S,t=e.exports=_e}(uc,uc.exports)),uc.exports}var wy;function aE(){return wy||(wy=1,function(e){var t=QD(),r=nE(),n=eF(),a=tF(),i=iE(),f=e;f.request=function(l,c){typeof l=="string"?l=i.parse(l):l=n(l);var m=Oe.location.protocol.search(/^https?:$/)===-1?"http:":"",g=l.protocol||m,_=l.hostname||l.host,S=l.port,M=l.path||"/";_&&_.indexOf(":")!==-1&&(_="["+_+"]"),l.url=(_?g+"//"+_:"")+(S?":"+S:"")+M,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var P=new t(l);return c&&P.on("response",c),P},f.get=function(c,m){var g=f.request(c,m);return g.end(),g},f.ClientRequest=t,f.IncomingMessage=r.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=a,f.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(p3)),p3}var w3={exports:{}},_y;function fF(){return _y||(_y=1,function(e){var t=aE(),r=iE(),n=e.exports;for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);n.request=function(f,l){return f=i(f),t.request.call(this,f,l)},n.get=function(f,l){return f=i(f),t.get.call(this,f,l)};function i(f){if(typeof f=="string"&&(f=r.parse(f)),f.protocol||(f.protocol="https:"),f.protocol!=="https:")throw new Error('Protocol "'+f.protocol+'" not supported. Expected "https:"');return f}}(w3)),w3.exports}var _3,Sy;function sF(){if(Sy)return _3;Sy=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},e(N)}function t(N,K){var J=Object.keys(N);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(N);K&&(te=te.filter(function(ee){return Object.getOwnPropertyDescriptor(N,ee).enumerable})),J.push.apply(J,te)}return J}function r(N){for(var K=1;K"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function I(N){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},I(N)}var B=aE(),R=fF(),A=Li,U=A.Stream,V=Mf(),j=ll;return _3=function(N){m(J,N);var K=_(J);function J(){var te,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a(this,J),te=K.call(this,ee),te.options=ee,te.name=ee.name||"http",te.ssl=!!ee.ssl,te.host=ee.host||"localhost",te.port=ee.port,te.auth=ee.auth,te.path=ee.path||"",te.agent=ee.agent,te.headers=ee.headers||{},te.headers["content-type"]="application/json",te.batch=ee.batch||!1,te.batchInterval=ee.batchInterval||5e3,te.batchCount=ee.batchCount||10,te.batchOptions=[],te.batchTimeoutID=-1,te.batchCallback={},te.port||(te.port=te.ssl?443:80),te}return f(J,[{key:"log",value:function(ee,G){var E=this;this._request(ee,null,null,function(d,o){o&&o.statusCode!==200&&(d=new Error("Invalid HTTP Status Code: ".concat(o.statusCode))),d?E.emit("warn",d):E.emit("logged",ee)}),G&&setImmediate(G)}},{key:"query",value:function(ee,G){typeof ee=="function"&&(G=ee,ee={}),ee={method:"query",params:this.normalizeQuery(ee)};var E=ee.params.auth||null;delete ee.params.auth;var d=ee.params.path||null;delete ee.params.path,this._request(ee,E,d,function(o,u,p){if(u&&u.statusCode!==200&&(o=new Error("Invalid HTTP Status Code: ".concat(u.statusCode))),o)return G(o);if(typeof p=="string")try{p=JSON.parse(p)}catch(y){return G(y)}G(null,p)})}},{key:"stream",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=new U;ee={method:"stream",params:ee};var E=ee.params.path||null;delete ee.params.path;var d=ee.params.auth||null;delete ee.params.auth;var o="",u=this._request(ee,d,E);return G.destroy=function(){return u.destroy()},u.on("data",function(p){p=(o+p).split(/\n+/);for(var y=p.length-1,x=0;x0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var d=this.batchOptions.slice();this.batchOptions=[],this._doRequest(d,ee,G,E)}},{key:"_doRequest",value:function(ee,G,E,d){var o=Object.assign({},this.headers);E&&E.bearer&&(o.Authorization="Bearer ".concat(E.bearer));var u=(this.ssl?R:B).request(r(r({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(d.replace(/^\//,"")),headers:o,auth:E&&E.username&&E.password?"".concat(E.username,":").concat(E.password):"",agent:this.agent}));u.on("error",G),u.on("response",function(p){return p.on("end",function(){return G(null,p)}).resume()}),u.end(Te.Buffer.from(j(ee,this.options.replacer),"utf8"))}}]),J}(V),_3}const ra=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";ra.writable=e=>ra(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";ra.readable=e=>ra(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";ra.duplex=e=>ra.writable(e)&&ra.readable(e);ra.transform=e=>ra.duplex(e)&&typeof e._transform=="function";var oE=ra,S3,Ey;function uF(){if(Ey)return S3;Ey=1;function e(A){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},e(A)}function t(A,U){if(!(A instanceof U))throw new TypeError("Cannot call a class as a function")}function r(A,U){for(var V=0;V"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(A){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},S(A)}var M=oE,P=nr,I=P.MESSAGE,B=er,R=Mf();return S3=function(A){f(V,A);var U=c(V);function V(){var j,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(t(this,V),j=U.call(this,N),!N.stream||!M(N.stream))throw new Error("options.stream is required.");return j._stream=N.stream,j._stream.setMaxListeners(1/0),j.isObjectMode=N.stream._writableState.objectMode,j.eol=typeof N.eol=="string"?N.eol:B.EOL,j}return n(V,[{key:"log",value:function(N,K){var J=this;if(setImmediate(function(){return J.emit("logged",N)}),this.isObjectMode){this._stream.write(N),K&&K();return}this._stream.write("".concat(N[I]).concat(this.eol)),K&&K()}}]),V}(R),S3}(function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return XN()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return JD()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return sF()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return uF()}})})(_S);var Af={},jh=Ah,lF=nr,b5=lF.configs;Af.cli=jh.levels(b5.cli);Af.npm=jh.levels(b5.npm);Af.syslog=jh.levels(b5.syslog);Af.addColors=jh.levels;var a6={exports:{}},o6={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=l5,n=B(r),a=c5,i=B(a),f=qS,l=B(f),c=US,m=B(c),g=jS,_=B(g),S=i0(),M=B(S),P=hl,I=B(P);function B(V){return V&&V.__esModule?V:{default:V}}function R(V,j,N){N=(0,m.default)(N);var K=0,J=0,{length:te}=V,ee=!1;te===0&&N(null);function G(E,d){E===!1&&(ee=!0),ee!==!0&&(E?N(E):(++J===te||d===i.default)&&N(null))}for(;Kn(a,f)}e.exports=t.default})(f6,f6.exports);var hF=f6.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=cF,n=g(r),a=hF,i=g(a),f=i0(),l=g(f),c=hl,m=g(c);function g(S){return S&&S.__esModule?S:{default:S}}function _(S,M,P){return(0,n.default)(S,(0,i.default)((0,l.default)(M)),P)}t.default=(0,m.default)(_,3),e.exports=t.default})(a6,a6.exports);var x5=a6.exports,dF=Object.prototype.toString,pF=function(t){if(typeof t.displayName=="string"&&t.constructor.name)return t.displayName;if(typeof t.name=="string"&&t.name)return t.name;if(typeof t=="object"&&t.constructor&&typeof t.constructor.name=="string")return t.constructor.name;var r=t.toString(),n=dF.call(t).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"},vF=pF,fE=function(t){var r=0,n;function a(){return r||(r=1,n=t.apply(this,arguments),t=null),n}return a.displayName=vF(t),a},w5={};(function(e){e.get=function(a){var i=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var f={},l=Error.prepareStackTrace;Error.prepareStackTrace=function(m,g){return g},Error.captureStackTrace(f,a||e.get);var c=f.stack;return Error.prepareStackTrace=l,Error.stackTraceLimit=i,c},e.parse=function(a){if(!a.stack)return[];var i=this,f=a.stack.split(` +`));var re=new M({actual:$,expected:H,message:X,operator:k,stackStartFn:z});throw re.generatedMessage=oe,re}}ee.match=function $(H,X,z){C(H,X,z,$,"match")},ee.doesNotMatch=function $(H,X,z){C(H,X,z,$,"doesNotMatch")};function U(){for(var $=arguments.length,H=new Array($),X=0;X<$;X++)H[X]=arguments[X];o.apply(void 0,[U,H.length].concat(H))}return ee.strict=F(U,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict,j2.exports}var i3,Zg;function BD(){if(Zg)return i3;Zg=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return i3=e,i3}var vi={},a3={},Xg;function Fh(){return Xg||(Xg=1,function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(i,f){return Object.prototype.hasOwnProperty.call(i,f)}e.assign=function(i){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var l=f.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var c in l)r(l,c)&&(i[c]=l[c])}}return i},e.shrinkBuf=function(i,f){return i.length===f?i:i.subarray?i.subarray(0,f):(i.length=f,i)};var n={arraySet:function(i,f,l,c,m){if(f.subarray&&i.subarray){i.set(f.subarray(l,l+c),m);return}for(var g=0;g=0;)ne[me]=0}var f=0,l=1,c=2,m=3,g=258,_=29,S=256,M=S+1+_,P=30,I=19,B=2*M+1,R=15,A=16,F=7,V=256,j=16,N=17,K=18,J=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],te=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=512,d=new Array((M+2)*2);i(d);var o=new Array(P*2);i(o);var u=new Array(E);i(u);var p=new Array(g-m+1);i(p);var y=new Array(_);i(y);var x=new Array(P);i(x);function w(ne,me,ye,Ie,he){this.static_tree=ne,this.extra_bits=me,this.extra_base=ye,this.elems=Ie,this.max_length=he,this.has_stree=ne&&ne.length}var v,h,s;function b(ne,me){this.dyn_tree=ne,this.max_code=0,this.stat_desc=me}function D(ne){return ne<256?u[ne]:u[256+(ne>>>7)]}function C(ne,me){ne.pending_buf[ne.pending++]=me&255,ne.pending_buf[ne.pending++]=me>>>8&255}function U(ne,me,ye){ne.bi_valid>A-ye?(ne.bi_buf|=me<>A-ne.bi_valid,ne.bi_valid+=ye-A):(ne.bi_buf|=me<>>=1,ye<<=1;while(--me>0);return ye>>>1}function X(ne){ne.bi_valid===16?(C(ne,ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0):ne.bi_valid>=8&&(ne.pending_buf[ne.pending++]=ne.bi_buf&255,ne.bi_buf>>=8,ne.bi_valid-=8)}function z(ne,me){var ye=me.dyn_tree,Ie=me.max_code,he=me.stat_desc.static_tree,ve=me.stat_desc.has_stree,Q=me.stat_desc.extra_bits,xe=me.stat_desc.extra_base,Ae=me.stat_desc.max_length,q,be,de,ae,ce,ge,Ue=0;for(ae=0;ae<=R;ae++)ne.bl_count[ae]=0;for(ye[ne.heap[ne.heap_max]*2+1]=0,q=ne.heap_max+1;qAe&&(ae=Ae,Ue++),ye[be*2+1]=ae,!(be>Ie)&&(ne.bl_count[ae]++,ce=0,be>=xe&&(ce=Q[be-xe]),ge=ye[be*2],ne.opt_len+=ge*(ae+ce),ve&&(ne.static_len+=ge*(he[be*2+1]+ce)));if(Ue!==0){do{for(ae=Ae-1;ne.bl_count[ae]===0;)ae--;ne.bl_count[ae]--,ne.bl_count[ae+1]+=2,ne.bl_count[Ae]--,Ue-=2}while(Ue>0);for(ae=Ae;ae!==0;ae--)for(be=ne.bl_count[ae];be!==0;)de=ne.heap[--q],!(de>Ie)&&(ye[de*2+1]!==ae&&(ne.opt_len+=(ae-ye[de*2+1])*ye[de*2],ye[de*2+1]=ae),be--)}}function k(ne,me,ye){var Ie=new Array(R+1),he=0,ve,Q;for(ve=1;ve<=R;ve++)Ie[ve]=he=he+ye[ve-1]<<1;for(Q=0;Q<=me;Q++){var xe=ne[Q*2+1];xe!==0&&(ne[Q*2]=H(Ie[xe]++,xe))}}function L(){var ne,me,ye,Ie,he,ve=new Array(R+1);for(ye=0,Ie=0;Ie<_-1;Ie++)for(y[Ie]=ye,ne=0;ne<1<>=7;Ie8?C(ne,ne.bi_buf):ne.bi_valid>0&&(ne.pending_buf[ne.pending++]=ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0}function se(ne,me,ye,Ie){re(ne),Ie&&(C(ne,ye),C(ne,~ye)),e.arraySet(ne.pending_buf,ne.window,me,ye,ne.pending),ne.pending+=ye}function Y(ne,me,ye,Ie){var he=me*2,ve=ye*2;return ne[he]>1;Q>=1;Q--)T(ne,ye,Q);q=ve;do Q=ne.heap[1],ne.heap[1]=ne.heap[ne.heap_len--],T(ne,ye,1),xe=ne.heap[1],ne.heap[--ne.heap_max]=Q,ne.heap[--ne.heap_max]=xe,ye[q*2]=ye[Q*2]+ye[xe*2],ne.depth[q]=(ne.depth[Q]>=ne.depth[xe]?ne.depth[Q]:ne.depth[xe])+1,ye[Q*2+1]=ye[xe*2+1]=q,ne.heap[1]=q++,T(ne,ye,1);while(ne.heap_len>=2);ne.heap[--ne.heap_max]=ne.heap[1],z(ne,me),k(ye,Ae,ne.bl_count)}function ie(ne,me,ye){var Ie,he=-1,ve,Q=me[0*2+1],xe=0,Ae=7,q=4;for(Q===0&&(Ae=138,q=3),me[(ye+1)*2+1]=65535,Ie=0;Ie<=ye;Ie++)ve=Q,Q=me[(Ie+1)*2+1],!(++xe=3&&ne.bl_tree[G[me]*2+1]===0;me--);return ne.opt_len+=3*(me+1)+5+5+4,me}function _e(ne,me,ye,Ie){var he;for(U(ne,me-257,5),U(ne,ye-1,5),U(ne,Ie-4,4),he=0;he>>=1)if(me&1&&ne.dyn_ltree[ye*2]!==0)return r;if(ne.dyn_ltree[9*2]!==0||ne.dyn_ltree[10*2]!==0||ne.dyn_ltree[13*2]!==0)return n;for(ye=32;ye0?(ne.strm.data_type===a&&(ne.strm.data_type=Z(ne)),W(ne,ne.l_desc),W(ne,ne.d_desc),Q=we(ne),he=ne.opt_len+3+7>>>3,ve=ne.static_len+3+7>>>3,ve<=he&&(he=ve)):he=ve=ye+5,ye+4<=he&&me!==-1?pe(ne,me,ye,Ie):ne.strategy===t||ve===he?(U(ne,(l<<1)+(Ie?1:0),3),O(ne,d,o)):(U(ne,(c<<1)+(Ie?1:0),3),_e(ne,ne.l_desc.max_code+1,ne.d_desc.max_code+1,Q+1),O(ne,ne.dyn_ltree,ne.dyn_dtree)),oe(ne),Ie&&re(ne)}function Ee(ne,me,ye){return ne.pending_buf[ne.d_buf+ne.last_lit*2]=me>>>8&255,ne.pending_buf[ne.d_buf+ne.last_lit*2+1]=me&255,ne.pending_buf[ne.l_buf+ne.last_lit]=ye&255,ne.last_lit++,me===0?ne.dyn_ltree[ye*2]++:(ne.matches++,me--,ne.dyn_ltree[(p[ye]+S+1)*2]++,ne.dyn_dtree[D(me)*2]++),ne.last_lit===ne.lit_bufsize-1}return zo._tr_init=fe,zo._tr_stored_block=pe,zo._tr_flush_block=Me,zo._tr_tally=Ee,zo._tr_align=Ce,zo}var o3,Jg;function JS(){if(Jg)return o3;Jg=1;function e(t,r,n,a){for(var i=t&65535|0,f=t>>>16&65535|0,l=0;n!==0;){l=n>2e3?2e3:n,n-=l;do i=i+r[a++]|0,f=f+i|0;while(--l);i%=65521,f%=65521}return i|f<<16|0}return o3=e,o3}var f3,Qg;function QS(){if(Qg)return f3;Qg=1;function e(){for(var n,a=[],i=0;i<256;i++){n=i;for(var f=0;f<8;f++)n=n&1?3988292384^n>>>1:n>>>1;a[i]=n}return a}var t=e();function r(n,a,i,f){var l=t,c=f+i;n^=-1;for(var m=f;m>>8^l[(n^a[m])&255];return n^-1}return f3=r,f3}var s3,ey;function ND(){return ey||(ey=1,s3={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),s3}var ty;function DD(){if(ty)return vi;ty=1;var e=Fh(),t=LD(),r=JS(),n=QS(),a=ND(),i=0,f=1,l=3,c=4,m=5,g=0,_=1,S=-2,M=-3,P=-5,I=-1,B=1,R=2,A=3,F=4,V=0,j=2,N=8,K=9,J=15,te=8,ee=29,G=256,E=G+1+ee,d=30,o=19,u=2*E+1,p=15,y=3,x=258,w=x+y+1,v=32,h=42,s=69,b=73,D=91,C=103,U=113,$=666,H=1,X=2,z=3,k=4,L=3;function oe(q,be){return q.msg=a[be],be}function re(q){return(q<<1)-(q>4?9:0)}function se(q){for(var be=q.length;--be>=0;)q[be]=0}function Y(q){var be=q.state,de=be.pending;de>q.avail_out&&(de=q.avail_out),de!==0&&(e.arraySet(q.output,be.pending_buf,be.pending_out,de,q.next_out),q.next_out+=de,be.pending_out+=de,q.total_out+=de,q.avail_out-=de,be.pending-=de,be.pending===0&&(be.pending_out=0))}function T(q,be){t._tr_flush_block(q,q.block_start>=0?q.block_start:-1,q.strstart-q.block_start,be),q.block_start=q.strstart,Y(q.strm)}function O(q,be){q.pending_buf[q.pending++]=be}function W(q,be){q.pending_buf[q.pending++]=be>>>8&255,q.pending_buf[q.pending++]=be&255}function ie(q,be,de,ae){var ce=q.avail_in;return ce>ae&&(ce=ae),ce===0?0:(q.avail_in-=ce,e.arraySet(be,q.input,q.next_in,ce,de),q.state.wrap===1?q.adler=r(q.adler,be,ce,de):q.state.wrap===2&&(q.adler=n(q.adler,be,ce,de)),q.next_in+=ce,q.total_in+=ce,ce)}function ue(q,be){var de=q.max_chain_length,ae=q.strstart,ce,ge,Ue=q.prev_length,Re=q.nice_match,Se=q.strstart>q.w_size-w?q.strstart-(q.w_size-w):0,Ve=q.window,je=q.w_mask,ke=q.prev,Ze=q.strstart+x,Ne=Ve[ae+Ue-1],Be=Ve[ae+Ue];q.prev_length>=q.good_match&&(de>>=2),Re>q.lookahead&&(Re=q.lookahead);do if(ce=be,!(Ve[ce+Ue]!==Be||Ve[ce+Ue-1]!==Ne||Ve[ce]!==Ve[ae]||Ve[++ce]!==Ve[ae+1])){ae+=2,ce++;do;while(Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&Ve[++ae]===Ve[++ce]&&aeUe){if(q.match_start=be,Ue=ge,ge>=Re)break;Ne=Ve[ae+Ue-1],Be=Ve[ae+Ue]}}while((be=ke[be&je])>Se&&--de!==0);return Ue<=q.lookahead?Ue:q.lookahead}function we(q){var be=q.w_size,de,ae,ce,ge,Ue;do{if(ge=q.window_size-q.lookahead-q.strstart,q.strstart>=be+(be-w)){e.arraySet(q.window,q.window,be,be,0),q.match_start-=be,q.strstart-=be,q.block_start-=be,ae=q.hash_size,de=ae;do ce=q.head[--de],q.head[de]=ce>=be?ce-be:0;while(--ae);ae=be,de=ae;do ce=q.prev[--de],q.prev[de]=ce>=be?ce-be:0;while(--ae);ge+=be}if(q.strm.avail_in===0)break;if(ae=ie(q.strm,q.window,q.strstart+q.lookahead,ge),q.lookahead+=ae,q.lookahead+q.insert>=y)for(Ue=q.strstart-q.insert,q.ins_h=q.window[Ue],q.ins_h=(q.ins_h<q.pending_buf_size-5&&(de=q.pending_buf_size-5);;){if(q.lookahead<=1){if(we(q),q.lookahead===0&&be===i)return H;if(q.lookahead===0)break}q.strstart+=q.lookahead,q.lookahead=0;var ae=q.block_start+de;if((q.strstart===0||q.strstart>=ae)&&(q.lookahead=q.strstart-ae,q.strstart=ae,T(q,!1),q.strm.avail_out===0)||q.strstart-q.block_start>=q.w_size-w&&(T(q,!1),q.strm.avail_out===0))return H}return q.insert=0,be===c?(T(q,!0),q.strm.avail_out===0?z:k):(q.strstart>q.block_start&&(T(q,!1),q.strm.avail_out===0),H)}function Z(q,be){for(var de,ae;;){if(q.lookahead=y&&(q.ins_h=(q.ins_h<=y)if(ae=t._tr_tally(q,q.strstart-q.match_start,q.match_length-y),q.lookahead-=q.match_length,q.match_length<=q.max_lazy_match&&q.lookahead>=y){q.match_length--;do q.strstart++,q.ins_h=(q.ins_h<=y&&(q.ins_h=(q.ins_h<4096)&&(q.match_length=y-1)),q.prev_length>=y&&q.match_length<=q.prev_length){ce=q.strstart+q.lookahead-y,ae=t._tr_tally(q,q.strstart-1-q.prev_match,q.prev_length-y),q.lookahead-=q.prev_length-1,q.prev_length-=2;do++q.strstart<=ce&&(q.ins_h=(q.ins_h<=y&&q.strstart>0&&(ce=q.strstart-1,ae=Ue[ce],ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce])){ge=q.strstart+x;do;while(ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ae===Ue[++ce]&&ceq.lookahead&&(q.match_length=q.lookahead)}if(q.match_length>=y?(de=t._tr_tally(q,1,q.match_length-y),q.lookahead-=q.match_length,q.strstart+=q.match_length,q.match_length=0):(de=t._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++),de&&(T(q,!1),q.strm.avail_out===0))return H}return q.insert=0,be===c?(T(q,!0),q.strm.avail_out===0?z:k):q.last_lit&&(T(q,!1),q.strm.avail_out===0)?H:X}function pe(q,be){for(var de;;){if(q.lookahead===0&&(we(q),q.lookahead===0)){if(be===i)return H;break}if(q.match_length=0,de=t._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++,de&&(T(q,!1),q.strm.avail_out===0))return H}return q.insert=0,be===c?(T(q,!0),q.strm.avail_out===0?z:k):q.last_lit&&(T(q,!1),q.strm.avail_out===0)?H:X}function Ce(q,be,de,ae,ce){this.good_length=q,this.max_lazy=be,this.nice_length=de,this.max_chain=ae,this.func=ce}var Me;Me=[new Ce(0,0,0,0,_e),new Ce(4,4,8,4,Z),new Ce(4,5,16,8,Z),new Ce(4,6,32,32,Z),new Ce(4,4,16,16,le),new Ce(8,16,32,32,le),new Ce(8,16,128,128,le),new Ce(8,32,128,256,le),new Ce(32,128,258,1024,le),new Ce(32,258,258,4096,le)];function Ee(q){q.window_size=2*q.w_size,se(q.head),q.max_lazy_match=Me[q.level].max_lazy,q.good_match=Me[q.level].good_length,q.nice_match=Me[q.level].nice_length,q.max_chain_length=Me[q.level].max_chain,q.strstart=0,q.block_start=0,q.lookahead=0,q.insert=0,q.match_length=q.prev_length=y-1,q.match_available=0,q.ins_h=0}function ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=N,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(u*2),this.dyn_dtree=new e.Buf16((2*d+1)*2),this.bl_tree=new e.Buf16((2*o+1)*2),se(this.dyn_ltree),se(this.dyn_dtree),se(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(p+1),this.heap=new e.Buf16(2*E+1),se(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*E+1),se(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function me(q){var be;return!q||!q.state?oe(q,S):(q.total_in=q.total_out=0,q.data_type=j,be=q.state,be.pending=0,be.pending_out=0,be.wrap<0&&(be.wrap=-be.wrap),be.status=be.wrap?h:U,q.adler=be.wrap===2?0:1,be.last_flush=i,t._tr_init(be),g)}function ye(q){var be=me(q);return be===g&&Ee(q.state),be}function Ie(q,be){return!q||!q.state||q.state.wrap!==2?S:(q.state.gzhead=be,g)}function he(q,be,de,ae,ce,ge){if(!q)return S;var Ue=1;if(be===I&&(be=6),ae<0?(Ue=0,ae=-ae):ae>15&&(Ue=2,ae-=16),ce<1||ce>K||de!==N||ae<8||ae>15||be<0||be>9||ge<0||ge>F)return oe(q,S);ae===8&&(ae=9);var Re=new ne;return q.state=Re,Re.strm=q,Re.wrap=Ue,Re.gzhead=null,Re.w_bits=ae,Re.w_size=1<m||be<0)return q?oe(q,S):S;if(ae=q.state,!q.output||!q.input&&q.avail_in!==0||ae.status===$&&be!==c)return oe(q,q.avail_out===0?P:S);if(ae.strm=q,de=ae.last_flush,ae.last_flush=be,ae.status===h)if(ae.wrap===2)q.adler=0,O(ae,31),O(ae,139),O(ae,8),ae.gzhead?(O(ae,(ae.gzhead.text?1:0)+(ae.gzhead.hcrc?2:0)+(ae.gzhead.extra?4:0)+(ae.gzhead.name?8:0)+(ae.gzhead.comment?16:0)),O(ae,ae.gzhead.time&255),O(ae,ae.gzhead.time>>8&255),O(ae,ae.gzhead.time>>16&255),O(ae,ae.gzhead.time>>24&255),O(ae,ae.level===9?2:ae.strategy>=R||ae.level<2?4:0),O(ae,ae.gzhead.os&255),ae.gzhead.extra&&ae.gzhead.extra.length&&(O(ae,ae.gzhead.extra.length&255),O(ae,ae.gzhead.extra.length>>8&255)),ae.gzhead.hcrc&&(q.adler=n(q.adler,ae.pending_buf,ae.pending,0)),ae.gzindex=0,ae.status=s):(O(ae,0),O(ae,0),O(ae,0),O(ae,0),O(ae,0),O(ae,ae.level===9?2:ae.strategy>=R||ae.level<2?4:0),O(ae,L),ae.status=U);else{var Ue=N+(ae.w_bits-8<<4)<<8,Re=-1;ae.strategy>=R||ae.level<2?Re=0:ae.level<6?Re=1:ae.level===6?Re=2:Re=3,Ue|=Re<<6,ae.strstart!==0&&(Ue|=v),Ue+=31-Ue%31,ae.status=U,W(ae,Ue),ae.strstart!==0&&(W(ae,q.adler>>>16),W(ae,q.adler&65535)),q.adler=1}if(ae.status===s)if(ae.gzhead.extra){for(ce=ae.pending;ae.gzindex<(ae.gzhead.extra.length&65535)&&!(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>ce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),Y(q),ce=ae.pending,ae.pending===ae.pending_buf_size));)O(ae,ae.gzhead.extra[ae.gzindex]&255),ae.gzindex++;ae.gzhead.hcrc&&ae.pending>ce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),ae.gzindex===ae.gzhead.extra.length&&(ae.gzindex=0,ae.status=b)}else ae.status=b;if(ae.status===b)if(ae.gzhead.name){ce=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>ce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),Y(q),ce=ae.pending,ae.pending===ae.pending_buf_size)){ge=1;break}ae.gzindexce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),ge===0&&(ae.gzindex=0,ae.status=D)}else ae.status=D;if(ae.status===D)if(ae.gzhead.comment){ce=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>ce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),Y(q),ce=ae.pending,ae.pending===ae.pending_buf_size)){ge=1;break}ae.gzindexce&&(q.adler=n(q.adler,ae.pending_buf,ae.pending-ce,ce)),ge===0&&(ae.status=C)}else ae.status=C;if(ae.status===C&&(ae.gzhead.hcrc?(ae.pending+2>ae.pending_buf_size&&Y(q),ae.pending+2<=ae.pending_buf_size&&(O(ae,q.adler&255),O(ae,q.adler>>8&255),q.adler=0,ae.status=U)):ae.status=U),ae.pending!==0){if(Y(q),q.avail_out===0)return ae.last_flush=-1,g}else if(q.avail_in===0&&re(be)<=re(de)&&be!==c)return oe(q,P);if(ae.status===$&&q.avail_in!==0)return oe(q,P);if(q.avail_in!==0||ae.lookahead!==0||be!==i&&ae.status!==$){var Se=ae.strategy===R?pe(ae,be):ae.strategy===A?fe(ae,be):Me[ae.level].func(ae,be);if((Se===z||Se===k)&&(ae.status=$),Se===H||Se===z)return q.avail_out===0&&(ae.last_flush=-1),g;if(Se===X&&(be===f?t._tr_align(ae):be!==m&&(t._tr_stored_block(ae,0,0,!1),be===l&&(se(ae.head),ae.lookahead===0&&(ae.strstart=0,ae.block_start=0,ae.insert=0))),Y(q),q.avail_out===0))return ae.last_flush=-1,g}return be!==c?g:ae.wrap<=0?_:(ae.wrap===2?(O(ae,q.adler&255),O(ae,q.adler>>8&255),O(ae,q.adler>>16&255),O(ae,q.adler>>24&255),O(ae,q.total_in&255),O(ae,q.total_in>>8&255),O(ae,q.total_in>>16&255),O(ae,q.total_in>>24&255)):(W(ae,q.adler>>>16),W(ae,q.adler&65535)),Y(q),ae.wrap>0&&(ae.wrap=-ae.wrap),ae.pending!==0?g:_)}function xe(q){var be;return!q||!q.state?S:(be=q.state.status,be!==h&&be!==s&&be!==b&&be!==D&&be!==C&&be!==U&&be!==$?oe(q,S):(q.state=null,be===U?oe(q,M):g))}function Ae(q,be){var de=be.length,ae,ce,ge,Ue,Re,Se,Ve,je;if(!q||!q.state||(ae=q.state,Ue=ae.wrap,Ue===2||Ue===1&&ae.status!==h||ae.lookahead))return S;for(Ue===1&&(q.adler=r(q.adler,be,de,0)),ae.wrap=0,de>=ae.w_size&&(Ue===0&&(se(ae.head),ae.strstart=0,ae.block_start=0,ae.insert=0),je=new e.Buf8(ae.w_size),e.arraySet(je,be,de-ae.w_size,ae.w_size,0),be=je,de=ae.w_size),Re=q.avail_in,Se=q.next_in,Ve=q.input,q.avail_in=de,q.next_in=0,q.input=be,we(ae);ae.lookahead>=y;){ce=ae.strstart,ge=ae.lookahead-(y-1);do ae.ins_h=(ae.ins_h<>>24,B>>>=K,R-=K,K=N>>>16&255,K===0)d[c++]=N&65535;else if(K&16){J=N&65535,K&=15,K&&(R>>=K,R-=K),R<15&&(B+=E[f++]<>>24,B>>>=K,R-=K,K=N>>>16&255,K&16){if(te=N&65535,K&=15,R_){n.msg="invalid distance too far back",i.mode=e;break e}if(B>>>=K,R-=K,K=c-m,te>K){if(K=te-K,K>M&&i.sane){n.msg="invalid distance too far back",i.mode=e;break e}if(ee=0,G=I,P===0){if(ee+=S-K,K2;)d[c++]=G[ee++],d[c++]=G[ee++],d[c++]=G[ee++],J-=3;J&&(d[c++]=G[ee++],J>1&&(d[c++]=G[ee++]))}else{ee=c-te;do d[c++]=d[ee++],d[c++]=d[ee++],d[c++]=d[ee++],J-=3;while(J>2);J&&(d[c++]=d[ee++],J>1&&(d[c++]=d[ee++]))}}else if(K&64){n.msg="invalid distance code",i.mode=e;break e}else{N=F[(N&65535)+(B&(1<>3,f-=J,R-=J<<3,B&=(1<=1&&b[J]===0;J--);if(te>J&&(te=J),J===0)return B[R++]=1<<24|64<<16|0,B[R++]=1<<24|64<<16|0,F.bits=1,0;for(K=1;K0&&(S===a||J!==1))return-1;for(D[1]=0,j=1;jr||S===f&&d>n)return 1;for(;;){$=j-G,A[N]s?(H=C[U+A[N]],X=v[h+A[N]]):(H=96,X=0),u=1<>G)+p]=$<<24|H<<16|X|0;while(p!==0);for(u=1<>=1;if(u!==0?(o&=u-1,o+=u):o=0,N++,--b[j]===0){if(j===J)break;j=M[P+A[N]]}if(j>te&&(o&x)!==y){for(G===0&&(G=te),w+=K,ee=j-G,E=1<r||S===f&&d>n)return 1;y=o&x,B[y]=te<<24|ee<<16|w-R|0}}return o!==0&&(B[w+o]=j-G<<24|64<<16|0),F.bits=te,0},l3}var iy;function jD(){if(iy)return Fn;iy=1;var e=Fh(),t=JS(),r=QS(),n=FD(),a=UD(),i=0,f=1,l=2,c=4,m=5,g=6,_=0,S=1,M=2,P=-2,I=-3,B=-4,R=-5,A=8,F=1,V=2,j=3,N=4,K=5,J=6,te=7,ee=8,G=9,E=10,d=11,o=12,u=13,p=14,y=15,x=16,w=17,v=18,h=19,s=20,b=21,D=22,C=23,U=24,$=25,H=26,X=27,z=28,k=29,L=30,oe=31,re=32,se=852,Y=592,T=15,O=T;function W(he){return(he>>>24&255)+(he>>>8&65280)+((he&65280)<<8)+((he&255)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ue(he){var ve;return!he||!he.state?P:(ve=he.state,he.total_in=he.total_out=ve.total=0,he.msg="",ve.wrap&&(he.adler=ve.wrap&1),ve.mode=F,ve.last=0,ve.havedict=0,ve.dmax=32768,ve.head=null,ve.hold=0,ve.bits=0,ve.lencode=ve.lendyn=new e.Buf32(se),ve.distcode=ve.distdyn=new e.Buf32(Y),ve.sane=1,ve.back=-1,_)}function we(he){var ve;return!he||!he.state?P:(ve=he.state,ve.wsize=0,ve.whave=0,ve.wnext=0,ue(he))}function _e(he,ve){var Q,xe;return!he||!he.state||(xe=he.state,ve<0?(Q=0,ve=-ve):(Q=(ve>>4)+1,ve<48&&(ve&=15)),ve&&(ve<8||ve>15))?P:(xe.window!==null&&xe.wbits!==ve&&(xe.window=null),xe.wrap=Q,xe.wbits=ve,we(he))}function Z(he,ve){var Q,xe;return he?(xe=new ie,he.state=xe,xe.window=null,Q=_e(he,ve),Q!==_&&(he.state=null),Q):P}function le(he){return Z(he,O)}var fe=!0,pe,Ce;function Me(he){if(fe){var ve;for(pe=new e.Buf32(512),Ce=new e.Buf32(32),ve=0;ve<144;)he.lens[ve++]=8;for(;ve<256;)he.lens[ve++]=9;for(;ve<280;)he.lens[ve++]=7;for(;ve<288;)he.lens[ve++]=8;for(a(f,he.lens,0,288,pe,0,he.work,{bits:9}),ve=0;ve<32;)he.lens[ve++]=5;a(l,he.lens,0,32,Ce,0,he.work,{bits:5}),fe=!1}he.lencode=pe,he.lenbits=9,he.distcode=Ce,he.distbits=5}function Ee(he,ve,Q,xe){var Ae,q=he.state;return q.window===null&&(q.wsize=1<=q.wsize?(e.arraySet(q.window,ve,Q-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(Ae=q.wsize-q.wnext,Ae>xe&&(Ae=xe),e.arraySet(q.window,ve,Q-xe,Ae,q.wnext),xe-=Ae,xe?(e.arraySet(q.window,ve,Q-xe,xe,0),q.wnext=xe,q.whave=q.wsize):(q.wnext+=Ae,q.wnext===q.wsize&&(q.wnext=0),q.whave>>8&255,Q.check=r(Q.check,Le,2,0),ce=0,ge=0,Q.mode=V;break}if(Q.flags=0,Q.head&&(Q.head.done=!1),!(Q.wrap&1)||(((ce&255)<<8)+(ce>>8))%31){he.msg="incorrect header check",Q.mode=L;break}if((ce&15)!==A){he.msg="unknown compression method",Q.mode=L;break}if(ce>>>=4,ge-=4,Qe=(ce&15)+8,Q.wbits===0)Q.wbits=Qe;else if(Qe>Q.wbits){he.msg="invalid window size",Q.mode=L;break}Q.dmax=1<>8&1),Q.flags&512&&(Le[0]=ce&255,Le[1]=ce>>>8&255,Q.check=r(Q.check,Le,2,0)),ce=0,ge=0,Q.mode=j;case j:for(;ge<32;){if(de===0)break e;de--,ce+=xe[q++]<>>8&255,Le[2]=ce>>>16&255,Le[3]=ce>>>24&255,Q.check=r(Q.check,Le,4,0)),ce=0,ge=0,Q.mode=N;case N:for(;ge<16;){if(de===0)break e;de--,ce+=xe[q++]<>8),Q.flags&512&&(Le[0]=ce&255,Le[1]=ce>>>8&255,Q.check=r(Q.check,Le,2,0)),ce=0,ge=0,Q.mode=K;case K:if(Q.flags&1024){for(;ge<16;){if(de===0)break e;de--,ce+=xe[q++]<>>8&255,Q.check=r(Q.check,Le,2,0)),ce=0,ge=0}else Q.head&&(Q.head.extra=null);Q.mode=J;case J:if(Q.flags&1024&&(Se=Q.length,Se>de&&(Se=de),Se&&(Q.head&&(Qe=Q.head.extra_len-Q.length,Q.head.extra||(Q.head.extra=new Array(Q.head.extra_len)),e.arraySet(Q.head.extra,xe,q,Se,Qe)),Q.flags&512&&(Q.check=r(Q.check,xe,Se,q)),de-=Se,q+=Se,Q.length-=Se),Q.length))break e;Q.length=0,Q.mode=te;case te:if(Q.flags&2048){if(de===0)break e;Se=0;do Qe=xe[q+Se++],Q.head&&Qe&&Q.length<65536&&(Q.head.name+=String.fromCharCode(Qe));while(Qe&&Se>9&1,Q.head.done=!0),he.adler=Q.check=0,Q.mode=o;break;case E:for(;ge<32;){if(de===0)break e;de--,ce+=xe[q++]<>>=ge&7,ge-=ge&7,Q.mode=X;break}for(;ge<3;){if(de===0)break e;de--,ce+=xe[q++]<>>=1,ge-=1,ce&3){case 0:Q.mode=p;break;case 1:if(Me(Q),Q.mode=s,ve===g){ce>>>=2,ge-=2;break e}break;case 2:Q.mode=w;break;case 3:he.msg="invalid block type",Q.mode=L}ce>>>=2,ge-=2;break;case p:for(ce>>>=ge&7,ge-=ge&7;ge<32;){if(de===0)break e;de--,ce+=xe[q++]<>>16^65535)){he.msg="invalid stored block lengths",Q.mode=L;break}if(Q.length=ce&65535,ce=0,ge=0,Q.mode=y,ve===g)break e;case y:Q.mode=x;case x:if(Se=Q.length,Se){if(Se>de&&(Se=de),Se>ae&&(Se=ae),Se===0)break e;e.arraySet(Ae,xe,q,Se,be),de-=Se,q+=Se,ae-=Se,be+=Se,Q.length-=Se;break}Q.mode=o;break;case w:for(;ge<14;){if(de===0)break e;de--,ce+=xe[q++]<>>=5,ge-=5,Q.ndist=(ce&31)+1,ce>>>=5,ge-=5,Q.ncode=(ce&15)+4,ce>>>=4,ge-=4,Q.nlen>286||Q.ndist>30){he.msg="too many length or distance symbols",Q.mode=L;break}Q.have=0,Q.mode=v;case v:for(;Q.have>>=3,ge-=3}for(;Q.have<19;)Q.lens[Ge[Q.have++]]=0;if(Q.lencode=Q.lendyn,Q.lenbits=7,rt={bits:Q.lenbits},qe=a(i,Q.lens,0,19,Q.lencode,0,Q.work,rt),Q.lenbits=rt.bits,qe){he.msg="invalid code lengths set",Q.mode=L;break}Q.have=0,Q.mode=h;case h:for(;Q.have>>24,Ne=ke>>>16&255,Be=ke&65535,!(Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>>=Ze,ge-=Ze,Q.lens[Q.have++]=Be;else{if(Be===16){for(ze=Ze+2;ge>>=Ze,ge-=Ze,Q.have===0){he.msg="invalid bit length repeat",Q.mode=L;break}Qe=Q.lens[Q.have-1],Se=3+(ce&3),ce>>>=2,ge-=2}else if(Be===17){for(ze=Ze+3;ge>>=Ze,ge-=Ze,Qe=0,Se=3+(ce&7),ce>>>=3,ge-=3}else{for(ze=Ze+7;ge>>=Ze,ge-=Ze,Qe=0,Se=11+(ce&127),ce>>>=7,ge-=7}if(Q.have+Se>Q.nlen+Q.ndist){he.msg="invalid bit length repeat",Q.mode=L;break}for(;Se--;)Q.lens[Q.have++]=Qe}}if(Q.mode===L)break;if(Q.lens[256]===0){he.msg="invalid code -- missing end-of-block",Q.mode=L;break}if(Q.lenbits=9,rt={bits:Q.lenbits},qe=a(f,Q.lens,0,Q.nlen,Q.lencode,0,Q.work,rt),Q.lenbits=rt.bits,qe){he.msg="invalid literal/lengths set",Q.mode=L;break}if(Q.distbits=6,Q.distcode=Q.distdyn,rt={bits:Q.distbits},qe=a(l,Q.lens,Q.nlen,Q.ndist,Q.distcode,0,Q.work,rt),Q.distbits=rt.bits,qe){he.msg="invalid distances set",Q.mode=L;break}if(Q.mode=s,ve===g)break e;case s:Q.mode=b;case b:if(de>=6&&ae>=258){he.next_out=be,he.avail_out=ae,he.next_in=q,he.avail_in=de,Q.hold=ce,Q.bits=ge,n(he,Re),be=he.next_out,Ae=he.output,ae=he.avail_out,q=he.next_in,xe=he.input,de=he.avail_in,ce=Q.hold,ge=Q.bits,Q.mode===o&&(Q.back=-1);break}for(Q.back=0;ke=Q.lencode[ce&(1<>>24,Ne=ke>>>16&255,Be=ke&65535,!(Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>et)],Ze=ke>>>24,Ne=ke>>>16&255,Be=ke&65535,!(et+Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>>=et,ge-=et,Q.back+=et}if(ce>>>=Ze,ge-=Ze,Q.back+=Ze,Q.length=Be,Ne===0){Q.mode=H;break}if(Ne&32){Q.back=-1,Q.mode=o;break}if(Ne&64){he.msg="invalid literal/length code",Q.mode=L;break}Q.extra=Ne&15,Q.mode=D;case D:if(Q.extra){for(ze=Q.extra;ge>>=Q.extra,ge-=Q.extra,Q.back+=Q.extra}Q.was=Q.length,Q.mode=C;case C:for(;ke=Q.distcode[ce&(1<>>24,Ne=ke>>>16&255,Be=ke&65535,!(Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>et)],Ze=ke>>>24,Ne=ke>>>16&255,Be=ke&65535,!(et+Ze<=ge);){if(de===0)break e;de--,ce+=xe[q++]<>>=et,ge-=et,Q.back+=et}if(ce>>>=Ze,ge-=Ze,Q.back+=Ze,Ne&64){he.msg="invalid distance code",Q.mode=L;break}Q.offset=Be,Q.extra=Ne&15,Q.mode=U;case U:if(Q.extra){for(ze=Q.extra;ge>>=Q.extra,ge-=Q.extra,Q.back+=Q.extra}if(Q.offset>Q.dmax){he.msg="invalid distance too far back",Q.mode=L;break}Q.mode=$;case $:if(ae===0)break e;if(Se=Re-ae,Q.offset>Se){if(Se=Q.offset-Se,Se>Q.whave&&Q.sane){he.msg="invalid distance too far back",Q.mode=L;break}Se>Q.wnext?(Se-=Q.wnext,Ve=Q.wsize-Se):Ve=Q.wnext-Se,Se>Q.length&&(Se=Q.length),je=Q.window}else je=Ae,Ve=be-Q.offset,Se=Q.length;Se>ae&&(Se=ae),ae-=Se,Q.length-=Se;do Ae[be++]=je[Ve++];while(--Se);Q.length===0&&(Q.mode=b);break;case H:if(ae===0)break e;Ae[be++]=Q.length,ae--,Q.mode=b;break;case X:if(Q.wrap){for(;ge<32;){if(de===0)break e;de--,ce|=xe[q++]<e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=g,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}m.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,t(this.init_done,"close before init"),t(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?n.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&a.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},m.prototype.write=function(g,_,S,M,P,I,B){return this._write(!0,g,_,S,M,P,I,B)},m.prototype.writeSync=function(g,_,S,M,P,I,B){return this._write(!1,g,_,S,M,P,I,B)},m.prototype._write=function(g,_,S,M,P,I,B,R){if(t.equal(arguments.length,8),t(this.init_done,"write before init"),t(this.mode!==e.NONE,"already finalized"),t.equal(!1,this.write_in_progress,"write already in progress"),t.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,t.equal(!1,_===void 0,"must provide flush value"),this.write_in_progress=!0,_!==e.Z_NO_FLUSH&&_!==e.Z_PARTIAL_FLUSH&&_!==e.Z_SYNC_FLUSH&&_!==e.Z_FULL_FLUSH&&_!==e.Z_FINISH&&_!==e.Z_BLOCK)throw new Error("Invalid flush value");if(S==null&&(S=Te.Buffer.alloc(0),P=0,M=0),this.strm.avail_in=P,this.strm.input=S,this.strm.next_in=M,this.strm.avail_out=R,this.strm.output=I,this.strm.next_out=B,this.flush=_,!g)return this._process(),this._checkError()?this._afterSync():void 0;var A=this;return He.nextTick(function(){A._process(),A._after()}),this},m.prototype._afterSync=function(){var g=this.strm.avail_out,_=this.strm.avail_in;return this.write_in_progress=!1,[_,g]},m.prototype._process=function(){var g=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=n.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(g=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(g===null)break;if(this.strm.input[g]===l){if(this.gzip_id_bytes_read=1,g++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(g===null)break;this.strm.input[g]===c?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},m.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},m.prototype._after=function(){if(this._checkError()){var g=this.strm.avail_out,_=this.strm.avail_in;this.write_in_progress=!1,this.callback(_,g),this.pending_close&&this.close()}},m.prototype._error=function(g){this.strm.msg&&(g=this.strm.msg),this.onerror(g,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},m.prototype.init=function(g,_,S,M,P){t(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),t(g>=8&&g<=15,"invalid windowBits"),t(_>=-1&&_<=9,"invalid compression level"),t(S>=1&&S<=9,"invalid memlevel"),t(M===e.Z_FILTERED||M===e.Z_HUFFMAN_ONLY||M===e.Z_RLE||M===e.Z_FIXED||M===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(_,g,S,M,P),this._setDictionary()},m.prototype.params=function(){throw new Error("deflateParams Not supported")},m.prototype.reset=function(){this._reset(),this._setDictionary()},m.prototype._init=function(g,_,S,M,P){switch(this.level=g,this.windowBits=_,this.memLevel=S,this.strategy=M,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new r,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=n.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=P,this.write_in_progress=!1,this.init_done=!0},m.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=n.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},m.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=n.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=m}(U2)),U2}var fy;function $D(){return fy||(fy=1,function(e){var t=Te.Buffer,r=Nh.Transform,n=zD(),a=Mr,i=D1().ok,f=Te.kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+f.toString(16)+" bytes";n.Z_MIN_WINDOWBITS=8,n.Z_MAX_WINDOWBITS=15,n.Z_DEFAULT_WINDOWBITS=15,n.Z_MIN_CHUNK=64,n.Z_MAX_CHUNK=1/0,n.Z_DEFAULT_CHUNK=16*1024,n.Z_MIN_MEMLEVEL=1,n.Z_MAX_MEMLEVEL=9,n.Z_DEFAULT_MEMLEVEL=8,n.Z_MIN_LEVEL=-1,n.Z_MAX_LEVEL=9,n.Z_DEFAULT_LEVEL=n.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(n),m=0;m=f?h=new RangeError(l):v=t.concat(u,p),u=[],E.close(),o(h,v)}}function B(E,d){if(typeof d=="string"&&(d=t.from(d)),!t.isBuffer(d))throw new TypeError("Not a string or buffer");var o=E._finishFlushFlag;return E._processChunk(d,o)}function R(E){if(!(this instanceof R))return new R(E);te.call(this,E,n.DEFLATE)}function A(E){if(!(this instanceof A))return new A(E);te.call(this,E,n.INFLATE)}function F(E){if(!(this instanceof F))return new F(E);te.call(this,E,n.GZIP)}function V(E){if(!(this instanceof V))return new V(E);te.call(this,E,n.GUNZIP)}function j(E){if(!(this instanceof j))return new j(E);te.call(this,E,n.DEFLATERAW)}function N(E){if(!(this instanceof N))return new N(E);te.call(this,E,n.INFLATERAW)}function K(E){if(!(this instanceof K))return new K(E);te.call(this,E,n.UNZIP)}function J(E){return E===n.Z_NO_FLUSH||E===n.Z_PARTIAL_FLUSH||E===n.Z_SYNC_FLUSH||E===n.Z_FULL_FLUSH||E===n.Z_FINISH||E===n.Z_BLOCK}function te(E,d){var o=this;if(this._opts=E=E||{},this._chunkSize=E.chunkSize||e.Z_DEFAULT_CHUNK,r.call(this,E),E.flush&&!J(E.flush))throw new Error("Invalid flush flag: "+E.flush);if(E.finishFlush&&!J(E.finishFlush))throw new Error("Invalid flush flag: "+E.finishFlush);if(this._flushFlag=E.flush||n.Z_NO_FLUSH,this._finishFlushFlag=typeof E.finishFlush<"u"?E.finishFlush:n.Z_FINISH,E.chunkSize&&(E.chunkSizee.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+E.chunkSize);if(E.windowBits&&(E.windowBitse.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+E.windowBits);if(E.level&&(E.levele.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+E.level);if(E.memLevel&&(E.memLevele.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+E.memLevel);if(E.strategy&&E.strategy!=e.Z_FILTERED&&E.strategy!=e.Z_HUFFMAN_ONLY&&E.strategy!=e.Z_RLE&&E.strategy!=e.Z_FIXED&&E.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+E.strategy);if(E.dictionary&&!t.isBuffer(E.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new n.Zlib(d);var u=this;this._hadError=!1,this._handle.onerror=function(x,w){ee(u),u._hadError=!0;var v=new Error(x);v.errno=w,v.code=e.codes[w],u.emit("error",v)};var p=e.Z_DEFAULT_COMPRESSION;typeof E.level=="number"&&(p=E.level);var y=e.Z_DEFAULT_STRATEGY;typeof E.strategy=="number"&&(y=E.strategy),this._handle.init(E.windowBits||e.Z_DEFAULT_WINDOWBITS,p,E.memLevel||e.Z_DEFAULT_MEMLEVEL,y,E.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=p,this._strategy=y,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!o._handle},configurable:!0,enumerable:!0})}a.inherits(te,r),te.prototype.params=function(E,d,o){if(Ee.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+E);if(d!=e.Z_FILTERED&&d!=e.Z_HUFFMAN_ONLY&&d!=e.Z_RLE&&d!=e.Z_FIXED&&d!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+d);if(this._level!==E||this._strategy!==d){var u=this;this.flush(n.Z_SYNC_FLUSH,function(){i(u._handle,"zlib binding closed"),u._handle.params(E,d),u._hadError||(u._level=E,u._strategy=d,o&&o())})}else He.nextTick(o)},te.prototype.reset=function(){return i(this._handle,"zlib binding closed"),this._handle.reset()},te.prototype._flush=function(E){this._transform(t.alloc(0),"",E)},te.prototype.flush=function(E,d){var o=this,u=this._writableState;(typeof E=="function"||E===void 0&&!d)&&(d=E,E=n.Z_FULL_FLUSH),u.ended?d&&He.nextTick(d):u.ending?d&&this.once("end",d):u.needDrain?d&&this.once("drain",function(){return o.flush(E,d)}):(this._flushFlag=E,this.write(t.alloc(0),"",d))},te.prototype.close=function(E){ee(this,E),He.nextTick(G,this)};function ee(E,d){d&&He.nextTick(d),E._handle&&(E._handle.close(),E._handle=null)}function G(E){E.emit("close")}te.prototype._transform=function(E,d,o){var u,p=this._writableState,y=p.ending||p.ended,x=y&&(!E||p.length===E.length);if(E!==null&&!t.isBuffer(E))return o(new Error("invalid input"));if(!this._handle)return o(new Error("zlib binding closed"));x?u=this._finishFlushFlag:(u=this._flushFlag,E.length>=p.length&&(this._flushFlag=this._opts.flush||n.Z_NO_FLUSH)),this._processChunk(E,u,o)},te.prototype._processChunk=function(E,d,o){var u=E&&E.length,p=this._chunkSize-this._offset,y=0,x=this,w=typeof o=="function";if(!w){var v=[],h=0,s;this.on("error",function($){s=$}),i(this._handle,"zlib binding closed");do var b=this._handle.writeSync(d,E,y,u,this._buffer,this._offset,p);while(!this._hadError&&U(b[0],b[1]));if(this._hadError)throw s;if(h>=f)throw ee(this),new RangeError(l);var D=t.concat(v,h);return ee(this),D}i(this._handle,"zlib binding closed");var C=this._handle.write(d,E,y,u,this._buffer,this._offset,p);C.buffer=E,C.callback=U;function U($,H){if(this&&(this.buffer=null,this.callback=null),!x._hadError){var X=p-H;if(i(X>=0,"have should not go down"),X>0){var z=x._buffer.slice(x._offset,x._offset+X);x._offset+=X,w?x.push(z):(v.push(z),h+=z.length)}if((H===0||x._offset>=x._chunkSize)&&(p=x._chunkSize,x._offset=0,x._buffer=t.allocUnsafe(x._chunkSize)),H===0){if(y+=u-$,u=$,!w)return!0;var k=x._handle.write(d,E,y,u,x._buffer,x._offset,x._chunkSize);k.callback=U,k.buffer=E;return}if(!w)return!1;o()}}},a.inherits(R,te),a.inherits(A,te),a.inherits(F,te),a.inherits(V,te),a.inherits(j,te),a.inherits(N,te),a.inherits(K,te)}(D2)),D2}var r6={exports:{}};(function(e,t){t=e.exports=u5(),t.Stream=t,t.Readable=t,t.Writable=Ih(),t.Duplex=yf(),t.Transform=h5,t.PassThrough=zS,t.finished=kh,t.pipeline=KS})(r6,r6.exports);var Li=r6.exports,eE={exports:{}},as=[],cu=[],n6=function(){};function v5(e){return~as.indexOf(e)?!1:(as.push(e),!0)}function g5(e){n6=e}function HD(e){for(var t=[],r=0;rf.start)&&(l?l(null,_):g.emit("line",_)),M++,_=""),setTimeout(B,1e3);var F=m.write(c.slice(0,A));l||g.emit("data",F),F=(_+F).split(/\n+/);for(var V=F.length-1,j=0;jf.start)&&(l?l(null,F[j]):g.emit("line",F[j])),M++;return _=F[V],S+=A,B()})})()}),l?g.destroy:g},h3}var d3,uy;function JD(){if(uy)return d3;uy=1;function e(ee){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},e(ee)}function t(ee,G){if(!(ee instanceof G))throw new TypeError("Cannot call a class as a function")}function r(ee,G){for(var E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(ee){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},S(ee)}var M=NS(),P=YN(),I=uD(),B=$D(),R=nr,A=R.MESSAGE,F=Li,V=F.Stream,j=F.PassThrough,N=Mf(),K=Uh("winston:file"),J=er,te=YD();return d3=function(ee){f(E,ee);var G=c(E);function E(){var d,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t(this,E),d=G.call(this,o),d.name=o.name||"file";function u(p){for(var y=arguments.length,x=new Array(y>1?y-1:0),w=1;w1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return p(),!0;if(this._drain){this._stream.once("drain",function(){u._drain=!1,u.log(o,p)});return}if(this._rotate){this._stream.once("rotate",function(){u._rotate=!1,u.log(o,p)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",function(){u._fileExist=!0,u.log(o,p)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",function(){u._opening||u.open(),u.once("open",function(){u.log(o,p)})});return}}var y="".concat(o[A]).concat(this.eol),x=Te.Buffer.byteLength(y);function w(){var h=this;if(this._size+=x,this._pendingSize-=x,K("logged %s %s",this._size,y),this.emit("logged",o),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(function(){h.emit("fileclosed")});return}this._rotate=!0,this._endStream(function(){return h._rotateFile()})}}this._pendingSize+=x,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var v=this._stream.write(y,w.bind(this));return v?p():(this._drain=!0,this._stream.once("drain",function(){u._drain=!1,p()})),K("written",v,this._drain),this.finishIfEnding(),v}},{key:"query",value:function(o,u){typeof o=="function"&&(u=o,o={}),o=D(o);var p=P.join(this.dirname,this.filename),y="",x=[],w=0,v=M.createReadStream(p,{encoding:"utf8"});v.on("error",function(C){if(v.readable&&v.destroy(),!!u)return C.code!=="ENOENT"?u(C):u(null,x)}),v.on("data",function(C){C=(y+C).split(/\n+/);for(var U=C.length-1,$=0;$=o.start)&&h(C[$]),w++;y=C[U]}),v.on("close",function(){y&&h(y,!0),o.order==="desc"&&(x=x.reverse()),u&&u(null,x)});function h(C,U){try{var $=JSON.parse(C);b($)&&s($)}catch(H){U||v.emit("error",H)}}function s(C){if(o.rows&&x.length>=o.rows&&o.order!=="desc"){v.readable&&v.destroy();return}o.fields&&(C=o.fields.reduce(function(U,$){return U[$]=C[$],U},{})),o.order==="desc"&&x.length>=o.rows&&x.shift(),x.push(C)}function b(C){if(C&&e(C)==="object"){var U=new Date(C.timestamp);if(!(o.from&&Uo.until||o.level&&o.level!==C.level))return!0}}function D(C){return C=C||{},C.rows=C.rows||C.limit||10,C.start=C.start||0,C.until=C.until||new Date,e(C.until)!=="object"&&(C.until=new Date(C.until)),C.from=C.from||C.until-24*60*60*1e3,e(C.from)!=="object"&&(C.from=new Date(C.from)),C.order=C.order||"desc",C}}},{key:"stream",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=P.join(this.dirname,this.filename),p=new V,y={file:u,start:o.start};return p.destroy=te(y,function(x,w){if(x)return p.emit("error",x);try{p.emit("data",w),w=JSON.parse(w),p.emit("log",w)}catch(v){p.emit("error",v)}}),p}},{key:"open",value:function(){var o=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(u,p){if(u)return o.emit("error",u);K("stat done: %s { size: %s }",o.filename,p),o._size=p,o._dest=o._createStream(o._stream),o._opening=!1,o.once("open",function(){o._stream.eventNames().includes("rotate")?o._stream.emit("rotate"):o._rotate=!1})})))}},{key:"stat",value:function(o){var u=this,p=this._getFile(),y=P.join(this.dirname,p);M.stat(y,function(x,w){if(x&&x.code==="ENOENT")return K("ENOENT ok",y),u.filename=p,o(null,0);if(x)return K("err ".concat(x.code," ").concat(y)),o(x);if(!w||u._needsNewFile(w.size))return u._incFile(function(){return u.stat(o)});u.filename=p,o(null,w.size)})}},{key:"close",value:function(o){var u=this;this._stream&&this._stream.end(function(){o&&o(),u.emit("flush"),u.emit("closed")})}},{key:"_needsNewFile",value:function(o){return o=o||this._size,this.maxsize&&o>=this.maxsize}},{key:"_onError",value:function(o){this.emit("error",o)}},{key:"_setupStream",value:function(o){return o.on("error",this._onError),o}},{key:"_cleanupStream",value:function(o){return o.removeListener("error",this._onError),o.destroy(),o}},{key:"_rotateFile",value:function(){var o=this;this._incFile(function(){return o.open()})}},{key:"_endStream",value:function(){var o=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){o._cleanupStream(o._dest),u()})):u()}},{key:"_createStream",value:function(o){var u=this,p=P.join(this.dirname,this.filename);K("create stream start",p,this.options);var y=M.createWriteStream(p,this.options).on("error",function(w){return K(w)}).on("close",function(){return K("close",y.path,y.bytesWritten)}).on("open",function(){K("file open ok",p),u.emit("open",p),o.pipe(y),u.rotatedWhileOpening&&(u._stream=new j,u._stream.setMaxListeners(30),u._rotateFile(),u.rotatedWhileOpening=!1,u._cleanupStream(y),o.end())});if(K("create stream ok",p),this.zippedArchive){var x=B.createGzip();return x.pipe(y),x}return y}},{key:"_incFile",value:function(o){K("_incFile",this.filename);var u=P.extname(this._basename),p=P.basename(this._basename,u);this.tailable?this._checkMaxFilesTailable(u,p,o):(this._created+=1,this._checkMaxFilesIncrementing(u,p,o))}},{key:"_getFile",value:function(){var o=P.extname(this._basename),u=P.basename(this._basename,o),p=this.rotationFormat?this.rotationFormat():this._created,y=!this.tailable&&this._created?"".concat(u).concat(p).concat(o):"".concat(u).concat(o);return this.zippedArchive&&!this.tailable?"".concat(y,".gz"):y}},{key:"_checkMaxFilesIncrementing",value:function(o,u,p){if(!this.maxFiles||this._created1;v--)x.push((function(h,s){var b=this,D="".concat(u).concat(h-1).concat(o).concat(w),C=P.join(this.dirname,D);M.exists(C,function(U){if(!U)return s(null);D="".concat(u).concat(h).concat(o).concat(w),M.rename(C,P.join(b.dirname,D),s)})}).bind(this,v));I(x,function(){M.rename(P.join(y.dirname,"".concat(u).concat(o)),P.join(y.dirname,"".concat(u,"1").concat(o).concat(w)),p)})}}},{key:"_createLogDirIfNotExist",value:function(o){M.existsSync(o)||M.mkdirSync(o,{recursive:!0})}}]),E}(N),d3}var p3={},v3={exports:{}},g3={},ly;function rE(){return ly||(ly=1,function(e){e.fetch=a(Oe.fetch)&&a(Oe.ReadableStream),e.writableStream=a(Oe.WritableStream),e.abortController=a(Oe.AbortController);var t;function r(){if(t!==void 0)return t;if(Oe.XMLHttpRequest){t=new Oe.XMLHttpRequest;try{t.open("GET",Oe.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(i){var f=r();if(!f)return!1;try{return f.responseType=i,f.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?a(r().overrideMimeType):!1);function a(i){return typeof i=="function"}t=null}(g3)),g3}var sc={},cy;function nE(){if(cy)return sc;cy=1;var e=rE(),t=ot,r=Li,n=sc.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=sc.IncomingMessage=function(i,f,l,c){var m=this;if(r.Readable.call(m),m._mode=l,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){He.nextTick(function(){m.emit("close")})}),l==="fetch"){let B=function(){_.read().then(function(R){if(!m._destroyed){if(c(R.done),R.done){m.push(null);return}m.push(Te.Buffer.from(R.value)),B()}}).catch(function(R){c(!0),m._destroyed||m.emit("error",R)})};var I=B;if(m._fetchResponse=f,m.url=f.url,m.statusCode=f.status,m.statusMessage=f.statusText,f.headers.forEach(function(R,A){m.headers[A.toLowerCase()]=R,m.rawHeaders.push(A,R)}),e.writableStream){var g=new WritableStream({write:function(R){return c(!1),new Promise(function(A,F){m._destroyed?F():m.push(Te.Buffer.from(R))?A():m._resumeFetch=A})},close:function(){c(!0),m._destroyed||m.push(null)},abort:function(R){c(!0),m._destroyed||m.emit("error",R)}});try{f.body.pipeTo(g).catch(function(R){c(!0),m._destroyed||m.emit("error",R)});return}catch{}}var _=f.body.getReader();B()}else{m._xhr=i,m._pos=0,m.url=i.responseURL,m.statusCode=i.status,m.statusMessage=i.statusText;var S=i.getAllResponseHeaders().split(/\r?\n/);if(S.forEach(function(B){var R=B.match(/^([^:]+):\s*(.*)/);if(R){var A=R[1].toLowerCase();A==="set-cookie"?(m.headers[A]===void 0&&(m.headers[A]=[]),m.headers[A].push(R[2])):m.headers[A]!==void 0?m.headers[A]+=", "+R[2]:m.headers[A]=R[2],m.rawHeaders.push(R[1],R[2])}}),m._charset="x-user-defined",!e.overrideMimeType){var M=m.rawHeaders["mime-type"];if(M){var P=M.match(/;\s*charset=([^;])(;|$)/);P&&(m._charset=P[1].toLowerCase())}m._charset||(m._charset="utf-8")}}};return t(a,r.Readable),a.prototype._read=function(){var i=this,f=i._resumeFetch;f&&(i._resumeFetch=null,f())},a.prototype._onXHRProgress=function(i){var f=this,l=f._xhr,c=null;switch(f._mode){case"text":if(c=l.responseText,c.length>f._pos){var m=c.substr(f._pos);if(f._charset==="x-user-defined"){for(var g=Te.Buffer.alloc(m.length),_=0;_f._pos&&(f.push(Te.Buffer.from(new Uint8Array(S.result.slice(f._pos)))),f._pos=S.result.byteLength)},S.onload=function(){i(!0),f.push(null)},S.readAsArrayBuffer(c);break}f._xhr.readyState===n.DONE&&f._mode!=="ms-stream"&&(i(!0),f.push(null))},sc}var hy;function QD(){if(hy)return v3.exports;hy=1;var e=rE(),t=ot,r=nE(),n=Li,a=r.IncomingMessage,i=r.readyStates;function f(g,_){return e.fetch&&_?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&g?"arraybuffer":"text"}var l=v3.exports=function(g){var _=this;n.Writable.call(_),_._opts=g,_._body=[],_._headers={},g.auth&&_.setHeader("Authorization","Basic "+Te.Buffer.from(g.auth).toString("base64")),Object.keys(g.headers).forEach(function(P){_.setHeader(P,g.headers[P])});var S,M=!0;if(g.mode==="disable-fetch"||"requestTimeout"in g&&!e.abortController)M=!1,S=!0;else if(g.mode==="prefer-streaming")S=!1;else if(g.mode==="allow-wrong-content-type")S=!e.overrideMimeType;else if(!g.mode||g.mode==="default"||g.mode==="prefer-fast")S=!0;else throw new Error("Invalid value for opts.mode");_._mode=f(S,M),_._fetchTimer=null,_._socketTimeout=null,_._socketTimer=null,_.on("finish",function(){_._onFinish()})};t(l,n.Writable),l.prototype.setHeader=function(g,_){var S=this,M=g.toLowerCase();m.indexOf(M)===-1&&(S._headers[M]={name:g,value:_})},l.prototype.getHeader=function(g){var _=this._headers[g.toLowerCase()];return _?_.value:null},l.prototype.removeHeader=function(g){var _=this;delete _._headers[g.toLowerCase()]},l.prototype._onFinish=function(){var g=this;if(!g._destroyed){var _=g._opts;"timeout"in _&&_.timeout!==0&&g.setTimeout(_.timeout);var S=g._headers,M=null;_.method!=="GET"&&_.method!=="HEAD"&&(M=new Blob(g._body,{type:(S["content-type"]||{}).value||""}));var P=[];if(Object.keys(S).forEach(function(A){var F=S[A].name,V=S[A].value;Array.isArray(V)?V.forEach(function(j){P.push([F,j])}):P.push([F,V])}),g._mode==="fetch"){var I=null;if(e.abortController){var B=new AbortController;I=B.signal,g._fetchAbortController=B,"requestTimeout"in _&&_.requestTimeout!==0&&(g._fetchTimer=Oe.setTimeout(function(){g.emit("requestTimeout"),g._fetchAbortController&&g._fetchAbortController.abort()},_.requestTimeout))}Oe.fetch(g._opts.url,{method:g._opts.method,headers:P,body:M||void 0,mode:"cors",credentials:_.withCredentials?"include":"same-origin",signal:I}).then(function(A){g._fetchResponse=A,g._resetTimers(!1),g._connect()},function(A){g._resetTimers(!0),g._destroyed||g.emit("error",A)})}else{var R=g._xhr=new Oe.XMLHttpRequest;try{R.open(g._opts.method,g._opts.url,!0)}catch(A){He.nextTick(function(){g.emit("error",A)});return}"responseType"in R&&(R.responseType=g._mode),"withCredentials"in R&&(R.withCredentials=!!_.withCredentials),g._mode==="text"&&"overrideMimeType"in R&&R.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in _&&(R.timeout=_.requestTimeout,R.ontimeout=function(){g.emit("requestTimeout")}),P.forEach(function(A){R.setRequestHeader(A[0],A[1])}),g._response=null,R.onreadystatechange=function(){switch(R.readyState){case i.LOADING:case i.DONE:g._onXHRProgress();break}},g._mode==="moz-chunked-arraybuffer"&&(R.onprogress=function(){g._onXHRProgress()}),R.onerror=function(){g._destroyed||(g._resetTimers(!0),g.emit("error",new Error("XHR error")))};try{R.send(M)}catch(A){He.nextTick(function(){g.emit("error",A)});return}}}};function c(g){try{var _=g.status;return _!==null&&_!==0}catch{return!1}}l.prototype._onXHRProgress=function(){var g=this;g._resetTimers(!1),!(!c(g._xhr)||g._destroyed)&&(g._response||g._connect(),g._response._onXHRProgress(g._resetTimers.bind(g)))},l.prototype._connect=function(){var g=this;g._destroyed||(g._response=new a(g._xhr,g._fetchResponse,g._mode,g._resetTimers.bind(g)),g._response.on("error",function(_){g.emit("error",_)}),g.emit("response",g._response))},l.prototype._write=function(g,_,S){var M=this;M._body.push(g),S()},l.prototype._resetTimers=function(g){var _=this;Oe.clearTimeout(_._socketTimer),_._socketTimer=null,g?(Oe.clearTimeout(_._fetchTimer),_._fetchTimer=null):_._socketTimeout&&(_._socketTimer=Oe.setTimeout(function(){_.emit("timeout")},_._socketTimeout))},l.prototype.abort=l.prototype.destroy=function(g){var _=this;_._destroyed=!0,_._resetTimers(!0),_._response&&(_._response._destroyed=!0),_._xhr?_._xhr.abort():_._fetchAbortController&&_._fetchAbortController.abort(),g&&_.emit("error",g)},l.prototype.end=function(g,_,S){var M=this;typeof g=="function"&&(S=g,g=void 0),n.Writable.prototype.end.call(M,g,_,S)},l.prototype.setTimeout=function(g,_){var S=this;_&&S.once("timeout",_),S._socketTimeout=g,S._resetTimers(!1)},l.prototype.flushHeaders=function(){},l.prototype.setNoDelay=function(){},l.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return v3.exports}var y3,dy;function eF(){if(dy)return y3;dy=1,y3=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=c-m,j=Math.floor,N=String.fromCharCode,K;function J(v){throw new RangeError(F[v])}function te(v,h){for(var s=v.length,b=[];s--;)b[s]=h(v[s]);return b}function ee(v,h){var s=v.split("@"),b="";s.length>1&&(b=s[0]+"@",v=s[1]),v=v.replace(A,".");var D=v.split("."),C=te(D,h).join(".");return b+C}function G(v){for(var h=[],s=0,b=v.length,D,C;s=55296&&D<=56319&&s65535&&(h-=65536,s+=N(h>>>10&1023|55296),h=56320|h&1023),s+=N(h),s}).join("")}function d(v){return v-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c}function o(v,h){return v+22+75*(v<26)-((h!=0)<<5)}function u(v,h,s){var b=0;for(v=s?j(v/S):v>>1,v+=j(v/h);v>V*g>>1;b+=c)v=j(v/V);return j(b+(V+1)*v/(v+_))}function p(v){var h=[],s=v.length,b,D=0,C=P,U=M,$,H,X,z,k,L,oe,re,se;for($=v.lastIndexOf(I),$<0&&($=0),H=0;H<$;++H)v.charCodeAt(H)>=128&&J("not-basic"),h.push(v.charCodeAt(H));for(X=$>0?$+1:0;X=s&&J("invalid-input"),oe=d(v.charCodeAt(X++)),(oe>=c||oe>j((l-D)/k))&&J("overflow"),D+=oe*k,re=L<=U?m:L>=U+g?g:L-U,!(oej(l/se)&&J("overflow"),k*=se;b=h.length+1,U=u(D-z,b,z==0),j(D/b)>l-C&&J("overflow"),C+=j(D/b),D%=b,h.splice(D++,0,C)}return E(h)}function y(v){var h,s,b,D,C,U,$,H,X,z,k,L=[],oe,re,se,Y;for(v=G(v),oe=v.length,h=P,s=0,C=M,U=0;U=h&&k<$&&($=k);for(re=b+1,$-h>j((l-s)/re)&&J("overflow"),s+=($-h)*re,h=$,U=0;Ul&&J("overflow"),k==h){for(H=s,X=c;z=X<=C?m:X>=C+g?g:X-C,!(H0&&m>c&&(m=c);for(var g=0;g=0?(M=_.substr(0,S),P=_.substr(S+1)):(M=_,P=""),I=decodeURIComponent(M),B=decodeURIComponent(P),e(f,I)?t(f[I])?f[I].push(B):f[I]=[f[I],B]:f[I]=B}return f};var t=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};return b3}var x3,yy;function iF(){if(yy)return x3;yy=1;var e=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};x3=function(a,i,f,l){return i=i||"&",f=f||"=",a===null&&(a=void 0),typeof a=="object"?r(n(a),function(c){var m=encodeURIComponent(e(c))+f;return t(a[c])?r(a[c],function(g){return m+encodeURIComponent(e(g))}).join(i):m+encodeURIComponent(e(a[c]))}).join(i):l?encodeURIComponent(e(l))+f+encodeURIComponent(e(a)):""};var t=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function r(a,i){if(a.map)return a.map(i);for(var f=[],l=0;l",'"',"`"," ","\r",` +`," "],V=["{","}","|","\\","^","`"].concat(F),j=["'"].concat(V),N=["%","/","?",";","#"].concat(j),K=["/","?","#"],J=255,te=/^[+a-z0-9A-Z_-]{0,63}$/,ee=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,G={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},o=f.default;function u(Z,le,fe){if(Z&&m.isObject(Z)&&Z instanceof I)return Z;var pe=new I;return pe.parse(Z,le,fe),pe}I.prototype.parse=function(Z,le,fe){if(!m.isString(Z))throw new TypeError("Parameter 'url' must be a string, not "+typeof Z);var pe=Z.indexOf("?"),Ce=pe!==-1&&pe127?ge+="x":ge+=ce[Ue];if(!ge.match(te)){var Se=de.slice(0,Q),Ve=de.slice(Q+1),je=ce.match(ee);je&&(Se.push(je[1]),Ve.unshift(je[2])),Ve.length&&(ne="/"+Ve.join(".")+ne),this.hostname=Se.join(".");break}}}this.hostname.length>J?this.hostname="":this.hostname=this.hostname.toLowerCase(),be||(this.hostname=c.toASCII(this.hostname));var ke=this.port?":"+this.port:"",Ze=this.hostname||"";this.host=Ze+ke,this.href+=this.host,be&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ne[0]!=="/"&&(ne="/"+ne))}if(!G[Ie])for(var Q=0,ae=j.length;Q0?fe.host.split("@"):!1;ge&&(fe.auth=ge.shift(),fe.host=fe.hostname=ge.shift())}return fe.search=Z.search,fe.query=Z.query,(!m.isNull(fe.pathname)||!m.isNull(fe.search))&&(fe.path=(fe.pathname?fe.pathname:"")+(fe.search?fe.search:"")),fe.href=fe.format(),fe}if(!de.length)return fe.pathname=null,fe.search?fe.path="/"+fe.search:fe.path=null,fe.href=fe.format(),fe;for(var Ue=de.slice(-1)[0],Re=(fe.host||Z.host||de.length>1)&&(Ue==="."||Ue==="..")||Ue==="",Se=0,Ve=de.length;Ve>=0;Ve--)Ue=de[Ve],Ue==="."?de.splice(Ve,1):Ue===".."?(de.splice(Ve,1),Se++):Se&&(de.splice(Ve,1),Se--);if(!q&&!be)for(;Se--;Se)de.unshift("..");q&&de[0]!==""&&(!de[0]||de[0].charAt(0)!=="/")&&de.unshift(""),Re&&de.join("/").substr(-1)!=="/"&&de.push("");var je=de[0]===""||de[0]&&de[0].charAt(0)==="/";if(ce){fe.hostname=fe.host=je?"":de.length?de.shift():"";var ge=fe.host&&fe.host.indexOf("@")>0?fe.host.split("@"):!1;ge&&(fe.auth=ge.shift(),fe.host=fe.hostname=ge.shift())}return q=q||fe.host&&de.length,q&&!je&&de.unshift(""),de.length?fe.pathname=de.join("/"):(fe.pathname=null,fe.path=null),(!m.isNull(fe.pathname)||!m.isNull(fe.search))&&(fe.path=(fe.pathname?fe.pathname:"")+(fe.search?fe.search:"")),fe.auth=Z.auth||fe.auth,fe.slashes=fe.slashes||Z.slashes,fe.href=fe.format(),fe},I.prototype.parseHost=function(){var Z=this.host,le=R.exec(Z);le&&(le=le[0],le!==":"&&(this.port=le.substr(1)),Z=Z.substr(0,Z.length-le.length)),Z&&(this.hostname=Z)};function w(Z,le){for(var fe=0,pe=Z.length-1;pe>=0;pe--){var Ce=Z[pe];Ce==="."?Z.splice(pe,1):Ce===".."?(Z.splice(pe,1),fe++):fe&&(Z.splice(pe,1),fe--)}if(le)for(;fe--;fe)Z.unshift("..");return Z}function v(){for(var Z="",le=!1,fe=arguments.length-1;fe>=-1&&!le;fe--){var pe=fe>=0?arguments[fe]:"/";if(typeof pe!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!pe)continue;Z=pe+"/"+Z,le=pe.charAt(0)==="/"}return Z=w(h(Z.split("/"),function(Ce){return!!Ce}),!le).join("/"),(le?"/":"")+Z||"."}function h(Z,le){if(Z.filter)return Z.filter(le);for(var fe=[],pe=0;pe"u")throw new TypeError('The "domain" argument must be specified');return new $("http://"+le).hostname},W=function(le){if(typeof le>"u")throw new TypeError('The "domain" argument must be specified');return new $("http://"+le).hostname},ie=function(le){var fe=new $("file://"),pe=v(le),Ce=le.charCodeAt(le.length-1);return Ce===re&&pe[pe.length-1]!=="/"&&(pe+="/"),fe.pathname=T(pe),fe},ue=function(le){if(!se(le)&&typeof le!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof le+" ("+le+")");var fe=new $(le);if(fe.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return Y(fe)},we=function(le,fe){var pe,Ce,Me;if(fe===void 0&&(fe={}),!(le instanceof $))return b(le);if(typeof fe!="object"||fe===null)throw new TypeError('The "options" argument must be of type object.');var Ee=(pe=fe.auth)!=null?pe:!0,ne=(Ce=fe.fragment)!=null?Ce:!0,me=(Me=fe.search)!=null?Me:!0,ye=new $(le.toString());return Ee||(ye.username="",ye.password=""),ne||(ye.hash=""),me||(ye.search=""),ye.toString()},_e={format:we,parse:D,resolve:C,resolveObject:S,Url:U,URL:$,URLSearchParams:H,domainToASCII:O,domainToUnicode:W,pathToFileURL:ie,fileURLToPath:ue};t.URL=$,t.URLSearchParams=H,t.Url=U,t.default=_e,t.domainToASCII=O,t.domainToUnicode=W,t.fileURLToPath=ue,t.format=we,t.parse=D,t.pathToFileURL=ie,t.resolve=C,t.resolveObject=S,t=e.exports=_e}(uc,uc.exports)),uc.exports}var wy;function aE(){return wy||(wy=1,function(e){var t=QD(),r=nE(),n=eF(),a=tF(),i=iE(),f=e;f.request=function(l,c){typeof l=="string"?l=i.parse(l):l=n(l);var m=Oe.location.protocol.search(/^https?:$/)===-1?"http:":"",g=l.protocol||m,_=l.hostname||l.host,S=l.port,M=l.path||"/";_&&_.indexOf(":")!==-1&&(_="["+_+"]"),l.url=(_?g+"//"+_:"")+(S?":"+S:"")+M,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var P=new t(l);return c&&P.on("response",c),P},f.get=function(c,m){var g=f.request(c,m);return g.end(),g},f.ClientRequest=t,f.IncomingMessage=r.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=a,f.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(p3)),p3}var w3={exports:{}},_y;function fF(){return _y||(_y=1,function(e){var t=aE(),r=iE(),n=e.exports;for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);n.request=function(f,l){return f=i(f),t.request.call(this,f,l)},n.get=function(f,l){return f=i(f),t.get.call(this,f,l)};function i(f){if(typeof f=="string"&&(f=r.parse(f)),f.protocol||(f.protocol="https:"),f.protocol!=="https:")throw new Error('Protocol "'+f.protocol+'" not supported. Expected "https:"');return f}}(w3)),w3.exports}var _3,Sy;function sF(){if(Sy)return _3;Sy=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},e(N)}function t(N,K){var J=Object.keys(N);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(N);K&&(te=te.filter(function(ee){return Object.getOwnPropertyDescriptor(N,ee).enumerable})),J.push.apply(J,te)}return J}function r(N){for(var K=1;K"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function I(N){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},I(N)}var B=aE(),R=fF(),A=Li,F=A.Stream,V=Mf(),j=ll;return _3=function(N){m(J,N);var K=_(J);function J(){var te,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a(this,J),te=K.call(this,ee),te.options=ee,te.name=ee.name||"http",te.ssl=!!ee.ssl,te.host=ee.host||"localhost",te.port=ee.port,te.auth=ee.auth,te.path=ee.path||"",te.agent=ee.agent,te.headers=ee.headers||{},te.headers["content-type"]="application/json",te.batch=ee.batch||!1,te.batchInterval=ee.batchInterval||5e3,te.batchCount=ee.batchCount||10,te.batchOptions=[],te.batchTimeoutID=-1,te.batchCallback={},te.port||(te.port=te.ssl?443:80),te}return f(J,[{key:"log",value:function(ee,G){var E=this;this._request(ee,null,null,function(d,o){o&&o.statusCode!==200&&(d=new Error("Invalid HTTP Status Code: ".concat(o.statusCode))),d?E.emit("warn",d):E.emit("logged",ee)}),G&&setImmediate(G)}},{key:"query",value:function(ee,G){typeof ee=="function"&&(G=ee,ee={}),ee={method:"query",params:this.normalizeQuery(ee)};var E=ee.params.auth||null;delete ee.params.auth;var d=ee.params.path||null;delete ee.params.path,this._request(ee,E,d,function(o,u,p){if(u&&u.statusCode!==200&&(o=new Error("Invalid HTTP Status Code: ".concat(u.statusCode))),o)return G(o);if(typeof p=="string")try{p=JSON.parse(p)}catch(y){return G(y)}G(null,p)})}},{key:"stream",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=new F;ee={method:"stream",params:ee};var E=ee.params.path||null;delete ee.params.path;var d=ee.params.auth||null;delete ee.params.auth;var o="",u=this._request(ee,d,E);return G.destroy=function(){return u.destroy()},u.on("data",function(p){p=(o+p).split(/\n+/);for(var y=p.length-1,x=0;x0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var d=this.batchOptions.slice();this.batchOptions=[],this._doRequest(d,ee,G,E)}},{key:"_doRequest",value:function(ee,G,E,d){var o=Object.assign({},this.headers);E&&E.bearer&&(o.Authorization="Bearer ".concat(E.bearer));var u=(this.ssl?R:B).request(r(r({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(d.replace(/^\//,"")),headers:o,auth:E&&E.username&&E.password?"".concat(E.username,":").concat(E.password):"",agent:this.agent}));u.on("error",G),u.on("response",function(p){return p.on("end",function(){return G(null,p)}).resume()}),u.end(Te.Buffer.from(j(ee,this.options.replacer),"utf8"))}}]),J}(V),_3}const ra=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";ra.writable=e=>ra(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";ra.readable=e=>ra(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";ra.duplex=e=>ra.writable(e)&&ra.readable(e);ra.transform=e=>ra.duplex(e)&&typeof e._transform=="function";var oE=ra,S3,Ey;function uF(){if(Ey)return S3;Ey=1;function e(A){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},e(A)}function t(A,F){if(!(A instanceof F))throw new TypeError("Cannot call a class as a function")}function r(A,F){for(var V=0;V"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(A){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},S(A)}var M=oE,P=nr,I=P.MESSAGE,B=er,R=Mf();return S3=function(A){f(V,A);var F=c(V);function V(){var j,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(t(this,V),j=F.call(this,N),!N.stream||!M(N.stream))throw new Error("options.stream is required.");return j._stream=N.stream,j._stream.setMaxListeners(1/0),j.isObjectMode=N.stream._writableState.objectMode,j.eol=typeof N.eol=="string"?N.eol:B.EOL,j}return n(V,[{key:"log",value:function(N,K){var J=this;if(setImmediate(function(){return J.emit("logged",N)}),this.isObjectMode){this._stream.write(N),K&&K();return}this._stream.write("".concat(N[I]).concat(this.eol)),K&&K()}}]),V}(R),S3}(function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return XN()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return JD()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return sF()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return uF()}})})(_S);var Af={},jh=Ah,lF=nr,b5=lF.configs;Af.cli=jh.levels(b5.cli);Af.npm=jh.levels(b5.npm);Af.syslog=jh.levels(b5.syslog);Af.addColors=jh.levels;var a6={exports:{}},o6={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=l5,n=B(r),a=c5,i=B(a),f=qS,l=B(f),c=US,m=B(c),g=jS,_=B(g),S=i0(),M=B(S),P=hl,I=B(P);function B(V){return V&&V.__esModule?V:{default:V}}function R(V,j,N){N=(0,m.default)(N);var K=0,J=0,{length:te}=V,ee=!1;te===0&&N(null);function G(E,d){E===!1&&(ee=!0),ee!==!0&&(E?N(E):(++J===te||d===i.default)&&N(null))}for(;Kn(a,f)}e.exports=t.default})(f6,f6.exports);var hF=f6.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=cF,n=g(r),a=hF,i=g(a),f=i0(),l=g(f),c=hl,m=g(c);function g(S){return S&&S.__esModule?S:{default:S}}function _(S,M,P){return(0,n.default)(S,(0,i.default)((0,l.default)(M)),P)}t.default=(0,m.default)(_,3),e.exports=t.default})(a6,a6.exports);var x5=a6.exports,dF=Object.prototype.toString,pF=function(t){if(typeof t.displayName=="string"&&t.constructor.name)return t.displayName;if(typeof t.name=="string"&&t.name)return t.name;if(typeof t=="object"&&t.constructor&&typeof t.constructor.name=="string")return t.constructor.name;var r=t.toString(),n=dF.call(t).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"},vF=pF,fE=function(t){var r=0,n;function a(){return r||(r=1,n=t.apply(this,arguments),t=null),n}return a.displayName=vF(t),a},w5={};(function(e){e.get=function(a){var i=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var f={},l=Error.prepareStackTrace;Error.prepareStackTrace=function(m,g){return g},Error.captureStackTrace(f,a||e.get);var c=f.stack;return Error.prepareStackTrace=l,Error.stackTraceLimit=i,c},e.parse=function(a){if(!a.stack)return[];var i=this,f=a.stack.split(` `).slice(1);return f.map(function(l){if(l.match(/^\s*[-]{4,}$/))return i._createParsedCallSite({fileName:l,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var c=l.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(c){var m=null,g=null,_=null,S=null,M=null,P=c[5]==="native";if(c[1]){_=c[1];var I=_.lastIndexOf(".");if(_[I-1]=="."&&I--,I>0){m=_.substr(0,I),g=_.substr(I+1);var B=m.indexOf(".Module");B>0&&(_=_.substr(B+1),m=m.substr(0,B))}S=null}g&&(S=m,M=g),g===""&&(M=null,_=null);var R={fileName:c[2]||null,lineNumber:parseInt(c[3],10)||null,functionName:_,typeName:S,methodName:M,columnNumber:parseInt(c[4],10)||null,native:P};return i._createParsedCallSite(R)}}).filter(function(l){return!!l})};function t(a){for(var i in a)this[i]=a[i]}var r=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],n=["topLevel","eval","native","constructor"];r.forEach(function(a){t.prototype[a]=null,t.prototype["get"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),n.forEach(function(a){t.prototype[a]=!1,t.prototype["is"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),e._createParsedCallSite=function(a){return new t(a)}})(w5);function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(e)}function gF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cy(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F1(e){return F1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},F1(e)}var CF=Li,MF=CF.Writable,sE=function(e){xF(r,e);var t=wF(r);function r(n){var a;if(gF(this,r),a=t.call(this,{objectMode:!0}),!n)throw new Error("ExceptionStream requires a TransportStream instance.");return a.handleExceptions=!0,a.transport=n,a}return yF(r,[{key:"_write",value:function(a,i,f){return a.exception?this.transport.log(a,f):(f(),!0)}}]),r}(MF);function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function AF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function My(e,t){for(var r=0;r=this.levels[t[u6]])&&this.transport.log(t[u6],t.message,t,this._nop),n(null)};dl.prototype._writev=function(t,r){for(let n=0;n{if(t.length>2)throw new e(t);function r(a={}){this.options=a}r.prototype.transform=t;function n(a){return new r(a)}return n.Format=r,n},A3}var R3,By;function KF(){if(By)return R3;By=1;const e=HF(),{MESSAGE:t}=nr,r=ll;function n(a,i){return typeof i=="bigint"?i.toString():i}return R3=e((a,i)=>{const f=r.configure(i);return a[t]=f(a,i.replacer||n,i.space),a}),R3}var T3,Ly;function _5(){if(Ly)return T3;Ly=1;function e(p,y,x){return y=i(y),y in p?Object.defineProperty(p,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):p[y]=x,p}function t(p){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},t(p)}function r(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function n(p,y){for(var x=0;x"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M(p){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},M(p)}var P=Li,I=P.Stream,B=P.Transform,R=x5,A=nr,U=A.LEVEL,V=A.SPLAT,j=oE,N=uE,K=lE,J=zF,te=$F(),ee=a5,G=ee.warn,E=Af,d=/%[scdjifoO%]/g,o=function(p){l(x,p);var y=m(x);function x(w){var v;return r(this,x),v=y.call(this,{objectMode:!0}),v.configure(w),v}return a(x,[{key:"child",value:function(v){var h=this;return Object.create(h,{write:{value:function(b){var D=Object.assign({},v,b);b instanceof Error&&(D.stack=b.stack,D.message=b.message),h.write(D)}}})}},{key:"configure",value:function(){var v=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=h.silent,b=h.format,D=h.defaultMeta,C=h.levels,F=h.level,$=F===void 0?"info":F,H=h.exitOnError,X=H===void 0?!0:H,z=h.transports,k=h.colors,L=h.emitErrs,oe=h.formatters,re=h.padLevels,se=h.rewriters,Y=h.stripColors,T=h.exceptionHandlers,O=h.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=s,this.format=b||this.format||KF()(),this.defaultMeta=D||null,this.levels=C||this.levels||E.npm.levels,this.level=$,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new N(this),this.rejections=new K(this),this.profilers={},this.exitOnError=X,z&&(z=Array.isArray(z)?z:[z],z.forEach(function(W){return v.add(W)})),k||L||oe||re||se||Y)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` -`));T&&this.exceptions.handle(T),O&&this.rejections.handle(O)}},{key:"isLevelEnabled",value:function(v){var h=this,s=u(this.levels,v);if(s===null)return!1;var b=u(this.levels,this.level);if(b===null)return!1;if(!this.transports||this.transports.length===0)return b>=s;var D=this.transports.findIndex(function(C){var F=u(h.levels,C.level);return F===null&&(F=b),F>=s});return D!==-1}},{key:"log",value:function(v,h){for(var s,b=arguments.length,D=new Array(b>2?b-2:0),C=2;C2?new J({transport:v}):v;if(!h._writableState||!h._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",h),this._onEvent("warn",h),this.pipe(h),v.handleExceptions&&this.exceptions.handle(),v.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(v){if(!v)return this;var h=v;return(!j(v)||v.log.length>2)&&(h=this.transports.filter(function(s){return s.transport===v})[0]),h&&this.unpipe(h),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){G.deprecated("setLevels")}},{key:"query",value:function(v,h){typeof v=="function"&&(h=v,v={}),v=v||{};var s={},b=Object.assign({},v.query||{});function D(F,$){v.query&&typeof F.formatQuery=="function"&&(v.query=F.formatQuery(b)),F.query(v,function(H,X){if(H)return $(H);typeof F.formatResults=="function"&&(X=F.formatResults(X,v.format)),$(null,X)})}function C(F,$){D(F,function(H,X){$&&(X=H||X,X&&(s[F.name]=X),$()),$=null})}R(this.transports.filter(function(F){return!!F.query}),C,function(){return h(null,s)})}},{key:"stream",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=new I,s=[];return h._streams=s,h.destroy=function(){for(var b=s.length;b--;)s[b].destroy()},this.transports.filter(function(b){return!!b.stream}).forEach(function(b){var D=b.stream(v);D&&(s.push(D),D.on("log",function(C){C.transport=C.transport||[],C.transport.push(b.name),h.emit("log",C)}),D.on("error",function(C){C.transport=C.transport||[],C.transport.push(b.name),h.emit("error",C)}))}),h}},{key:"startTimer",value:function(){return new te(this)}},{key:"profile",value:function(v){var h=Date.now();if(this.profilers[v]){var s=this.profilers[v];delete this.profilers[v];for(var b=arguments.length,D=new Array(b>1?b-1:0),C=1;C"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function U1(e){return U1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},U1(e)}var tU=nr,rU=tU.LEVEL,nU=Af,iU=_5(),aU=Uh("winston:create-logger");function oU(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}var dE=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.levels=e.levels||nU.npm.levels;var t=function(n){XF(i,n);var a=YF(i);function i(f){return ZF(this,i),a.call(this,f)}return GF(i)}(iU),r=new t(e);return Object.keys(e.levels).forEach(function(n){if(aU('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}t.prototype[n]=function(){for(var a=this||r,i=arguments.length,f=new Array(i),l=0;l0&&arguments[0]!==void 0?arguments[0]:{};fU(this,e),this.loggers=new Map,this.options=t}return sU(e,[{key:"add",value:function(r,n){var a=this;if(!this.loggers.has(r)){n=Object.assign({},n||this.options);var i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];var f=cU(n);f.on("close",function(){return a._delete(r)}),this.loggers.set(r,f)}return this.loggers.get(r)}},{key:"get",value:function(r,n){return this.add(r,n)}},{key:"has",value:function(r){return!!this.loggers.has(r)}},{key:"close",value:function(r){var n=this;if(r)return this._removeLogger(r);this.loggers.forEach(function(a,i){return n._removeLogger(i)})}},{key:"_removeLogger",value:function(r){if(this.loggers.has(r)){var n=this.loggers.get(r);n.close(),this._delete(r)}}},{key:"_delete",value:function(r){this.loggers.delete(r)}}]),e}();(function(e){var t=Ah,r=a5,n=r.warn;e.version=cN.version,e.transports=_S,e.config=Af,e.addColors=t.levels,e.format=t.format,e.createLogger=dE,e.Logger=_5(),e.ExceptionHandler=uE,e.RejectionHandler=lE,e.Container=hU,e.Transport=Mf(),e.loggers=new e.Container;var a=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(i){return e[i]=function(){return a[i].apply(a,arguments)}}),Object.defineProperty(e,"level",{get:function(){return a.level},set:function(f){a.level=f}}),Object.defineProperty(e,"exceptions",{get:function(){return a.exceptions}}),["exitOnError"].forEach(function(i){Object.defineProperty(e,i,{get:function(){return a[i]},set:function(l){a[i]=l}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:a.exceptionHandlers,rejectionHandlers:a.rejectionHandlers,transports:a.transports}}}),n.deprecated(e,"setLevels"),n.forFunctions(e,"useFormat",["cli"]),n.forProperties(e,"useFormat",["padLevels","stripColors"]),n.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),n.forProperties(e,"deprecated",["emitErrs","levelLength"])})(ya);const pE="1.1.0";class qh{constructor({level:t="info",logFormat:r="simple"}={}){this.logger=ya.createLogger({level:t,defaultMeta:{client:"turbo-sdk",version:pE},silent:t==="none",format:Fy(r),transports:[new ya.transports.Console]})}info(t,...r){this.logger.info(t,...r)}warn(t,...r){this.logger.warn(t,...r)}error(t,...r){this.logger.error(t,...r)}debug(t,...r){this.logger.debug(t,...r)}setLogLevel(t){this.logger.level=t}setLogFormat(t){this.logger.format=Fy(t)}}function Fy(e){return ya.format.combine(ya.format(t=>(t.stack&&t.level!=="error"&&delete t.stack,t))(),ya.format.errors({stack:!0}),ya.format.timestamp(),e==="json"?ya.format.json():ya.format.simple())}function vE(e,t){return function(){return e.apply(t,arguments)}}const{toString:dU}=Object.prototype,{getPrototypeOf:S5}=Object,zh=(e=>t=>{const r=dU.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),t=>zh(t)===e),$h=e=>t=>typeof t===e,{isArray:a0}=Array,Gu=$h("undefined");function pU(e){return e!==null&&!Gu(e)&&e.constructor!==null&&!Gu(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gE=la("ArrayBuffer");function vU(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gE(e.buffer),t}const gU=$h("string"),Jn=$h("function"),yE=$h("number"),Hh=e=>e!==null&&typeof e=="object",yU=e=>e===!0||e===!1,Hc=e=>{if(zh(e)!=="object")return!1;const t=S5(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mU=la("Date"),bU=la("File"),xU=la("Blob"),wU=la("FileList"),_U=e=>Hh(e)&&Jn(e.pipe),SU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=zh(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},EU=la("URLSearchParams"),CU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),a0(e))for(n=0,a=e.length;n0;)if(a=r[n],t===a.toLowerCase())return a;return null}const bE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:P4,xE=e=>!Gu(e)&&e!==bE;function c6(){const{caseless:e}=xE(this)&&this||{},t={},r=(n,a)=>{const i=e&&mE(t,a)||a;Hc(t[i])&&Hc(n)?t[i]=c6(t[i],n):Hc(n)?t[i]=c6({},n):a0(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n(pl(t,(a,i)=>{r&&Jn(a)?e[i]=vE(a,r):e[i]=a},{allOwnKeys:n}),e),AU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RU=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},TU=(e,t,r,n)=>{let a,i,f;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)f=a[i],(!n||n(f,e,t))&&!l[f]&&(t[f]=e[f],l[f]=!0);e=r!==!1&&S5(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},PU=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},OU=e=>{if(!e)return null;if(a0(e))return e;let t=e.length;if(!yE(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},kU=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&S5(Uint8Array)),IU=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},BU=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},LU=la("HTMLFormElement"),NU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Uy=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),DU=la("RegExp"),wE=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};pl(r,(a,i)=>{let f;(f=t(a,i,e))!==!1&&(n[i]=f||a)}),Object.defineProperties(e,n)},FU=e=>{wE(e,(t,r)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Jn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},UU=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return a0(e)?n(e):n(String(e).split(t)),r},jU=()=>{},qU=(e,t)=>(e=+e,Number.isFinite(e)?e:t),P3="abcdefghijklmnopqrstuvwxyz",jy="0123456789",_E={DIGIT:jy,ALPHA:P3,ALPHA_DIGIT:P3+P3.toUpperCase()+jy},zU=(e=16,t=_E.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function $U(e){return!!(e&&Jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const HU=e=>{const t=new Array(10),r=(n,a)=>{if(Hh(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=a0(n)?[]:{};return pl(n,(f,l)=>{const c=r(f,a+1);!Gu(c)&&(i[l]=c)}),t[a]=void 0,i}}return n};return r(e,0)},KU=la("AsyncFunction"),GU=e=>e&&(Hh(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),Fe={isArray:a0,isArrayBuffer:gE,isBuffer:pU,isFormData:SU,isArrayBufferView:vU,isString:gU,isNumber:yE,isBoolean:yU,isObject:Hh,isPlainObject:Hc,isUndefined:Gu,isDate:mU,isFile:bU,isBlob:xU,isRegExp:DU,isFunction:Jn,isStream:_U,isURLSearchParams:EU,isTypedArray:kU,isFileList:wU,forEach:pl,merge:c6,extend:MU,trim:CU,stripBOM:AU,inherits:RU,toFlatObject:TU,kindOf:zh,kindOfTest:la,endsWith:PU,toArray:OU,forEachEntry:IU,matchAll:BU,isHTMLForm:LU,hasOwnProperty:Uy,hasOwnProp:Uy,reduceDescriptors:wE,freezeMethods:FU,toObjectSet:UU,toCamelCase:NU,noop:jU,toFiniteNumber:qU,findKey:mE,global:bE,isContextDefined:xE,ALPHABET:_E,generateString:zU,isSpecCompliantForm:$U,toJSONObject:HU,isAsyncFn:KU,isThenable:GU};function gt(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}Fe.inherits(gt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const SE=gt.prototype,EE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{EE[e]={value:e}});Object.defineProperties(gt,EE);Object.defineProperty(SE,"isAxiosError",{value:!0});gt.from=(e,t,r,n,a,i)=>{const f=Object.create(SE);return Fe.toFlatObject(e,f,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),gt.call(f,e.message,t,r,n,a),f.cause=e,f.name=e.name,i&&Object.assign(f,i),f};const WU=null;function h6(e){return Fe.isPlainObject(e)||Fe.isArray(e)}function CE(e){return Fe.endsWith(e,"[]")?e.slice(0,-2):e}function qy(e,t,r){return e?e.concat(t).map(function(a,i){return a=CE(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function VU(e){return Fe.isArray(e)&&!e.some(h6)}const ZU=Fe.toFlatObject(Fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Kh(e,t,r){if(!Fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Fe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(I,B){return!Fe.isUndefined(B[I])});const n=r.metaTokens,a=r.visitor||g,i=r.dots,f=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&Fe.isSpecCompliantForm(t);if(!Fe.isFunction(a))throw new TypeError("visitor must be a function");function m(P){if(P===null)return"";if(Fe.isDate(P))return P.toISOString();if(!c&&Fe.isBlob(P))throw new gt("Blob is not supported. Use a Buffer instead.");return Fe.isArrayBuffer(P)||Fe.isTypedArray(P)?c&&typeof Blob=="function"?new Blob([P]):Te.Buffer.from(P):P}function g(P,I,B){let R=P;if(P&&!B&&typeof P=="object"){if(Fe.endsWith(I,"{}"))I=n?I:I.slice(0,-2),P=JSON.stringify(P);else if(Fe.isArray(P)&&VU(P)||(Fe.isFileList(P)||Fe.endsWith(I,"[]"))&&(R=Fe.toArray(P)))return I=CE(I),R.forEach(function(U,V){!(Fe.isUndefined(U)||U===null)&&t.append(f===!0?qy([I],V,i):f===null?I:I+"[]",m(U))}),!1}return h6(P)?!0:(t.append(qy(B,I,i),m(P)),!1)}const _=[],S=Object.assign(ZU,{defaultVisitor:g,convertValue:m,isVisitable:h6});function M(P,I){if(!Fe.isUndefined(P)){if(_.indexOf(P)!==-1)throw Error("Circular reference detected in "+I.join("."));_.push(P),Fe.forEach(P,function(R,A){(!(Fe.isUndefined(R)||R===null)&&a.call(t,R,Fe.isString(A)?A.trim():A,I,S))===!0&&M(R,I?I.concat(A):[A])}),_.pop()}}if(!Fe.isObject(e))throw new TypeError("data must be an object");return M(e),t}function zy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function E5(e,t){this._pairs=[],e&&Kh(e,this,t)}const ME=E5.prototype;ME.append=function(t,r){this._pairs.push([t,r])};ME.toString=function(t){const r=t?function(n){return t.call(this,n,zy)}:zy;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function XU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AE(e,t,r){if(!t)return e;const n=r&&r.encode||XU,a=r&&r.serialize;let i;if(a?i=a(t,r):i=Fe.isURLSearchParams(t)?t.toString():new E5(t,r).toString(n),i){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}let YU=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Fe.forEach(this.handlers,function(n){n!==null&&t(n)})}};const $y=YU,RE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JU=typeof URLSearchParams<"u"?URLSearchParams:E5,QU=typeof FormData<"u"?FormData:null,ej=typeof Blob<"u"?Blob:null,tj={isBrowser:!0,classes:{URLSearchParams:JU,FormData:QU,Blob:ej},protocols:["http","https","file","blob","url","data"]},TE=typeof window<"u"&&typeof document<"u",rj=(e=>TE&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),nj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ij=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:TE,hasStandardBrowserEnv:rj,hasStandardBrowserWebWorkerEnv:nj},Symbol.toStringTag,{value:"Module"})),Ji={...ij,...tj};function aj(e,t){return Kh(e,new Ji.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Ji.isNode&&Fe.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function oj(e){return Fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fj(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n=r.length;return f=!f&&Fe.isArray(a)?a.length:f,c?(Fe.hasOwnProp(a,f)?a[f]=[a[f],n]:a[f]=n,!l):((!a[f]||!Fe.isObject(a[f]))&&(a[f]=[]),t(r,n,a[f],i)&&Fe.isArray(a[f])&&(a[f]=fj(a[f])),!l)}if(Fe.isFormData(e)&&Fe.isFunction(e.entries)){const r={};return Fe.forEachEntry(e,(n,a)=>{t(oj(n),a,r,0)}),r}return null}function sj(e,t,r){if(Fe.isString(e))try{return(t||JSON.parse)(e),Fe.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const C5={transitional:RE,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Fe.isObject(t);if(i&&Fe.isHTMLForm(t)&&(t=new FormData(t)),Fe.isFormData(t))return a&&a?JSON.stringify(PE(t)):t;if(Fe.isArrayBuffer(t)||Fe.isBuffer(t)||Fe.isStream(t)||Fe.isFile(t)||Fe.isBlob(t))return t;if(Fe.isArrayBufferView(t))return t.buffer;if(Fe.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return aj(t,this.formSerializer).toString();if((l=Fe.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Kh(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),sj(t)):t}],transformResponse:[function(t){const r=this.transitional||C5.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&Fe.isString(t)&&(n&&!this.responseType||a)){const f=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(f)throw l.name==="SyntaxError"?gt.from(l,gt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ji.classes.FormData,Blob:Ji.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fe.forEach(["delete","get","head","post","put","patch"],e=>{C5.headers[e]={}});const M5=C5,uj=Fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lj=e=>{const t={};let r,n,a;return e&&e.split(` +`),Error.captureStackTrace(this,e)}}return A3=t=>{if(t.length>2)throw new e(t);function r(a={}){this.options=a}r.prototype.transform=t;function n(a){return new r(a)}return n.Format=r,n},A3}var R3,By;function KF(){if(By)return R3;By=1;const e=HF(),{MESSAGE:t}=nr,r=ll;function n(a,i){return typeof i=="bigint"?i.toString():i}return R3=e((a,i)=>{const f=r.configure(i);return a[t]=f(a,i.replacer||n,i.space),a}),R3}var T3,Ly;function _5(){if(Ly)return T3;Ly=1;function e(p,y,x){return y=i(y),y in p?Object.defineProperty(p,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):p[y]=x,p}function t(p){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},t(p)}function r(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function n(p,y){for(var x=0;x"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M(p){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},M(p)}var P=Li,I=P.Stream,B=P.Transform,R=x5,A=nr,F=A.LEVEL,V=A.SPLAT,j=oE,N=uE,K=lE,J=zF,te=$F(),ee=a5,G=ee.warn,E=Af,d=/%[scdjifoO%]/g,o=function(p){l(x,p);var y=m(x);function x(w){var v;return r(this,x),v=y.call(this,{objectMode:!0}),v.configure(w),v}return a(x,[{key:"child",value:function(v){var h=this;return Object.create(h,{write:{value:function(b){var D=Object.assign({},v,b);b instanceof Error&&(D.stack=b.stack,D.message=b.message),h.write(D)}}})}},{key:"configure",value:function(){var v=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=h.silent,b=h.format,D=h.defaultMeta,C=h.levels,U=h.level,$=U===void 0?"info":U,H=h.exitOnError,X=H===void 0?!0:H,z=h.transports,k=h.colors,L=h.emitErrs,oe=h.formatters,re=h.padLevels,se=h.rewriters,Y=h.stripColors,T=h.exceptionHandlers,O=h.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=s,this.format=b||this.format||KF()(),this.defaultMeta=D||null,this.levels=C||this.levels||E.npm.levels,this.level=$,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new N(this),this.rejections=new K(this),this.profilers={},this.exitOnError=X,z&&(z=Array.isArray(z)?z:[z],z.forEach(function(W){return v.add(W)})),k||L||oe||re||se||Y)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` +`));T&&this.exceptions.handle(T),O&&this.rejections.handle(O)}},{key:"isLevelEnabled",value:function(v){var h=this,s=u(this.levels,v);if(s===null)return!1;var b=u(this.levels,this.level);if(b===null)return!1;if(!this.transports||this.transports.length===0)return b>=s;var D=this.transports.findIndex(function(C){var U=u(h.levels,C.level);return U===null&&(U=b),U>=s});return D!==-1}},{key:"log",value:function(v,h){for(var s,b=arguments.length,D=new Array(b>2?b-2:0),C=2;C2?new J({transport:v}):v;if(!h._writableState||!h._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",h),this._onEvent("warn",h),this.pipe(h),v.handleExceptions&&this.exceptions.handle(),v.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(v){if(!v)return this;var h=v;return(!j(v)||v.log.length>2)&&(h=this.transports.filter(function(s){return s.transport===v})[0]),h&&this.unpipe(h),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){G.deprecated("setLevels")}},{key:"query",value:function(v,h){typeof v=="function"&&(h=v,v={}),v=v||{};var s={},b=Object.assign({},v.query||{});function D(U,$){v.query&&typeof U.formatQuery=="function"&&(v.query=U.formatQuery(b)),U.query(v,function(H,X){if(H)return $(H);typeof U.formatResults=="function"&&(X=U.formatResults(X,v.format)),$(null,X)})}function C(U,$){D(U,function(H,X){$&&(X=H||X,X&&(s[U.name]=X),$()),$=null})}R(this.transports.filter(function(U){return!!U.query}),C,function(){return h(null,s)})}},{key:"stream",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=new I,s=[];return h._streams=s,h.destroy=function(){for(var b=s.length;b--;)s[b].destroy()},this.transports.filter(function(b){return!!b.stream}).forEach(function(b){var D=b.stream(v);D&&(s.push(D),D.on("log",function(C){C.transport=C.transport||[],C.transport.push(b.name),h.emit("log",C)}),D.on("error",function(C){C.transport=C.transport||[],C.transport.push(b.name),h.emit("error",C)}))}),h}},{key:"startTimer",value:function(){return new te(this)}},{key:"profile",value:function(v){var h=Date.now();if(this.profilers[v]){var s=this.profilers[v];delete this.profilers[v];for(var b=arguments.length,D=new Array(b>1?b-1:0),C=1;C"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function U1(e){return U1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},U1(e)}var tU=nr,rU=tU.LEVEL,nU=Af,iU=_5(),aU=Uh("winston:create-logger");function oU(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}var dE=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.levels=e.levels||nU.npm.levels;var t=function(n){XF(i,n);var a=YF(i);function i(f){return ZF(this,i),a.call(this,f)}return GF(i)}(iU),r=new t(e);return Object.keys(e.levels).forEach(function(n){if(aU('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}t.prototype[n]=function(){for(var a=this||r,i=arguments.length,f=new Array(i),l=0;l0&&arguments[0]!==void 0?arguments[0]:{};fU(this,e),this.loggers=new Map,this.options=t}return sU(e,[{key:"add",value:function(r,n){var a=this;if(!this.loggers.has(r)){n=Object.assign({},n||this.options);var i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];var f=cU(n);f.on("close",function(){return a._delete(r)}),this.loggers.set(r,f)}return this.loggers.get(r)}},{key:"get",value:function(r,n){return this.add(r,n)}},{key:"has",value:function(r){return!!this.loggers.has(r)}},{key:"close",value:function(r){var n=this;if(r)return this._removeLogger(r);this.loggers.forEach(function(a,i){return n._removeLogger(i)})}},{key:"_removeLogger",value:function(r){if(this.loggers.has(r)){var n=this.loggers.get(r);n.close(),this._delete(r)}}},{key:"_delete",value:function(r){this.loggers.delete(r)}}]),e}();(function(e){var t=Ah,r=a5,n=r.warn;e.version=cN.version,e.transports=_S,e.config=Af,e.addColors=t.levels,e.format=t.format,e.createLogger=dE,e.Logger=_5(),e.ExceptionHandler=uE,e.RejectionHandler=lE,e.Container=hU,e.Transport=Mf(),e.loggers=new e.Container;var a=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(i){return e[i]=function(){return a[i].apply(a,arguments)}}),Object.defineProperty(e,"level",{get:function(){return a.level},set:function(f){a.level=f}}),Object.defineProperty(e,"exceptions",{get:function(){return a.exceptions}}),["exitOnError"].forEach(function(i){Object.defineProperty(e,i,{get:function(){return a[i]},set:function(l){a[i]=l}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:a.exceptionHandlers,rejectionHandlers:a.rejectionHandlers,transports:a.transports}}}),n.deprecated(e,"setLevels"),n.forFunctions(e,"useFormat",["cli"]),n.forProperties(e,"useFormat",["padLevels","stripColors"]),n.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),n.forProperties(e,"deprecated",["emitErrs","levelLength"])})(ya);const pE="1.1.0";class qh{constructor({level:t="info",logFormat:r="simple"}={}){this.logger=ya.createLogger({level:t,defaultMeta:{client:"turbo-sdk",version:pE},silent:t==="none",format:Fy(r),transports:[new ya.transports.Console]})}info(t,...r){this.logger.info(t,...r)}warn(t,...r){this.logger.warn(t,...r)}error(t,...r){this.logger.error(t,...r)}debug(t,...r){this.logger.debug(t,...r)}setLogLevel(t){this.logger.level=t}setLogFormat(t){this.logger.format=Fy(t)}}function Fy(e){return ya.format.combine(ya.format(t=>(t.stack&&t.level!=="error"&&delete t.stack,t))(),ya.format.errors({stack:!0}),ya.format.timestamp(),e==="json"?ya.format.json():ya.format.simple())}function vE(e,t){return function(){return e.apply(t,arguments)}}const{toString:dU}=Object.prototype,{getPrototypeOf:S5}=Object,zh=(e=>t=>{const r=dU.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),t=>zh(t)===e),$h=e=>t=>typeof t===e,{isArray:a0}=Array,Gu=$h("undefined");function pU(e){return e!==null&&!Gu(e)&&e.constructor!==null&&!Gu(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gE=la("ArrayBuffer");function vU(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gE(e.buffer),t}const gU=$h("string"),Jn=$h("function"),yE=$h("number"),Hh=e=>e!==null&&typeof e=="object",yU=e=>e===!0||e===!1,Hc=e=>{if(zh(e)!=="object")return!1;const t=S5(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mU=la("Date"),bU=la("File"),xU=la("Blob"),wU=la("FileList"),_U=e=>Hh(e)&&Jn(e.pipe),SU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=zh(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},EU=la("URLSearchParams"),CU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),a0(e))for(n=0,a=e.length;n0;)if(a=r[n],t===a.toLowerCase())return a;return null}const bE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:P4,xE=e=>!Gu(e)&&e!==bE;function c6(){const{caseless:e}=xE(this)&&this||{},t={},r=(n,a)=>{const i=e&&mE(t,a)||a;Hc(t[i])&&Hc(n)?t[i]=c6(t[i],n):Hc(n)?t[i]=c6({},n):a0(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n(pl(t,(a,i)=>{r&&Jn(a)?e[i]=vE(a,r):e[i]=a},{allOwnKeys:n}),e),AU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RU=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},TU=(e,t,r,n)=>{let a,i,f;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)f=a[i],(!n||n(f,e,t))&&!l[f]&&(t[f]=e[f],l[f]=!0);e=r!==!1&&S5(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},PU=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},OU=e=>{if(!e)return null;if(a0(e))return e;let t=e.length;if(!yE(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},kU=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&S5(Uint8Array)),IU=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},BU=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},LU=la("HTMLFormElement"),NU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Uy=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),DU=la("RegExp"),wE=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};pl(r,(a,i)=>{let f;(f=t(a,i,e))!==!1&&(n[i]=f||a)}),Object.defineProperties(e,n)},FU=e=>{wE(e,(t,r)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Jn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},UU=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return a0(e)?n(e):n(String(e).split(t)),r},jU=()=>{},qU=(e,t)=>(e=+e,Number.isFinite(e)?e:t),P3="abcdefghijklmnopqrstuvwxyz",jy="0123456789",_E={DIGIT:jy,ALPHA:P3,ALPHA_DIGIT:P3+P3.toUpperCase()+jy},zU=(e=16,t=_E.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function $U(e){return!!(e&&Jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const HU=e=>{const t=new Array(10),r=(n,a)=>{if(Hh(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=a0(n)?[]:{};return pl(n,(f,l)=>{const c=r(f,a+1);!Gu(c)&&(i[l]=c)}),t[a]=void 0,i}}return n};return r(e,0)},KU=la("AsyncFunction"),GU=e=>e&&(Hh(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),Fe={isArray:a0,isArrayBuffer:gE,isBuffer:pU,isFormData:SU,isArrayBufferView:vU,isString:gU,isNumber:yE,isBoolean:yU,isObject:Hh,isPlainObject:Hc,isUndefined:Gu,isDate:mU,isFile:bU,isBlob:xU,isRegExp:DU,isFunction:Jn,isStream:_U,isURLSearchParams:EU,isTypedArray:kU,isFileList:wU,forEach:pl,merge:c6,extend:MU,trim:CU,stripBOM:AU,inherits:RU,toFlatObject:TU,kindOf:zh,kindOfTest:la,endsWith:PU,toArray:OU,forEachEntry:IU,matchAll:BU,isHTMLForm:LU,hasOwnProperty:Uy,hasOwnProp:Uy,reduceDescriptors:wE,freezeMethods:FU,toObjectSet:UU,toCamelCase:NU,noop:jU,toFiniteNumber:qU,findKey:mE,global:bE,isContextDefined:xE,ALPHABET:_E,generateString:zU,isSpecCompliantForm:$U,toJSONObject:HU,isAsyncFn:KU,isThenable:GU};function gt(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}Fe.inherits(gt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const SE=gt.prototype,EE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{EE[e]={value:e}});Object.defineProperties(gt,EE);Object.defineProperty(SE,"isAxiosError",{value:!0});gt.from=(e,t,r,n,a,i)=>{const f=Object.create(SE);return Fe.toFlatObject(e,f,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),gt.call(f,e.message,t,r,n,a),f.cause=e,f.name=e.name,i&&Object.assign(f,i),f};const WU=null;function h6(e){return Fe.isPlainObject(e)||Fe.isArray(e)}function CE(e){return Fe.endsWith(e,"[]")?e.slice(0,-2):e}function qy(e,t,r){return e?e.concat(t).map(function(a,i){return a=CE(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function VU(e){return Fe.isArray(e)&&!e.some(h6)}const ZU=Fe.toFlatObject(Fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Kh(e,t,r){if(!Fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Fe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(I,B){return!Fe.isUndefined(B[I])});const n=r.metaTokens,a=r.visitor||g,i=r.dots,f=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&Fe.isSpecCompliantForm(t);if(!Fe.isFunction(a))throw new TypeError("visitor must be a function");function m(P){if(P===null)return"";if(Fe.isDate(P))return P.toISOString();if(!c&&Fe.isBlob(P))throw new gt("Blob is not supported. Use a Buffer instead.");return Fe.isArrayBuffer(P)||Fe.isTypedArray(P)?c&&typeof Blob=="function"?new Blob([P]):Te.Buffer.from(P):P}function g(P,I,B){let R=P;if(P&&!B&&typeof P=="object"){if(Fe.endsWith(I,"{}"))I=n?I:I.slice(0,-2),P=JSON.stringify(P);else if(Fe.isArray(P)&&VU(P)||(Fe.isFileList(P)||Fe.endsWith(I,"[]"))&&(R=Fe.toArray(P)))return I=CE(I),R.forEach(function(F,V){!(Fe.isUndefined(F)||F===null)&&t.append(f===!0?qy([I],V,i):f===null?I:I+"[]",m(F))}),!1}return h6(P)?!0:(t.append(qy(B,I,i),m(P)),!1)}const _=[],S=Object.assign(ZU,{defaultVisitor:g,convertValue:m,isVisitable:h6});function M(P,I){if(!Fe.isUndefined(P)){if(_.indexOf(P)!==-1)throw Error("Circular reference detected in "+I.join("."));_.push(P),Fe.forEach(P,function(R,A){(!(Fe.isUndefined(R)||R===null)&&a.call(t,R,Fe.isString(A)?A.trim():A,I,S))===!0&&M(R,I?I.concat(A):[A])}),_.pop()}}if(!Fe.isObject(e))throw new TypeError("data must be an object");return M(e),t}function zy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function E5(e,t){this._pairs=[],e&&Kh(e,this,t)}const ME=E5.prototype;ME.append=function(t,r){this._pairs.push([t,r])};ME.toString=function(t){const r=t?function(n){return t.call(this,n,zy)}:zy;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function XU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AE(e,t,r){if(!t)return e;const n=r&&r.encode||XU,a=r&&r.serialize;let i;if(a?i=a(t,r):i=Fe.isURLSearchParams(t)?t.toString():new E5(t,r).toString(n),i){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}let YU=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Fe.forEach(this.handlers,function(n){n!==null&&t(n)})}};const $y=YU,RE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JU=typeof URLSearchParams<"u"?URLSearchParams:E5,QU=typeof FormData<"u"?FormData:null,ej=typeof Blob<"u"?Blob:null,tj={isBrowser:!0,classes:{URLSearchParams:JU,FormData:QU,Blob:ej},protocols:["http","https","file","blob","url","data"]},TE=typeof window<"u"&&typeof document<"u",rj=(e=>TE&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),nj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ij=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:TE,hasStandardBrowserEnv:rj,hasStandardBrowserWebWorkerEnv:nj},Symbol.toStringTag,{value:"Module"})),Ji={...ij,...tj};function aj(e,t){return Kh(e,new Ji.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Ji.isNode&&Fe.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function oj(e){return Fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fj(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n=r.length;return f=!f&&Fe.isArray(a)?a.length:f,c?(Fe.hasOwnProp(a,f)?a[f]=[a[f],n]:a[f]=n,!l):((!a[f]||!Fe.isObject(a[f]))&&(a[f]=[]),t(r,n,a[f],i)&&Fe.isArray(a[f])&&(a[f]=fj(a[f])),!l)}if(Fe.isFormData(e)&&Fe.isFunction(e.entries)){const r={};return Fe.forEachEntry(e,(n,a)=>{t(oj(n),a,r,0)}),r}return null}function sj(e,t,r){if(Fe.isString(e))try{return(t||JSON.parse)(e),Fe.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const C5={transitional:RE,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Fe.isObject(t);if(i&&Fe.isHTMLForm(t)&&(t=new FormData(t)),Fe.isFormData(t))return a&&a?JSON.stringify(PE(t)):t;if(Fe.isArrayBuffer(t)||Fe.isBuffer(t)||Fe.isStream(t)||Fe.isFile(t)||Fe.isBlob(t))return t;if(Fe.isArrayBufferView(t))return t.buffer;if(Fe.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return aj(t,this.formSerializer).toString();if((l=Fe.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Kh(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),sj(t)):t}],transformResponse:[function(t){const r=this.transitional||C5.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&Fe.isString(t)&&(n&&!this.responseType||a)){const f=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(f)throw l.name==="SyntaxError"?gt.from(l,gt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ji.classes.FormData,Blob:Ji.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fe.forEach(["delete","get","head","post","put","patch"],e=>{C5.headers[e]={}});const M5=C5,uj=Fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lj=e=>{const t={};let r,n,a;return e&&e.split(` `).forEach(function(f){a=f.indexOf(":"),r=f.substring(0,a).trim().toLowerCase(),n=f.substring(a+1).trim(),!(!r||t[r]&&uj[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Hy=Symbol("internals");function R0(e){return e&&String(e).trim().toLowerCase()}function Kc(e){return e===!1||e==null?e:Fe.isArray(e)?e.map(Kc):String(e)}function cj(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const hj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function O3(e,t,r,n,a){if(Fe.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Fe.isString(t)){if(Fe.isString(n))return t.indexOf(n)!==-1;if(Fe.isRegExp(n))return n.test(t)}}function dj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function pj(e,t){const r=Fe.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,f){return this[n].call(this,t,a,i,f)},configurable:!0})})}let Gh=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(l,c,m){const g=R0(c);if(!g)throw new Error("header name must be a non-empty string");const _=Fe.findKey(a,g);(!_||a[_]===void 0||m===!0||m===void 0&&a[_]!==!1)&&(a[_||c]=Kc(l))}const f=(l,c)=>Fe.forEach(l,(m,g)=>i(m,g,c));return Fe.isPlainObject(t)||t instanceof this.constructor?f(t,r):Fe.isString(t)&&(t=t.trim())&&!hj(t)?f(lj(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=R0(t),t){const n=Fe.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return cj(a);if(Fe.isFunction(r))return r.call(this,a,n);if(Fe.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=R0(t),t){const n=Fe.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||O3(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(f){if(f=R0(f),f){const l=Fe.findKey(n,f);l&&(!r||O3(n,n[l],l,r))&&(delete n[l],a=!0)}}return Fe.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||O3(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Fe.forEach(this,(a,i)=>{const f=Fe.findKey(n,i);if(f){r[f]=Kc(a),delete r[i];return}const l=t?dj(i):String(i).trim();l!==i&&delete r[i],r[l]=Kc(a),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Fe.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Fe.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Hy]=this[Hy]={accessors:{}}).accessors,a=this.prototype;function i(f){const l=R0(f);n[l]||(pj(a,f),n[l]=!0)}return Fe.isArray(t)?t.forEach(i):i(t),this}};Gh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Fe.reduceDescriptors(Gh.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Fe.freezeMethods(Gh);const Ea=Gh;function k3(e,t){const r=this||M5,n=t||r,a=Ea.from(n.headers);let i=n.data;return Fe.forEach(e,function(l){i=l.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function OE(e){return!!(e&&e.__CANCEL__)}function vl(e,t,r){gt.call(this,e??"canceled",gt.ERR_CANCELED,t,r),this.name="CanceledError"}Fe.inherits(vl,gt,{__CANCEL__:!0});function vj(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new gt("Request failed with status code "+r.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const gj=Ji.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const f=[e+"="+encodeURIComponent(t)];Fe.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),Fe.isString(n)&&f.push("path="+n),Fe.isString(a)&&f.push("domain="+a),i===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mj(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function kE(e,t){return e&&!yj(t)?mj(e,t):t}const bj=Ji.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let f=i;return t&&(r.setAttribute("href",f),f=r.href),r.setAttribute("href",f),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(f){const l=Fe.isString(f)?a(f):f;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function xj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wj(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,f;return t=t!==void 0?t:1e3,function(c){const m=Date.now(),g=n[i];f||(f=m),r[a]=c,n[a]=m;let _=i,S=0;for(;_!==a;)S+=r[_++],_=_%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),m-f{const i=a.loaded,f=a.lengthComputable?a.total:void 0,l=i-r,c=n(l),m=i<=f;r=i;const g={loaded:i,total:f,progress:f?i/f:void 0,bytes:l,rate:c||void 0,estimated:c&&f&&m?(f-i)/c:void 0,event:a};g[t?"download":"upload"]=!0,e(g)}}const _j=typeof XMLHttpRequest<"u",Sj=_j&&function(e){return new Promise(function(r,n){let a=e.data;const i=Ea.from(e.headers).normalize();let{responseType:f,withXSRFToken:l}=e,c;function m(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let g;if(Fe.isFormData(a)){if(Ji.hasStandardBrowserEnv||Ji.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((g=i.getContentType())!==!1){const[I,...B]=g?g.split(";").map(R=>R.trim()).filter(Boolean):[];i.setContentType([I||"multipart/form-data",...B].join("; "))}}let _=new XMLHttpRequest;if(e.auth){const I=e.auth.username||"",B=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(I+":"+B))}const S=kE(e.baseURL,e.url);_.open(e.method.toUpperCase(),AE(S,e.params,e.paramsSerializer),!0),_.timeout=e.timeout;function M(){if(!_)return;const I=Ea.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),R={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:I,config:e,request:_};vj(function(U){r(U),m()},function(U){n(U),m()},R),_=null}if("onloadend"in _?_.onloadend=M:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(M)},_.onabort=function(){_&&(n(new gt("Request aborted",gt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){n(new gt("Network Error",gt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let B=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const R=e.transitional||RE;e.timeoutErrorMessage&&(B=e.timeoutErrorMessage),n(new gt(B,R.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,e,_)),_=null},Ji.hasStandardBrowserEnv&&(l&&Fe.isFunction(l)&&(l=l(e)),l||l!==!1&&bj(S))){const I=e.xsrfHeaderName&&e.xsrfCookieName&&gj.read(e.xsrfCookieName);I&&i.set(e.xsrfHeaderName,I)}a===void 0&&i.setContentType(null),"setRequestHeader"in _&&Fe.forEach(i.toJSON(),function(B,R){_.setRequestHeader(R,B)}),Fe.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),f&&f!=="json"&&(_.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&_.addEventListener("progress",Ky(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",Ky(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=I=>{_&&(n(!I||I.type?new vl(null,e,_):I),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const P=xj(S);if(P&&Ji.protocols.indexOf(P)===-1){n(new gt("Unsupported protocol "+P+":",gt.ERR_BAD_REQUEST,e));return}_.send(a||null)})},d6={http:WU,xhr:Sj};Fe.forEach(d6,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gy=e=>`- ${e}`,Ej=e=>Fe.isFunction(e)||e===null||e===!1,IE={getAdapter:e=>{e=Fe.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let f=t?i.length>1?`since : +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Hy]=this[Hy]={accessors:{}}).accessors,a=this.prototype;function i(f){const l=R0(f);n[l]||(pj(a,f),n[l]=!0)}return Fe.isArray(t)?t.forEach(i):i(t),this}};Gh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Fe.reduceDescriptors(Gh.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Fe.freezeMethods(Gh);const Ea=Gh;function k3(e,t){const r=this||M5,n=t||r,a=Ea.from(n.headers);let i=n.data;return Fe.forEach(e,function(l){i=l.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function OE(e){return!!(e&&e.__CANCEL__)}function vl(e,t,r){gt.call(this,e??"canceled",gt.ERR_CANCELED,t,r),this.name="CanceledError"}Fe.inherits(vl,gt,{__CANCEL__:!0});function vj(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new gt("Request failed with status code "+r.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const gj=Ji.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const f=[e+"="+encodeURIComponent(t)];Fe.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),Fe.isString(n)&&f.push("path="+n),Fe.isString(a)&&f.push("domain="+a),i===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mj(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function kE(e,t){return e&&!yj(t)?mj(e,t):t}const bj=Ji.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let f=i;return t&&(r.setAttribute("href",f),f=r.href),r.setAttribute("href",f),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(f){const l=Fe.isString(f)?a(f):f;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function xj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wj(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,f;return t=t!==void 0?t:1e3,function(c){const m=Date.now(),g=n[i];f||(f=m),r[a]=c,n[a]=m;let _=i,S=0;for(;_!==a;)S+=r[_++],_=_%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),m-f{const i=a.loaded,f=a.lengthComputable?a.total:void 0,l=i-r,c=n(l),m=i<=f;r=i;const g={loaded:i,total:f,progress:f?i/f:void 0,bytes:l,rate:c||void 0,estimated:c&&f&&m?(f-i)/c:void 0,event:a};g[t?"download":"upload"]=!0,e(g)}}const _j=typeof XMLHttpRequest<"u",Sj=_j&&function(e){return new Promise(function(r,n){let a=e.data;const i=Ea.from(e.headers).normalize();let{responseType:f,withXSRFToken:l}=e,c;function m(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let g;if(Fe.isFormData(a)){if(Ji.hasStandardBrowserEnv||Ji.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((g=i.getContentType())!==!1){const[I,...B]=g?g.split(";").map(R=>R.trim()).filter(Boolean):[];i.setContentType([I||"multipart/form-data",...B].join("; "))}}let _=new XMLHttpRequest;if(e.auth){const I=e.auth.username||"",B=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(I+":"+B))}const S=kE(e.baseURL,e.url);_.open(e.method.toUpperCase(),AE(S,e.params,e.paramsSerializer),!0),_.timeout=e.timeout;function M(){if(!_)return;const I=Ea.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),R={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:I,config:e,request:_};vj(function(F){r(F),m()},function(F){n(F),m()},R),_=null}if("onloadend"in _?_.onloadend=M:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(M)},_.onabort=function(){_&&(n(new gt("Request aborted",gt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){n(new gt("Network Error",gt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let B=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const R=e.transitional||RE;e.timeoutErrorMessage&&(B=e.timeoutErrorMessage),n(new gt(B,R.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,e,_)),_=null},Ji.hasStandardBrowserEnv&&(l&&Fe.isFunction(l)&&(l=l(e)),l||l!==!1&&bj(S))){const I=e.xsrfHeaderName&&e.xsrfCookieName&&gj.read(e.xsrfCookieName);I&&i.set(e.xsrfHeaderName,I)}a===void 0&&i.setContentType(null),"setRequestHeader"in _&&Fe.forEach(i.toJSON(),function(B,R){_.setRequestHeader(R,B)}),Fe.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),f&&f!=="json"&&(_.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&_.addEventListener("progress",Ky(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",Ky(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=I=>{_&&(n(!I||I.type?new vl(null,e,_):I),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const P=xj(S);if(P&&Ji.protocols.indexOf(P)===-1){n(new gt("Unsupported protocol "+P+":",gt.ERR_BAD_REQUEST,e));return}_.send(a||null)})},d6={http:WU,xhr:Sj};Fe.forEach(d6,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gy=e=>`- ${e}`,Ej=e=>Fe.isFunction(e)||e===null||e===!1,IE={getAdapter:e=>{e=Fe.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let f=t?i.length>1?`since : `+i.map(Gy).join(` `):" "+Gy(i[0]):"as no adapter specified";throw new gt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return n},adapters:d6};function I3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vl(null,e)}function Wy(e){return I3(e),e.headers=Ea.from(e.headers),e.data=k3.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),IE.getAdapter(e.adapter||M5.adapter)(e).then(function(n){return I3(e),n.data=k3.call(e,e.transformResponse,n),n.headers=Ea.from(n.headers),n},function(n){return OE(n)||(I3(e),n&&n.response&&(n.response.data=k3.call(e,e.transformResponse,n.response),n.response.headers=Ea.from(n.response.headers))),Promise.reject(n)})}const Vy=e=>e instanceof Ea?e.toJSON():e;function Us(e,t){t=t||{};const r={};function n(m,g,_){return Fe.isPlainObject(m)&&Fe.isPlainObject(g)?Fe.merge.call({caseless:_},m,g):Fe.isPlainObject(g)?Fe.merge({},g):Fe.isArray(g)?g.slice():g}function a(m,g,_){if(Fe.isUndefined(g)){if(!Fe.isUndefined(m))return n(void 0,m,_)}else return n(m,g,_)}function i(m,g){if(!Fe.isUndefined(g))return n(void 0,g)}function f(m,g){if(Fe.isUndefined(g)){if(!Fe.isUndefined(m))return n(void 0,m)}else return n(void 0,g)}function l(m,g,_){if(_ in t)return n(m,g);if(_ in e)return n(void 0,m)}const c={url:i,method:i,data:i,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:l,headers:(m,g)=>a(Vy(m),Vy(g),!0)};return Fe.forEach(Object.keys(Object.assign({},e,t)),function(g){const _=c[g]||a,S=_(e[g],t[g],g);Fe.isUndefined(S)&&_!==l||(r[g]=S)}),r}const BE="1.6.2",A5={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{A5[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Zy={};A5.transitional=function(t,r,n){function a(i,f){return"[Axios v"+BE+"] Transitional option '"+i+"'"+f+(n?". "+n:"")}return(i,f,l)=>{if(t===!1)throw new gt(a(f," has been removed"+(r?" in "+r:"")),gt.ERR_DEPRECATED);return r&&!Zy[f]&&(Zy[f]=!0,console.warn(a(f," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,f,l):!0}};function Cj(e,t,r){if(typeof e!="object")throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],f=t[i];if(f){const l=e[i],c=l===void 0||f(l,i,e);if(c!==!0)throw new gt("option "+i+" must be "+c,gt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new gt("Unknown option "+i,gt.ERR_BAD_OPTION)}}const p6={assertOptions:Cj,validators:A5},Ha=p6.validators;let j1=class{constructor(t){this.defaults=t,this.interceptors={request:new $y,response:new $y}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Us(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&p6.assertOptions(n,{silentJSONParsing:Ha.transitional(Ha.boolean),forcedJSONParsing:Ha.transitional(Ha.boolean),clarifyTimeoutError:Ha.transitional(Ha.boolean)},!1),a!=null&&(Fe.isFunction(a)?r.paramsSerializer={serialize:a}:p6.assertOptions(a,{encode:Ha.function,serialize:Ha.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let f=i&&Fe.merge(i.common,i[r.method]);i&&Fe.forEach(["delete","get","head","post","put","patch","common"],P=>{delete i[P]}),r.headers=Ea.concat(f,i);const l=[];let c=!0;this.interceptors.request.forEach(function(I){typeof I.runWhen=="function"&&I.runWhen(r)===!1||(c=c&&I.synchronous,l.unshift(I.fulfilled,I.rejected))});const m=[];this.interceptors.response.forEach(function(I){m.push(I.fulfilled,I.rejected)});let g,_=0,S;if(!c){const P=[Wy.bind(this),void 0];for(P.unshift.apply(P,l),P.push.apply(P,m),S=P.length,g=Promise.resolve(r);_{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const f=new Promise(l=>{n.subscribe(l),i=l}).then(a);return f.cancel=function(){n.unsubscribe(i)},f},t(function(i,f,l){n.reason||(n.reason=new vl(i,f,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new LE(function(a){t=a}),cancel:t}}};const Aj=Mj;function Rj(e){return function(r){return e.apply(null,r)}}function Tj(e){return Fe.isObject(e)&&e.isAxiosError===!0}const v6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(v6).forEach(([e,t])=>{v6[t]=e});const Pj=v6;function NE(e){const t=new Gc(e),r=vE(Gc.prototype.request,t);return Fe.extend(r,Gc.prototype,t,{allOwnKeys:!0}),Fe.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return NE(Us(e,a))},r}const lr=NE(M5);lr.Axios=Gc;lr.CanceledError=vl;lr.CancelToken=Aj;lr.isCancel=OE;lr.VERSION=BE;lr.toFormData=Kh;lr.AxiosError=gt;lr.Cancel=lr.CanceledError;lr.all=function(t){return Promise.all(t)};lr.spread=Rj;lr.isAxiosError=Tj;lr.mergeConfig=Us;lr.AxiosHeaders=Ea;lr.formToJSON=e=>PE(Fe.isHTMLForm(e)?new FormData(e):e);lr.getAdapter=IE.getAdapter;lr.HttpStatusCode=Pj;lr.default=lr;const DE=lr,{Axios:TQ,AxiosError:PQ,CanceledError:Oj,isCancel:OQ,CancelToken:kQ,VERSION:IQ,all:BQ,Cancel:LQ,isAxiosError:NQ,spread:DQ,toFormData:FQ,AxiosHeaders:UQ,HttpStatusCode:jQ,formToJSON:qQ,getAdapter:zQ,mergeConfig:$Q}=DE,kj=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);var Ij=e=>!kj.has(e&&e.code);const Bj=Nr(Ij);function Xy(e,t,r,n,a,i,f){try{var l=e[i](f),c=l.value}catch(m){r(m);return}l.done?t(c):Promise.resolve(c).then(n,a)}function FE(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function f(c){Xy(i,n,a,f,l,"next",c)}function l(c){Xy(i,n,a,f,l,"throw",c)}f(void 0)})}}function Yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function B3(e){for(var t=1;t=500&&e.response.status<=599)}function Dj(e){return e.config?R5(e)&&qE.indexOf(e.config.method)!==-1:!1}function zE(e){return e.config?R5(e)&&Nj.indexOf(e.config.method)!==-1:!1}function $E(e){return jE(e)||zE(e)}function Fj(){return 0}function Uj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,r=Math.pow(2,e)*t,n=r*.2*Math.random();return r+n}var jj={retries:3,retryCondition:$E,retryDelay:Fj,shouldResetTimeout:!1,onRetry:()=>{}};function qj(e,t){return B3(B3(B3({},jj),t),e[UE])}function Jy(e,t){var r=qj(e,t);return r.retryCount=r.retryCount||0,e[UE]=r,r}function zj(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}function $j(e,t){return g6.apply(this,arguments)}function g6(){return g6=FE(function*(e,t){var{retries:r,retryCondition:n}=e,a=e.retryCount{var i=Jy(a,t);return i.lastRequestTime=Date.now(),a}),n=e.interceptors.response.use(null,function(){var a=FE(function*(i){var{config:f}=i;if(!f)return Promise.reject(i);var l=Jy(f,t);if(yield $j(l,i)){l.retryCount+=1;var{retryDelay:c,shouldResetTimeout:m,onRetry:g}=l,_=c(l.retryCount,i);if(zj(e,f),!m&&f.timeout&&l.lastRequestTime){var S=Date.now()-l.lastRequestTime,M=f.timeout-S-_;if(M<=0)return Promise.reject(i);f.timeout=M}return f.transformRequest=[P=>P],yield g(l.retryCount,i,f),new Promise(P=>setTimeout(()=>P(e(f)),_))}return Promise.reject(i)});return function(i){return a.apply(this,arguments)}}());return{requestInterceptorId:r,responseInterceptorId:n}}Ca.isNetworkError=jE;Ca.isSafeRequestError=Dj;Ca.isIdempotentRequestError=zE;Ca.isNetworkOrIdempotentRequestError=$E;Ca.exponentialDelay=Uj;Ca.isRetryableError=R5;const Hj={"x-turbo-source-version":pE,"x-turbo-source-identifier":"turbo-sdk"},Kj=({logger:e=new qh,axiosConfig:t={},retryConfig:r={retryDelay:Ca.exponentialDelay,retries:3,retryCondition:n=>!(n instanceof Oj)&&Ca.isNetworkOrIdempotentRequestError(n),onRetry:(n,a)=>{e.debug(`Request failed, ${a}. Retry attempt #${n}...`)}}}={})=>{const n=DE.create({...t,headers:{...t.headers,...Hj},validateStatus:()=>!0});return r.retries&&r.retries>0&&Ca(n,r),n};class Qy extends Error{constructor(t,r){super(`Failed request: ${t}: ${r}`),this.name="FailedRequestError"}}class HE{constructor({url:t,retryConfig:r,logger:n}){this.logger=n,this.axios=Kj({axiosConfig:{baseURL:t,maxRedirects:0,onUploadProgress:a=>{this.logger.debug("Uploading...",{percent:Math.floor((a.progress??0)*100),loaded:`${a.loaded} bytes`,total:`${a.total} bytes`}),a.progress===1&&this.logger.debug("Upload complete!")}},retryConfig:r,logger:this.logger})}async get({endpoint:t,signal:r,allowedStatuses:n=[200,202],headers:a}){const{status:i,statusText:f,data:l}=await this.axios.get(t,{headers:a,signal:r});if(!n.includes(i))throw new Qy(i,f);return l}async post({endpoint:t,signal:r,allowedStatuses:n=[200,202],headers:a,data:i}){const{status:f,statusText:l,data:c}=await this.axios.post(t,i,{headers:a,signal:r});if(!n.includes(f))throw new Qy(f,l);return c}}const KE="https://payment.ardrive.io";class T5{constructor({url:t=KE,retryConfig:r,logger:n=new qh}){this.logger=n,this.httpService=new HE({url:`${t}/v1`,retryConfig:r,logger:this.logger})}getFiatRates(){return this.httpService.get({endpoint:"/rates"})}getFiatToAR({currency:t}){return this.httpService.get({endpoint:`/rates/${t}`})}getSupportedCountries(){return this.httpService.get({endpoint:"/countries"})}getSupportedCurrencies(){return this.httpService.get({endpoint:"/currencies"})}async getUploadCosts({bytes:t}){const r=t.map(a=>this.httpService.get({endpoint:`/price/bytes/${a}`}));return await Promise.all(r)}getWincForFiat({amount:t}){const{amount:r,type:n}=t;return this.httpService.get({endpoint:`/price/${n}/${r}`})}appendPromoCodesToQuery(t){const r=t.join(",");return r?`?promoCode=${r}`:""}async getCheckout({amount:t,owner:r,promoCodes:n=[]},a){const{amount:i,type:f}=t,l=`/top-up/checkout-session/${r}/${f}/${i}${this.appendPromoCodesToQuery(n)}`,{adjustments:c,paymentSession:m,topUpQuote:g}=await this.httpService.get({endpoint:l,headers:a});return{winc:g.winstonCreditAmount,adjustments:c,url:m.url,paymentAmount:g.paymentAmount,quotedPaymentAmount:g.quotedPaymentAmount}}createCheckoutSession(t){return this.getCheckout(t)}}class Gj extends T5{constructor({url:t=KE,retryConfig:r,signer:n,logger:a}){super({url:t,retryConfig:r,logger:a}),this.signer=n}async getBalance(){const t=await this.signer.generateSignedRequestHeaders(),r=await this.httpService.get({endpoint:"/balance",headers:t,allowedStatuses:[200,404]});return r.winc?r:{winc:"0"}}async getWincForFiat({amount:t,promoCodes:r=[]}){return this.httpService.get({endpoint:`/price/${t.type}/${t.amount}${this.appendPromoCodesToQuery(r)}`,headers:await this.signer.generateSignedRequestHeaders()})}async createCheckoutSession(t){return this.getCheckout(t,await this.signer.generateSignedRequestHeaders())}}const GE="https://upload.ardrive.io";class P5{constructor({url:t=GE,retryConfig:r,logger:n=new qh}){this.logger=n,this.httpService=new HE({url:`${t}/v1`,retryConfig:r,logger:this.logger})}async uploadSignedDataItem({dataItemStreamFactory:t,dataItemSizeFactory:r,signal:n}){const a=r();return this.logger.debug("Uploading signed data item..."),this.httpService.post({endpoint:"/tx",signal:n,data:t(),headers:{"content-type":"application/octet-stream","content-length":`${a}`}})}}class Wj extends P5{constructor({url:t=GE,retryConfig:r,signer:n,logger:a}){super({url:t,retryConfig:r,logger:a}),this.signer=n}async uploadFile({fileStreamFactory:t,fileSizeFactory:r,signal:n}){const{dataItemStreamFactory:a,dataItemSizeFactory:i}=await this.signer.signDataItem({fileStreamFactory:t,fileSizeFactory:r}),f=a(),l=i();return this.logger.debug("Uploading signed data item..."),this.httpService.post({endpoint:"/tx",signal:n,data:f,headers:{"content-type":"application/octet-stream","content-length":`${l}`}})}}class WE{constructor({uploadService:t=new P5({}),paymentService:r=new T5({})}){this.paymentService=r,this.uploadService=t}getFiatToAR({currency:t}){return this.paymentService.getFiatToAR({currency:t})}getFiatRates(){return this.paymentService.getFiatRates()}getSupportedCountries(){return this.paymentService.getSupportedCountries()}getSupportedCurrencies(){return this.paymentService.getSupportedCurrencies()}getUploadCosts({bytes:t}){return this.paymentService.getUploadCosts({bytes:t})}getWincForFiat(t){return this.paymentService.getWincForFiat(t)}uploadSignedDataItem({dataItemStreamFactory:t,dataItemSizeFactory:r,signal:n}){return this.uploadService.uploadSignedDataItem({dataItemStreamFactory:t,dataItemSizeFactory:r,signal:n})}createCheckoutSession(t){return this.paymentService.createCheckoutSession(t)}}class Vj extends WE{constructor({paymentService:t,uploadService:r}){super({paymentService:t,uploadService:r})}getBalance(){return this.paymentService.getBalance()}uploadFile({fileStreamFactory:t,fileSizeFactory:r,signal:n}){return this.uploadService.uploadFile({fileStreamFactory:t,fileSizeFactory:r,signal:n})}}class VE{static setLogLevel(t){this.logger.setLogLevel(t)}static setLogFormat(t){this.logger.setLogFormat(t)}static unauthenticated({paymentServiceConfig:t={},uploadServiceConfig:r={}}={}){const n=new T5({...t,logger:this.logger}),a=new P5({...r,logger:this.logger});return new WE({uploadService:a,paymentService:n})}}VE.logger=new qh;class Zj{constructor(t,r){this.a=t,this.type=r}get amount(){return this.a*100}}const Xj=e=>new Zj(e,"usd");let Yj=class{constructor(){Pe(this,"publicKey");Pe(this,"signatureType");Pe(this,"signatureLength");Pe(this,"ownerLength");Pe(this,"pem")}static verify(t,r,n,a){throw new Error("You must implement verify method on child")}};var ZE={exports:{}},O5={},k5={};Object.defineProperty(k5,"__esModule",{value:!0});function Jj(e){var t=4,r=e.length,n=r%t;if(!n)return e;var a=r,i=t-n,f=r+i,l=Te.Buffer.alloc(f);for(l.write(e);i--;)l.write("=",a++);return l.toString()}k5.default=Jj;Object.defineProperty(O5,"__esModule",{value:!0});var Qj=k5;function XE(e,t){return t===void 0&&(t="utf8"),Te.Buffer.isBuffer(e)?y6(e.toString("base64")):y6(Te.Buffer.from(e,t).toString("base64"))}function eq(e,t){return t===void 0&&(t="utf8"),Te.Buffer.from(I5(e),"base64").toString(t)}function I5(e){return e=e.toString(),Qj.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function y6(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function tq(e){return Te.Buffer.from(I5(e),"base64")}var o0=XE;o0.encode=XE;o0.decode=eq;o0.toBase64=I5;o0.fromBase64=y6;o0.toBuffer=tq;O5.default=o0;(function(e){e.exports=O5.default,e.exports.default=e.exports})(ZE);var rq=ZE.exports;const Tt=Nr(rq);var pt;(function(e){e[e.ARWEAVE=1]="ARWEAVE",e[e.ED25519=2]="ED25519",e[e.ETHEREUM=3]="ETHEREUM",e[e.SOLANA=4]="SOLANA",e[e.INJECTEDAPTOS=5]="INJECTEDAPTOS",e[e.MULTIAPTOS=6]="MULTIAPTOS",e[e.TYPEDETHEREUM=7]="TYPEDETHEREUM"})(pt||(pt={}));const Ut={[pt.ARWEAVE]:{sigLength:512,pubLength:512,sigName:"arweave"},[pt.ED25519]:{sigLength:64,pubLength:32,sigName:"ed25519"},[pt.ETHEREUM]:{sigLength:65,pubLength:65,sigName:"ethereum"},[pt.SOLANA]:{sigLength:64,pubLength:32,sigName:"solana"},[pt.INJECTEDAPTOS]:{sigLength:64,pubLength:32,sigName:"injectedAptos"},[pt.MULTIAPTOS]:{sigLength:64*32+4,pubLength:32*32+1,sigName:"multiAptos"},[pt.TYPEDETHEREUM]:{sigLength:65,pubLength:42,sigName:"typedEthereum"}};var ft={},m6={exports:{}},L3=65536,nq=4294967295;function iq(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var aq=st.Buffer,q1=Oe.crypto||Oe.msCrypto;q1&&q1.getRandomValues?m6.exports=oq:m6.exports=iq;function oq(e,t){if(e>nq)throw new RangeError("requested too many random bytes");var r=aq.allocUnsafe(e);if(e>0)if(e>L3)for(var n=0;n=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=f,f=this._length[i]/4294967296|0,f>0&&(this._length[i]-=4294967296*f);return this};No.prototype._update=function(){throw new Error("_update is not implemented")};No.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};No.prototype._digest=function(){throw new Error("_digest is not implemented")};var JE=No,uq=ot,QE=JE,lq=st.Buffer,cq=new Array(16);function Wh(){QE.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}uq(Wh,QE);Wh.prototype._update=function(){for(var e=cq,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,n=this._b,a=this._c,i=this._d;r=$r(r,n,a,i,e[0],3614090360,7),i=$r(i,r,n,a,e[1],3905402710,12),a=$r(a,i,r,n,e[2],606105819,17),n=$r(n,a,i,r,e[3],3250441966,22),r=$r(r,n,a,i,e[4],4118548399,7),i=$r(i,r,n,a,e[5],1200080426,12),a=$r(a,i,r,n,e[6],2821735955,17),n=$r(n,a,i,r,e[7],4249261313,22),r=$r(r,n,a,i,e[8],1770035416,7),i=$r(i,r,n,a,e[9],2336552879,12),a=$r(a,i,r,n,e[10],4294925233,17),n=$r(n,a,i,r,e[11],2304563134,22),r=$r(r,n,a,i,e[12],1804603682,7),i=$r(i,r,n,a,e[13],4254626195,12),a=$r(a,i,r,n,e[14],2792965006,17),n=$r(n,a,i,r,e[15],1236535329,22),r=Hr(r,n,a,i,e[1],4129170786,5),i=Hr(i,r,n,a,e[6],3225465664,9),a=Hr(a,i,r,n,e[11],643717713,14),n=Hr(n,a,i,r,e[0],3921069994,20),r=Hr(r,n,a,i,e[5],3593408605,5),i=Hr(i,r,n,a,e[10],38016083,9),a=Hr(a,i,r,n,e[15],3634488961,14),n=Hr(n,a,i,r,e[4],3889429448,20),r=Hr(r,n,a,i,e[9],568446438,5),i=Hr(i,r,n,a,e[14],3275163606,9),a=Hr(a,i,r,n,e[3],4107603335,14),n=Hr(n,a,i,r,e[8],1163531501,20),r=Hr(r,n,a,i,e[13],2850285829,5),i=Hr(i,r,n,a,e[2],4243563512,9),a=Hr(a,i,r,n,e[7],1735328473,14),n=Hr(n,a,i,r,e[12],2368359562,20),r=Kr(r,n,a,i,e[5],4294588738,4),i=Kr(i,r,n,a,e[8],2272392833,11),a=Kr(a,i,r,n,e[11],1839030562,16),n=Kr(n,a,i,r,e[14],4259657740,23),r=Kr(r,n,a,i,e[1],2763975236,4),i=Kr(i,r,n,a,e[4],1272893353,11),a=Kr(a,i,r,n,e[7],4139469664,16),n=Kr(n,a,i,r,e[10],3200236656,23),r=Kr(r,n,a,i,e[13],681279174,4),i=Kr(i,r,n,a,e[0],3936430074,11),a=Kr(a,i,r,n,e[3],3572445317,16),n=Kr(n,a,i,r,e[6],76029189,23),r=Kr(r,n,a,i,e[9],3654602809,4),i=Kr(i,r,n,a,e[12],3873151461,11),a=Kr(a,i,r,n,e[15],530742520,16),n=Kr(n,a,i,r,e[2],3299628645,23),r=Gr(r,n,a,i,e[0],4096336452,6),i=Gr(i,r,n,a,e[7],1126891415,10),a=Gr(a,i,r,n,e[14],2878612391,15),n=Gr(n,a,i,r,e[5],4237533241,21),r=Gr(r,n,a,i,e[12],1700485571,6),i=Gr(i,r,n,a,e[3],2399980690,10),a=Gr(a,i,r,n,e[10],4293915773,15),n=Gr(n,a,i,r,e[1],2240044497,21),r=Gr(r,n,a,i,e[8],1873313359,6),i=Gr(i,r,n,a,e[15],4264355552,10),a=Gr(a,i,r,n,e[6],2734768916,15),n=Gr(n,a,i,r,e[13],1309151649,21),r=Gr(r,n,a,i,e[4],4149444226,6),i=Gr(i,r,n,a,e[11],3174756917,10),a=Gr(a,i,r,n,e[2],718787259,15),n=Gr(n,a,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};Wh.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=lq.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 Vh(e,t){return e<>>32-t}function $r(e,t,r,n,a,i,f){return Vh(e+(t&r|~t&n)+a+i|0,f)+t|0}function Hr(e,t,r,n,a,i,f){return Vh(e+(t&n|r&~n)+a+i|0,f)+t|0}function Kr(e,t,r,n,a,i,f){return Vh(e+(t^r^n)+a+i|0,f)+t|0}function Gr(e,t,r,n,a,i,f){return Vh(e+(r^(t|~n))+a+i|0,f)+t|0}var B5=Wh,N3=Te.Buffer,hq=ot,eC=JE,dq=new Array(16),T0=[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],P0=[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],O0=[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],k0=[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],I0=[0,1518500249,1859775393,2400959708,2840853838],B0=[1352829926,1548603684,1836072691,2053994217,0];function Zh(){eC.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}hq(Zh,eC);Zh.prototype._update=function(){for(var e=dq,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,f=this._e|0,l=this._a|0,c=this._b|0,m=this._c|0,g=this._d|0,_=this._e|0,S=0;S<80;S+=1){var M,P;S<16?(M=em(r,n,a,i,f,e[T0[S]],I0[0],O0[S]),P=im(l,c,m,g,_,e[P0[S]],B0[0],k0[S])):S<32?(M=tm(r,n,a,i,f,e[T0[S]],I0[1],O0[S]),P=nm(l,c,m,g,_,e[P0[S]],B0[1],k0[S])):S<48?(M=rm(r,n,a,i,f,e[T0[S]],I0[2],O0[S]),P=rm(l,c,m,g,_,e[P0[S]],B0[2],k0[S])):S<64?(M=nm(r,n,a,i,f,e[T0[S]],I0[3],O0[S]),P=tm(l,c,m,g,_,e[P0[S]],B0[3],k0[S])):(M=im(r,n,a,i,f,e[T0[S]],I0[4],O0[S]),P=em(l,c,m,g,_,e[P0[S]],B0[4],k0[S])),r=f,f=i,i=mf(a,10),a=n,n=M,l=_,_=g,g=mf(m,10),m=c,c=P}var I=this._b+a+g|0;this._b=this._c+i+_|0,this._c=this._d+f+l|0,this._d=this._e+r+c|0,this._e=this._a+n+m|0,this._a=I};Zh.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=N3.alloc?N3.alloc(20):new N3(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};function mf(e,t){return e<>>32-t}function em(e,t,r,n,a,i,f,l){return mf(e+(t^r^n)+i+f|0,l)+a|0}function tm(e,t,r,n,a,i,f,l){return mf(e+(t&r|~t&n)+i+f|0,l)+a|0}function rm(e,t,r,n,a,i,f,l){return mf(e+((t|~r)^n)+i+f|0,l)+a|0}function nm(e,t,r,n,a,i,f,l){return mf(e+(t&n|r&~n)+i+f|0,l)+a|0}function im(e,t,r,n,a,i,f,l){return mf(e+(t^(r|~n))+i+f|0,l)+a|0}var L5=Zh,tC={exports:{}},rC=st.Buffer;function Xh(e,t){this._block=rC.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Xh.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=rC.from(e,t));for(var r=this._block,n=this._blockSize,a=e.length,i=this._len,f=0;f=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,a=(r-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i};Xh.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var s0=Xh,pq=ot,nC=s0,vq=st.Buffer,gq=[1518500249,1859775393,-1894007588,-899497514],yq=new Array(80);function gl(){this.init(),this._w=yq,nC.call(this,64,56)}pq(gl,nC);gl.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function mq(e){return e<<5|e>>>27}function bq(e){return e<<30|e>>>2}function xq(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}gl.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,f=this._e|0,l=0;l<16;++l)t[l]=e.readInt32BE(l*4);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var c=0;c<80;++c){var m=~~(c/20),g=mq(r)+xq(m,n,a,i)+f+t[c]+gq[m]|0;f=i,i=a,a=bq(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=f+this._e|0};gl.prototype._hash=function(){var e=vq.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};var wq=gl,_q=ot,iC=s0,Sq=st.Buffer,Eq=[1518500249,1859775393,-1894007588,-899497514],Cq=new Array(80);function yl(){this.init(),this._w=Cq,iC.call(this,64,56)}_q(yl,iC);yl.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Mq(e){return e<<1|e>>>31}function Aq(e){return e<<5|e>>>27}function Rq(e){return e<<30|e>>>2}function Tq(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}yl.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,f=this._e|0,l=0;l<16;++l)t[l]=e.readInt32BE(l*4);for(;l<80;++l)t[l]=Mq(t[l-3]^t[l-8]^t[l-14]^t[l-16]);for(var c=0;c<80;++c){var m=~~(c/20),g=Aq(r)+Tq(m,n,a,i)+f+t[c]+Eq[m]|0;f=i,i=a,a=Rq(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=f+this._e|0};yl.prototype._hash=function(){var e=Sq.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};var Pq=yl,Oq=ot,aC=s0,kq=st.Buffer,Iq=[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],Bq=new Array(64);function ml(){this.init(),this._w=Bq,aC.call(this,64,56)}Oq(ml,aC);ml.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 Lq(e,t,r){return r^e&(t^r)}function Nq(e,t,r){return e&t|r&(e|t)}function Dq(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function Fq(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Uq(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function jq(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}ml.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,f=this._e|0,l=this._f|0,c=this._g|0,m=this._h|0,g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<64;++g)t[g]=jq(t[g-2])+t[g-7]+Uq(t[g-15])+t[g-16]|0;for(var _=0;_<64;++_){var S=m+Fq(f)+Lq(f,l,c)+Iq[_]+t[_]|0,M=Dq(r)+Nq(r,n,a)|0;m=c,c=l,l=f,f=i+S|0,i=a,a=n,n=r,r=S+M|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=f+this._e|0,this._f=l+this._f|0,this._g=c+this._g|0,this._h=m+this._h|0};ml.prototype._hash=function(){var e=kq.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var oC=ml,qq=ot,zq=oC,$q=s0,Hq=st.Buffer,Kq=new Array(64);function Yh(){this.init(),this._w=Kq,$q.call(this,64,56)}qq(Yh,zq);Yh.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};Yh.prototype._hash=function(){var e=Hq.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var Gq=Yh,Wq=ot,fC=s0,Vq=st.Buffer,am=[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],Zq=new Array(160);function bl(){this.init(),this._w=Zq,fC.call(this,128,112)}Wq(bl,fC);bl.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 om(e,t,r){return r^e&(t^r)}function fm(e,t,r){return e&t|r&(e|t)}function sm(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function um(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Xq(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Yq(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Jq(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Qq(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function xr(e,t){return e>>>0>>0?1:0}bl.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,f=this._eh|0,l=this._fh|0,c=this._gh|0,m=this._hh|0,g=this._al|0,_=this._bl|0,S=this._cl|0,M=this._dl|0,P=this._el|0,I=this._fl|0,B=this._gl|0,R=this._hl|0,A=0;A<32;A+=2)t[A]=e.readInt32BE(A*4),t[A+1]=e.readInt32BE(A*4+4);for(;A<160;A+=2){var U=t[A-30],V=t[A-15*2+1],j=Xq(U,V),N=Yq(V,U);U=t[A-2*2],V=t[A-2*2+1];var K=Jq(U,V),J=Qq(V,U),te=t[A-7*2],ee=t[A-7*2+1],G=t[A-16*2],E=t[A-16*2+1],d=N+ee|0,o=j+te+xr(d,N)|0;d=d+J|0,o=o+K+xr(d,J)|0,d=d+E|0,o=o+G+xr(d,E)|0,t[A]=o,t[A+1]=d}for(var u=0;u<160;u+=2){o=t[u],d=t[u+1];var p=fm(r,n,a),y=fm(g,_,S),x=sm(r,g),w=sm(g,r),v=um(f,P),h=um(P,f),s=am[u],b=am[u+1],D=om(f,l,c),C=om(P,I,B),F=R+h|0,$=m+v+xr(F,R)|0;F=F+C|0,$=$+D+xr(F,C)|0,F=F+b|0,$=$+s+xr(F,b)|0,F=F+d|0,$=$+o+xr(F,d)|0;var H=w+y|0,X=x+p+xr(H,w)|0;m=c,R=B,c=l,B=I,l=f,I=P,P=M+F|0,f=i+$+xr(P,M)|0,i=a,M=S,a=n,S=_,n=r,_=g,g=F+H|0,r=$+X+xr(g,F)|0}this._al=this._al+g|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+M|0,this._el=this._el+P|0,this._fl=this._fl+I|0,this._gl=this._gl+B|0,this._hl=this._hl+R|0,this._ah=this._ah+r+xr(this._al,g)|0,this._bh=this._bh+n+xr(this._bl,_)|0,this._ch=this._ch+a+xr(this._cl,S)|0,this._dh=this._dh+i+xr(this._dl,M)|0,this._eh=this._eh+f+xr(this._el,P)|0,this._fh=this._fh+l+xr(this._fl,I)|0,this._gh=this._gh+c+xr(this._gl,B)|0,this._hh=this._hh+m+xr(this._hl,R)|0};bl.prototype._hash=function(){var e=Vq.allocUnsafe(64);function t(r,n,a){e.writeInt32BE(r,a),e.writeInt32BE(n,a+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var sC=bl,ez=ot,tz=sC,rz=s0,nz=st.Buffer,iz=new Array(160);function Jh(){this.init(),this._w=iz,rz.call(this,128,112)}ez(Jh,tz);Jh.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};Jh.prototype._hash=function(){var e=nz.allocUnsafe(48);function t(r,n,a){e.writeInt32BE(r,a),e.writeInt32BE(n,a+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var az=Jh,Ua=tC.exports=function(t){t=t.toLowerCase();var r=Ua[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};Ua.sha=wq;Ua.sha1=Pq;Ua.sha224=Gq;Ua.sha256=oC;Ua.sha384=az;Ua.sha512=sC;var N5=tC.exports,uC=st.Buffer,lC=Nh.Transform,oz=qu.StringDecoder,fz=ot;function Ni(e){lC.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}fz(Ni,lC);Ni.prototype.update=function(e,t,r){typeof e=="string"&&(e=uC.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};Ni.prototype.setAutoPadding=function(){};Ni.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Ni.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Ni.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Ni.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(a){n=a}finally{r(n)}};Ni.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};Ni.prototype._finalOrDigest=function(e){var t=this.__final()||uC.alloc(0);return e&&(t=this._toString(t,e,!0)),t};Ni.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new oz(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n};var Do=Ni,sz=ot,uz=B5,lz=L5,cz=N5,cC=Do;function Qh(e){cC.call(this,"digest"),this._hash=e}sz(Qh,cC);Qh.prototype._update=function(e){this._hash.update(e)};Qh.prototype._final=function(){return this._hash.digest()};var xl=function(t){return t=t.toLowerCase(),t==="md5"?new uz:t==="rmd160"||t==="ripemd160"?new lz:new Qh(cz(t))},hz=ot,rf=st.Buffer,hC=Do,dz=rf.alloc(128),Df=64;function ed(e,t){hC.call(this,"digest"),typeof t=="string"&&(t=rf.from(t)),this._alg=e,this._key=t,t.length>Df?t=e(t):t.lengthr){var n=e==="rmd160"?new b6:x6(e);t=n.update(t).digest()}else t.lengthkz||t!==t)throw new TypeError("Bad key length")},Wc;if(Oe.process&&Oe.process.browser)Wc="utf-8";else if(Oe.process&&Oe.process.version){var Iz=parseInt(He.version.split(".")[0].slice(1),10);Wc=Iz>=6?"utf-8":"binary"}else Wc="utf-8";var mC=Wc,D3=st.Buffer,bC=function(e,t,r){if(D3.isBuffer(e))return e;if(typeof e=="string")return D3.from(e,t);if(ArrayBuffer.isView(e))return D3.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")},Bz=dC,Lz=L5,Nz=N5,nf=st.Buffer,Dz=yC,lm=mC,cm=bC,Fz=nf.alloc(128),Vc={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function xC(e,t,r){var n=Uz(e),a=e==="sha512"||e==="sha384"?128:64;t.length>a?t=n(t):t.length>>0};Bn.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};Bn.ip=function(t,r,n,a){for(var i=0,f=0,l=6;l>=0;l-=2){for(var c=0;c<=24;c+=8)i<<=1,i|=r>>>c+l&1;for(var c=0;c<=24;c+=8)i<<=1,i|=t>>>c+l&1}for(var l=6;l>=0;l-=2){for(var c=1;c<=25;c+=8)f<<=1,f|=r>>>c+l&1;for(var c=1;c<=25;c+=8)f<<=1,f|=t>>>c+l&1}n[a+0]=i>>>0,n[a+1]=f>>>0};Bn.rip=function(t,r,n,a){for(var i=0,f=0,l=0;l<4;l++)for(var c=24;c>=0;c-=8)i<<=1,i|=r>>>c+l&1,i<<=1,i|=t>>>c+l&1;for(var l=4;l<8;l++)for(var c=24;c>=0;c-=8)f<<=1,f|=r>>>c+l&1,f<<=1,f|=t>>>c+l&1;n[a+0]=i>>>0,n[a+1]=f>>>0};Bn.pc1=function(t,r,n,a){for(var i=0,f=0,l=7;l>=5;l--){for(var c=0;c<=24;c+=8)i<<=1,i|=r>>c+l&1;for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+l&1}for(var c=0;c<=24;c+=8)i<<=1,i|=r>>c+l&1;for(var l=1;l<=3;l++){for(var c=0;c<=24;c+=8)f<<=1,f|=r>>c+l&1;for(var c=0;c<=24;c+=8)f<<=1,f|=t>>c+l&1}for(var c=0;c<=24;c+=8)f<<=1,f|=t>>c+l&1;n[a+0]=i>>>0,n[a+1]=f>>>0};Bn.r28shl=function(t,r){return t<>>28-r};var hc=[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];Bn.pc2=function(t,r,n,a){for(var i=0,f=0,l=hc.length>>>1,c=0;c>>hc[c]&1;for(var c=l;c>>hc[c]&1;n[a+0]=i>>>0,n[a+1]=f>>>0};Bn.expand=function(t,r,n){var a=0,i=0;a=(t&1)<<5|t>>>27;for(var f=23;f>=15;f-=4)a<<=6,a|=t>>>f&63;for(var f=11;f>=3;f-=4)i|=t>>>f&63,i<<=6;i|=(t&31)<<1|t>>>31,r[n+0]=a>>>0,r[n+1]=i>>>0};var vm=[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];Bn.substitute=function(t,r){for(var n=0,a=0;a<4;a++){var i=t>>>18-a*6&63,f=vm[a*64+i];n<<=4,n|=f}for(var a=0;a<4;a++){var i=r>>>18-a*6&63,f=vm[4*64+a*64+i];n<<=4,n|=f}return n>>>0};var gm=[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];Bn.permute=function(t){for(var r=0,n=0;n>>gm[n]&1;return r>>>0};Bn.padSplit=function(t,r,n){for(var a=t.toString(2);a.length0;a--)r+=this._buffer(t,r),n+=this._flushBuffer(i,n);return r+=this._buffer(t,r),i};si.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};si.prototype._pad=function(t,r){if(r===0)return!1;for(;r>>1];n=gr.r28shl(n,f),a=gr.r28shl(a,f),gr.pc2(n,a,t.keys,i)}};oa.prototype._update=function(t,r,n,a){var i=this._desState,f=gr.readUInt32BE(t,r),l=gr.readUInt32BE(t,r+4);gr.ip(f,l,i.tmp,0),f=i.tmp[0],l=i.tmp[1],this.type==="encrypt"?this._encrypt(i,f,l,i.tmp,0):this._decrypt(i,f,l,i.tmp,0),f=i.tmp[0],l=i.tmp[1],gr.writeUInt32BE(n,f,a),gr.writeUInt32BE(n,l,a+4)};oa.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var n=t.length-r,a=r;a>>0,f=M}gr.rip(l,f,a,i)};oa.prototype._decrypt=function(t,r,n,a,i){for(var f=n,l=r,c=t.keys.length-2;c>=0;c-=2){var m=t.keys[c],g=t.keys[c+1];gr.expand(f,t.tmp,0),m^=t.tmp[0],g^=t.tmp[1];var _=gr.substitute(m,g),S=gr.permute(_),M=f;f=(l^S)>>>0,l=M}gr.rip(f,l,a,i)};var RC={},Xz=fi,Yz=ot,$1={};function Jz(e){Xz.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t>a%8,e._prev=u$(e._prev,r?l:c);return f}function u$(e,t){var r=e.length,n=-1,a=Zc.allocUnsafe(e.length);for(e=Zc.concat([e,Zc.from([t])]);++n>7;return a}BC.encrypt=function(e,t,r){for(var n=t.length,a=Zc.allocUnsafe(n),i=-1;++i>>24]^f[g>>>16&255]^l[_>>>8&255]^c[S&255]^t[R++],P=i[g>>>24]^f[_>>>16&255]^l[S>>>8&255]^c[m&255]^t[R++],I=i[_>>>24]^f[S>>>16&255]^l[m>>>8&255]^c[g&255]^t[R++],B=i[S>>>24]^f[m>>>16&255]^l[g>>>8&255]^c[_&255]^t[R++],m=M,g=P,_=I,S=B;return M=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[_>>>8&255]<<8|n[S&255])^t[R++],P=(n[g>>>24]<<24|n[_>>>16&255]<<16|n[S>>>8&255]<<8|n[m&255])^t[R++],I=(n[_>>>24]<<24|n[S>>>16&255]<<16|n[m>>>8&255]<<8|n[g&255])^t[R++],B=(n[S>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[_&255])^t[R++],M=M>>>0,P=P>>>0,I=I>>>0,B=B>>>0,[M,P,I,B]}var x$=[0,1,2,4,8,16,32,64,128,27,54],sr=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=[],a=[[],[],[],[]],i=[[],[],[],[]],f=0,l=0,c=0;c<256;++c){var m=l^l<<1^l<<2^l<<3^l<<4;m=m>>>8^m&255^99,r[f]=m,n[m]=f;var g=e[f],_=e[g],S=e[_],M=e[m]*257^m*16843008;a[0][f]=M<<24|M>>>8,a[1][f]=M<<16|M>>>16,a[2][f]=M<<8|M>>>24,a[3][f]=M,M=S*16843009^_*65537^g*257^f*16843008,i[0][m]=M<<24|M>>>8,i[1][m]=M<<16|M>>>16,i[2][m]=M<<8|M>>>24,i[3][m]=M,f===0?f=l=1:(f=g^e[e[e[S^g]]],l^=e[e[l]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function ni(e){this._key=z5(e),this._reset()}ni.blockSize=4*4;ni.keySize=256/8;ni.prototype.blockSize=ni.blockSize;ni.prototype.keySize=ni.keySize;ni.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,a=[],i=0;i>>24,f=sr.SBOX[f>>>24]<<24|sr.SBOX[f>>>16&255]<<16|sr.SBOX[f>>>8&255]<<8|sr.SBOX[f&255],f^=x$[i/t|0]<<24):t>6&&i%t===4&&(f=sr.SBOX[f>>>24]<<24|sr.SBOX[f>>>16&255]<<16|sr.SBOX[f>>>8&255]<<8|sr.SBOX[f&255]),a[i]=a[i-t]^f}for(var l=[],c=0;c>>24]]^sr.INV_SUB_MIX[1][sr.SBOX[g>>>16&255]]^sr.INV_SUB_MIX[2][sr.SBOX[g>>>8&255]]^sr.INV_SUB_MIX[3][sr.SBOX[g&255]]}this._nRounds=r,this._keySchedule=a,this._invKeySchedule=l};ni.prototype.encryptBlockRaw=function(e){return e=z5(e),FC(e,this._keySchedule,sr.SUB_MIX,sr.SBOX,this._nRounds)};ni.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=H1.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};ni.prototype.decryptBlock=function(e){e=z5(e);var t=e[1];e[1]=e[3],e[3]=t;var r=FC(e,this._invKeySchedule,sr.INV_SUB_MIX,sr.INV_SBOX,this._nRounds),n=H1.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n};ni.prototype.scrub=function(){j3(this._keySchedule),j3(this._invKeySchedule),j3(this._key)};_l.AES=ni;var js=st.Buffer,w$=js.alloc(16,0);function _$(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function UC(e){var t=js.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 Sl(e){this.h=e,this.state=js.alloc(16,0),this.cache=js.allocUnsafe(0)}Sl.prototype.ghash=function(e){for(var t=-1;++t0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,a&&(e[0]=e[0]^225<<24)}this.state=UC(t)};Sl.prototype.update=function(e){this.cache=js.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)};Sl.prototype.final=function(e,t){return this.cache.length&&this.ghash(js.concat([this.cache,w$],16)),this.ghash(UC([0,e,0,t])),this.state};var S$=Sl,E$=_l,dn=st.Buffer,jC=Do,C$=ot,qC=S$,M$=wl,A$=NC;function R$(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),a=0;a0||n>0;){var c=new k$;c.update(l),c.update(e),t&&c.update(t),l=c.digest();var m=0;if(a>0){var g=i.length-a;m=Math.min(a,l.length),l.copy(i,g,0,m),a-=m}if(m0){var _=f.length-n,S=Math.min(n,l.length-m);l.copy(f,_,m,m+S),n-=S}}return l.fill(0),{key:i,iv:f}}var id=I$,KC=q5,B$=zC,Ia=st.Buffer,L$=HC,GC=Do,N$=_l,D$=id,F$=ot;function El(e,t,r){GC.call(this),this._cache=new ad,this._cipher=new N$.AES(t),this._prev=Ia.from(r),this._mode=e,this._autopadding=!0}F$(El,GC);El.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 Ia.concat(n)};var U$=Ia.alloc(16,16);El.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(U$))throw this._cipher.scrub(),new Error("data not multiple of block length")};El.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function ad(){this.cache=Ia.allocUnsafe(0)}ad.prototype.add=function(e){this.cache=Ia.concat([this.cache,e])};ad.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};ad.prototype.flush=function(){for(var e=16-this.cache.length,t=Ia.allocUnsafe(e),r=-1;++r16)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};od.prototype.flush=function(){if(this.cache.length)return this.cache};function G$(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r0?E:d},i.min=function(E,d){return E.cmp(d)<0?E:d},i.prototype._init=function(E,d,o){if(typeof E=="number")return this._initNumber(E,d,o);if(typeof E=="object")return this._initArray(E,d,o);d==="hex"&&(d=16),n(d===(d|0)&&d>=2&&d<=36),E=E.toString().replace(/\s+/g,"");var u=0;E[0]==="-"&&(u++,this.negative=1),u=0;u-=3)y=E[u]|E[u-1]<<8|E[u-2]<<16,this.words[p]|=y<>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(o==="le")for(u=0,p=0;u>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function l(G,E){var d=G.charCodeAt(E);return d>=65&&d<=70?d-55:d>=97&&d<=102?d-87:d-48&15}function c(G,E,d){var o=l(G,d);return d-1>=E&&(o|=l(G,d-1)<<4),o}i.prototype._parseHex=function(E,d,o){this.length=Math.ceil((E.length-d)/6),this.words=new Array(this.length);for(var u=0;u=d;u-=2)x=c(E,d,u)<=18?(p-=18,y+=1,this.words[y]|=x>>>26):p+=8;else{var w=E.length-d;for(u=w%2===0?d+1:d;u=18?(p-=18,y+=1,this.words[y]|=x>>>26):p+=8}this.strip()};function m(G,E,d,o){for(var u=0,p=Math.min(G.length,d),y=E;y=49?u+=x-49+10:x>=17?u+=x-17+10:u+=x}return u}i.prototype._parseBase=function(E,d,o){this.words=[0],this.length=1;for(var u=0,p=1;p<=67108863;p*=d)u++;u--,p=p/d|0;for(var y=E.length-o,x=y%u,w=Math.min(y,y-x)+o,v=0,h=o;h1&&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?""};var g=["","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"],_=[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],S=[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(E,d){E=E||10,d=d|0||1;var o;if(E===16||E==="hex"){o="";for(var u=0,p=0,y=0;y>>24-u&16777215,p!==0||y!==this.length-1?o=g[6-w.length]+w+o:o=w+o,u+=2,u>=26&&(u-=26,y--)}for(p!==0&&(o=p.toString(16)+o);o.length%d!==0;)o="0"+o;return this.negative!==0&&(o="-"+o),o}if(E===(E|0)&&E>=2&&E<=36){var v=_[E],h=S[E];o="";var s=this.clone();for(s.negative=0;!s.isZero();){var b=s.modn(h).toString(E);s=s.idivn(h),s.isZero()?o=b+o:o=g[v-b.length]+b+o}for(this.isZero()&&(o="0"+o);o.length%d!==0;)o="0"+o;return this.negative!==0&&(o="-"+o),o}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var E=this.words[0];return this.length===2?E+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E:E},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(E,d){return n(typeof f<"u"),this.toArrayLike(f,E,d)},i.prototype.toArray=function(E,d){return this.toArrayLike(Array,E,d)},i.prototype.toArrayLike=function(E,d,o){var u=this.byteLength(),p=o||Math.max(1,u);n(u<=p,"byte array longer than desired length"),n(p>0,"Requested array length <= 0"),this.strip();var y=d==="le",x=new E(p),w,v,h=this.clone();if(y){for(v=0;!h.isZero();v++)w=h.andln(255),h.iushrn(8),x[v]=w;for(;v=4096&&(o+=13,d>>>=13),d>=64&&(o+=7,d>>>=7),d>=8&&(o+=4,d>>>=4),d>=2&&(o+=2,d>>>=2),o+d},i.prototype._zeroBits=function(E){if(E===0)return 26;var d=E,o=0;return d&8191||(o+=13,d>>>=13),d&127||(o+=7,d>>>=7),d&15||(o+=4,d>>>=4),d&3||(o+=2,d>>>=2),d&1||o++,o},i.prototype.bitLength=function(){var E=this.words[this.length-1],d=this._countBits(E);return(this.length-1)*26+d};function M(G){for(var E=new Array(G.bitLength()),d=0;d>>u}return E}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E=0,d=0;dE.length?this.clone().ior(E):E.clone().ior(this)},i.prototype.uor=function(E){return this.length>E.length?this.clone().iuor(E):E.clone().iuor(this)},i.prototype.iuand=function(E){var d;this.length>E.length?d=E:d=this;for(var o=0;oE.length?this.clone().iand(E):E.clone().iand(this)},i.prototype.uand=function(E){return this.length>E.length?this.clone().iuand(E):E.clone().iuand(this)},i.prototype.iuxor=function(E){var d,o;this.length>E.length?(d=this,o=E):(d=E,o=this);for(var u=0;uE.length?this.clone().ixor(E):E.clone().ixor(this)},i.prototype.uxor=function(E){return this.length>E.length?this.clone().iuxor(E):E.clone().iuxor(this)},i.prototype.inotn=function(E){n(typeof E=="number"&&E>=0);var d=Math.ceil(E/26)|0,o=E%26;this._expand(d),o>0&&d--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-o),this.strip()},i.prototype.notn=function(E){return this.clone().inotn(E)},i.prototype.setn=function(E,d){n(typeof E=="number"&&E>=0);var o=E/26|0,u=E%26;return this._expand(o+1),d?this.words[o]=this.words[o]|1<E.length?(o=this,u=E):(o=E,u=this);for(var p=0,y=0;y>>26;for(;p!==0&&y>>26;if(this.length=o.length,p!==0)this.words[this.length]=p,this.length++;else if(o!==this)for(;yE.length?this.clone().iadd(E):E.clone().iadd(this)},i.prototype.isub=function(E){if(E.negative!==0){E.negative=0;var d=this.iadd(E);return E.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E),this.negative=1,this._normSign();var o=this.cmp(E);if(o===0)return this.negative=0,this.length=1,this.words[0]=0,this;var u,p;o>0?(u=this,p=E):(u=E,p=this);for(var y=0,x=0;x>26,this.words[x]=d&67108863;for(;y!==0&&x>26,this.words[x]=d&67108863;if(y===0&&x>>26,s=w&67108863,b=Math.min(v,E.length-1),D=Math.max(0,v-G.length+1);D<=b;D++){var C=v-D|0;u=G.words[C]|0,p=E.words[D]|0,y=u*p+s,h+=y/67108864|0,s=y&67108863}d.words[v]=s|0,w=h|0}return w!==0?d.words[v]=w|0:d.length--,d.strip()}var I=function(E,d,o){var u=E.words,p=d.words,y=o.words,x=0,w,v,h,s=u[0]|0,b=s&8191,D=s>>>13,C=u[1]|0,F=C&8191,$=C>>>13,H=u[2]|0,X=H&8191,z=H>>>13,k=u[3]|0,L=k&8191,oe=k>>>13,re=u[4]|0,se=re&8191,Y=re>>>13,T=u[5]|0,O=T&8191,W=T>>>13,ie=u[6]|0,ue=ie&8191,we=ie>>>13,_e=u[7]|0,Z=_e&8191,le=_e>>>13,fe=u[8]|0,pe=fe&8191,Ce=fe>>>13,Me=u[9]|0,Ee=Me&8191,ne=Me>>>13,me=p[0]|0,ye=me&8191,Ie=me>>>13,he=p[1]|0,ve=he&8191,Q=he>>>13,xe=p[2]|0,Ae=xe&8191,q=xe>>>13,be=p[3]|0,de=be&8191,ae=be>>>13,ce=p[4]|0,ge=ce&8191,Ue=ce>>>13,Re=p[5]|0,Se=Re&8191,Ve=Re>>>13,je=p[6]|0,ke=je&8191,Ze=je>>>13,Ne=p[7]|0,Be=Ne&8191,et=Ne>>>13,$e=p[8]|0,De=$e&8191,Qe=$e>>>13,qe=p[9]|0,Le=qe&8191,rt=qe>>>13;o.negative=E.negative^d.negative,o.length=19,w=Math.imul(b,ye),v=Math.imul(b,Ie),v=v+Math.imul(D,ye)|0,h=Math.imul(D,Ie);var ze=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(ze>>>26)|0,ze&=67108863,w=Math.imul(F,ye),v=Math.imul(F,Ie),v=v+Math.imul($,ye)|0,h=Math.imul($,Ie),w=w+Math.imul(b,ve)|0,v=v+Math.imul(b,Q)|0,v=v+Math.imul(D,ve)|0,h=h+Math.imul(D,Q)|0;var Ge=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,w=Math.imul(X,ye),v=Math.imul(X,Ie),v=v+Math.imul(z,ye)|0,h=Math.imul(z,Ie),w=w+Math.imul(F,ve)|0,v=v+Math.imul(F,Q)|0,v=v+Math.imul($,ve)|0,h=h+Math.imul($,Q)|0,w=w+Math.imul(b,Ae)|0,v=v+Math.imul(b,q)|0,v=v+Math.imul(D,Ae)|0,h=h+Math.imul(D,q)|0;var Et=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Et>>>26)|0,Et&=67108863,w=Math.imul(L,ye),v=Math.imul(L,Ie),v=v+Math.imul(oe,ye)|0,h=Math.imul(oe,Ie),w=w+Math.imul(X,ve)|0,v=v+Math.imul(X,Q)|0,v=v+Math.imul(z,ve)|0,h=h+Math.imul(z,Q)|0,w=w+Math.imul(F,Ae)|0,v=v+Math.imul(F,q)|0,v=v+Math.imul($,Ae)|0,h=h+Math.imul($,q)|0,w=w+Math.imul(b,de)|0,v=v+Math.imul(b,ae)|0,v=v+Math.imul(D,de)|0,h=h+Math.imul(D,ae)|0;var Ct=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,w=Math.imul(se,ye),v=Math.imul(se,Ie),v=v+Math.imul(Y,ye)|0,h=Math.imul(Y,Ie),w=w+Math.imul(L,ve)|0,v=v+Math.imul(L,Q)|0,v=v+Math.imul(oe,ve)|0,h=h+Math.imul(oe,Q)|0,w=w+Math.imul(X,Ae)|0,v=v+Math.imul(X,q)|0,v=v+Math.imul(z,Ae)|0,h=h+Math.imul(z,q)|0,w=w+Math.imul(F,de)|0,v=v+Math.imul(F,ae)|0,v=v+Math.imul($,de)|0,h=h+Math.imul($,ae)|0,w=w+Math.imul(b,ge)|0,v=v+Math.imul(b,Ue)|0,v=v+Math.imul(D,ge)|0,h=h+Math.imul(D,Ue)|0;var Mt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,w=Math.imul(O,ye),v=Math.imul(O,Ie),v=v+Math.imul(W,ye)|0,h=Math.imul(W,Ie),w=w+Math.imul(se,ve)|0,v=v+Math.imul(se,Q)|0,v=v+Math.imul(Y,ve)|0,h=h+Math.imul(Y,Q)|0,w=w+Math.imul(L,Ae)|0,v=v+Math.imul(L,q)|0,v=v+Math.imul(oe,Ae)|0,h=h+Math.imul(oe,q)|0,w=w+Math.imul(X,de)|0,v=v+Math.imul(X,ae)|0,v=v+Math.imul(z,de)|0,h=h+Math.imul(z,ae)|0,w=w+Math.imul(F,ge)|0,v=v+Math.imul(F,Ue)|0,v=v+Math.imul($,ge)|0,h=h+Math.imul($,Ue)|0,w=w+Math.imul(b,Se)|0,v=v+Math.imul(b,Ve)|0,v=v+Math.imul(D,Se)|0,h=h+Math.imul(D,Ve)|0;var At=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(At>>>26)|0,At&=67108863,w=Math.imul(ue,ye),v=Math.imul(ue,Ie),v=v+Math.imul(we,ye)|0,h=Math.imul(we,Ie),w=w+Math.imul(O,ve)|0,v=v+Math.imul(O,Q)|0,v=v+Math.imul(W,ve)|0,h=h+Math.imul(W,Q)|0,w=w+Math.imul(se,Ae)|0,v=v+Math.imul(se,q)|0,v=v+Math.imul(Y,Ae)|0,h=h+Math.imul(Y,q)|0,w=w+Math.imul(L,de)|0,v=v+Math.imul(L,ae)|0,v=v+Math.imul(oe,de)|0,h=h+Math.imul(oe,ae)|0,w=w+Math.imul(X,ge)|0,v=v+Math.imul(X,Ue)|0,v=v+Math.imul(z,ge)|0,h=h+Math.imul(z,Ue)|0,w=w+Math.imul(F,Se)|0,v=v+Math.imul(F,Ve)|0,v=v+Math.imul($,Se)|0,h=h+Math.imul($,Ve)|0,w=w+Math.imul(b,ke)|0,v=v+Math.imul(b,Ze)|0,v=v+Math.imul(D,ke)|0,h=h+Math.imul(D,Ze)|0;var Rt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,w=Math.imul(Z,ye),v=Math.imul(Z,Ie),v=v+Math.imul(le,ye)|0,h=Math.imul(le,Ie),w=w+Math.imul(ue,ve)|0,v=v+Math.imul(ue,Q)|0,v=v+Math.imul(we,ve)|0,h=h+Math.imul(we,Q)|0,w=w+Math.imul(O,Ae)|0,v=v+Math.imul(O,q)|0,v=v+Math.imul(W,Ae)|0,h=h+Math.imul(W,q)|0,w=w+Math.imul(se,de)|0,v=v+Math.imul(se,ae)|0,v=v+Math.imul(Y,de)|0,h=h+Math.imul(Y,ae)|0,w=w+Math.imul(L,ge)|0,v=v+Math.imul(L,Ue)|0,v=v+Math.imul(oe,ge)|0,h=h+Math.imul(oe,Ue)|0,w=w+Math.imul(X,Se)|0,v=v+Math.imul(X,Ve)|0,v=v+Math.imul(z,Se)|0,h=h+Math.imul(z,Ve)|0,w=w+Math.imul(F,ke)|0,v=v+Math.imul(F,Ze)|0,v=v+Math.imul($,ke)|0,h=h+Math.imul($,Ze)|0,w=w+Math.imul(b,Be)|0,v=v+Math.imul(b,et)|0,v=v+Math.imul(D,Be)|0,h=h+Math.imul(D,et)|0;var qt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(qt>>>26)|0,qt&=67108863,w=Math.imul(pe,ye),v=Math.imul(pe,Ie),v=v+Math.imul(Ce,ye)|0,h=Math.imul(Ce,Ie),w=w+Math.imul(Z,ve)|0,v=v+Math.imul(Z,Q)|0,v=v+Math.imul(le,ve)|0,h=h+Math.imul(le,Q)|0,w=w+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,q)|0,v=v+Math.imul(we,Ae)|0,h=h+Math.imul(we,q)|0,w=w+Math.imul(O,de)|0,v=v+Math.imul(O,ae)|0,v=v+Math.imul(W,de)|0,h=h+Math.imul(W,ae)|0,w=w+Math.imul(se,ge)|0,v=v+Math.imul(se,Ue)|0,v=v+Math.imul(Y,ge)|0,h=h+Math.imul(Y,Ue)|0,w=w+Math.imul(L,Se)|0,v=v+Math.imul(L,Ve)|0,v=v+Math.imul(oe,Se)|0,h=h+Math.imul(oe,Ve)|0,w=w+Math.imul(X,ke)|0,v=v+Math.imul(X,Ze)|0,v=v+Math.imul(z,ke)|0,h=h+Math.imul(z,Ze)|0,w=w+Math.imul(F,Be)|0,v=v+Math.imul(F,et)|0,v=v+Math.imul($,Be)|0,h=h+Math.imul($,et)|0,w=w+Math.imul(b,De)|0,v=v+Math.imul(b,Qe)|0,v=v+Math.imul(D,De)|0,h=h+Math.imul(D,Qe)|0;var zt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(zt>>>26)|0,zt&=67108863,w=Math.imul(Ee,ye),v=Math.imul(Ee,Ie),v=v+Math.imul(ne,ye)|0,h=Math.imul(ne,Ie),w=w+Math.imul(pe,ve)|0,v=v+Math.imul(pe,Q)|0,v=v+Math.imul(Ce,ve)|0,h=h+Math.imul(Ce,Q)|0,w=w+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,q)|0,v=v+Math.imul(le,Ae)|0,h=h+Math.imul(le,q)|0,w=w+Math.imul(ue,de)|0,v=v+Math.imul(ue,ae)|0,v=v+Math.imul(we,de)|0,h=h+Math.imul(we,ae)|0,w=w+Math.imul(O,ge)|0,v=v+Math.imul(O,Ue)|0,v=v+Math.imul(W,ge)|0,h=h+Math.imul(W,Ue)|0,w=w+Math.imul(se,Se)|0,v=v+Math.imul(se,Ve)|0,v=v+Math.imul(Y,Se)|0,h=h+Math.imul(Y,Ve)|0,w=w+Math.imul(L,ke)|0,v=v+Math.imul(L,Ze)|0,v=v+Math.imul(oe,ke)|0,h=h+Math.imul(oe,Ze)|0,w=w+Math.imul(X,Be)|0,v=v+Math.imul(X,et)|0,v=v+Math.imul(z,Be)|0,h=h+Math.imul(z,et)|0,w=w+Math.imul(F,De)|0,v=v+Math.imul(F,Qe)|0,v=v+Math.imul($,De)|0,h=h+Math.imul($,Qe)|0,w=w+Math.imul(b,Le)|0,v=v+Math.imul(b,rt)|0,v=v+Math.imul(D,Le)|0,h=h+Math.imul(D,rt)|0;var $t=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+($t>>>26)|0,$t&=67108863,w=Math.imul(Ee,ve),v=Math.imul(Ee,Q),v=v+Math.imul(ne,ve)|0,h=Math.imul(ne,Q),w=w+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,q)|0,v=v+Math.imul(Ce,Ae)|0,h=h+Math.imul(Ce,q)|0,w=w+Math.imul(Z,de)|0,v=v+Math.imul(Z,ae)|0,v=v+Math.imul(le,de)|0,h=h+Math.imul(le,ae)|0,w=w+Math.imul(ue,ge)|0,v=v+Math.imul(ue,Ue)|0,v=v+Math.imul(we,ge)|0,h=h+Math.imul(we,Ue)|0,w=w+Math.imul(O,Se)|0,v=v+Math.imul(O,Ve)|0,v=v+Math.imul(W,Se)|0,h=h+Math.imul(W,Ve)|0,w=w+Math.imul(se,ke)|0,v=v+Math.imul(se,Ze)|0,v=v+Math.imul(Y,ke)|0,h=h+Math.imul(Y,Ze)|0,w=w+Math.imul(L,Be)|0,v=v+Math.imul(L,et)|0,v=v+Math.imul(oe,Be)|0,h=h+Math.imul(oe,et)|0,w=w+Math.imul(X,De)|0,v=v+Math.imul(X,Qe)|0,v=v+Math.imul(z,De)|0,h=h+Math.imul(z,Qe)|0,w=w+Math.imul(F,Le)|0,v=v+Math.imul(F,rt)|0,v=v+Math.imul($,Le)|0,h=h+Math.imul($,rt)|0;var Ht=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,w=Math.imul(Ee,Ae),v=Math.imul(Ee,q),v=v+Math.imul(ne,Ae)|0,h=Math.imul(ne,q),w=w+Math.imul(pe,de)|0,v=v+Math.imul(pe,ae)|0,v=v+Math.imul(Ce,de)|0,h=h+Math.imul(Ce,ae)|0,w=w+Math.imul(Z,ge)|0,v=v+Math.imul(Z,Ue)|0,v=v+Math.imul(le,ge)|0,h=h+Math.imul(le,Ue)|0,w=w+Math.imul(ue,Se)|0,v=v+Math.imul(ue,Ve)|0,v=v+Math.imul(we,Se)|0,h=h+Math.imul(we,Ve)|0,w=w+Math.imul(O,ke)|0,v=v+Math.imul(O,Ze)|0,v=v+Math.imul(W,ke)|0,h=h+Math.imul(W,Ze)|0,w=w+Math.imul(se,Be)|0,v=v+Math.imul(se,et)|0,v=v+Math.imul(Y,Be)|0,h=h+Math.imul(Y,et)|0,w=w+Math.imul(L,De)|0,v=v+Math.imul(L,Qe)|0,v=v+Math.imul(oe,De)|0,h=h+Math.imul(oe,Qe)|0,w=w+Math.imul(X,Le)|0,v=v+Math.imul(X,rt)|0,v=v+Math.imul(z,Le)|0,h=h+Math.imul(z,rt)|0;var Kt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,w=Math.imul(Ee,de),v=Math.imul(Ee,ae),v=v+Math.imul(ne,de)|0,h=Math.imul(ne,ae),w=w+Math.imul(pe,ge)|0,v=v+Math.imul(pe,Ue)|0,v=v+Math.imul(Ce,ge)|0,h=h+Math.imul(Ce,Ue)|0,w=w+Math.imul(Z,Se)|0,v=v+Math.imul(Z,Ve)|0,v=v+Math.imul(le,Se)|0,h=h+Math.imul(le,Ve)|0,w=w+Math.imul(ue,ke)|0,v=v+Math.imul(ue,Ze)|0,v=v+Math.imul(we,ke)|0,h=h+Math.imul(we,Ze)|0,w=w+Math.imul(O,Be)|0,v=v+Math.imul(O,et)|0,v=v+Math.imul(W,Be)|0,h=h+Math.imul(W,et)|0,w=w+Math.imul(se,De)|0,v=v+Math.imul(se,Qe)|0,v=v+Math.imul(Y,De)|0,h=h+Math.imul(Y,Qe)|0,w=w+Math.imul(L,Le)|0,v=v+Math.imul(L,rt)|0,v=v+Math.imul(oe,Le)|0,h=h+Math.imul(oe,rt)|0;var Gt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,w=Math.imul(Ee,ge),v=Math.imul(Ee,Ue),v=v+Math.imul(ne,ge)|0,h=Math.imul(ne,Ue),w=w+Math.imul(pe,Se)|0,v=v+Math.imul(pe,Ve)|0,v=v+Math.imul(Ce,Se)|0,h=h+Math.imul(Ce,Ve)|0,w=w+Math.imul(Z,ke)|0,v=v+Math.imul(Z,Ze)|0,v=v+Math.imul(le,ke)|0,h=h+Math.imul(le,Ze)|0,w=w+Math.imul(ue,Be)|0,v=v+Math.imul(ue,et)|0,v=v+Math.imul(we,Be)|0,h=h+Math.imul(we,et)|0,w=w+Math.imul(O,De)|0,v=v+Math.imul(O,Qe)|0,v=v+Math.imul(W,De)|0,h=h+Math.imul(W,Qe)|0,w=w+Math.imul(se,Le)|0,v=v+Math.imul(se,rt)|0,v=v+Math.imul(Y,Le)|0,h=h+Math.imul(Y,rt)|0;var Wt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,w=Math.imul(Ee,Se),v=Math.imul(Ee,Ve),v=v+Math.imul(ne,Se)|0,h=Math.imul(ne,Ve),w=w+Math.imul(pe,ke)|0,v=v+Math.imul(pe,Ze)|0,v=v+Math.imul(Ce,ke)|0,h=h+Math.imul(Ce,Ze)|0,w=w+Math.imul(Z,Be)|0,v=v+Math.imul(Z,et)|0,v=v+Math.imul(le,Be)|0,h=h+Math.imul(le,et)|0,w=w+Math.imul(ue,De)|0,v=v+Math.imul(ue,Qe)|0,v=v+Math.imul(we,De)|0,h=h+Math.imul(we,Qe)|0,w=w+Math.imul(O,Le)|0,v=v+Math.imul(O,rt)|0,v=v+Math.imul(W,Le)|0,h=h+Math.imul(W,rt)|0;var Vt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,w=Math.imul(Ee,ke),v=Math.imul(Ee,Ze),v=v+Math.imul(ne,ke)|0,h=Math.imul(ne,Ze),w=w+Math.imul(pe,Be)|0,v=v+Math.imul(pe,et)|0,v=v+Math.imul(Ce,Be)|0,h=h+Math.imul(Ce,et)|0,w=w+Math.imul(Z,De)|0,v=v+Math.imul(Z,Qe)|0,v=v+Math.imul(le,De)|0,h=h+Math.imul(le,Qe)|0,w=w+Math.imul(ue,Le)|0,v=v+Math.imul(ue,rt)|0,v=v+Math.imul(we,Le)|0,h=h+Math.imul(we,rt)|0;var Zt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(Ee,Be),v=Math.imul(Ee,et),v=v+Math.imul(ne,Be)|0,h=Math.imul(ne,et),w=w+Math.imul(pe,De)|0,v=v+Math.imul(pe,Qe)|0,v=v+Math.imul(Ce,De)|0,h=h+Math.imul(Ce,Qe)|0,w=w+Math.imul(Z,Le)|0,v=v+Math.imul(Z,rt)|0,v=v+Math.imul(le,Le)|0,h=h+Math.imul(le,rt)|0;var cr=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(cr>>>26)|0,cr&=67108863,w=Math.imul(Ee,De),v=Math.imul(Ee,Qe),v=v+Math.imul(ne,De)|0,h=Math.imul(ne,Qe),w=w+Math.imul(pe,Le)|0,v=v+Math.imul(pe,rt)|0,v=v+Math.imul(Ce,Le)|0,h=h+Math.imul(Ce,rt)|0;var hr=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(hr>>>26)|0,hr&=67108863,w=Math.imul(Ee,Le),v=Math.imul(Ee,rt),v=v+Math.imul(ne,Le)|0,h=Math.imul(ne,rt);var dr=(x+w|0)+((v&8191)<<13)|0;return x=(h+(v>>>13)|0)+(dr>>>26)|0,dr&=67108863,y[0]=ze,y[1]=Ge,y[2]=Et,y[3]=Ct,y[4]=Mt,y[5]=At,y[6]=Rt,y[7]=qt,y[8]=zt,y[9]=$t,y[10]=Ht,y[11]=Kt,y[12]=Gt,y[13]=Wt,y[14]=Vt,y[15]=Zt,y[16]=cr,y[17]=hr,y[18]=dr,x!==0&&(y[19]=x,o.length++),o};Math.imul||(I=P);function B(G,E,d){d.negative=E.negative^G.negative,d.length=G.length+E.length;for(var o=0,u=0,p=0;p>>26)|0,u+=y>>>26,y&=67108863}d.words[p]=x,o=y,y=u}return o!==0?d.words[p]=o:d.length--,d.strip()}function R(G,E,d){var o=new A;return o.mulp(G,E,d)}i.prototype.mulTo=function(E,d){var o,u=this.length+E.length;return this.length===10&&E.length===10?o=I(this,E,d):u<63?o=P(this,E,d):u<1024?o=B(this,E,d):o=R(this,E,d),o};function A(G,E){this.x=G,this.y=E}A.prototype.makeRBT=function(E){for(var d=new Array(E),o=i.prototype._countBits(E)-1,u=0;u>=1;return u},A.prototype.permute=function(E,d,o,u,p,y){for(var x=0;x>>1)p++;return 1<>>13,o[2*y+1]=p&8191,p=p>>>13;for(y=2*d;y>=26,d+=u/67108864|0,d+=p>>>26,this.words[o]=p&67108863}return d!==0&&(this.words[o]=d,this.length++),this},i.prototype.muln=function(E){return this.clone().imuln(E)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(E){var d=M(E);if(d.length===0)return new i(1);for(var o=this,u=0;u=0);var d=E%26,o=(E-d)/26,u=67108863>>>26-d<<26-d,p;if(d!==0){var y=0;for(p=0;p>>26-d}y&&(this.words[p]=y,this.length++)}if(o!==0){for(p=this.length-1;p>=0;p--)this.words[p+o]=this.words[p];for(p=0;p=0);var u;d?u=(d-d%26)/26:u=0;var p=E%26,y=Math.min((E-p)/26,this.length),x=67108863^67108863>>>p<y)for(this.length-=y,v=0;v=0&&(h!==0||v>=u);v--){var s=this.words[v]|0;this.words[v]=h<<26-p|s>>>p,h=s&x}return w&&h!==0&&(w.words[w.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(E,d,o){return n(this.negative===0),this.iushrn(E,d,o)},i.prototype.shln=function(E){return this.clone().ishln(E)},i.prototype.ushln=function(E){return this.clone().iushln(E)},i.prototype.shrn=function(E){return this.clone().ishrn(E)},i.prototype.ushrn=function(E){return this.clone().iushrn(E)},i.prototype.testn=function(E){n(typeof E=="number"&&E>=0);var d=E%26,o=(E-d)/26,u=1<=0);var d=E%26,o=(E-d)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=o)return this;if(d!==0&&o++,this.length=Math.min(o,this.length),d!==0){var u=67108863^67108863>>>d<=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(E){if(n(typeof E=="number"),n(E<67108864),E<0)return this.iaddn(-E);if(this.negative!==0)return this.negative=0,this.iaddn(E),this.negative=1,this;if(this.words[0]-=E,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d>26)-(w/67108864|0),this.words[p+o]=y&67108863}for(;p>26,this.words[p+o]=y&67108863;if(x===0)return this.strip();for(n(x===-1),x=0,p=0;p>26,this.words[p]=y&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(E,d){var o=this.length-E.length,u=this.clone(),p=E,y=p.words[p.length-1]|0,x=this._countBits(y);o=26-x,o!==0&&(p=p.ushln(o),u.iushln(o),y=p.words[p.length-1]|0);var w=u.length-p.length,v;if(d!=="mod"){v=new i(null),v.length=w+1,v.words=new Array(v.length);for(var h=0;h=0;b--){var D=(u.words[p.length+b]|0)*67108864+(u.words[p.length+b-1]|0);for(D=Math.min(D/y|0,67108863),u._ishlnsubmul(p,D,b);u.negative!==0;)D--,u.negative=0,u._ishlnsubmul(p,1,b),u.isZero()||(u.negative^=1);v&&(v.words[b]=D)}return v&&v.strip(),u.strip(),d!=="div"&&o!==0&&u.iushrn(o),{div:v||null,mod:u}},i.prototype.divmod=function(E,d,o){if(n(!E.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var u,p,y;return this.negative!==0&&E.negative===0?(y=this.neg().divmod(E,d),d!=="mod"&&(u=y.div.neg()),d!=="div"&&(p=y.mod.neg(),o&&p.negative!==0&&p.iadd(E)),{div:u,mod:p}):this.negative===0&&E.negative!==0?(y=this.divmod(E.neg(),d),d!=="mod"&&(u=y.div.neg()),{div:u,mod:y.mod}):this.negative&E.negative?(y=this.neg().divmod(E.neg(),d),d!=="div"&&(p=y.mod.neg(),o&&p.negative!==0&&p.isub(E)),{div:y.div,mod:p}):E.length>this.length||this.cmp(E)<0?{div:new i(0),mod:this}:E.length===1?d==="div"?{div:this.divn(E.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modn(E.words[0]))}:{div:this.divn(E.words[0]),mod:new i(this.modn(E.words[0]))}:this._wordDiv(E,d)},i.prototype.div=function(E){return this.divmod(E,"div",!1).div},i.prototype.mod=function(E){return this.divmod(E,"mod",!1).mod},i.prototype.umod=function(E){return this.divmod(E,"mod",!0).mod},i.prototype.divRound=function(E){var d=this.divmod(E);if(d.mod.isZero())return d.div;var o=d.div.negative!==0?d.mod.isub(E):d.mod,u=E.ushrn(1),p=E.andln(1),y=o.cmp(u);return y<0||p===1&&y===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modn=function(E){n(E<=67108863);for(var d=(1<<26)%E,o=0,u=this.length-1;u>=0;u--)o=(d*o+(this.words[u]|0))%E;return o},i.prototype.idivn=function(E){n(E<=67108863);for(var d=0,o=this.length-1;o>=0;o--){var u=(this.words[o]|0)+d*67108864;this.words[o]=u/E|0,d=u%E}return this.strip()},i.prototype.divn=function(E){return this.clone().idivn(E)},i.prototype.egcd=function(E){n(E.negative===0),n(!E.isZero());var d=this,o=E.clone();d.negative!==0?d=d.umod(E):d=d.clone();for(var u=new i(1),p=new i(0),y=new i(0),x=new i(1),w=0;d.isEven()&&o.isEven();)d.iushrn(1),o.iushrn(1),++w;for(var v=o.clone(),h=d.clone();!d.isZero();){for(var s=0,b=1;!(d.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(d.iushrn(s);s-- >0;)(u.isOdd()||p.isOdd())&&(u.iadd(v),p.isub(h)),u.iushrn(1),p.iushrn(1);for(var D=0,C=1;!(o.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(o.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(v),x.isub(h)),y.iushrn(1),x.iushrn(1);d.cmp(o)>=0?(d.isub(o),u.isub(y),p.isub(x)):(o.isub(d),y.isub(u),x.isub(p))}return{a:y,b:x,gcd:o.iushln(w)}},i.prototype._invmp=function(E){n(E.negative===0),n(!E.isZero());var d=this,o=E.clone();d.negative!==0?d=d.umod(E):d=d.clone();for(var u=new i(1),p=new i(0),y=o.clone();d.cmpn(1)>0&&o.cmpn(1)>0;){for(var x=0,w=1;!(d.words[0]&w)&&x<26;++x,w<<=1);if(x>0)for(d.iushrn(x);x-- >0;)u.isOdd()&&u.iadd(y),u.iushrn(1);for(var v=0,h=1;!(o.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(o.iushrn(v);v-- >0;)p.isOdd()&&p.iadd(y),p.iushrn(1);d.cmp(o)>=0?(d.isub(o),u.isub(p)):(o.isub(d),p.isub(u))}var s;return d.cmpn(1)===0?s=u:s=p,s.cmpn(0)<0&&s.iadd(E),s},i.prototype.gcd=function(E){if(this.isZero())return E.abs();if(E.isZero())return this.abs();var d=this.clone(),o=E.clone();d.negative=0,o.negative=0;for(var u=0;d.isEven()&&o.isEven();u++)d.iushrn(1),o.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;o.isEven();)o.iushrn(1);var p=d.cmp(o);if(p<0){var y=d;d=o,o=y}else if(p===0||o.cmpn(1)===0)break;d.isub(o)}while(!0);return o.iushln(u)},i.prototype.invm=function(E){return this.egcd(E).a.umod(E)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(E){return this.words[0]&E},i.prototype.bincn=function(E){n(typeof E=="number");var d=E%26,o=(E-d)/26,u=1<>>26,x&=67108863,this.words[y]=x}return p!==0&&(this.words[y]=p,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(E){var d=E<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var o;if(this.length>1)o=1;else{d&&(E=-E),n(E<=67108863,"Number is too big");var u=this.words[0]|0;o=u===E?0:uE.length)return 1;if(this.length=0;o--){var u=this.words[o]|0,p=E.words[o]|0;if(u!==p){up&&(d=1);break}}return d},i.prototype.gtn=function(E){return this.cmpn(E)===1},i.prototype.gt=function(E){return this.cmp(E)===1},i.prototype.gten=function(E){return this.cmpn(E)>=0},i.prototype.gte=function(E){return this.cmp(E)>=0},i.prototype.ltn=function(E){return this.cmpn(E)===-1},i.prototype.lt=function(E){return this.cmp(E)===-1},i.prototype.lten=function(E){return this.cmpn(E)<=0},i.prototype.lte=function(E){return this.cmp(E)<=0},i.prototype.eqn=function(E){return this.cmpn(E)===0},i.prototype.eq=function(E){return this.cmp(E)===0},i.red=function(E){return new te(E)},i.prototype.toRed=function(E){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),E.convertTo(this)._forceRed(E)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(E){return this.red=E,this},i.prototype.forceRed=function(E){return n(!this.red,"Already a number in reduction context"),this._forceRed(E)},i.prototype.redAdd=function(E){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,E)},i.prototype.redIAdd=function(E){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E)},i.prototype.redSub=function(E){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,E)},i.prototype.redISub=function(E){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,E)},i.prototype.redShl=function(E){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,E)},i.prototype.redMul=function(E){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,E),this.red.mul(this,E)},i.prototype.redIMul=function(E){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,E),this.red.imul(this,E)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(E){return n(this.red&&!E.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E)};var U={k256:null,p224:null,p192:null,p25519:null};function V(G,E){this.name=G,this.p=new i(E,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var E=new i(null);return E.words=new Array(Math.ceil(this.n/13)),E},V.prototype.ireduce=function(E){var d=E,o;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),o=d.bitLength();while(o>this.n);var u=o0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},V.prototype.split=function(E,d){E.iushrn(this.n,0,d)},V.prototype.imulK=function(E){return E.imul(this.k)};function j(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(j,V),j.prototype.split=function(E,d){for(var o=4194303,u=Math.min(E.length,9),p=0;p>>22,y=x}y>>>=22,E.words[p-10]=y,y===0&&E.length>10?E.length-=10:E.length-=9},j.prototype.imulK=function(E){E.words[E.length]=0,E.words[E.length+1]=0,E.length+=2;for(var d=0,o=0;o>>=26,E.words[o]=p,d=u}return d!==0&&(E.words[E.length++]=d),E},i._prime=function(E){if(U[E])return U[E];var d;if(E==="k256")d=new j;else if(E==="p224")d=new N;else if(E==="p192")d=new K;else if(E==="p25519")d=new J;else throw new Error("Unknown prime "+E);return U[E]=d,d};function te(G){if(typeof G=="string"){var E=i._prime(G);this.m=E.p,this.prime=E}else n(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}te.prototype._verify1=function(E){n(E.negative===0,"red works only with positives"),n(E.red,"red works only with red numbers")},te.prototype._verify2=function(E,d){n((E.negative|d.negative)===0,"red works only with positives"),n(E.red&&E.red===d.red,"red works only with red numbers")},te.prototype.imod=function(E){return this.prime?this.prime.ireduce(E)._forceRed(this):E.umod(this.m)._forceRed(this)},te.prototype.neg=function(E){return E.isZero()?E.clone():this.m.sub(E)._forceRed(this)},te.prototype.add=function(E,d){this._verify2(E,d);var o=E.add(d);return o.cmp(this.m)>=0&&o.isub(this.m),o._forceRed(this)},te.prototype.iadd=function(E,d){this._verify2(E,d);var o=E.iadd(d);return o.cmp(this.m)>=0&&o.isub(this.m),o},te.prototype.sub=function(E,d){this._verify2(E,d);var o=E.sub(d);return o.cmpn(0)<0&&o.iadd(this.m),o._forceRed(this)},te.prototype.isub=function(E,d){this._verify2(E,d);var o=E.isub(d);return o.cmpn(0)<0&&o.iadd(this.m),o},te.prototype.shl=function(E,d){return this._verify1(E),this.imod(E.ushln(d))},te.prototype.imul=function(E,d){return this._verify2(E,d),this.imod(E.imul(d))},te.prototype.mul=function(E,d){return this._verify2(E,d),this.imod(E.mul(d))},te.prototype.isqr=function(E){return this.imul(E,E.clone())},te.prototype.sqr=function(E){return this.mul(E,E)},te.prototype.sqrt=function(E){if(E.isZero())return E.clone();var d=this.m.andln(3);if(n(d%2===1),d===3){var o=this.m.add(new i(1)).iushrn(2);return this.pow(E,o)}for(var u=this.m.subn(1),p=0;!u.isZero()&&u.andln(1)===0;)p++,u.iushrn(1);n(!u.isZero());var y=new i(1).toRed(this),x=y.redNeg(),w=this.m.subn(1).iushrn(1),v=this.m.bitLength();for(v=new i(2*v*v).toRed(this);this.pow(v,w).cmp(x)!==0;)v.redIAdd(x);for(var h=this.pow(v,u),s=this.pow(E,u.addn(1).iushrn(1)),b=this.pow(E,u),D=p;b.cmp(y)!==0;){for(var C=b,F=0;C.cmp(y)!==0;F++)C=C.redSqr();n(F=0;p--){for(var h=d.words[p],s=v-1;s>=0;s--){var b=h>>s&1;if(y!==u[0]&&(y=this.sqr(y)),b===0&&x===0){w=0;continue}x<<=1,x|=b,w++,!(w!==o&&(p!==0||s!==0))&&(y=this.mul(y,u[x]),w=0,x=0)}v=26}return y},te.prototype.convertTo=function(E){var d=E.umod(this.m);return d===E?d.clone():d},te.prototype.convertFrom=function(E){var d=E.clone();return d.red=null,d},i.mont=function(E){return new ee(E)};function ee(G){te.call(this,G),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)}a(ee,te),ee.prototype.convertTo=function(E){return this.imod(E.ushln(this.shift))},ee.prototype.convertFrom=function(E){var d=this.imod(E.mul(this.rinv));return d.red=null,d},ee.prototype.imul=function(E,d){if(E.isZero()||d.isZero())return E.words[0]=0,E.length=1,E;var o=E.imul(d),u=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=o.isub(u).iushrn(this.shift),y=p;return p.cmp(this.m)>=0?y=p.isub(this.m):p.cmpn(0)<0&&(y=p.iadd(this.m)),y._forceRed(this)},ee.prototype.mul=function(E,d){if(E.isZero()||d.isZero())return new i(0)._forceRed(this);var o=E.mul(d),u=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=o.isub(u).iushrn(this.shift),y=p;return p.cmp(this.m)>=0?y=p.isub(this.m):p.cmpn(0)<0&&(y=p.iadd(this.m)),y._forceRed(this)},ee.prototype.invm=function(E){var d=this.imod(E._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(e,Oe)})(K5);var br=K5.exports;const Q$=Nr(br);var dc={exports:{}},xm;function G5(){if(xm)return dc.exports;xm=1;var e;dc.exports=function(a){return e||(e=new t(null)),e.generate(a)};function t(n){this.rand=n}if(dc.exports.Rand=t,t.prototype.generate=function(a){return this._rand(a)},t.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var i=new Uint8Array(a),f=0;f=0);return l},r.prototype._randrange=function(a,i){var f=i.sub(a);return a.add(this._randbelow(f))},r.prototype.test=function(a,i,f){var l=a.bitLength(),c=e.mont(a),m=new e(1).toRed(c);i||(i=Math.max(1,l/48|0));for(var g=a.subn(1),_=0;!g.testn(_);_++);for(var S=a.shrn(_),M=g.toRed(c),P=!0;i>0;i--){var I=this._randrange(new e(2),g);f&&f(I);var B=I.toRed(c).redPow(S);if(!(B.cmp(m)===0||B.cmp(M)===0)){for(var R=1;R<_;R++){if(B=B.redSqr(),B.cmp(m)===0)return!1;if(B.cmp(M)===0)break}if(R===_)return!1}}return P},r.prototype.getDivisor=function(a,i){var f=a.bitLength(),l=e.mont(a),c=new e(1).toRed(l);i||(i=Math.max(1,f/48|0));for(var m=a.subn(1),g=0;!m.testn(g);g++);for(var _=a.shrn(g),S=m.toRed(l);i>0;i--){var M=this._randrange(new e(2),m),P=a.gcd(M);if(P.cmpn(1)!==0)return P;var I=M.toRed(l).redPow(_);if(!(I.cmp(c)===0||I.cmp(S)===0)){for(var B=1;BR;)U.ishrn(1);if(U.isEven()&&U.iadd(i),U.testn(1)||U.iadd(f),A.cmp(f)){if(!A.cmp(l))for(;U.mod(c).cmp(m);)U.iadd(_)}else for(;U.mod(r).cmp(g);)U.iadd(_);if(V=U.shrn(1),P(V)&&P(U)&&I(V)&&I(U)&&a.test(V)&&a.test(U))return U}}return $3}const eH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},tH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},rH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},nH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},iH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},aH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},oH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},fH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},sH={modp1:eH,modp2:tH,modp5:rH,modp14:nH,modp15:iH,modp16:aH,modp17:oH,modp18:fH};var H3,Sm;function uH(){if(Sm)return H3;Sm=1;var e=br,t=iM(),r=new t,n=new e(24),a=new e(11),i=new e(10),f=new e(3),l=new e(7),c=aM(),m=f0;H3=P;function g(B,R){return R=R||"utf8",Te.Buffer.isBuffer(B)||(B=new Te.Buffer(B,R)),this._pub=new e(B),this}function _(B,R){return R=R||"utf8",Te.Buffer.isBuffer(B)||(B=new Te.Buffer(B,R)),this._priv=new e(B),this}var S={};function M(B,R){var A=R.toString("hex"),U=[A,B.toString(16)].join("_");if(U in S)return S[U];var V=0;if(B.isEven()||!c.simpleSieve||!c.fermatTest(B)||!r.test(B))return V+=1,A==="02"||A==="05"?V+=8:V+=4,S[U]=V,V;r.test(B.shrn(1))||(V+=2);var j;switch(A){case"02":B.mod(n).cmp(a)&&(V+=8);break;case"05":j=B.mod(i),j.cmp(f)&&j.cmp(l)&&(V+=8);break;default:V+=4}return S[U]=V,V}function P(B,R,A){this.setGenerator(R),this.__prime=new e(B),this._prime=e.mont(this.__prime),this._primeLen=B.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,A?(this.setPublicKey=g,this.setPrivateKey=_):this._primeCode=8}Object.defineProperty(P.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=M(this.__prime,this.__gen)),this._primeCode}}),P.prototype.generateKeys=function(){return this._priv||(this._priv=new e(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},P.prototype.computeSecret=function(B){B=new e(B),B=B.toRed(this._prime);var R=B.redPow(this._priv).fromRed(),A=new Te.Buffer(R.toArray()),U=this.getPrime();if(A.length0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),n(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[x]|=w<>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);else if(p==="le")for(y=0,x=0;y>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);return this._strip()};function l(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;n(!1,"Invalid character in "+d)}function c(d,o,u){var p=l(d,u);return u-1>=o&&(p|=l(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y=u;y-=2)v=c(o,u,y)<=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8;else{var h=o.length-u;for(y=h%2===0?u+1:u;y=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8}this._strip()};function m(d,o,u,p){for(var y=0,x=0,w=Math.min(d.length,u),v=o;v=49?x=h-49+10:h>=17?x=h-17+10:x=h,n(h>=0&&x1&&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")]=_}catch{i.prototype.inspect=_}else i.prototype.inspect=_;function _(){return(this.red?""}var S=["","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"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var y=0,x=0,w=0;w>>24-y&16777215,y+=2,y>=26&&(y-=26,w--),x!==0||w!==this.length-1?p=S[6-h.length]+h+p:p=h+p}for(x!==0&&(p=x.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var s=M[o],b=P[o];p="";var D=this.clone();for(D.negative=0;!D.isZero();){var C=D.modrn(b).toString(o);D=D.idivn(b),D.isZero()?p=C+p:p=S[s-C.length]+C+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},f&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(f,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var I=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var y=this.byteLength(),x=p||Math.max(1,y);n(y<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var w=I(o,x),v=u==="le"?"LE":"BE";return this["_toArrayLike"+v](w,y),w},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,y=0,x=0,w=0;x>8&255),p>16&255),w===6?(p>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p=0&&(o[p--]=v>>8&255),p>=0&&(o[p--]=v>>16&255),w===6?(p>=0&&(o[p--]=v>>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p>=0)for(o[p--]=y;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return u&8191||(p+=13,u>>>=13),u&127||(p+=7,u>>>=7),u&15||(p+=4,u>>>=4),u&3||(p+=2,u>>>=2),u&1||p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function B(d){for(var o=new Array(d.bitLength()),u=0;u>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;uo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;po.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var y=0;yo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){n(typeof o=="number"&&o>=0);var p=o/26|0,y=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<o.length?(p=this,y=o):(p=o,y=this);for(var x=0,w=0;w>>26;for(;x!==0&&w>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;wo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,x;p>0?(y=this,x=o):(y=o,x=this);for(var w=0,v=0;v>26,this.words[v]=u&67108863;for(;w!==0&&v>26,this.words[v]=u&67108863;if(w===0&&v>>26,D=h&67108863,C=Math.min(s,o.length-1),F=Math.max(0,s-d.length+1);F<=C;F++){var $=s-F|0;y=d.words[$]|0,x=o.words[F]|0,w=y*x+D,b+=w/67108864|0,D=w&67108863}u.words[s]=D|0,h=b|0}return h!==0?u.words[s]=h|0:u.length--,u._strip()}var A=function(o,u,p){var y=o.words,x=u.words,w=p.words,v=0,h,s,b,D=y[0]|0,C=D&8191,F=D>>>13,$=y[1]|0,H=$&8191,X=$>>>13,z=y[2]|0,k=z&8191,L=z>>>13,oe=y[3]|0,re=oe&8191,se=oe>>>13,Y=y[4]|0,T=Y&8191,O=Y>>>13,W=y[5]|0,ie=W&8191,ue=W>>>13,we=y[6]|0,_e=we&8191,Z=we>>>13,le=y[7]|0,fe=le&8191,pe=le>>>13,Ce=y[8]|0,Me=Ce&8191,Ee=Ce>>>13,ne=y[9]|0,me=ne&8191,ye=ne>>>13,Ie=x[0]|0,he=Ie&8191,ve=Ie>>>13,Q=x[1]|0,xe=Q&8191,Ae=Q>>>13,q=x[2]|0,be=q&8191,de=q>>>13,ae=x[3]|0,ce=ae&8191,ge=ae>>>13,Ue=x[4]|0,Re=Ue&8191,Se=Ue>>>13,Ve=x[5]|0,je=Ve&8191,ke=Ve>>>13,Ze=x[6]|0,Ne=Ze&8191,Be=Ze>>>13,et=x[7]|0,$e=et&8191,De=et>>>13,Qe=x[8]|0,qe=Qe&8191,Le=Qe>>>13,rt=x[9]|0,ze=rt&8191,Ge=rt>>>13;p.negative=o.negative^u.negative,p.length=19,h=Math.imul(C,he),s=Math.imul(C,ve),s=s+Math.imul(F,he)|0,b=Math.imul(F,ve);var Et=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(H,he),s=Math.imul(H,ve),s=s+Math.imul(X,he)|0,b=Math.imul(X,ve),h=h+Math.imul(C,xe)|0,s=s+Math.imul(C,Ae)|0,s=s+Math.imul(F,xe)|0,b=b+Math.imul(F,Ae)|0;var Ct=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h=Math.imul(k,he),s=Math.imul(k,ve),s=s+Math.imul(L,he)|0,b=Math.imul(L,ve),h=h+Math.imul(H,xe)|0,s=s+Math.imul(H,Ae)|0,s=s+Math.imul(X,xe)|0,b=b+Math.imul(X,Ae)|0,h=h+Math.imul(C,be)|0,s=s+Math.imul(C,de)|0,s=s+Math.imul(F,be)|0,b=b+Math.imul(F,de)|0;var Mt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,h=Math.imul(re,he),s=Math.imul(re,ve),s=s+Math.imul(se,he)|0,b=Math.imul(se,ve),h=h+Math.imul(k,xe)|0,s=s+Math.imul(k,Ae)|0,s=s+Math.imul(L,xe)|0,b=b+Math.imul(L,Ae)|0,h=h+Math.imul(H,be)|0,s=s+Math.imul(H,de)|0,s=s+Math.imul(X,be)|0,b=b+Math.imul(X,de)|0,h=h+Math.imul(C,ce)|0,s=s+Math.imul(C,ge)|0,s=s+Math.imul(F,ce)|0,b=b+Math.imul(F,ge)|0;var At=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(At>>>26)|0,At&=67108863,h=Math.imul(T,he),s=Math.imul(T,ve),s=s+Math.imul(O,he)|0,b=Math.imul(O,ve),h=h+Math.imul(re,xe)|0,s=s+Math.imul(re,Ae)|0,s=s+Math.imul(se,xe)|0,b=b+Math.imul(se,Ae)|0,h=h+Math.imul(k,be)|0,s=s+Math.imul(k,de)|0,s=s+Math.imul(L,be)|0,b=b+Math.imul(L,de)|0,h=h+Math.imul(H,ce)|0,s=s+Math.imul(H,ge)|0,s=s+Math.imul(X,ce)|0,b=b+Math.imul(X,ge)|0,h=h+Math.imul(C,Re)|0,s=s+Math.imul(C,Se)|0,s=s+Math.imul(F,Re)|0,b=b+Math.imul(F,Se)|0;var Rt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,h=Math.imul(ie,he),s=Math.imul(ie,ve),s=s+Math.imul(ue,he)|0,b=Math.imul(ue,ve),h=h+Math.imul(T,xe)|0,s=s+Math.imul(T,Ae)|0,s=s+Math.imul(O,xe)|0,b=b+Math.imul(O,Ae)|0,h=h+Math.imul(re,be)|0,s=s+Math.imul(re,de)|0,s=s+Math.imul(se,be)|0,b=b+Math.imul(se,de)|0,h=h+Math.imul(k,ce)|0,s=s+Math.imul(k,ge)|0,s=s+Math.imul(L,ce)|0,b=b+Math.imul(L,ge)|0,h=h+Math.imul(H,Re)|0,s=s+Math.imul(H,Se)|0,s=s+Math.imul(X,Re)|0,b=b+Math.imul(X,Se)|0,h=h+Math.imul(C,je)|0,s=s+Math.imul(C,ke)|0,s=s+Math.imul(F,je)|0,b=b+Math.imul(F,ke)|0;var qt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(qt>>>26)|0,qt&=67108863,h=Math.imul(_e,he),s=Math.imul(_e,ve),s=s+Math.imul(Z,he)|0,b=Math.imul(Z,ve),h=h+Math.imul(ie,xe)|0,s=s+Math.imul(ie,Ae)|0,s=s+Math.imul(ue,xe)|0,b=b+Math.imul(ue,Ae)|0,h=h+Math.imul(T,be)|0,s=s+Math.imul(T,de)|0,s=s+Math.imul(O,be)|0,b=b+Math.imul(O,de)|0,h=h+Math.imul(re,ce)|0,s=s+Math.imul(re,ge)|0,s=s+Math.imul(se,ce)|0,b=b+Math.imul(se,ge)|0,h=h+Math.imul(k,Re)|0,s=s+Math.imul(k,Se)|0,s=s+Math.imul(L,Re)|0,b=b+Math.imul(L,Se)|0,h=h+Math.imul(H,je)|0,s=s+Math.imul(H,ke)|0,s=s+Math.imul(X,je)|0,b=b+Math.imul(X,ke)|0,h=h+Math.imul(C,Ne)|0,s=s+Math.imul(C,Be)|0,s=s+Math.imul(F,Ne)|0,b=b+Math.imul(F,Be)|0;var zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(fe,he),s=Math.imul(fe,ve),s=s+Math.imul(pe,he)|0,b=Math.imul(pe,ve),h=h+Math.imul(_e,xe)|0,s=s+Math.imul(_e,Ae)|0,s=s+Math.imul(Z,xe)|0,b=b+Math.imul(Z,Ae)|0,h=h+Math.imul(ie,be)|0,s=s+Math.imul(ie,de)|0,s=s+Math.imul(ue,be)|0,b=b+Math.imul(ue,de)|0,h=h+Math.imul(T,ce)|0,s=s+Math.imul(T,ge)|0,s=s+Math.imul(O,ce)|0,b=b+Math.imul(O,ge)|0,h=h+Math.imul(re,Re)|0,s=s+Math.imul(re,Se)|0,s=s+Math.imul(se,Re)|0,b=b+Math.imul(se,Se)|0,h=h+Math.imul(k,je)|0,s=s+Math.imul(k,ke)|0,s=s+Math.imul(L,je)|0,b=b+Math.imul(L,ke)|0,h=h+Math.imul(H,Ne)|0,s=s+Math.imul(H,Be)|0,s=s+Math.imul(X,Ne)|0,b=b+Math.imul(X,Be)|0,h=h+Math.imul(C,$e)|0,s=s+Math.imul(C,De)|0,s=s+Math.imul(F,$e)|0,b=b+Math.imul(F,De)|0;var $t=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+($t>>>26)|0,$t&=67108863,h=Math.imul(Me,he),s=Math.imul(Me,ve),s=s+Math.imul(Ee,he)|0,b=Math.imul(Ee,ve),h=h+Math.imul(fe,xe)|0,s=s+Math.imul(fe,Ae)|0,s=s+Math.imul(pe,xe)|0,b=b+Math.imul(pe,Ae)|0,h=h+Math.imul(_e,be)|0,s=s+Math.imul(_e,de)|0,s=s+Math.imul(Z,be)|0,b=b+Math.imul(Z,de)|0,h=h+Math.imul(ie,ce)|0,s=s+Math.imul(ie,ge)|0,s=s+Math.imul(ue,ce)|0,b=b+Math.imul(ue,ge)|0,h=h+Math.imul(T,Re)|0,s=s+Math.imul(T,Se)|0,s=s+Math.imul(O,Re)|0,b=b+Math.imul(O,Se)|0,h=h+Math.imul(re,je)|0,s=s+Math.imul(re,ke)|0,s=s+Math.imul(se,je)|0,b=b+Math.imul(se,ke)|0,h=h+Math.imul(k,Ne)|0,s=s+Math.imul(k,Be)|0,s=s+Math.imul(L,Ne)|0,b=b+Math.imul(L,Be)|0,h=h+Math.imul(H,$e)|0,s=s+Math.imul(H,De)|0,s=s+Math.imul(X,$e)|0,b=b+Math.imul(X,De)|0,h=h+Math.imul(C,qe)|0,s=s+Math.imul(C,Le)|0,s=s+Math.imul(F,qe)|0,b=b+Math.imul(F,Le)|0;var Ht=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,h=Math.imul(me,he),s=Math.imul(me,ve),s=s+Math.imul(ye,he)|0,b=Math.imul(ye,ve),h=h+Math.imul(Me,xe)|0,s=s+Math.imul(Me,Ae)|0,s=s+Math.imul(Ee,xe)|0,b=b+Math.imul(Ee,Ae)|0,h=h+Math.imul(fe,be)|0,s=s+Math.imul(fe,de)|0,s=s+Math.imul(pe,be)|0,b=b+Math.imul(pe,de)|0,h=h+Math.imul(_e,ce)|0,s=s+Math.imul(_e,ge)|0,s=s+Math.imul(Z,ce)|0,b=b+Math.imul(Z,ge)|0,h=h+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Se)|0,s=s+Math.imul(ue,Re)|0,b=b+Math.imul(ue,Se)|0,h=h+Math.imul(T,je)|0,s=s+Math.imul(T,ke)|0,s=s+Math.imul(O,je)|0,b=b+Math.imul(O,ke)|0,h=h+Math.imul(re,Ne)|0,s=s+Math.imul(re,Be)|0,s=s+Math.imul(se,Ne)|0,b=b+Math.imul(se,Be)|0,h=h+Math.imul(k,$e)|0,s=s+Math.imul(k,De)|0,s=s+Math.imul(L,$e)|0,b=b+Math.imul(L,De)|0,h=h+Math.imul(H,qe)|0,s=s+Math.imul(H,Le)|0,s=s+Math.imul(X,qe)|0,b=b+Math.imul(X,Le)|0,h=h+Math.imul(C,ze)|0,s=s+Math.imul(C,Ge)|0,s=s+Math.imul(F,ze)|0,b=b+Math.imul(F,Ge)|0;var Kt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(me,xe),s=Math.imul(me,Ae),s=s+Math.imul(ye,xe)|0,b=Math.imul(ye,Ae),h=h+Math.imul(Me,be)|0,s=s+Math.imul(Me,de)|0,s=s+Math.imul(Ee,be)|0,b=b+Math.imul(Ee,de)|0,h=h+Math.imul(fe,ce)|0,s=s+Math.imul(fe,ge)|0,s=s+Math.imul(pe,ce)|0,b=b+Math.imul(pe,ge)|0,h=h+Math.imul(_e,Re)|0,s=s+Math.imul(_e,Se)|0,s=s+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Se)|0,h=h+Math.imul(ie,je)|0,s=s+Math.imul(ie,ke)|0,s=s+Math.imul(ue,je)|0,b=b+Math.imul(ue,ke)|0,h=h+Math.imul(T,Ne)|0,s=s+Math.imul(T,Be)|0,s=s+Math.imul(O,Ne)|0,b=b+Math.imul(O,Be)|0,h=h+Math.imul(re,$e)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(se,$e)|0,b=b+Math.imul(se,De)|0,h=h+Math.imul(k,qe)|0,s=s+Math.imul(k,Le)|0,s=s+Math.imul(L,qe)|0,b=b+Math.imul(L,Le)|0,h=h+Math.imul(H,ze)|0,s=s+Math.imul(H,Ge)|0,s=s+Math.imul(X,ze)|0,b=b+Math.imul(X,Ge)|0;var Gt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(me,be),s=Math.imul(me,de),s=s+Math.imul(ye,be)|0,b=Math.imul(ye,de),h=h+Math.imul(Me,ce)|0,s=s+Math.imul(Me,ge)|0,s=s+Math.imul(Ee,ce)|0,b=b+Math.imul(Ee,ge)|0,h=h+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Se)|0,s=s+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Se)|0,h=h+Math.imul(_e,je)|0,s=s+Math.imul(_e,ke)|0,s=s+Math.imul(Z,je)|0,b=b+Math.imul(Z,ke)|0,h=h+Math.imul(ie,Ne)|0,s=s+Math.imul(ie,Be)|0,s=s+Math.imul(ue,Ne)|0,b=b+Math.imul(ue,Be)|0,h=h+Math.imul(T,$e)|0,s=s+Math.imul(T,De)|0,s=s+Math.imul(O,$e)|0,b=b+Math.imul(O,De)|0,h=h+Math.imul(re,qe)|0,s=s+Math.imul(re,Le)|0,s=s+Math.imul(se,qe)|0,b=b+Math.imul(se,Le)|0,h=h+Math.imul(k,ze)|0,s=s+Math.imul(k,Ge)|0,s=s+Math.imul(L,ze)|0,b=b+Math.imul(L,Ge)|0;var Wt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(me,ce),s=Math.imul(me,ge),s=s+Math.imul(ye,ce)|0,b=Math.imul(ye,ge),h=h+Math.imul(Me,Re)|0,s=s+Math.imul(Me,Se)|0,s=s+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Se)|0,h=h+Math.imul(fe,je)|0,s=s+Math.imul(fe,ke)|0,s=s+Math.imul(pe,je)|0,b=b+Math.imul(pe,ke)|0,h=h+Math.imul(_e,Ne)|0,s=s+Math.imul(_e,Be)|0,s=s+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,Be)|0,h=h+Math.imul(ie,$e)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(ue,$e)|0,b=b+Math.imul(ue,De)|0,h=h+Math.imul(T,qe)|0,s=s+Math.imul(T,Le)|0,s=s+Math.imul(O,qe)|0,b=b+Math.imul(O,Le)|0,h=h+Math.imul(re,ze)|0,s=s+Math.imul(re,Ge)|0,s=s+Math.imul(se,ze)|0,b=b+Math.imul(se,Ge)|0;var Vt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(me,Re),s=Math.imul(me,Se),s=s+Math.imul(ye,Re)|0,b=Math.imul(ye,Se),h=h+Math.imul(Me,je)|0,s=s+Math.imul(Me,ke)|0,s=s+Math.imul(Ee,je)|0,b=b+Math.imul(Ee,ke)|0,h=h+Math.imul(fe,Ne)|0,s=s+Math.imul(fe,Be)|0,s=s+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Be)|0,h=h+Math.imul(_e,$e)|0,s=s+Math.imul(_e,De)|0,s=s+Math.imul(Z,$e)|0,b=b+Math.imul(Z,De)|0,h=h+Math.imul(ie,qe)|0,s=s+Math.imul(ie,Le)|0,s=s+Math.imul(ue,qe)|0,b=b+Math.imul(ue,Le)|0,h=h+Math.imul(T,ze)|0,s=s+Math.imul(T,Ge)|0,s=s+Math.imul(O,ze)|0,b=b+Math.imul(O,Ge)|0;var Zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(me,je),s=Math.imul(me,ke),s=s+Math.imul(ye,je)|0,b=Math.imul(ye,ke),h=h+Math.imul(Me,Ne)|0,s=s+Math.imul(Me,Be)|0,s=s+Math.imul(Ee,Ne)|0,b=b+Math.imul(Ee,Be)|0,h=h+Math.imul(fe,$e)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(pe,$e)|0,b=b+Math.imul(pe,De)|0,h=h+Math.imul(_e,qe)|0,s=s+Math.imul(_e,Le)|0,s=s+Math.imul(Z,qe)|0,b=b+Math.imul(Z,Le)|0,h=h+Math.imul(ie,ze)|0,s=s+Math.imul(ie,Ge)|0,s=s+Math.imul(ue,ze)|0,b=b+Math.imul(ue,Ge)|0;var cr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863,h=Math.imul(me,Ne),s=Math.imul(me,Be),s=s+Math.imul(ye,Ne)|0,b=Math.imul(ye,Be),h=h+Math.imul(Me,$e)|0,s=s+Math.imul(Me,De)|0,s=s+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,De)|0,h=h+Math.imul(fe,qe)|0,s=s+Math.imul(fe,Le)|0,s=s+Math.imul(pe,qe)|0,b=b+Math.imul(pe,Le)|0,h=h+Math.imul(_e,ze)|0,s=s+Math.imul(_e,Ge)|0,s=s+Math.imul(Z,ze)|0,b=b+Math.imul(Z,Ge)|0;var hr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(me,$e),s=Math.imul(me,De),s=s+Math.imul(ye,$e)|0,b=Math.imul(ye,De),h=h+Math.imul(Me,qe)|0,s=s+Math.imul(Me,Le)|0,s=s+Math.imul(Ee,qe)|0,b=b+Math.imul(Ee,Le)|0,h=h+Math.imul(fe,ze)|0,s=s+Math.imul(fe,Ge)|0,s=s+Math.imul(pe,ze)|0,b=b+Math.imul(pe,Ge)|0;var dr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(dr>>>26)|0,dr&=67108863,h=Math.imul(me,qe),s=Math.imul(me,Le),s=s+Math.imul(ye,qe)|0,b=Math.imul(ye,Le),h=h+Math.imul(Me,ze)|0,s=s+Math.imul(Me,Ge)|0,s=s+Math.imul(Ee,ze)|0,b=b+Math.imul(Ee,Ge)|0;var Yr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,h=Math.imul(me,ze),s=Math.imul(me,Ge),s=s+Math.imul(ye,ze)|0,b=Math.imul(ye,Ge);var Jr=(v+h|0)+((s&8191)<<13)|0;return v=(b+(s>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w[0]=Et,w[1]=Ct,w[2]=Mt,w[3]=At,w[4]=Rt,w[5]=qt,w[6]=zt,w[7]=$t,w[8]=Ht,w[9]=Kt,w[10]=Gt,w[11]=Wt,w[12]=Vt,w[13]=Zt,w[14]=cr,w[15]=hr,w[16]=dr,w[17]=Yr,w[18]=Jr,v!==0&&(w[19]=v,p.length++),p};Math.imul||(A=R);function U(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,y=0,x=0;x>>26)|0,y+=w>>>26,w&=67108863}u.words[x]=v,p=w,w=y}return p!==0?u.words[x]=p:u.length--,u._strip()}function V(d,o,u){return U(d,o,u)}i.prototype.mulTo=function(o,u){var p,y=this.length+o.length;return this.length===10&&o.length===10?p=A(this,o,u):y<63?p=R(this,o,u):y<1024?p=U(this,o,u):p=V(this,o,u),p},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),V(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var p=0,y=0;y>=26,p+=x/67108864|0,p+=w>>>26,this.words[y]=w&67108863}return p!==0&&(this.words[y]=p,this.length++),u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=B(o);if(u.length===0)return new i(1);for(var p=this,y=0;y=0);var u=o%26,p=(o-u)/26,y=67108863>>>26-u<<26-u,x;if(u!==0){var w=0;for(x=0;x>>26-u}w&&(this.words[x]=w,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x=0);var y;u?y=(u-u%26)/26:y=0;var x=o%26,w=Math.min((o-x)/26,this.length),v=67108863^67108863>>>x<w)for(this.length-=w,s=0;s=0&&(b!==0||s>=y);s--){var D=this.words[s]|0;this.words[s]=b<<26-x|D>>>x,b=D&v}return h&&b!==0&&(h.words[h.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return n(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,y=1<=0);var u=o%26,p=(o-u)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var y=67108863^67108863>>>u<=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u>26)-(h/67108864|0),this.words[x+p]=w&67108863}for(;x>26,this.words[x+p]=w&67108863;if(v===0)return this._strip();for(n(v===-1),v=0,x=0;x>26,this.words[x]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,y=this.clone(),x=o,w=x.words[x.length-1]|0,v=this._countBits(w);p=26-v,p!==0&&(x=x.ushln(p),y.iushln(p),w=x.words[x.length-1]|0);var h=y.length-x.length,s;if(u!=="mod"){s=new i(null),s.length=h+1,s.words=new Array(s.length);for(var b=0;b=0;C--){var F=(y.words[x.length+C]|0)*67108864+(y.words[x.length+C-1]|0);for(F=Math.min(F/w|0,67108863),y._ishlnsubmul(x,F,C);y.negative!==0;)F--,y.negative=0,y._ishlnsubmul(x,1,C),y.isZero()||(y.negative^=1);s&&(s.words[C]=F)}return s&&s._strip(),y._strip(),u!=="div"&&p!==0&&y.iushrn(p),{div:s||null,mod:y}},i.prototype.divmod=function(o,u,p){if(n(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,x,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,u),u!=="mod"&&(y=w.div.neg()),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.iadd(o)),{div:y,mod:x}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),u),u!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),u),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.isub(o)),{div:w.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),x=o.andln(1),w=p.cmp(y);return w<0||x===1&&w===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=(1<<26)%o,y=0,x=this.length-1;x>=0;x--)y=(p*y+(this.words[x]|0))%o;return u?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var x=(this.words[y]|0)+p*67108864;this.words[y]=x/o|0,p=x%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=new i(0),v=new i(1),h=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++h;for(var s=p.clone(),b=u.clone();!u.isZero();){for(var D=0,C=1;!(u.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(u.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(s),x.isub(b)),y.iushrn(1),x.iushrn(1);for(var F=0,$=1;!(p.words[0]&$)&&F<26;++F,$<<=1);if(F>0)for(p.iushrn(F);F-- >0;)(w.isOdd()||v.isOdd())&&(w.iadd(s),v.isub(b)),w.iushrn(1),v.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(w),x.isub(v)):(p.isub(u),w.isub(y),v.isub(x))}return{a:w,b:v,gcd:p.iushln(h)}},i.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var v=0,h=1;!(u.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(u.iushrn(v);v-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var s=0,b=1;!(p.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(p.iushrn(s);s-- >0;)x.isOdd()&&x.iadd(w),x.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(x)):(p.isub(u),x.isub(y))}var D;return u.cmpn(1)===0?D=y:D=x,D.cmpn(0)<0&&D.iadd(o),D},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var y=0;u.isEven()&&p.isEven();y++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=u.cmp(p);if(x<0){var w=u;u=p,p=w}else if(x===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){n(typeof o=="number");var u=o%26,p=(o-u)/26,y=1<>>26,v&=67108863,this.words[w]=v}return x!==0&&(this.words[w]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;p=y===o?0:yo.length)return 1;if(this.length=0;p--){var y=this.words[p]|0,x=o.words[p]|0;if(y!==x){yx&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new G(o)},i.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function N(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},N.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var y=p0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},N.prototype.split=function(o,u){o.iushrn(this.n,0,u)},N.prototype.imulK=function(o){return o.imul(this.k)};function K(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(K,N),K.prototype.split=function(o,u){for(var p=4194303,y=Math.min(o.length,9),x=0;x>>22,w=v}w>>>=22,o.words[x-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},K.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p>>=26,o.words[p]=x,u=y}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(j[o])return j[o];var u;if(o==="k256")u=new K;else if(o==="p224")u=new J;else if(o==="p192")u=new te;else if(o==="p25519")u=new ee;else throw new Error("Unknown prime "+o);return j[o]=u,u};function G(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else n(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}G.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},G.prototype._verify2=function(o,u){n((o.negative|u.negative)===0,"red works only with positives"),n(o.red&&o.red===u.red,"red works only with red numbers")},G.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},G.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},G.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},G.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},G.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},G.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},G.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},G.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},G.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},G.prototype.isqr=function(o){return this.imul(o,o.clone())},G.prototype.sqr=function(o){return this.mul(o,o)},G.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(n(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);n(!y.isZero());var w=new i(1).toRed(this),v=w.redNeg(),h=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,h).cmp(v)!==0;)s.redIAdd(v);for(var b=this.pow(s,y),D=this.pow(o,y.addn(1).iushrn(1)),C=this.pow(o,y),F=x;C.cmp(w)!==0;){for(var $=C,H=0;$.cmp(w)!==0;H++)$=$.redSqr();n(H=0;x--){for(var b=u.words[x],D=s-1;D>=0;D--){var C=b>>D&1;if(w!==y[0]&&(w=this.sqr(w)),C===0&&v===0){h=0;continue}v<<=1,v|=C,h++,!(h!==p&&(x!==0||D!==0))&&(w=this.mul(w,y[v]),h=0,v=0)}s=26}return w},G.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},G.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new E(o)};function E(d){G.call(this,d),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)}a(E,G),E.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},E.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},E.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(e,Oe)})(W5);var cH=W5.exports,bs=cH,hH=f0;function dH(e){var t=oM(e),r=t.toRed(bs.mont(e.modulus)).redPow(new bs(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function oM(e){var t=e.modulus.byteLength(),r;do r=new bs(hH(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function fM(e,t){var r=dH(t),n=t.modulus.byteLength(),a=new bs(e).mul(r.blinder).umod(t.modulus),i=a.toRed(bs.mont(t.prime1)),f=a.toRed(bs.mont(t.prime2)),l=t.coefficient,c=t.prime1,m=t.prime2,g=i.redPow(t.exponent1).fromRed(),_=f.redPow(t.exponent2).fromRed(),S=g.isub(_).imul(l).umod(c).imul(m);return _.iadd(S).imul(r.unblinder).umod(t.modulus).toArrayLike(Te.Buffer,"be",n)}fM.getr=oM;var V5=fM,K3={};const pH="elliptic",vH="6.5.4",gH="EC cryptography",yH="lib/elliptic.js",mH=["lib"],bH={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/"},xH={type:"git",url:"git@github.com:indutny/elliptic"},wH=["EC","Elliptic","curve","Cryptography"],_H="Fedor Indutny ",SH="MIT",EH={url:"https://github.com/indutny/elliptic/issues"},CH="https://github.com/indutny/elliptic",MH={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"},AH={"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"},RH={name:pH,version:vH,description:gH,main:yH,files:mH,scripts:bH,repository:xH,keywords:wH,author:_H,license:SH,bugs:EH,homepage:CH,devDependencies:MH,dependencies:AH};var Ln={},Z5={};(function(e){var t=e;function r(i,f){if(Array.isArray(i))return i.slice();if(!i)return[];var l=[];if(typeof i!="string"){for(var c=0;c>8,_=m&255;g?l.push(g,_):l.push(_)}return l}t.toArray=r;function n(i){return i.length===1?"0"+i:i}t.zero2=n;function a(i){for(var f="",l=0;l(P>>1)-1?R=(P>>1)-A:R=A,I.isubn(R)):R=0,M[B]=R,I.iushrn(1)}return M}t.getNAF=i;function f(g,_){var S=[[],[]];g=g.clone(),_=_.clone();for(var M=0,P=0,I;g.cmpn(-M)>0||_.cmpn(-P)>0;){var B=g.andln(3)+M&3,R=_.andln(3)+P&3;B===3&&(B=-1),R===3&&(R=-1);var A;B&1?(I=g.andln(7)+M&7,(I===3||I===5)&&R===2?A=-B:A=B):A=0,S[0].push(A);var U;R&1?(I=_.andln(7)+P&7,(I===3||I===5)&&B===2?U=-R:U=R):U=0,S[1].push(U),2*M===A+1&&(M=1-M),2*P===U+1&&(P=1-P),g.iushrn(1),_.iushrn(1)}return S}t.getJSF=f;function l(g,_,S){var M="_"+_;g.prototype[_]=function(){return this[M]!==void 0?this[M]:this[M]=S.call(this)}}t.cachedProperty=l;function c(g){return typeof g=="string"?t.toArray(g,"hex"):g}t.parseBytes=c;function m(g){return new r(g,"hex","le")}t.intFromLE=m})(Ln);var X5={},Go=br,Ml=Ln,K1=Ml.getNAF,TH=Ml.getJSF,G1=Ml.assert;function Fo(e,t){this.type=e,this.p=new Go(t.p,16),this.red=t.prime?Go.red(t.prime):Go.mont(this.p),this.zero=new Go(0).toRed(this.red),this.one=new Go(1).toRed(this.red),this.two=new Go(2).toRed(this.red),this.n=t.n&&new Go(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))}var fd=Fo;Fo.prototype.point=function(){throw new Error("Not implemented")};Fo.prototype.validate=function(){throw new Error("Not implemented")};Fo.prototype._fixedNafMul=function(t,r){G1(t.precomputed);var n=t._getDoubles(),a=K1(r,1,this._bitLength),i=(1<=l;m--)c=(c<<1)+a[m];f.push(c)}for(var g=this.jpoint(null,null,null),_=this.jpoint(null,null,null),S=i;S>0;S--){for(l=0;l=0;c--){for(var m=0;c>=0&&f[c]===0;c--)m++;if(c>=0&&m++,l=l.dblp(m),c<0)break;var g=f[c];G1(g!==0),t.type==="affine"?g>0?l=l.mixedAdd(i[g-1>>1]):l=l.mixedAdd(i[-g-1>>1].neg()):g>0?l=l.add(i[g-1>>1]):l=l.add(i[-g-1>>1].neg())}return t.type==="affine"?l.toP():l};Fo.prototype._wnafMulAdd=function(t,r,n,a,i){var f=this._wnafT1,l=this._wnafT2,c=this._wnafT3,m=0,g,_,S;for(g=0;g=1;g-=2){var P=g-1,I=g;if(f[P]!==1||f[I]!==1){c[P]=K1(n[P],f[P],this._bitLength),c[I]=K1(n[I],f[I],this._bitLength),m=Math.max(c[P].length,m),m=Math.max(c[I].length,m);continue}var B=[r[P],null,null,r[I]];r[P].y.cmp(r[I].y)===0?(B[1]=r[P].add(r[I]),B[2]=r[P].toJ().mixedAdd(r[I].neg())):r[P].y.cmp(r[I].y.redNeg())===0?(B[1]=r[P].toJ().mixedAdd(r[I]),B[2]=r[P].add(r[I].neg())):(B[1]=r[P].toJ().mixedAdd(r[I]),B[2]=r[P].toJ().mixedAdd(r[I].neg()));var R=[-3,-1,-5,-7,0,7,5,1,3],A=TH(n[P],n[I]);for(m=Math.max(A[0].length,m),c[P]=new Array(m),c[I]=new Array(m),_=0;_=0;g--){for(var K=0;g>=0;){var J=!0;for(_=0;_=0&&K++,j=j.dblp(K),g<0)break;for(_=0;_0?S=l[_][te-1>>1]:te<0&&(S=l[_][-te-1>>1].neg()),S.type==="affine"?j=j.mixedAdd(S):j=j.add(S))}}for(g=0;g=Math.ceil((t.bitLength()+1)/r.step):!1};ui.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i=0&&(M=m,P=g),_.negative&&(_=_.neg(),S=S.neg()),M.negative&&(M=M.neg(),P=P.neg()),[{a:_,b:S},{a:M,b:P}]};li.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],a=r[1],i=a.b.mul(t).divRound(this.n),f=n.b.neg().mul(t).divRound(this.n),l=i.mul(n.a),c=f.mul(a.a),m=i.mul(n.b),g=f.mul(a.b),_=t.sub(l).sub(c),S=m.add(g).neg();return{k1:_,k2:S}};li.prototype.pointFromX=function(t,r){t=new rr(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(r&&!i||!r&&i)&&(a=a.redNeg()),this.point(t,a)};li.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,a=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};li.prototype._endoWnafMulAdd=function(t,r,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,f=0;f":""};Rr.prototype.isInfinity=function(){return this.inf};Rr.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),a=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Rr.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(),a=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(a),f=i.redSqr().redISub(this.x.redAdd(this.x)),l=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,l)};Rr.prototype.getX=function(){return this.x.fromRed()};Rr.prototype.getY=function(){return this.y.fromRed()};Rr.prototype.mul=function(t){return t=new rr(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)};Rr.prototype.mulAdd=function(t,r,n){var a=[this,r],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Rr.prototype.jmulAdd=function(t,r,n){var a=[this,r],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Rr.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)};Rr.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,a=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return r};Rr.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 Fr(e,t,r,n){l0.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new rr(0)):(this.x=new rr(t,16),this.y=new rr(r,16),this.z=new rr(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}Y5(Fr,l0.BasePoint);li.prototype.jpoint=function(t,r,n){return new Fr(this,t,r,n)};Fr.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),a=this.y.redMul(r).redMul(t);return this.curve.point(n,a)};Fr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Fr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(r),i=t.x.redMul(n),f=this.y.redMul(r.redMul(t.z)),l=t.y.redMul(n.redMul(this.z)),c=a.redSub(i),m=f.redSub(l);if(c.cmpn(0)===0)return m.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=c.redSqr(),_=g.redMul(c),S=a.redMul(g),M=m.redSqr().redIAdd(_).redISub(S).redISub(S),P=m.redMul(S.redISub(M)).redISub(f.redMul(_)),I=this.z.redMul(t.z).redMul(c);return this.curve.jpoint(M,P,I)};Fr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,a=t.x.redMul(r),i=this.y,f=t.y.redMul(r).redMul(this.z),l=n.redSub(a),c=i.redSub(f);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=l.redSqr(),g=m.redMul(l),_=n.redMul(m),S=c.redSqr().redIAdd(g).redISub(_).redISub(_),M=c.redMul(_.redISub(S)).redISub(i.redMul(g)),P=this.z.redMul(l);return this.curve.jpoint(S,M,P)};Fr.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=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};Fr.prototype.inspect=function(){return this.isInfinity()?"":""};Fr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var os=br,sM=ot,sd=fd,IH=Ln;function c0(e){sd.call(this,"mont",e),this.a=new os(e.a,16).toRed(this.red),this.b=new os(e.b,16).toRed(this.red),this.i4=new os(4).toRed(this.red).redInvm(),this.two=new os(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}sM(c0,sd);var BH=c0;c0.prototype.validate=function(t){var r=t.normalize().x,n=r.redSqr(),a=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Ar(e,t,r){sd.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new os(t,16),this.z=new os(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}sM(Ar,sd.BasePoint);c0.prototype.decodePoint=function(t,r){return this.point(IH.toArray(t,r),1)};c0.prototype.point=function(t,r){return new Ar(this,t,r)};c0.prototype.pointFromJSON=function(t){return Ar.fromJSON(this,t)};Ar.prototype.precompute=function(){};Ar.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Ar.fromJSON=function(t,r){return new Ar(t,r[0],r[1]||t.one)};Ar.prototype.inspect=function(){return this.isInfinity()?"":""};Ar.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Ar.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=r.redSub(a),f=r.redMul(a),l=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(f,l)};Ar.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.diffAdd=function(t,r){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=t.x.redAdd(t.z),f=t.x.redSub(t.z),l=f.redMul(n),c=i.redMul(a),m=r.z.redMul(l.redAdd(c).redSqr()),g=r.x.redMul(l.redISub(c).redSqr());return this.curve.point(m,g)};Ar.prototype.mul=function(t){for(var r=t.clone(),n=this,a=this.curve.point(null,null),i=this,f=[];r.cmpn(0)!==0;r.iushrn(1))f.push(r.andln(1));for(var l=f.length-1;l>=0;l--)f[l]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};Ar.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};Ar.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Ar.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var LH=Ln,_a=br,uM=ot,ud=fd,NH=LH.assert;function ca(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,ud.call(this,"edwards",e),this.a=new _a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new _a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new _a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),NH(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}uM(ca,ud);var DH=ca;ca.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};ca.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};ca.prototype.jpoint=function(t,r,n,a){return this.point(t,r,n,a)};ca.prototype.pointFromX=function(t,r){t=new _a(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),f=a.redMul(i.redInvm()),l=f.redSqrt();if(l.redSqr().redSub(f).cmp(this.zero)!==0)throw new Error("invalid point");var c=l.fromRed().isOdd();return(r&&!c||!r&&c)&&(l=l.redNeg()),this.point(t,l)};ca.prototype.pointFromY=function(t,r){t=new _a(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),f=a.redMul(i.redInvm());if(f.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var l=f.redSqrt();if(l.redSqr().redSub(f).cmp(this.zero)!==0)throw new Error("invalid point");return l.fromRed().isOdd()!==r&&(l=l.redNeg()),this.point(l,t)};ca.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),n=t.y.redSqr(),a=r.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return a.cmp(i)===0};function Lt(e,t,r,n,a){ud.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 _a(t,16),this.y=new _a(r,16),this.z=n?new _a(n,16):this.curve.one,this.t=a&&new _a(a,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()))))}uM(Lt,ud.BasePoint);ca.prototype.pointFromJSON=function(t){return Lt.fromJSON(this,t)};ca.prototype.point=function(t,r,n,a){return new Lt(this,t,r,n,a)};Lt.fromJSON=function(t,r){return new Lt(t,r[0],r[1],r[2])};Lt.prototype.inspect=function(){return this.isInfinity()?"":""};Lt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Lt.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),f=a.redAdd(r),l=f.redSub(n),c=a.redSub(r),m=i.redMul(l),g=f.redMul(c),_=i.redMul(c),S=l.redMul(f);return this.curve.point(m,g,S,_)};Lt.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),a,i,f,l,c,m;if(this.curve.twisted){l=this.curve._mulA(r);var g=l.redAdd(n);this.zOne?(a=t.redSub(r).redSub(n).redMul(g.redSub(this.curve.two)),i=g.redMul(l.redSub(n)),f=g.redSqr().redSub(g).redSub(g)):(c=this.z.redSqr(),m=g.redSub(c).redISub(c),a=t.redSub(r).redISub(n).redMul(m),i=g.redMul(l.redSub(n)),f=g.redMul(m))}else l=r.redAdd(n),c=this.curve._mulC(this.z).redSqr(),m=l.redSub(c).redSub(c),a=this.curve._mulC(t.redISub(l)).redMul(m),i=this.curve._mulC(l).redMul(r.redISub(n)),f=l.redMul(m);return this.curve.point(a,i,f)};Lt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Lt.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)),a=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),f=n.redSub(r),l=i.redSub(a),c=i.redAdd(a),m=n.redAdd(r),g=f.redMul(l),_=c.redMul(m),S=f.redMul(m),M=l.redMul(c);return this.curve.point(g,_,M,S)};Lt.prototype._projAdd=function(t){var r=this.z.redMul(t.z),n=r.redSqr(),a=this.x.redMul(t.x),i=this.y.redMul(t.y),f=this.curve.d.redMul(a).redMul(i),l=n.redSub(f),c=n.redAdd(f),m=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(a).redISub(i),g=r.redMul(l).redMul(m),_,S;return this.curve.twisted?(_=r.redMul(c).redMul(i.redSub(this.curve._mulA(a))),S=l.redMul(c)):(_=r.redMul(c).redMul(i.redSub(a)),S=this.curve._mulC(l).redMul(c)),this.curve.point(g,_,S)};Lt.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Lt.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Lt.prototype.mulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!1)};Lt.prototype.jmulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!0)};Lt.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};Lt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Lt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Lt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Lt.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Lt.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(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(a),this.x.cmp(r)===0)return!0}};Lt.prototype.toP=Lt.prototype.normalize;Lt.prototype.mixedAdd=Lt.prototype.add;(function(e){var t=e;t.base=fd,t.short=kH,t.mont=BH,t.edwards=DH})(X5);var ld={},Al={},ht={},FH=fi,UH=ot;ht.inherits=UH;function jH(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function qH(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),a=0;a>6|192,r[n++]=i&63|128):jH(e,a)?(i=65536+((i&1023)<<10)+(e.charCodeAt(++a)&1023),r[n++]=i>>18|240,r[n++]=i>>12&63|128,r[n++]=i>>6&63|128,r[n++]=i&63|128):(r[n++]=i>>12|224,r[n++]=i>>6&63|128,r[n++]=i&63|128)}else for(a=0;a>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}ht.htonl=lM;function $H(e,t){for(var r="",n=0;n>>0}return i}ht.join32=HH;function KH(e,t){for(var r=new Array(e.length*4),n=0,a=0;n>>24,r[a+1]=i>>>16&255,r[a+2]=i>>>8&255,r[a+3]=i&255):(r[a+3]=i>>>24,r[a+2]=i>>>16&255,r[a+1]=i>>>8&255,r[a]=i&255)}return r}ht.split32=KH;function GH(e,t){return e>>>t|e<<32-t}ht.rotr32=GH;function WH(e,t){return e<>>32-t}ht.rotl32=WH;function VH(e,t){return e+t>>>0}ht.sum32=VH;function ZH(e,t,r){return e+t+r>>>0}ht.sum32_3=ZH;function XH(e,t,r,n){return e+t+r+n>>>0}ht.sum32_4=XH;function YH(e,t,r,n,a){return e+t+r+n+a>>>0}ht.sum32_5=YH;function JH(e,t,r,n){var a=e[t],i=e[t+1],f=n+i>>>0,l=(f>>0,e[t+1]=f}ht.sum64=JH;function QH(e,t,r,n){var a=t+n>>>0,i=(a>>0}ht.sum64_hi=QH;function eK(e,t,r,n){var a=t+n;return a>>>0}ht.sum64_lo=eK;function tK(e,t,r,n,a,i,f,l){var c=0,m=t;m=m+n>>>0,c+=m>>0,c+=m>>0,c+=m>>0}ht.sum64_4_hi=tK;function rK(e,t,r,n,a,i,f,l){var c=t+n+i+l;return c>>>0}ht.sum64_4_lo=rK;function nK(e,t,r,n,a,i,f,l,c,m){var g=0,_=t;_=_+n>>>0,g+=_>>0,g+=_>>0,g+=_>>0,g+=_>>0}ht.sum64_5_hi=nK;function iK(e,t,r,n,a,i,f,l,c,m){var g=t+n+i+l+m;return g>>>0}ht.sum64_5_lo=iK;function aK(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}ht.rotr64_hi=aK;function oK(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}ht.rotr64_lo=oK;function fK(e,t,r){return e>>>r}ht.shr64_hi=fK;function sK(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}ht.shr64_lo=sK;var h0={},Cm=ht,uK=fi;function cd(){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}h0.BlockHash=cd;cd.prototype.update=function(t,r){if(t=Cm.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=Cm.join32(t,0,t.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=t>>>16&255,a[i++]=t>>>8&255,a[i++]=t&255}else for(a[i++]=t&255,a[i++]=t>>>8&255,a[i++]=t>>>16&255,a[i++]=t>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,f=8;f>>3}ha.g0_256=pK;function vK(e){return na(e,17)^na(e,19)^e>>>10}ha.g1_256=vK;var zs=ht,gK=h0,yK=ha,G3=zs.rotl32,N0=zs.sum32,mK=zs.sum32_5,bK=yK.ft_1,gM=gK.BlockHash,xK=[1518500249,1859775393,2400959708,3395469782];function fa(){if(!(this instanceof fa))return new fa;gM.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}zs.inherits(fa,gM);var wK=fa;fa.blockSize=512;fa.outSize=160;fa.hmacStrength=80;fa.padLength=64;fa.prototype._update=function(t,r){for(var n=this.W,a=0;a<16;a++)n[a]=t[r+a];for(;athis.blockSize&&(t=new this.Hash().update(t).digest()),sG(t.length<=this.blockSize);for(var r=t.length;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var hG=Ro;Ro.prototype._init=function(t,r,n){var a=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};Ro.prototype.generate=function(t,r,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(a=n,n=r,r=null),n&&(n=uf.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length"};var W1=br,J5=Ln,gG=J5.assert;function hd(e,t){if(e instanceof hd)return e;this._importDER(e,t)||(gG(e.r&&e.s,"Signature without r or s"),this.r=new W1(e.r,16),this.s=new W1(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var yG=hd;function mG(){this.place=0}function X3(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var a=0,i=0,f=t.place;i>>=0;return a<=127?!1:(t.place=f,a)}function Pm(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}hd.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=Pm(r),n=Pm(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];Y3(a,r.length),a=a.concat(r),a.push(2),Y3(a,n.length);var i=a.concat(n),f=[48];return Y3(f,i.length),f=f.concat(i),J5.encode(f,t)};var J3,Om;function bG(){if(Om)return J3;Om=1;var e=br,t=hG,r=Ln,n=ld,a=G5(),i=r.assert,f=vG,l=yG;function c(m){if(!(this instanceof c))return new c(m);typeof m=="string"&&(i(Object.prototype.hasOwnProperty.call(n,m),"Unknown curve "+m),m=n[m]),m instanceof n.PresetCurve&&(m={curve:m}),this.curve=m.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=m.curve.g,this.g.precompute(m.curve.n.bitLength()+1),this.hash=m.hash||m.curve.hash}return J3=c,c.prototype.keyPair=function(g){return new f(this,g)},c.prototype.keyFromPrivate=function(g,_){return f.fromPrivate(this,g,_)},c.prototype.keyFromPublic=function(g,_){return f.fromPublic(this,g,_)},c.prototype.genKeyPair=function(g){g||(g={});for(var _=new t({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||a(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),M=this.n.sub(new e(2));;){var P=new e(_.generate(S));if(!(P.cmp(M)>0))return P.iaddn(1),this.keyFromPrivate(P)}},c.prototype._truncateToN=function(g,_){var S=g.byteLength()*8-this.n.bitLength();return S>0&&(g=g.ushrn(S)),!_&&g.cmp(this.n)>=0?g.sub(this.n):g},c.prototype.sign=function(g,_,S,M){typeof S=="object"&&(M=S,S=null),M||(M={}),_=this.keyFromPrivate(_,S),g=this._truncateToN(new e(g,16));for(var P=this.n.byteLength(),I=_.getPrivate().toArray("be",P),B=g.toArray("be",P),R=new t({hash:this.hash,entropy:I,nonce:B,pers:M.pers,persEnc:M.persEnc||"utf8"}),A=this.n.sub(new e(1)),U=0;;U++){var V=M.k?M.k(U):new e(R.generate(this.n.byteLength()));if(V=this._truncateToN(V,!0),!(V.cmpn(1)<=0||V.cmp(A)>=0)){var j=this.g.mul(V);if(!j.isInfinity()){var N=j.getX(),K=N.umod(this.n);if(K.cmpn(0)!==0){var J=V.invm(this.n).mul(K.mul(_.getPrivate()).iadd(g));if(J=J.umod(this.n),J.cmpn(0)!==0){var te=(j.getY().isOdd()?1:0)|(N.cmp(K)!==0?2:0);return M.canonical&&J.cmp(this.nh)>0&&(J=this.n.sub(J),te^=1),new l({r:K,s:J,recoveryParam:te})}}}}}},c.prototype.verify=function(g,_,S,M){g=this._truncateToN(new e(g,16)),S=this.keyFromPublic(S,M),_=new l(_,"hex");var P=_.r,I=_.s;if(P.cmpn(1)<0||P.cmp(this.n)>=0||I.cmpn(1)<0||I.cmp(this.n)>=0)return!1;var B=I.invm(this.n),R=B.mul(g).umod(this.n),A=B.mul(P).umod(this.n),U;return this.curve._maxwellTrick?(U=this.g.jmulAdd(R,S.getPublic(),A),U.isInfinity()?!1:U.eqXToP(P)):(U=this.g.mulAdd(R,S.getPublic(),A),U.isInfinity()?!1:U.getX().umod(this.n).cmp(P)===0)},c.prototype.recoverPubKey=function(m,g,_,S){i((3&_)===_,"The recovery param is more than two bits"),g=new l(g,S);var M=this.n,P=new e(m),I=g.r,B=g.s,R=_&1,A=_>>1;if(I.cmp(this.curve.p.umod(this.curve.n))>=0&&A)throw new Error("Unable to find sencond key candinate");A?I=this.curve.pointFromX(I.add(this.curve.n),R):I=this.curve.pointFromX(I,R);var U=g.r.invm(M),V=M.sub(P).mul(U).umod(M),j=B.mul(U).umod(M);return this.g.mulAdd(V,I,j)},c.prototype.getKeyRecoveryParam=function(m,g,_,S){if(g=new l(g,S),g.recoveryParam!==null)return g.recoveryParam;for(var M=0;M<4;M++){var P;try{P=this.recoverPubKey(m,g,M)}catch{continue}if(P.eq(_))return M}throw new Error("Unable to find valid recovery factor")},J3}var Rl=Ln,RM=Rl.assert,km=Rl.parseBytes,v0=Rl.cachedProperty;function Cr(e,t){this.eddsa=e,this._secret=km(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=km(t.pub)}Cr.fromPublic=function(t,r){return r instanceof Cr?r:new Cr(t,{pub:r})};Cr.fromSecret=function(t,r){return r instanceof Cr?r:new Cr(t,{secret:r})};Cr.prototype.secret=function(){return this._secret};v0(Cr,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});v0(Cr,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});v0(Cr,"privBytes",function(){var t=this.eddsa,r=this.hash(),n=t.encodingLength-1,a=r.slice(0,t.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});v0(Cr,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});v0(Cr,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});v0(Cr,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Cr.prototype.sign=function(t){return RM(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};Cr.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};Cr.prototype.getSecret=function(t){return RM(this._secret,"KeyPair is public only"),Rl.encode(this.secret(),t)};Cr.prototype.getPublic=function(t){return Rl.encode(this.pubBytes(),t)};var xG=Cr,wG=br,dd=Ln,_G=dd.assert,pd=dd.cachedProperty,SG=dd.parseBytes;function Tf(e,t){this.eddsa=e,typeof t!="object"&&(t=SG(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),_G(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof wG&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}pd(Tf,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});pd(Tf,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});pd(Tf,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});pd(Tf,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Tf.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Tf.prototype.toHex=function(){return dd.encode(this.toBytes(),"hex").toUpperCase()};var EG=Tf,CG=Al,MG=ld,Ks=Ln,AG=Ks.assert,TM=Ks.parseBytes,PM=xG,Im=EG;function wn(e){if(AG(e==="ed25519","only tested with ed25519 so far"),!(this instanceof wn))return new wn(e);e=MG[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=CG.sha512}var RG=wn;wn.prototype.sign=function(t,r){t=TM(t);var n=this.keyFromSecret(r),a=this.hashInt(n.messagePrefix(),t),i=this.g.mul(a),f=this.encodePoint(i),l=this.hashInt(f,n.pubBytes(),t).mul(n.priv()),c=a.add(l).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:f})};wn.prototype.verify=function(t,r,n){t=TM(t),r=this.makeSignature(r);var a=this.keyFromPublic(n),i=this.hashInt(r.Rencoded(),a.pubBytes(),t),f=this.g.mul(r.S()),l=r.R().add(a.pub().mul(i));return l.eq(f)};wn.prototype.hashInt=function(){for(var t=this.hash(),r=0;r0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),n(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[x]|=w<>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);else if(p==="le")for(y=0,x=0;y>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);return this._strip()};function l(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;n(!1,"Invalid character in "+d)}function c(d,o,u){var p=l(d,u);return u-1>=o&&(p|=l(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y=u;y-=2)v=c(o,u,y)<=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8;else{var h=o.length-u;for(y=h%2===0?u+1:u;y=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8}this._strip()};function m(d,o,u,p){for(var y=0,x=0,w=Math.min(d.length,u),v=o;v=49?x=h-49+10:h>=17?x=h-17+10:x=h,n(h>=0&&x1&&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")]=_}catch{i.prototype.inspect=_}else i.prototype.inspect=_;function _(){return(this.red?""}var S=["","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"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var y=0,x=0,w=0;w>>24-y&16777215,y+=2,y>=26&&(y-=26,w--),x!==0||w!==this.length-1?p=S[6-h.length]+h+p:p=h+p}for(x!==0&&(p=x.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var s=M[o],b=P[o];p="";var D=this.clone();for(D.negative=0;!D.isZero();){var C=D.modrn(b).toString(o);D=D.idivn(b),D.isZero()?p=C+p:p=S[s-C.length]+C+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},f&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(f,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var I=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var y=this.byteLength(),x=p||Math.max(1,y);n(y<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var w=I(o,x),v=u==="le"?"LE":"BE";return this["_toArrayLike"+v](w,y),w},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,y=0,x=0,w=0;x>8&255),p>16&255),w===6?(p>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p=0&&(o[p--]=v>>8&255),p>=0&&(o[p--]=v>>16&255),w===6?(p>=0&&(o[p--]=v>>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p>=0)for(o[p--]=y;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return u&8191||(p+=13,u>>>=13),u&127||(p+=7,u>>>=7),u&15||(p+=4,u>>>=4),u&3||(p+=2,u>>>=2),u&1||p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function B(d){for(var o=new Array(d.bitLength()),u=0;u>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;uo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;po.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var y=0;yo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){n(typeof o=="number"&&o>=0);var p=o/26|0,y=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<o.length?(p=this,y=o):(p=o,y=this);for(var x=0,w=0;w>>26;for(;x!==0&&w>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;wo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,x;p>0?(y=this,x=o):(y=o,x=this);for(var w=0,v=0;v>26,this.words[v]=u&67108863;for(;w!==0&&v>26,this.words[v]=u&67108863;if(w===0&&v>>26,D=h&67108863,C=Math.min(s,o.length-1),F=Math.max(0,s-d.length+1);F<=C;F++){var $=s-F|0;y=d.words[$]|0,x=o.words[F]|0,w=y*x+D,b+=w/67108864|0,D=w&67108863}u.words[s]=D|0,h=b|0}return h!==0?u.words[s]=h|0:u.length--,u._strip()}var A=function(o,u,p){var y=o.words,x=u.words,w=p.words,v=0,h,s,b,D=y[0]|0,C=D&8191,F=D>>>13,$=y[1]|0,H=$&8191,X=$>>>13,z=y[2]|0,k=z&8191,L=z>>>13,oe=y[3]|0,re=oe&8191,se=oe>>>13,Y=y[4]|0,T=Y&8191,O=Y>>>13,W=y[5]|0,ie=W&8191,ue=W>>>13,we=y[6]|0,_e=we&8191,Z=we>>>13,le=y[7]|0,fe=le&8191,pe=le>>>13,Ce=y[8]|0,Me=Ce&8191,Ee=Ce>>>13,ne=y[9]|0,me=ne&8191,ye=ne>>>13,Ie=x[0]|0,he=Ie&8191,ve=Ie>>>13,Q=x[1]|0,xe=Q&8191,Ae=Q>>>13,q=x[2]|0,be=q&8191,de=q>>>13,ae=x[3]|0,ce=ae&8191,ge=ae>>>13,Ue=x[4]|0,Re=Ue&8191,Se=Ue>>>13,Ve=x[5]|0,je=Ve&8191,ke=Ve>>>13,Ze=x[6]|0,Ne=Ze&8191,Be=Ze>>>13,et=x[7]|0,$e=et&8191,De=et>>>13,Qe=x[8]|0,qe=Qe&8191,Le=Qe>>>13,rt=x[9]|0,ze=rt&8191,Ge=rt>>>13;p.negative=o.negative^u.negative,p.length=19,h=Math.imul(C,he),s=Math.imul(C,ve),s=s+Math.imul(F,he)|0,b=Math.imul(F,ve);var Et=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(H,he),s=Math.imul(H,ve),s=s+Math.imul(X,he)|0,b=Math.imul(X,ve),h=h+Math.imul(C,xe)|0,s=s+Math.imul(C,Ae)|0,s=s+Math.imul(F,xe)|0,b=b+Math.imul(F,Ae)|0;var Ct=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h=Math.imul(k,he),s=Math.imul(k,ve),s=s+Math.imul(L,he)|0,b=Math.imul(L,ve),h=h+Math.imul(H,xe)|0,s=s+Math.imul(H,Ae)|0,s=s+Math.imul(X,xe)|0,b=b+Math.imul(X,Ae)|0,h=h+Math.imul(C,be)|0,s=s+Math.imul(C,de)|0,s=s+Math.imul(F,be)|0,b=b+Math.imul(F,de)|0;var Mt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,h=Math.imul(re,he),s=Math.imul(re,ve),s=s+Math.imul(se,he)|0,b=Math.imul(se,ve),h=h+Math.imul(k,xe)|0,s=s+Math.imul(k,Ae)|0,s=s+Math.imul(L,xe)|0,b=b+Math.imul(L,Ae)|0,h=h+Math.imul(H,be)|0,s=s+Math.imul(H,de)|0,s=s+Math.imul(X,be)|0,b=b+Math.imul(X,de)|0,h=h+Math.imul(C,ce)|0,s=s+Math.imul(C,ge)|0,s=s+Math.imul(F,ce)|0,b=b+Math.imul(F,ge)|0;var At=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(At>>>26)|0,At&=67108863,h=Math.imul(T,he),s=Math.imul(T,ve),s=s+Math.imul(O,he)|0,b=Math.imul(O,ve),h=h+Math.imul(re,xe)|0,s=s+Math.imul(re,Ae)|0,s=s+Math.imul(se,xe)|0,b=b+Math.imul(se,Ae)|0,h=h+Math.imul(k,be)|0,s=s+Math.imul(k,de)|0,s=s+Math.imul(L,be)|0,b=b+Math.imul(L,de)|0,h=h+Math.imul(H,ce)|0,s=s+Math.imul(H,ge)|0,s=s+Math.imul(X,ce)|0,b=b+Math.imul(X,ge)|0,h=h+Math.imul(C,Re)|0,s=s+Math.imul(C,Se)|0,s=s+Math.imul(F,Re)|0,b=b+Math.imul(F,Se)|0;var Rt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,h=Math.imul(ie,he),s=Math.imul(ie,ve),s=s+Math.imul(ue,he)|0,b=Math.imul(ue,ve),h=h+Math.imul(T,xe)|0,s=s+Math.imul(T,Ae)|0,s=s+Math.imul(O,xe)|0,b=b+Math.imul(O,Ae)|0,h=h+Math.imul(re,be)|0,s=s+Math.imul(re,de)|0,s=s+Math.imul(se,be)|0,b=b+Math.imul(se,de)|0,h=h+Math.imul(k,ce)|0,s=s+Math.imul(k,ge)|0,s=s+Math.imul(L,ce)|0,b=b+Math.imul(L,ge)|0,h=h+Math.imul(H,Re)|0,s=s+Math.imul(H,Se)|0,s=s+Math.imul(X,Re)|0,b=b+Math.imul(X,Se)|0,h=h+Math.imul(C,je)|0,s=s+Math.imul(C,ke)|0,s=s+Math.imul(F,je)|0,b=b+Math.imul(F,ke)|0;var qt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(qt>>>26)|0,qt&=67108863,h=Math.imul(_e,he),s=Math.imul(_e,ve),s=s+Math.imul(Z,he)|0,b=Math.imul(Z,ve),h=h+Math.imul(ie,xe)|0,s=s+Math.imul(ie,Ae)|0,s=s+Math.imul(ue,xe)|0,b=b+Math.imul(ue,Ae)|0,h=h+Math.imul(T,be)|0,s=s+Math.imul(T,de)|0,s=s+Math.imul(O,be)|0,b=b+Math.imul(O,de)|0,h=h+Math.imul(re,ce)|0,s=s+Math.imul(re,ge)|0,s=s+Math.imul(se,ce)|0,b=b+Math.imul(se,ge)|0,h=h+Math.imul(k,Re)|0,s=s+Math.imul(k,Se)|0,s=s+Math.imul(L,Re)|0,b=b+Math.imul(L,Se)|0,h=h+Math.imul(H,je)|0,s=s+Math.imul(H,ke)|0,s=s+Math.imul(X,je)|0,b=b+Math.imul(X,ke)|0,h=h+Math.imul(C,Ne)|0,s=s+Math.imul(C,Be)|0,s=s+Math.imul(F,Ne)|0,b=b+Math.imul(F,Be)|0;var zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(fe,he),s=Math.imul(fe,ve),s=s+Math.imul(pe,he)|0,b=Math.imul(pe,ve),h=h+Math.imul(_e,xe)|0,s=s+Math.imul(_e,Ae)|0,s=s+Math.imul(Z,xe)|0,b=b+Math.imul(Z,Ae)|0,h=h+Math.imul(ie,be)|0,s=s+Math.imul(ie,de)|0,s=s+Math.imul(ue,be)|0,b=b+Math.imul(ue,de)|0,h=h+Math.imul(T,ce)|0,s=s+Math.imul(T,ge)|0,s=s+Math.imul(O,ce)|0,b=b+Math.imul(O,ge)|0,h=h+Math.imul(re,Re)|0,s=s+Math.imul(re,Se)|0,s=s+Math.imul(se,Re)|0,b=b+Math.imul(se,Se)|0,h=h+Math.imul(k,je)|0,s=s+Math.imul(k,ke)|0,s=s+Math.imul(L,je)|0,b=b+Math.imul(L,ke)|0,h=h+Math.imul(H,Ne)|0,s=s+Math.imul(H,Be)|0,s=s+Math.imul(X,Ne)|0,b=b+Math.imul(X,Be)|0,h=h+Math.imul(C,$e)|0,s=s+Math.imul(C,De)|0,s=s+Math.imul(F,$e)|0,b=b+Math.imul(F,De)|0;var $t=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+($t>>>26)|0,$t&=67108863,h=Math.imul(Me,he),s=Math.imul(Me,ve),s=s+Math.imul(Ee,he)|0,b=Math.imul(Ee,ve),h=h+Math.imul(fe,xe)|0,s=s+Math.imul(fe,Ae)|0,s=s+Math.imul(pe,xe)|0,b=b+Math.imul(pe,Ae)|0,h=h+Math.imul(_e,be)|0,s=s+Math.imul(_e,de)|0,s=s+Math.imul(Z,be)|0,b=b+Math.imul(Z,de)|0,h=h+Math.imul(ie,ce)|0,s=s+Math.imul(ie,ge)|0,s=s+Math.imul(ue,ce)|0,b=b+Math.imul(ue,ge)|0,h=h+Math.imul(T,Re)|0,s=s+Math.imul(T,Se)|0,s=s+Math.imul(O,Re)|0,b=b+Math.imul(O,Se)|0,h=h+Math.imul(re,je)|0,s=s+Math.imul(re,ke)|0,s=s+Math.imul(se,je)|0,b=b+Math.imul(se,ke)|0,h=h+Math.imul(k,Ne)|0,s=s+Math.imul(k,Be)|0,s=s+Math.imul(L,Ne)|0,b=b+Math.imul(L,Be)|0,h=h+Math.imul(H,$e)|0,s=s+Math.imul(H,De)|0,s=s+Math.imul(X,$e)|0,b=b+Math.imul(X,De)|0,h=h+Math.imul(C,qe)|0,s=s+Math.imul(C,Le)|0,s=s+Math.imul(F,qe)|0,b=b+Math.imul(F,Le)|0;var Ht=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,h=Math.imul(me,he),s=Math.imul(me,ve),s=s+Math.imul(ye,he)|0,b=Math.imul(ye,ve),h=h+Math.imul(Me,xe)|0,s=s+Math.imul(Me,Ae)|0,s=s+Math.imul(Ee,xe)|0,b=b+Math.imul(Ee,Ae)|0,h=h+Math.imul(fe,be)|0,s=s+Math.imul(fe,de)|0,s=s+Math.imul(pe,be)|0,b=b+Math.imul(pe,de)|0,h=h+Math.imul(_e,ce)|0,s=s+Math.imul(_e,ge)|0,s=s+Math.imul(Z,ce)|0,b=b+Math.imul(Z,ge)|0,h=h+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Se)|0,s=s+Math.imul(ue,Re)|0,b=b+Math.imul(ue,Se)|0,h=h+Math.imul(T,je)|0,s=s+Math.imul(T,ke)|0,s=s+Math.imul(O,je)|0,b=b+Math.imul(O,ke)|0,h=h+Math.imul(re,Ne)|0,s=s+Math.imul(re,Be)|0,s=s+Math.imul(se,Ne)|0,b=b+Math.imul(se,Be)|0,h=h+Math.imul(k,$e)|0,s=s+Math.imul(k,De)|0,s=s+Math.imul(L,$e)|0,b=b+Math.imul(L,De)|0,h=h+Math.imul(H,qe)|0,s=s+Math.imul(H,Le)|0,s=s+Math.imul(X,qe)|0,b=b+Math.imul(X,Le)|0,h=h+Math.imul(C,ze)|0,s=s+Math.imul(C,Ge)|0,s=s+Math.imul(F,ze)|0,b=b+Math.imul(F,Ge)|0;var Kt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(me,xe),s=Math.imul(me,Ae),s=s+Math.imul(ye,xe)|0,b=Math.imul(ye,Ae),h=h+Math.imul(Me,be)|0,s=s+Math.imul(Me,de)|0,s=s+Math.imul(Ee,be)|0,b=b+Math.imul(Ee,de)|0,h=h+Math.imul(fe,ce)|0,s=s+Math.imul(fe,ge)|0,s=s+Math.imul(pe,ce)|0,b=b+Math.imul(pe,ge)|0,h=h+Math.imul(_e,Re)|0,s=s+Math.imul(_e,Se)|0,s=s+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Se)|0,h=h+Math.imul(ie,je)|0,s=s+Math.imul(ie,ke)|0,s=s+Math.imul(ue,je)|0,b=b+Math.imul(ue,ke)|0,h=h+Math.imul(T,Ne)|0,s=s+Math.imul(T,Be)|0,s=s+Math.imul(O,Ne)|0,b=b+Math.imul(O,Be)|0,h=h+Math.imul(re,$e)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(se,$e)|0,b=b+Math.imul(se,De)|0,h=h+Math.imul(k,qe)|0,s=s+Math.imul(k,Le)|0,s=s+Math.imul(L,qe)|0,b=b+Math.imul(L,Le)|0,h=h+Math.imul(H,ze)|0,s=s+Math.imul(H,Ge)|0,s=s+Math.imul(X,ze)|0,b=b+Math.imul(X,Ge)|0;var Gt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(me,be),s=Math.imul(me,de),s=s+Math.imul(ye,be)|0,b=Math.imul(ye,de),h=h+Math.imul(Me,ce)|0,s=s+Math.imul(Me,ge)|0,s=s+Math.imul(Ee,ce)|0,b=b+Math.imul(Ee,ge)|0,h=h+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Se)|0,s=s+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Se)|0,h=h+Math.imul(_e,je)|0,s=s+Math.imul(_e,ke)|0,s=s+Math.imul(Z,je)|0,b=b+Math.imul(Z,ke)|0,h=h+Math.imul(ie,Ne)|0,s=s+Math.imul(ie,Be)|0,s=s+Math.imul(ue,Ne)|0,b=b+Math.imul(ue,Be)|0,h=h+Math.imul(T,$e)|0,s=s+Math.imul(T,De)|0,s=s+Math.imul(O,$e)|0,b=b+Math.imul(O,De)|0,h=h+Math.imul(re,qe)|0,s=s+Math.imul(re,Le)|0,s=s+Math.imul(se,qe)|0,b=b+Math.imul(se,Le)|0,h=h+Math.imul(k,ze)|0,s=s+Math.imul(k,Ge)|0,s=s+Math.imul(L,ze)|0,b=b+Math.imul(L,Ge)|0;var Wt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(me,ce),s=Math.imul(me,ge),s=s+Math.imul(ye,ce)|0,b=Math.imul(ye,ge),h=h+Math.imul(Me,Re)|0,s=s+Math.imul(Me,Se)|0,s=s+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Se)|0,h=h+Math.imul(fe,je)|0,s=s+Math.imul(fe,ke)|0,s=s+Math.imul(pe,je)|0,b=b+Math.imul(pe,ke)|0,h=h+Math.imul(_e,Ne)|0,s=s+Math.imul(_e,Be)|0,s=s+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,Be)|0,h=h+Math.imul(ie,$e)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(ue,$e)|0,b=b+Math.imul(ue,De)|0,h=h+Math.imul(T,qe)|0,s=s+Math.imul(T,Le)|0,s=s+Math.imul(O,qe)|0,b=b+Math.imul(O,Le)|0,h=h+Math.imul(re,ze)|0,s=s+Math.imul(re,Ge)|0,s=s+Math.imul(se,ze)|0,b=b+Math.imul(se,Ge)|0;var Vt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(me,Re),s=Math.imul(me,Se),s=s+Math.imul(ye,Re)|0,b=Math.imul(ye,Se),h=h+Math.imul(Me,je)|0,s=s+Math.imul(Me,ke)|0,s=s+Math.imul(Ee,je)|0,b=b+Math.imul(Ee,ke)|0,h=h+Math.imul(fe,Ne)|0,s=s+Math.imul(fe,Be)|0,s=s+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Be)|0,h=h+Math.imul(_e,$e)|0,s=s+Math.imul(_e,De)|0,s=s+Math.imul(Z,$e)|0,b=b+Math.imul(Z,De)|0,h=h+Math.imul(ie,qe)|0,s=s+Math.imul(ie,Le)|0,s=s+Math.imul(ue,qe)|0,b=b+Math.imul(ue,Le)|0,h=h+Math.imul(T,ze)|0,s=s+Math.imul(T,Ge)|0,s=s+Math.imul(O,ze)|0,b=b+Math.imul(O,Ge)|0;var Zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(me,je),s=Math.imul(me,ke),s=s+Math.imul(ye,je)|0,b=Math.imul(ye,ke),h=h+Math.imul(Me,Ne)|0,s=s+Math.imul(Me,Be)|0,s=s+Math.imul(Ee,Ne)|0,b=b+Math.imul(Ee,Be)|0,h=h+Math.imul(fe,$e)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(pe,$e)|0,b=b+Math.imul(pe,De)|0,h=h+Math.imul(_e,qe)|0,s=s+Math.imul(_e,Le)|0,s=s+Math.imul(Z,qe)|0,b=b+Math.imul(Z,Le)|0,h=h+Math.imul(ie,ze)|0,s=s+Math.imul(ie,Ge)|0,s=s+Math.imul(ue,ze)|0,b=b+Math.imul(ue,Ge)|0;var cr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863,h=Math.imul(me,Ne),s=Math.imul(me,Be),s=s+Math.imul(ye,Ne)|0,b=Math.imul(ye,Be),h=h+Math.imul(Me,$e)|0,s=s+Math.imul(Me,De)|0,s=s+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,De)|0,h=h+Math.imul(fe,qe)|0,s=s+Math.imul(fe,Le)|0,s=s+Math.imul(pe,qe)|0,b=b+Math.imul(pe,Le)|0,h=h+Math.imul(_e,ze)|0,s=s+Math.imul(_e,Ge)|0,s=s+Math.imul(Z,ze)|0,b=b+Math.imul(Z,Ge)|0;var hr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(me,$e),s=Math.imul(me,De),s=s+Math.imul(ye,$e)|0,b=Math.imul(ye,De),h=h+Math.imul(Me,qe)|0,s=s+Math.imul(Me,Le)|0,s=s+Math.imul(Ee,qe)|0,b=b+Math.imul(Ee,Le)|0,h=h+Math.imul(fe,ze)|0,s=s+Math.imul(fe,Ge)|0,s=s+Math.imul(pe,ze)|0,b=b+Math.imul(pe,Ge)|0;var dr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(dr>>>26)|0,dr&=67108863,h=Math.imul(me,qe),s=Math.imul(me,Le),s=s+Math.imul(ye,qe)|0,b=Math.imul(ye,Le),h=h+Math.imul(Me,ze)|0,s=s+Math.imul(Me,Ge)|0,s=s+Math.imul(Ee,ze)|0,b=b+Math.imul(Ee,Ge)|0;var Yr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,h=Math.imul(me,ze),s=Math.imul(me,Ge),s=s+Math.imul(ye,ze)|0,b=Math.imul(ye,Ge);var Jr=(v+h|0)+((s&8191)<<13)|0;return v=(b+(s>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w[0]=Et,w[1]=Ct,w[2]=Mt,w[3]=At,w[4]=Rt,w[5]=qt,w[6]=zt,w[7]=$t,w[8]=Ht,w[9]=Kt,w[10]=Gt,w[11]=Wt,w[12]=Vt,w[13]=Zt,w[14]=cr,w[15]=hr,w[16]=dr,w[17]=Yr,w[18]=Jr,v!==0&&(w[19]=v,p.length++),p};Math.imul||(A=R);function U(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,y=0,x=0;x>>26)|0,y+=w>>>26,w&=67108863}u.words[x]=v,p=w,w=y}return p!==0?u.words[x]=p:u.length--,u._strip()}function V(d,o,u){return U(d,o,u)}i.prototype.mulTo=function(o,u){var p,y=this.length+o.length;return this.length===10&&o.length===10?p=A(this,o,u):y<63?p=R(this,o,u):y<1024?p=U(this,o,u):p=V(this,o,u),p},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),V(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var p=0,y=0;y>=26,p+=x/67108864|0,p+=w>>>26,this.words[y]=w&67108863}return p!==0&&(this.words[y]=p,this.length++),u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=B(o);if(u.length===0)return new i(1);for(var p=this,y=0;y=0);var u=o%26,p=(o-u)/26,y=67108863>>>26-u<<26-u,x;if(u!==0){var w=0;for(x=0;x>>26-u}w&&(this.words[x]=w,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x=0);var y;u?y=(u-u%26)/26:y=0;var x=o%26,w=Math.min((o-x)/26,this.length),v=67108863^67108863>>>x<w)for(this.length-=w,s=0;s=0&&(b!==0||s>=y);s--){var D=this.words[s]|0;this.words[s]=b<<26-x|D>>>x,b=D&v}return h&&b!==0&&(h.words[h.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return n(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,y=1<=0);var u=o%26,p=(o-u)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var y=67108863^67108863>>>u<=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u>26)-(h/67108864|0),this.words[x+p]=w&67108863}for(;x>26,this.words[x+p]=w&67108863;if(v===0)return this._strip();for(n(v===-1),v=0,x=0;x>26,this.words[x]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,y=this.clone(),x=o,w=x.words[x.length-1]|0,v=this._countBits(w);p=26-v,p!==0&&(x=x.ushln(p),y.iushln(p),w=x.words[x.length-1]|0);var h=y.length-x.length,s;if(u!=="mod"){s=new i(null),s.length=h+1,s.words=new Array(s.length);for(var b=0;b=0;C--){var F=(y.words[x.length+C]|0)*67108864+(y.words[x.length+C-1]|0);for(F=Math.min(F/w|0,67108863),y._ishlnsubmul(x,F,C);y.negative!==0;)F--,y.negative=0,y._ishlnsubmul(x,1,C),y.isZero()||(y.negative^=1);s&&(s.words[C]=F)}return s&&s._strip(),y._strip(),u!=="div"&&p!==0&&y.iushrn(p),{div:s||null,mod:y}},i.prototype.divmod=function(o,u,p){if(n(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,x,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,u),u!=="mod"&&(y=w.div.neg()),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.iadd(o)),{div:y,mod:x}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),u),u!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),u),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.isub(o)),{div:w.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),x=o.andln(1),w=p.cmp(y);return w<0||x===1&&w===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=(1<<26)%o,y=0,x=this.length-1;x>=0;x--)y=(p*y+(this.words[x]|0))%o;return u?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var x=(this.words[y]|0)+p*67108864;this.words[y]=x/o|0,p=x%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=new i(0),v=new i(1),h=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++h;for(var s=p.clone(),b=u.clone();!u.isZero();){for(var D=0,C=1;!(u.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(u.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(s),x.isub(b)),y.iushrn(1),x.iushrn(1);for(var F=0,$=1;!(p.words[0]&$)&&F<26;++F,$<<=1);if(F>0)for(p.iushrn(F);F-- >0;)(w.isOdd()||v.isOdd())&&(w.iadd(s),v.isub(b)),w.iushrn(1),v.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(w),x.isub(v)):(p.isub(u),w.isub(y),v.isub(x))}return{a:w,b:v,gcd:p.iushln(h)}},i.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var v=0,h=1;!(u.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(u.iushrn(v);v-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var s=0,b=1;!(p.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(p.iushrn(s);s-- >0;)x.isOdd()&&x.iadd(w),x.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(x)):(p.isub(u),x.isub(y))}var D;return u.cmpn(1)===0?D=y:D=x,D.cmpn(0)<0&&D.iadd(o),D},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var y=0;u.isEven()&&p.isEven();y++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=u.cmp(p);if(x<0){var w=u;u=p,p=w}else if(x===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){n(typeof o=="number");var u=o%26,p=(o-u)/26,y=1<>>26,v&=67108863,this.words[w]=v}return x!==0&&(this.words[w]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;p=y===o?0:yo.length)return 1;if(this.length=0;p--){var y=this.words[p]|0,x=o.words[p]|0;if(y!==x){yx&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new G(o)},i.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function N(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},N.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var y=p0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},N.prototype.split=function(o,u){o.iushrn(this.n,0,u)},N.prototype.imulK=function(o){return o.imul(this.k)};function K(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(K,N),K.prototype.split=function(o,u){for(var p=4194303,y=Math.min(o.length,9),x=0;x>>22,w=v}w>>>=22,o.words[x-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},K.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p>>=26,o.words[p]=x,u=y}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(j[o])return j[o];var u;if(o==="k256")u=new K;else if(o==="p224")u=new J;else if(o==="p192")u=new te;else if(o==="p25519")u=new ee;else throw new Error("Unknown prime "+o);return j[o]=u,u};function G(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else n(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}G.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},G.prototype._verify2=function(o,u){n((o.negative|u.negative)===0,"red works only with positives"),n(o.red&&o.red===u.red,"red works only with red numbers")},G.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},G.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},G.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},G.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},G.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},G.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},G.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},G.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},G.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},G.prototype.isqr=function(o){return this.imul(o,o.clone())},G.prototype.sqr=function(o){return this.mul(o,o)},G.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(n(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);n(!y.isZero());var w=new i(1).toRed(this),v=w.redNeg(),h=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,h).cmp(v)!==0;)s.redIAdd(v);for(var b=this.pow(s,y),D=this.pow(o,y.addn(1).iushrn(1)),C=this.pow(o,y),F=x;C.cmp(w)!==0;){for(var $=C,H=0;$.cmp(w)!==0;H++)$=$.redSqr();n(H=0;x--){for(var b=u.words[x],D=s-1;D>=0;D--){var C=b>>D&1;if(w!==y[0]&&(w=this.sqr(w)),C===0&&v===0){h=0;continue}v<<=1,v|=C,h++,!(h!==p&&(x!==0||D!==0))&&(w=this.mul(w,y[v]),h=0,v=0)}s=26}return w},G.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},G.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new E(o)};function E(d){G.call(this,d),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)}a(E,G),E.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},E.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},E.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(e,Oe)})(Q5);var OM=Q5.exports,Di={},Tl={},kM={},e7={},Yc=Te,xs=Yc.Buffer,Wn={},Vn;for(Vn in Yc)Yc.hasOwnProperty(Vn)&&(Vn==="SlowBuffer"||Vn==="Buffer"||(Wn[Vn]=Yc[Vn]));var ws=Wn.Buffer={};for(Vn in xs)xs.hasOwnProperty(Vn)&&(Vn==="allocUnsafe"||Vn==="allocUnsafeSlow"||(ws[Vn]=xs[Vn]));Wn.Buffer.prototype=xs.prototype;(!ws.from||ws.from===Uint8Array.from)&&(ws.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return xs(e,t,r)});ws.alloc||(ws.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=xs(e);return!t||t.length===0?n.fill(0):typeof r=="string"?n.fill(t,r):n.fill(t),n});if(!Wn.kStringMaxLength)try{Wn.kStringMaxLength=He.binding("buffer").kStringMaxLength}catch{}Wn.constants||(Wn.constants={MAX_LENGTH:Wn.kMaxLength},Wn.kStringMaxLength&&(Wn.constants.MAX_STRING_LENGTH=Wn.kStringMaxLength));var t7=Wn,gd={};const TG=ot;function ci(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}gd.Reporter=ci;ci.prototype.isError=function(t){return t instanceof Gs};ci.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};ci.prototype.restore=function(t){const r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};ci.prototype.enterKey=function(t){return this._reporterState.path.push(t)};ci.prototype.exitKey=function(t){const r=this._reporterState;r.path=r.path.slice(0,t-1)};ci.prototype.leaveKey=function(t,r,n){const a=this._reporterState;this.exitKey(t),a.obj!==null&&(a.obj[r]=n)};ci.prototype.path=function(){return this._reporterState.path.join("/")};ci.prototype.enterObject=function(){const t=this._reporterState,r=t.obj;return t.obj={},r};ci.prototype.leaveObject=function(t){const r=this._reporterState,n=r.obj;return r.obj=t,n};ci.prototype.error=function(t){let r;const n=this._reporterState,a=t instanceof Gs;if(a?r=t:r=new Gs(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw r;return a||n.errors.push(r),r};ci.prototype.wrapResult=function(t){const r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function Gs(e,t){this.path=e,this.rethrow(t)}TG(Gs,Error);Gs.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Gs),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var wf={};const PG=ot,yd=gd.Reporter,Ws=t7.Buffer;function ii(e,t){if(yd.call(this,t),!Ws.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}PG(ii,yd);wf.DecoderBuffer=ii;ii.isDecoderBuffer=function(t){return t instanceof ii?!0:typeof t=="object"&&Ws.isBuffer(t.base)&&t.constructor.name==="DecoderBuffer"&&typeof t.offset=="number"&&typeof t.length=="number"&&typeof t.save=="function"&&typeof t.restore=="function"&&typeof t.isEmpty=="function"&&typeof t.readUInt8=="function"&&typeof t.skip=="function"&&typeof t.raw=="function"};ii.prototype.save=function(){return{offset:this.offset,reporter:yd.prototype.save.call(this)}};ii.prototype.restore=function(t){const r=new ii(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,yd.prototype.restore.call(this,t.reporter),r};ii.prototype.isEmpty=function(){return this.offset===this.length};ii.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};ii.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");const n=new ii(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n};ii.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function Vs(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return Vs.isEncoderBuffer(r)||(r=new Vs(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=Ws.byteLength(e);else if(Ws.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}wf.EncoderBuffer=Vs;Vs.isEncoderBuffer=function(t){return t instanceof Vs?!0:typeof t=="object"&&t.constructor.name==="EncoderBuffer"&&typeof t.length=="number"&&typeof t.join=="function"};Vs.prototype.join=function(t,r){return t||(t=Ws.alloc(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):Ws.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t};const OG=gd.Reporter,kG=wf.EncoderBuffer,IG=wf.DecoderBuffer,on=fi,IM=["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"],BG=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(IM),LG=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Ot(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var r7=Ot;const NG=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Ot.prototype.clone=function(){const t=this._baseState,r={};NG.forEach(function(a){r[a]=t[a]});const n=new this.constructor(r.parent);return n._baseState=r,n};Ot.prototype._wrap=function(){const t=this._baseState;BG.forEach(function(r){this[r]=function(){const a=new this.constructor(this);return t.children.push(a),a[r].apply(a,arguments)}},this)};Ot.prototype._init=function(t){const r=this._baseState;on(r.parent===null),t.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),on.equal(r.children.length,1,"Root node can have only one child")};Ot.prototype._useArgs=function(t){const r=this._baseState,n=t.filter(function(a){return a instanceof this.constructor},this);t=t.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(on(r.children===null),r.children=n,n.forEach(function(a){a._baseState.parent=this},this)),t.length!==0&&(on(r.args===null),r.args=t,r.reverseArgs=t.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;const i={};return Object.keys(a).forEach(function(f){f==(f|0)&&(f|=0);const l=a[f];i[l]=f}),i}))};LG.forEach(function(e){Ot.prototype[e]=function(){const r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});IM.forEach(function(e){Ot.prototype[e]=function(){const r=this._baseState,n=Array.prototype.slice.call(arguments);return on(r.tag===null),r.tag=e,this._useArgs(n),this}});Ot.prototype.use=function(t){on(t);const r=this._baseState;return on(r.use===null),r.use=t,this};Ot.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this};Ot.prototype.def=function(t){const r=this._baseState;return on(r.default===null),r.default=t,r.optional=!0,this};Ot.prototype.explicit=function(t){const r=this._baseState;return on(r.explicit===null&&r.implicit===null),r.explicit=t,this};Ot.prototype.implicit=function(t){const r=this._baseState;return on(r.explicit===null&&r.implicit===null),r.implicit=t,this};Ot.prototype.obj=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};Ot.prototype.key=function(t){const r=this._baseState;return on(r.key===null),r.key=t,this};Ot.prototype.any=function(){const t=this._baseState;return t.any=!0,this};Ot.prototype.choice=function(t){const r=this._baseState;return on(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(n){return t[n]})),this};Ot.prototype.contains=function(t){const r=this._baseState;return on(r.use===null),r.contains=t,this};Ot.prototype._decode=function(t,r){const n=this._baseState;if(n.parent===null)return t.wrapResult(n.children[0]._decode(t,r));let a=n.default,i=!0,f=null;if(n.key!==null&&(f=t.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){const m=t.save();try{n.choice===null?this._decodeGeneric(n.tag,t,r):this._decodeChoice(t,r),i=!0}catch{i=!1}t.restore(m)}else if(i=this._peekTag(t,c,n.any),t.isError(i))return i}let l;if(n.obj&&i&&(l=t.enterObject()),i){if(n.explicit!==null){const m=this._decodeTag(t,n.explicit);if(t.isError(m))return m;t=m}const c=t.offset;if(n.use===null&&n.choice===null){let m;n.any&&(m=t.save());const g=this._decodeTag(t,n.implicit!==null?n.implicit:n.tag,n.any);if(t.isError(g))return g;n.any?a=t.raw(m):t=g}if(r&&r.track&&n.tag!==null&&r.track(t.path(),c,t.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,t,r):a=this._decodeChoice(t,r)),t.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(g){g._decode(t,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){const m=new IG(a);a=this._getUse(n.contains,t._reporterState.obj)._decode(m,r)}}return n.obj&&i&&(a=t.leaveObject(l)),n.key!==null&&(a!==null||i===!0)?t.leaveKey(f,n.key,a):f!==null&&t.exitKey(f),a};Ot.prototype._decodeGeneric=function(t,r,n){const a=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,a.args[0],n):/str$/.test(t)?this._decodeStr(r,t,n):t==="objid"&&a.args?this._decodeObjid(r,a.args[0],a.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,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+t)};Ot.prototype._getUse=function(t,r){const n=this._baseState;return n.useDecoder=this._use(t,r),on(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};Ot.prototype._decodeChoice=function(t,r){const n=this._baseState;let a=null,i=!1;return Object.keys(n.choice).some(function(f){const l=t.save(),c=n.choice[f];try{const m=c._decode(t,r);if(t.isError(m))return!1;a={type:f,value:m},i=!0}catch{return t.restore(l),!1}return!0},this),i?a:t.error("Choice not matched")};Ot.prototype._createEncoderBuffer=function(t){return new kG(t,this.reporter)};Ot.prototype._encode=function(t,r,n){const a=this._baseState;if(a.default!==null&&a.default===t)return;const i=this._encodeValue(t,r,n);if(i!==void 0&&!this._skipDefault(i,r,n))return i};Ot.prototype._encodeValue=function(t,r,n){const a=this._baseState;if(a.parent===null)return a.children[0]._encode(t,r||new OG);let i=null;if(this.reporter=r,a.optional&&t===void 0)if(a.default!==null)t=a.default;else return;let f=null,l=!1;if(a.any)i=this._createEncoderBuffer(t);else if(a.choice)i=this._encodeChoice(t,r);else if(a.contains)f=this._getUse(a.contains,n)._encode(t,r),l=!0;else if(a.children)f=a.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,r,t);if(c._baseState.key===null)return r.error("Child should have a key");const m=r.enterKey(c._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");const g=c._encode(t[c._baseState.key],r,t);return r.leaveKey(m),g},this).filter(function(c){return c}),f=this._createEncoderBuffer(f);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return r.error("Too many args for : "+a.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");const c=this.clone();c._baseState.implicit=null,f=this._createEncoderBuffer(t.map(function(m){const g=this._baseState;return this._getUse(g.args[0],t)._encode(m,r)},c))}else a.use!==null?i=this._getUse(a.use,n)._encode(t,r):(f=this._encodePrimitive(a.tag,t),l=!0);if(!a.any&&a.choice===null){const c=a.implicit!==null?a.implicit:a.tag,m=a.implicit===null?"universal":"context";c===null?a.use===null&&r.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(c,l,m,f))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};Ot.prototype._encodeChoice=function(t,r){const n=this._baseState,a=n.choice[t.type];return a||on(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(t.value,r)};Ot.prototype._encodePrimitive=function(t,r){const 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)};Ot.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};Ot.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)};var md={};(function(e){function t(r){const n={};return Object.keys(r).forEach(function(a){(a|0)==a&&(a=a|0);const i=r[a];n[i]=a}),n}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)})(md);const DG=ot,ma=t7.Buffer,BM=r7,Q3=md;function LM(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Fi,this.tree._init(e.body)}var NM=LM;LM.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Fi(e){BM.call(this,"der",e)}DG(Fi,BM);Fi.prototype._encodeComposite=function(t,r,n,a){const i=FG(t,r,n,this.reporter);if(a.length<128){const c=ma.alloc(2);return c[0]=i,c[1]=a.length,this._createEncoderBuffer([c,a])}let f=1;for(let c=a.length;c>=256;c>>=8)f++;const l=ma.alloc(2+f);l[0]=i,l[1]=128|f;for(let c=1+f,m=a.length;m>0;c--,m>>=8)l[c]=m&255;return this._createEncoderBuffer([l,a])};Fi.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){const n=ma.alloc(t.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}let a=0;for(let l=0;l=128;c>>=7)a++}const i=ma.alloc(a);let f=i.length-1;for(let l=t.length-1;l>=0;l--){let c=t[l];for(i[f--]=c&127;(c>>=7)>0;)i[f--]=128|c&127}return this._createEncoderBuffer(i)};function Un(e){return e<10?"0"+e:e}Fi.prototype._encodeTime=function(t,r){let n;const a=new Date(t);return r==="gentime"?n=[Un(a.getUTCFullYear()),Un(a.getUTCMonth()+1),Un(a.getUTCDate()),Un(a.getUTCHours()),Un(a.getUTCMinutes()),Un(a.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[Un(a.getUTCFullYear()%100),Un(a.getUTCMonth()+1),Un(a.getUTCDate()),Un(a.getUTCHours()),Un(a.getUTCMinutes()),Un(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};Fi.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Fi.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"&&!ma.isBuffer(t)){const i=t.toArray();!t.sign&&i[0]&128&&i.unshift(0),t=ma.from(i)}if(ma.isBuffer(t)){let i=t.length;t.length===0&&i++;const f=ma.alloc(i);return t.copy(f),t.length===0&&(f[0]=0),this._createEncoderBuffer(f)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let i=t;i>=256;i>>=8)n++;const a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=t&255,t>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(ma.from(a))};Fi.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Fi.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Fi.prototype._skipDefault=function(t,r,n){const a=this._baseState;let i;if(a.default===null)return!1;const f=t.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,r,n).join()),f.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=Q3.tagClassByName[r||"universal"]<<6,a)}const UG=ot,n7=NM;function i7(e){n7.call(this,e),this.enc="pem"}UG(i7,n7);var jG=i7;i7.prototype.encode=function(t,r){const a=n7.prototype.encode.call(this,t).toString("base64"),i=["-----BEGIN "+r.label+"-----"];for(let f=0;f>6],a=(r&32)===0;if((r&31)===31){let f=r;for(r=0;(f&128)===128;){if(f=e.readUInt8(t),e.isError(f))return f;r<<=7,r|=f&127}}else r&=31;const i=Nm.tag[r];return{cls:n,primitive:a,tag:r,tagStr:i}}function jM(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&n===128)return null;if(!(n&128))return n;const a=n&127;if(a>4)return e.error("length octect is too long");n=0;for(let i=0;i0&&U.ishrn(V),U}function P(R,A){R=M(R,A),R=R.mod(A);var U=e.from(R.toArray());if(U.length=0)throw new Error("invalid sig")}return ep=i,ep}var tp,qm;function SW(){if(qm)return tp;qm=1;var e=st.Buffer,t=xl,r=Li,n=ot,a=wW(),i=_W(),f=gC;Object.keys(f).forEach(function(_){f[_].id=e.from(f[_].id,"hex"),f[_.toLowerCase()]=f[_]});function l(_){r.Writable.call(this);var S=f[_];if(!S)throw new Error("Unknown message digest");this._hashType=S.hash,this._hash=t(S.hash),this._tag=S.id,this._signType=S.sign}n(l,r.Writable),l.prototype._write=function(S,M,P){this._hash.update(S),P()},l.prototype.update=function(S,M){return this._hash.update(typeof S=="string"?e.from(S,M):S),this},l.prototype.sign=function(S,M){this.end();var P=this._hash.digest(),I=a(P,S,this._hashType,this._signType,this._tag);return M?I.toString(M):I};function c(_){r.Writable.call(this);var S=f[_];if(!S)throw new Error("Unknown message digest");this._hash=t(S.hash),this._tag=S.id,this._signType=S.sign}n(c,r.Writable),c.prototype._write=function(S,M,P){this._hash.update(S),P()},c.prototype.update=function(S,M){return this._hash.update(typeof S=="string"?e.from(S,M):S),this},c.prototype.verify=function(S,M,P){var I=typeof M=="string"?e.from(M,P):M;this.end();var B=this._hash.digest();return i(I,B,S,this._signType,this._tag)};function m(_){return new l(_)}function g(_){return new c(_)}return tp={Sign:m,Verify:g,createSign:m,createVerify:g},tp}var rp,zm;function EW(){if(zm)return rp;zm=1;var e=vd(),t=br;rp=function(f){return new n(f)};var r={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}};r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1;function n(i){this.curveType=r[i],this.curveType||(this.curveType={name:i}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}n.prototype.generateKeys=function(i,f){return this.keys=this.curve.genKeyPair(),this.getPublicKey(i,f)},n.prototype.computeSecret=function(i,f,l){f=f||"utf8",Te.Buffer.isBuffer(i)||(i=new Te.Buffer(i,f));var c=this.curve.keyFromPublic(i).getPublic(),m=c.mul(this.keys.getPrivate()).getX();return a(m,l,this.curveType.byteLength)},n.prototype.getPublicKey=function(i,f){var l=this.keys.getPublic(f==="compressed",!0);return f==="hybrid"&&(l[l.length-1]%2?l[0]=7:l[0]=6),a(l,i)},n.prototype.getPrivateKey=function(i){return a(this.keys.getPrivate(),i)},n.prototype.setPublicKey=function(i,f){return f=f||"utf8",Te.Buffer.isBuffer(i)||(i=new Te.Buffer(i,f)),this.keys._importPublic(i),this},n.prototype.setPrivateKey=function(i,f){f=f||"utf8",Te.Buffer.isBuffer(i)||(i=new Te.Buffer(i,f));var l=new t(i);return l=l.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(l),this};function a(i,f,l){Array.isArray(i)||(i=i.toArray());var c=new Te.Buffer(i);if(l&&c.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?kW(f,i):OW(f,i)};function BW(e,t){var r=e.modulus.byteLength(),n=t.length,a=PW("sha1").update(Mi.alloc(0)).digest(),i=a.length,f=2*i;if(n>r-f-2)throw new Error("message too long");var l=Mi.alloc(r-n-f-2),c=r-i-1,m=T6(i),g=Km(Mi.concat([a,l,Mi.alloc(1,1),t],c),Hm(m,c)),_=Km(m,Hm(g,i));return new l7(Mi.concat([Mi.alloc(1),_,g],r))}function LW(e,t,r){var n=t.length,a=e.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return r?i=Mi.alloc(a-n-3,255):i=NW(a-n-3),new l7(Mi.concat([Mi.from([0,r?1:2]),i,Mi.alloc(1),t],a))}function NW(e){for(var t=Mi.allocUnsafe(e),r=0,n=T6(e*2),a=0,i;rf||new Vm(r).cmp(i.modulus)>=0)throw new Error("decryption error");var l;n?l=jW(new Vm(r),i):l=FW(r,i);var c=Zu.alloc(f-l.length);if(l=Zu.concat([c,l],f),a===4)return zW(i,l);if(a===1)return $W(i,l,n);if(a===3)return l;throw new Error("unknown padding")};function zW(e,t){var r=e.modulus.byteLength(),n=UW("sha1").update(Zu.alloc(0)).digest(),a=n.length;if(t[0]!==0)throw new Error("decryption error");var i=t.slice(1,a+1),f=t.slice(a+1),l=Wm(i,Gm(f,a)),c=Wm(f,Gm(l,r-a-1));if(HW(n,c.slice(0,a)))throw new Error("decryption error");for(var m=a;c[m]===0;)m++;if(c[m++]!==1)throw new Error("decryption error");return c.slice(m)}function $W(e,t,r){for(var n=t.slice(0,2),a=2,i=0;t[a++]!==0;)if(a>=t.length){i++;break}var f=t.slice(2,a-1);if((n.toString("hex")!=="0002"&&!r||n.toString("hex")!=="0001"&&r)&&i++,f.length<8&&i++,i)throw new Error("decryption error");return t.slice(a)}function HW(e,t){e=Zu.from(e),t=Zu.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var a=-1;++anq)throw new RangeError("requested too many random bytes");var r=aq.allocUnsafe(e);if(e>0)if(e>L3)for(var n=0;n=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=f,f=this._length[i]/4294967296|0,f>0&&(this._length[i]-=4294967296*f);return this};No.prototype._update=function(){throw new Error("_update is not implemented")};No.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};No.prototype._digest=function(){throw new Error("_digest is not implemented")};var JE=No,uq=ot,QE=JE,lq=st.Buffer,cq=new Array(16);function Wh(){QE.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}uq(Wh,QE);Wh.prototype._update=function(){for(var e=cq,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,n=this._b,a=this._c,i=this._d;r=$r(r,n,a,i,e[0],3614090360,7),i=$r(i,r,n,a,e[1],3905402710,12),a=$r(a,i,r,n,e[2],606105819,17),n=$r(n,a,i,r,e[3],3250441966,22),r=$r(r,n,a,i,e[4],4118548399,7),i=$r(i,r,n,a,e[5],1200080426,12),a=$r(a,i,r,n,e[6],2821735955,17),n=$r(n,a,i,r,e[7],4249261313,22),r=$r(r,n,a,i,e[8],1770035416,7),i=$r(i,r,n,a,e[9],2336552879,12),a=$r(a,i,r,n,e[10],4294925233,17),n=$r(n,a,i,r,e[11],2304563134,22),r=$r(r,n,a,i,e[12],1804603682,7),i=$r(i,r,n,a,e[13],4254626195,12),a=$r(a,i,r,n,e[14],2792965006,17),n=$r(n,a,i,r,e[15],1236535329,22),r=Hr(r,n,a,i,e[1],4129170786,5),i=Hr(i,r,n,a,e[6],3225465664,9),a=Hr(a,i,r,n,e[11],643717713,14),n=Hr(n,a,i,r,e[0],3921069994,20),r=Hr(r,n,a,i,e[5],3593408605,5),i=Hr(i,r,n,a,e[10],38016083,9),a=Hr(a,i,r,n,e[15],3634488961,14),n=Hr(n,a,i,r,e[4],3889429448,20),r=Hr(r,n,a,i,e[9],568446438,5),i=Hr(i,r,n,a,e[14],3275163606,9),a=Hr(a,i,r,n,e[3],4107603335,14),n=Hr(n,a,i,r,e[8],1163531501,20),r=Hr(r,n,a,i,e[13],2850285829,5),i=Hr(i,r,n,a,e[2],4243563512,9),a=Hr(a,i,r,n,e[7],1735328473,14),n=Hr(n,a,i,r,e[12],2368359562,20),r=Kr(r,n,a,i,e[5],4294588738,4),i=Kr(i,r,n,a,e[8],2272392833,11),a=Kr(a,i,r,n,e[11],1839030562,16),n=Kr(n,a,i,r,e[14],4259657740,23),r=Kr(r,n,a,i,e[1],2763975236,4),i=Kr(i,r,n,a,e[4],1272893353,11),a=Kr(a,i,r,n,e[7],4139469664,16),n=Kr(n,a,i,r,e[10],3200236656,23),r=Kr(r,n,a,i,e[13],681279174,4),i=Kr(i,r,n,a,e[0],3936430074,11),a=Kr(a,i,r,n,e[3],3572445317,16),n=Kr(n,a,i,r,e[6],76029189,23),r=Kr(r,n,a,i,e[9],3654602809,4),i=Kr(i,r,n,a,e[12],3873151461,11),a=Kr(a,i,r,n,e[15],530742520,16),n=Kr(n,a,i,r,e[2],3299628645,23),r=Gr(r,n,a,i,e[0],4096336452,6),i=Gr(i,r,n,a,e[7],1126891415,10),a=Gr(a,i,r,n,e[14],2878612391,15),n=Gr(n,a,i,r,e[5],4237533241,21),r=Gr(r,n,a,i,e[12],1700485571,6),i=Gr(i,r,n,a,e[3],2399980690,10),a=Gr(a,i,r,n,e[10],4293915773,15),n=Gr(n,a,i,r,e[1],2240044497,21),r=Gr(r,n,a,i,e[8],1873313359,6),i=Gr(i,r,n,a,e[15],4264355552,10),a=Gr(a,i,r,n,e[6],2734768916,15),n=Gr(n,a,i,r,e[13],1309151649,21),r=Gr(r,n,a,i,e[4],4149444226,6),i=Gr(i,r,n,a,e[11],3174756917,10),a=Gr(a,i,r,n,e[2],718787259,15),n=Gr(n,a,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};Wh.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=lq.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 Vh(e,t){return e<>>32-t}function $r(e,t,r,n,a,i,f){return Vh(e+(t&r|~t&n)+a+i|0,f)+t|0}function Hr(e,t,r,n,a,i,f){return Vh(e+(t&n|r&~n)+a+i|0,f)+t|0}function Kr(e,t,r,n,a,i,f){return Vh(e+(t^r^n)+a+i|0,f)+t|0}function Gr(e,t,r,n,a,i,f){return Vh(e+(r^(t|~n))+a+i|0,f)+t|0}var B5=Wh,N3=Te.Buffer,hq=ot,eC=JE,dq=new Array(16),T0=[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],P0=[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],O0=[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],k0=[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],I0=[0,1518500249,1859775393,2400959708,2840853838],B0=[1352829926,1548603684,1836072691,2053994217,0];function Zh(){eC.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}hq(Zh,eC);Zh.prototype._update=function(){for(var e=dq,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,f=this._e|0,l=this._a|0,c=this._b|0,m=this._c|0,g=this._d|0,_=this._e|0,S=0;S<80;S+=1){var M,P;S<16?(M=em(r,n,a,i,f,e[T0[S]],I0[0],O0[S]),P=im(l,c,m,g,_,e[P0[S]],B0[0],k0[S])):S<32?(M=tm(r,n,a,i,f,e[T0[S]],I0[1],O0[S]),P=nm(l,c,m,g,_,e[P0[S]],B0[1],k0[S])):S<48?(M=rm(r,n,a,i,f,e[T0[S]],I0[2],O0[S]),P=rm(l,c,m,g,_,e[P0[S]],B0[2],k0[S])):S<64?(M=nm(r,n,a,i,f,e[T0[S]],I0[3],O0[S]),P=tm(l,c,m,g,_,e[P0[S]],B0[3],k0[S])):(M=im(r,n,a,i,f,e[T0[S]],I0[4],O0[S]),P=em(l,c,m,g,_,e[P0[S]],B0[4],k0[S])),r=f,f=i,i=mf(a,10),a=n,n=M,l=_,_=g,g=mf(m,10),m=c,c=P}var I=this._b+a+g|0;this._b=this._c+i+_|0,this._c=this._d+f+l|0,this._d=this._e+r+c|0,this._e=this._a+n+m|0,this._a=I};Zh.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=N3.alloc?N3.alloc(20):new N3(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};function mf(e,t){return e<>>32-t}function em(e,t,r,n,a,i,f,l){return mf(e+(t^r^n)+i+f|0,l)+a|0}function tm(e,t,r,n,a,i,f,l){return mf(e+(t&r|~t&n)+i+f|0,l)+a|0}function rm(e,t,r,n,a,i,f,l){return mf(e+((t|~r)^n)+i+f|0,l)+a|0}function nm(e,t,r,n,a,i,f,l){return mf(e+(t&n|r&~n)+i+f|0,l)+a|0}function im(e,t,r,n,a,i,f,l){return mf(e+(t^(r|~n))+i+f|0,l)+a|0}var L5=Zh,tC={exports:{}},rC=st.Buffer;function Xh(e,t){this._block=rC.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Xh.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=rC.from(e,t));for(var r=this._block,n=this._blockSize,a=e.length,i=this._len,f=0;f=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,a=(r-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i};Xh.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var s0=Xh,pq=ot,nC=s0,vq=st.Buffer,gq=[1518500249,1859775393,-1894007588,-899497514],yq=new Array(80);function gl(){this.init(),this._w=yq,nC.call(this,64,56)}pq(gl,nC);gl.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function mq(e){return e<<5|e>>>27}function bq(e){return e<<30|e>>>2}function xq(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}gl.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,f=this._e|0,l=0;l<16;++l)t[l]=e.readInt32BE(l*4);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var c=0;c<80;++c){var m=~~(c/20),g=mq(r)+xq(m,n,a,i)+f+t[c]+gq[m]|0;f=i,i=a,a=bq(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=f+this._e|0};gl.prototype._hash=function(){var e=vq.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};var wq=gl,_q=ot,iC=s0,Sq=st.Buffer,Eq=[1518500249,1859775393,-1894007588,-899497514],Cq=new Array(80);function yl(){this.init(),this._w=Cq,iC.call(this,64,56)}_q(yl,iC);yl.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Mq(e){return e<<1|e>>>31}function Aq(e){return e<<5|e>>>27}function Rq(e){return e<<30|e>>>2}function Tq(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}yl.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,f=this._e|0,l=0;l<16;++l)t[l]=e.readInt32BE(l*4);for(;l<80;++l)t[l]=Mq(t[l-3]^t[l-8]^t[l-14]^t[l-16]);for(var c=0;c<80;++c){var m=~~(c/20),g=Aq(r)+Tq(m,n,a,i)+f+t[c]+Eq[m]|0;f=i,i=a,a=Rq(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=f+this._e|0};yl.prototype._hash=function(){var e=Sq.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};var Pq=yl,Oq=ot,aC=s0,kq=st.Buffer,Iq=[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],Bq=new Array(64);function ml(){this.init(),this._w=Bq,aC.call(this,64,56)}Oq(ml,aC);ml.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 Lq(e,t,r){return r^e&(t^r)}function Nq(e,t,r){return e&t|r&(e|t)}function Dq(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function Fq(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Uq(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function jq(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}ml.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,f=this._e|0,l=this._f|0,c=this._g|0,m=this._h|0,g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<64;++g)t[g]=jq(t[g-2])+t[g-7]+Uq(t[g-15])+t[g-16]|0;for(var _=0;_<64;++_){var S=m+Fq(f)+Lq(f,l,c)+Iq[_]+t[_]|0,M=Dq(r)+Nq(r,n,a)|0;m=c,c=l,l=f,f=i+S|0,i=a,a=n,n=r,r=S+M|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=f+this._e|0,this._f=l+this._f|0,this._g=c+this._g|0,this._h=m+this._h|0};ml.prototype._hash=function(){var e=kq.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var oC=ml,qq=ot,zq=oC,$q=s0,Hq=st.Buffer,Kq=new Array(64);function Yh(){this.init(),this._w=Kq,$q.call(this,64,56)}qq(Yh,zq);Yh.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};Yh.prototype._hash=function(){var e=Hq.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var Gq=Yh,Wq=ot,fC=s0,Vq=st.Buffer,am=[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],Zq=new Array(160);function bl(){this.init(),this._w=Zq,fC.call(this,128,112)}Wq(bl,fC);bl.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 om(e,t,r){return r^e&(t^r)}function fm(e,t,r){return e&t|r&(e|t)}function sm(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function um(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Xq(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Yq(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Jq(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Qq(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function xr(e,t){return e>>>0>>0?1:0}bl.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,f=this._eh|0,l=this._fh|0,c=this._gh|0,m=this._hh|0,g=this._al|0,_=this._bl|0,S=this._cl|0,M=this._dl|0,P=this._el|0,I=this._fl|0,B=this._gl|0,R=this._hl|0,A=0;A<32;A+=2)t[A]=e.readInt32BE(A*4),t[A+1]=e.readInt32BE(A*4+4);for(;A<160;A+=2){var F=t[A-30],V=t[A-15*2+1],j=Xq(F,V),N=Yq(V,F);F=t[A-2*2],V=t[A-2*2+1];var K=Jq(F,V),J=Qq(V,F),te=t[A-7*2],ee=t[A-7*2+1],G=t[A-16*2],E=t[A-16*2+1],d=N+ee|0,o=j+te+xr(d,N)|0;d=d+J|0,o=o+K+xr(d,J)|0,d=d+E|0,o=o+G+xr(d,E)|0,t[A]=o,t[A+1]=d}for(var u=0;u<160;u+=2){o=t[u],d=t[u+1];var p=fm(r,n,a),y=fm(g,_,S),x=sm(r,g),w=sm(g,r),v=um(f,P),h=um(P,f),s=am[u],b=am[u+1],D=om(f,l,c),C=om(P,I,B),U=R+h|0,$=m+v+xr(U,R)|0;U=U+C|0,$=$+D+xr(U,C)|0,U=U+b|0,$=$+s+xr(U,b)|0,U=U+d|0,$=$+o+xr(U,d)|0;var H=w+y|0,X=x+p+xr(H,w)|0;m=c,R=B,c=l,B=I,l=f,I=P,P=M+U|0,f=i+$+xr(P,M)|0,i=a,M=S,a=n,S=_,n=r,_=g,g=U+H|0,r=$+X+xr(g,U)|0}this._al=this._al+g|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+M|0,this._el=this._el+P|0,this._fl=this._fl+I|0,this._gl=this._gl+B|0,this._hl=this._hl+R|0,this._ah=this._ah+r+xr(this._al,g)|0,this._bh=this._bh+n+xr(this._bl,_)|0,this._ch=this._ch+a+xr(this._cl,S)|0,this._dh=this._dh+i+xr(this._dl,M)|0,this._eh=this._eh+f+xr(this._el,P)|0,this._fh=this._fh+l+xr(this._fl,I)|0,this._gh=this._gh+c+xr(this._gl,B)|0,this._hh=this._hh+m+xr(this._hl,R)|0};bl.prototype._hash=function(){var e=Vq.allocUnsafe(64);function t(r,n,a){e.writeInt32BE(r,a),e.writeInt32BE(n,a+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var sC=bl,ez=ot,tz=sC,rz=s0,nz=st.Buffer,iz=new Array(160);function Jh(){this.init(),this._w=iz,rz.call(this,128,112)}ez(Jh,tz);Jh.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};Jh.prototype._hash=function(){var e=nz.allocUnsafe(48);function t(r,n,a){e.writeInt32BE(r,a),e.writeInt32BE(n,a+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var az=Jh,Ua=tC.exports=function(t){t=t.toLowerCase();var r=Ua[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};Ua.sha=wq;Ua.sha1=Pq;Ua.sha224=Gq;Ua.sha256=oC;Ua.sha384=az;Ua.sha512=sC;var N5=tC.exports,uC=st.Buffer,lC=Nh.Transform,oz=qu.StringDecoder,fz=ot;function Ni(e){lC.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}fz(Ni,lC);Ni.prototype.update=function(e,t,r){typeof e=="string"&&(e=uC.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};Ni.prototype.setAutoPadding=function(){};Ni.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Ni.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Ni.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Ni.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(a){n=a}finally{r(n)}};Ni.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};Ni.prototype._finalOrDigest=function(e){var t=this.__final()||uC.alloc(0);return e&&(t=this._toString(t,e,!0)),t};Ni.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new oz(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n};var Do=Ni,sz=ot,uz=B5,lz=L5,cz=N5,cC=Do;function Qh(e){cC.call(this,"digest"),this._hash=e}sz(Qh,cC);Qh.prototype._update=function(e){this._hash.update(e)};Qh.prototype._final=function(){return this._hash.digest()};var xl=function(t){return t=t.toLowerCase(),t==="md5"?new uz:t==="rmd160"||t==="ripemd160"?new lz:new Qh(cz(t))},hz=ot,rf=st.Buffer,hC=Do,dz=rf.alloc(128),Df=64;function ed(e,t){hC.call(this,"digest"),typeof t=="string"&&(t=rf.from(t)),this._alg=e,this._key=t,t.length>Df?t=e(t):t.lengthr){var n=e==="rmd160"?new b6:x6(e);t=n.update(t).digest()}else t.lengthkz||t!==t)throw new TypeError("Bad key length")},Wc;if(Oe.process&&Oe.process.browser)Wc="utf-8";else if(Oe.process&&Oe.process.version){var Iz=parseInt(He.version.split(".")[0].slice(1),10);Wc=Iz>=6?"utf-8":"binary"}else Wc="utf-8";var mC=Wc,D3=st.Buffer,bC=function(e,t,r){if(D3.isBuffer(e))return e;if(typeof e=="string")return D3.from(e,t);if(ArrayBuffer.isView(e))return D3.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")},Bz=dC,Lz=L5,Nz=N5,nf=st.Buffer,Dz=yC,lm=mC,cm=bC,Fz=nf.alloc(128),Vc={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function xC(e,t,r){var n=Uz(e),a=e==="sha512"||e==="sha384"?128:64;t.length>a?t=n(t):t.length>>0};Bn.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};Bn.ip=function(t,r,n,a){for(var i=0,f=0,l=6;l>=0;l-=2){for(var c=0;c<=24;c+=8)i<<=1,i|=r>>>c+l&1;for(var c=0;c<=24;c+=8)i<<=1,i|=t>>>c+l&1}for(var l=6;l>=0;l-=2){for(var c=1;c<=25;c+=8)f<<=1,f|=r>>>c+l&1;for(var c=1;c<=25;c+=8)f<<=1,f|=t>>>c+l&1}n[a+0]=i>>>0,n[a+1]=f>>>0};Bn.rip=function(t,r,n,a){for(var i=0,f=0,l=0;l<4;l++)for(var c=24;c>=0;c-=8)i<<=1,i|=r>>>c+l&1,i<<=1,i|=t>>>c+l&1;for(var l=4;l<8;l++)for(var c=24;c>=0;c-=8)f<<=1,f|=r>>>c+l&1,f<<=1,f|=t>>>c+l&1;n[a+0]=i>>>0,n[a+1]=f>>>0};Bn.pc1=function(t,r,n,a){for(var i=0,f=0,l=7;l>=5;l--){for(var c=0;c<=24;c+=8)i<<=1,i|=r>>c+l&1;for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+l&1}for(var c=0;c<=24;c+=8)i<<=1,i|=r>>c+l&1;for(var l=1;l<=3;l++){for(var c=0;c<=24;c+=8)f<<=1,f|=r>>c+l&1;for(var c=0;c<=24;c+=8)f<<=1,f|=t>>c+l&1}for(var c=0;c<=24;c+=8)f<<=1,f|=t>>c+l&1;n[a+0]=i>>>0,n[a+1]=f>>>0};Bn.r28shl=function(t,r){return t<>>28-r};var hc=[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];Bn.pc2=function(t,r,n,a){for(var i=0,f=0,l=hc.length>>>1,c=0;c>>hc[c]&1;for(var c=l;c>>hc[c]&1;n[a+0]=i>>>0,n[a+1]=f>>>0};Bn.expand=function(t,r,n){var a=0,i=0;a=(t&1)<<5|t>>>27;for(var f=23;f>=15;f-=4)a<<=6,a|=t>>>f&63;for(var f=11;f>=3;f-=4)i|=t>>>f&63,i<<=6;i|=(t&31)<<1|t>>>31,r[n+0]=a>>>0,r[n+1]=i>>>0};var vm=[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];Bn.substitute=function(t,r){for(var n=0,a=0;a<4;a++){var i=t>>>18-a*6&63,f=vm[a*64+i];n<<=4,n|=f}for(var a=0;a<4;a++){var i=r>>>18-a*6&63,f=vm[4*64+a*64+i];n<<=4,n|=f}return n>>>0};var gm=[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];Bn.permute=function(t){for(var r=0,n=0;n>>gm[n]&1;return r>>>0};Bn.padSplit=function(t,r,n){for(var a=t.toString(2);a.length0;a--)r+=this._buffer(t,r),n+=this._flushBuffer(i,n);return r+=this._buffer(t,r),i};si.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};si.prototype._pad=function(t,r){if(r===0)return!1;for(;r>>1];n=gr.r28shl(n,f),a=gr.r28shl(a,f),gr.pc2(n,a,t.keys,i)}};oa.prototype._update=function(t,r,n,a){var i=this._desState,f=gr.readUInt32BE(t,r),l=gr.readUInt32BE(t,r+4);gr.ip(f,l,i.tmp,0),f=i.tmp[0],l=i.tmp[1],this.type==="encrypt"?this._encrypt(i,f,l,i.tmp,0):this._decrypt(i,f,l,i.tmp,0),f=i.tmp[0],l=i.tmp[1],gr.writeUInt32BE(n,f,a),gr.writeUInt32BE(n,l,a+4)};oa.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var n=t.length-r,a=r;a>>0,f=M}gr.rip(l,f,a,i)};oa.prototype._decrypt=function(t,r,n,a,i){for(var f=n,l=r,c=t.keys.length-2;c>=0;c-=2){var m=t.keys[c],g=t.keys[c+1];gr.expand(f,t.tmp,0),m^=t.tmp[0],g^=t.tmp[1];var _=gr.substitute(m,g),S=gr.permute(_),M=f;f=(l^S)>>>0,l=M}gr.rip(f,l,a,i)};var RC={},Xz=fi,Yz=ot,$1={};function Jz(e){Xz.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t>a%8,e._prev=u$(e._prev,r?l:c);return f}function u$(e,t){var r=e.length,n=-1,a=Zc.allocUnsafe(e.length);for(e=Zc.concat([e,Zc.from([t])]);++n>7;return a}BC.encrypt=function(e,t,r){for(var n=t.length,a=Zc.allocUnsafe(n),i=-1;++i>>24]^f[g>>>16&255]^l[_>>>8&255]^c[S&255]^t[R++],P=i[g>>>24]^f[_>>>16&255]^l[S>>>8&255]^c[m&255]^t[R++],I=i[_>>>24]^f[S>>>16&255]^l[m>>>8&255]^c[g&255]^t[R++],B=i[S>>>24]^f[m>>>16&255]^l[g>>>8&255]^c[_&255]^t[R++],m=M,g=P,_=I,S=B;return M=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[_>>>8&255]<<8|n[S&255])^t[R++],P=(n[g>>>24]<<24|n[_>>>16&255]<<16|n[S>>>8&255]<<8|n[m&255])^t[R++],I=(n[_>>>24]<<24|n[S>>>16&255]<<16|n[m>>>8&255]<<8|n[g&255])^t[R++],B=(n[S>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[_&255])^t[R++],M=M>>>0,P=P>>>0,I=I>>>0,B=B>>>0,[M,P,I,B]}var x$=[0,1,2,4,8,16,32,64,128,27,54],sr=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=[],a=[[],[],[],[]],i=[[],[],[],[]],f=0,l=0,c=0;c<256;++c){var m=l^l<<1^l<<2^l<<3^l<<4;m=m>>>8^m&255^99,r[f]=m,n[m]=f;var g=e[f],_=e[g],S=e[_],M=e[m]*257^m*16843008;a[0][f]=M<<24|M>>>8,a[1][f]=M<<16|M>>>16,a[2][f]=M<<8|M>>>24,a[3][f]=M,M=S*16843009^_*65537^g*257^f*16843008,i[0][m]=M<<24|M>>>8,i[1][m]=M<<16|M>>>16,i[2][m]=M<<8|M>>>24,i[3][m]=M,f===0?f=l=1:(f=g^e[e[e[S^g]]],l^=e[e[l]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function ni(e){this._key=z5(e),this._reset()}ni.blockSize=4*4;ni.keySize=256/8;ni.prototype.blockSize=ni.blockSize;ni.prototype.keySize=ni.keySize;ni.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,a=[],i=0;i>>24,f=sr.SBOX[f>>>24]<<24|sr.SBOX[f>>>16&255]<<16|sr.SBOX[f>>>8&255]<<8|sr.SBOX[f&255],f^=x$[i/t|0]<<24):t>6&&i%t===4&&(f=sr.SBOX[f>>>24]<<24|sr.SBOX[f>>>16&255]<<16|sr.SBOX[f>>>8&255]<<8|sr.SBOX[f&255]),a[i]=a[i-t]^f}for(var l=[],c=0;c>>24]]^sr.INV_SUB_MIX[1][sr.SBOX[g>>>16&255]]^sr.INV_SUB_MIX[2][sr.SBOX[g>>>8&255]]^sr.INV_SUB_MIX[3][sr.SBOX[g&255]]}this._nRounds=r,this._keySchedule=a,this._invKeySchedule=l};ni.prototype.encryptBlockRaw=function(e){return e=z5(e),FC(e,this._keySchedule,sr.SUB_MIX,sr.SBOX,this._nRounds)};ni.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=H1.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};ni.prototype.decryptBlock=function(e){e=z5(e);var t=e[1];e[1]=e[3],e[3]=t;var r=FC(e,this._invKeySchedule,sr.INV_SUB_MIX,sr.INV_SBOX,this._nRounds),n=H1.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n};ni.prototype.scrub=function(){j3(this._keySchedule),j3(this._invKeySchedule),j3(this._key)};_l.AES=ni;var js=st.Buffer,w$=js.alloc(16,0);function _$(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function UC(e){var t=js.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 Sl(e){this.h=e,this.state=js.alloc(16,0),this.cache=js.allocUnsafe(0)}Sl.prototype.ghash=function(e){for(var t=-1;++t0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,a&&(e[0]=e[0]^225<<24)}this.state=UC(t)};Sl.prototype.update=function(e){this.cache=js.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)};Sl.prototype.final=function(e,t){return this.cache.length&&this.ghash(js.concat([this.cache,w$],16)),this.ghash(UC([0,e,0,t])),this.state};var S$=Sl,E$=_l,dn=st.Buffer,jC=Do,C$=ot,qC=S$,M$=wl,A$=NC;function R$(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),a=0;a0||n>0;){var c=new k$;c.update(l),c.update(e),t&&c.update(t),l=c.digest();var m=0;if(a>0){var g=i.length-a;m=Math.min(a,l.length),l.copy(i,g,0,m),a-=m}if(m0){var _=f.length-n,S=Math.min(n,l.length-m);l.copy(f,_,m,m+S),n-=S}}return l.fill(0),{key:i,iv:f}}var id=I$,KC=q5,B$=zC,Ia=st.Buffer,L$=HC,GC=Do,N$=_l,D$=id,F$=ot;function El(e,t,r){GC.call(this),this._cache=new ad,this._cipher=new N$.AES(t),this._prev=Ia.from(r),this._mode=e,this._autopadding=!0}F$(El,GC);El.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 Ia.concat(n)};var U$=Ia.alloc(16,16);El.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(U$))throw this._cipher.scrub(),new Error("data not multiple of block length")};El.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function ad(){this.cache=Ia.allocUnsafe(0)}ad.prototype.add=function(e){this.cache=Ia.concat([this.cache,e])};ad.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};ad.prototype.flush=function(){for(var e=16-this.cache.length,t=Ia.allocUnsafe(e),r=-1;++r16)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};od.prototype.flush=function(){if(this.cache.length)return this.cache};function G$(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r0?E:d},i.min=function(E,d){return E.cmp(d)<0?E:d},i.prototype._init=function(E,d,o){if(typeof E=="number")return this._initNumber(E,d,o);if(typeof E=="object")return this._initArray(E,d,o);d==="hex"&&(d=16),n(d===(d|0)&&d>=2&&d<=36),E=E.toString().replace(/\s+/g,"");var u=0;E[0]==="-"&&(u++,this.negative=1),u=0;u-=3)y=E[u]|E[u-1]<<8|E[u-2]<<16,this.words[p]|=y<>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(o==="le")for(u=0,p=0;u>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function l(G,E){var d=G.charCodeAt(E);return d>=65&&d<=70?d-55:d>=97&&d<=102?d-87:d-48&15}function c(G,E,d){var o=l(G,d);return d-1>=E&&(o|=l(G,d-1)<<4),o}i.prototype._parseHex=function(E,d,o){this.length=Math.ceil((E.length-d)/6),this.words=new Array(this.length);for(var u=0;u=d;u-=2)x=c(E,d,u)<=18?(p-=18,y+=1,this.words[y]|=x>>>26):p+=8;else{var w=E.length-d;for(u=w%2===0?d+1:d;u=18?(p-=18,y+=1,this.words[y]|=x>>>26):p+=8}this.strip()};function m(G,E,d,o){for(var u=0,p=Math.min(G.length,d),y=E;y=49?u+=x-49+10:x>=17?u+=x-17+10:u+=x}return u}i.prototype._parseBase=function(E,d,o){this.words=[0],this.length=1;for(var u=0,p=1;p<=67108863;p*=d)u++;u--,p=p/d|0;for(var y=E.length-o,x=y%u,w=Math.min(y,y-x)+o,v=0,h=o;h1&&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?""};var g=["","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"],_=[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],S=[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(E,d){E=E||10,d=d|0||1;var o;if(E===16||E==="hex"){o="";for(var u=0,p=0,y=0;y>>24-u&16777215,p!==0||y!==this.length-1?o=g[6-w.length]+w+o:o=w+o,u+=2,u>=26&&(u-=26,y--)}for(p!==0&&(o=p.toString(16)+o);o.length%d!==0;)o="0"+o;return this.negative!==0&&(o="-"+o),o}if(E===(E|0)&&E>=2&&E<=36){var v=_[E],h=S[E];o="";var s=this.clone();for(s.negative=0;!s.isZero();){var b=s.modn(h).toString(E);s=s.idivn(h),s.isZero()?o=b+o:o=g[v-b.length]+b+o}for(this.isZero()&&(o="0"+o);o.length%d!==0;)o="0"+o;return this.negative!==0&&(o="-"+o),o}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var E=this.words[0];return this.length===2?E+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E:E},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(E,d){return n(typeof f<"u"),this.toArrayLike(f,E,d)},i.prototype.toArray=function(E,d){return this.toArrayLike(Array,E,d)},i.prototype.toArrayLike=function(E,d,o){var u=this.byteLength(),p=o||Math.max(1,u);n(u<=p,"byte array longer than desired length"),n(p>0,"Requested array length <= 0"),this.strip();var y=d==="le",x=new E(p),w,v,h=this.clone();if(y){for(v=0;!h.isZero();v++)w=h.andln(255),h.iushrn(8),x[v]=w;for(;v=4096&&(o+=13,d>>>=13),d>=64&&(o+=7,d>>>=7),d>=8&&(o+=4,d>>>=4),d>=2&&(o+=2,d>>>=2),o+d},i.prototype._zeroBits=function(E){if(E===0)return 26;var d=E,o=0;return d&8191||(o+=13,d>>>=13),d&127||(o+=7,d>>>=7),d&15||(o+=4,d>>>=4),d&3||(o+=2,d>>>=2),d&1||o++,o},i.prototype.bitLength=function(){var E=this.words[this.length-1],d=this._countBits(E);return(this.length-1)*26+d};function M(G){for(var E=new Array(G.bitLength()),d=0;d>>u}return E}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E=0,d=0;dE.length?this.clone().ior(E):E.clone().ior(this)},i.prototype.uor=function(E){return this.length>E.length?this.clone().iuor(E):E.clone().iuor(this)},i.prototype.iuand=function(E){var d;this.length>E.length?d=E:d=this;for(var o=0;oE.length?this.clone().iand(E):E.clone().iand(this)},i.prototype.uand=function(E){return this.length>E.length?this.clone().iuand(E):E.clone().iuand(this)},i.prototype.iuxor=function(E){var d,o;this.length>E.length?(d=this,o=E):(d=E,o=this);for(var u=0;uE.length?this.clone().ixor(E):E.clone().ixor(this)},i.prototype.uxor=function(E){return this.length>E.length?this.clone().iuxor(E):E.clone().iuxor(this)},i.prototype.inotn=function(E){n(typeof E=="number"&&E>=0);var d=Math.ceil(E/26)|0,o=E%26;this._expand(d),o>0&&d--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-o),this.strip()},i.prototype.notn=function(E){return this.clone().inotn(E)},i.prototype.setn=function(E,d){n(typeof E=="number"&&E>=0);var o=E/26|0,u=E%26;return this._expand(o+1),d?this.words[o]=this.words[o]|1<E.length?(o=this,u=E):(o=E,u=this);for(var p=0,y=0;y>>26;for(;p!==0&&y>>26;if(this.length=o.length,p!==0)this.words[this.length]=p,this.length++;else if(o!==this)for(;yE.length?this.clone().iadd(E):E.clone().iadd(this)},i.prototype.isub=function(E){if(E.negative!==0){E.negative=0;var d=this.iadd(E);return E.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E),this.negative=1,this._normSign();var o=this.cmp(E);if(o===0)return this.negative=0,this.length=1,this.words[0]=0,this;var u,p;o>0?(u=this,p=E):(u=E,p=this);for(var y=0,x=0;x>26,this.words[x]=d&67108863;for(;y!==0&&x>26,this.words[x]=d&67108863;if(y===0&&x>>26,s=w&67108863,b=Math.min(v,E.length-1),D=Math.max(0,v-G.length+1);D<=b;D++){var C=v-D|0;u=G.words[C]|0,p=E.words[D]|0,y=u*p+s,h+=y/67108864|0,s=y&67108863}d.words[v]=s|0,w=h|0}return w!==0?d.words[v]=w|0:d.length--,d.strip()}var I=function(E,d,o){var u=E.words,p=d.words,y=o.words,x=0,w,v,h,s=u[0]|0,b=s&8191,D=s>>>13,C=u[1]|0,U=C&8191,$=C>>>13,H=u[2]|0,X=H&8191,z=H>>>13,k=u[3]|0,L=k&8191,oe=k>>>13,re=u[4]|0,se=re&8191,Y=re>>>13,T=u[5]|0,O=T&8191,W=T>>>13,ie=u[6]|0,ue=ie&8191,we=ie>>>13,_e=u[7]|0,Z=_e&8191,le=_e>>>13,fe=u[8]|0,pe=fe&8191,Ce=fe>>>13,Me=u[9]|0,Ee=Me&8191,ne=Me>>>13,me=p[0]|0,ye=me&8191,Ie=me>>>13,he=p[1]|0,ve=he&8191,Q=he>>>13,xe=p[2]|0,Ae=xe&8191,q=xe>>>13,be=p[3]|0,de=be&8191,ae=be>>>13,ce=p[4]|0,ge=ce&8191,Ue=ce>>>13,Re=p[5]|0,Se=Re&8191,Ve=Re>>>13,je=p[6]|0,ke=je&8191,Ze=je>>>13,Ne=p[7]|0,Be=Ne&8191,et=Ne>>>13,$e=p[8]|0,De=$e&8191,Qe=$e>>>13,qe=p[9]|0,Le=qe&8191,rt=qe>>>13;o.negative=E.negative^d.negative,o.length=19,w=Math.imul(b,ye),v=Math.imul(b,Ie),v=v+Math.imul(D,ye)|0,h=Math.imul(D,Ie);var ze=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(ze>>>26)|0,ze&=67108863,w=Math.imul(U,ye),v=Math.imul(U,Ie),v=v+Math.imul($,ye)|0,h=Math.imul($,Ie),w=w+Math.imul(b,ve)|0,v=v+Math.imul(b,Q)|0,v=v+Math.imul(D,ve)|0,h=h+Math.imul(D,Q)|0;var Ge=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,w=Math.imul(X,ye),v=Math.imul(X,Ie),v=v+Math.imul(z,ye)|0,h=Math.imul(z,Ie),w=w+Math.imul(U,ve)|0,v=v+Math.imul(U,Q)|0,v=v+Math.imul($,ve)|0,h=h+Math.imul($,Q)|0,w=w+Math.imul(b,Ae)|0,v=v+Math.imul(b,q)|0,v=v+Math.imul(D,Ae)|0,h=h+Math.imul(D,q)|0;var Et=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Et>>>26)|0,Et&=67108863,w=Math.imul(L,ye),v=Math.imul(L,Ie),v=v+Math.imul(oe,ye)|0,h=Math.imul(oe,Ie),w=w+Math.imul(X,ve)|0,v=v+Math.imul(X,Q)|0,v=v+Math.imul(z,ve)|0,h=h+Math.imul(z,Q)|0,w=w+Math.imul(U,Ae)|0,v=v+Math.imul(U,q)|0,v=v+Math.imul($,Ae)|0,h=h+Math.imul($,q)|0,w=w+Math.imul(b,de)|0,v=v+Math.imul(b,ae)|0,v=v+Math.imul(D,de)|0,h=h+Math.imul(D,ae)|0;var Ct=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,w=Math.imul(se,ye),v=Math.imul(se,Ie),v=v+Math.imul(Y,ye)|0,h=Math.imul(Y,Ie),w=w+Math.imul(L,ve)|0,v=v+Math.imul(L,Q)|0,v=v+Math.imul(oe,ve)|0,h=h+Math.imul(oe,Q)|0,w=w+Math.imul(X,Ae)|0,v=v+Math.imul(X,q)|0,v=v+Math.imul(z,Ae)|0,h=h+Math.imul(z,q)|0,w=w+Math.imul(U,de)|0,v=v+Math.imul(U,ae)|0,v=v+Math.imul($,de)|0,h=h+Math.imul($,ae)|0,w=w+Math.imul(b,ge)|0,v=v+Math.imul(b,Ue)|0,v=v+Math.imul(D,ge)|0,h=h+Math.imul(D,Ue)|0;var Mt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,w=Math.imul(O,ye),v=Math.imul(O,Ie),v=v+Math.imul(W,ye)|0,h=Math.imul(W,Ie),w=w+Math.imul(se,ve)|0,v=v+Math.imul(se,Q)|0,v=v+Math.imul(Y,ve)|0,h=h+Math.imul(Y,Q)|0,w=w+Math.imul(L,Ae)|0,v=v+Math.imul(L,q)|0,v=v+Math.imul(oe,Ae)|0,h=h+Math.imul(oe,q)|0,w=w+Math.imul(X,de)|0,v=v+Math.imul(X,ae)|0,v=v+Math.imul(z,de)|0,h=h+Math.imul(z,ae)|0,w=w+Math.imul(U,ge)|0,v=v+Math.imul(U,Ue)|0,v=v+Math.imul($,ge)|0,h=h+Math.imul($,Ue)|0,w=w+Math.imul(b,Se)|0,v=v+Math.imul(b,Ve)|0,v=v+Math.imul(D,Se)|0,h=h+Math.imul(D,Ve)|0;var At=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(At>>>26)|0,At&=67108863,w=Math.imul(ue,ye),v=Math.imul(ue,Ie),v=v+Math.imul(we,ye)|0,h=Math.imul(we,Ie),w=w+Math.imul(O,ve)|0,v=v+Math.imul(O,Q)|0,v=v+Math.imul(W,ve)|0,h=h+Math.imul(W,Q)|0,w=w+Math.imul(se,Ae)|0,v=v+Math.imul(se,q)|0,v=v+Math.imul(Y,Ae)|0,h=h+Math.imul(Y,q)|0,w=w+Math.imul(L,de)|0,v=v+Math.imul(L,ae)|0,v=v+Math.imul(oe,de)|0,h=h+Math.imul(oe,ae)|0,w=w+Math.imul(X,ge)|0,v=v+Math.imul(X,Ue)|0,v=v+Math.imul(z,ge)|0,h=h+Math.imul(z,Ue)|0,w=w+Math.imul(U,Se)|0,v=v+Math.imul(U,Ve)|0,v=v+Math.imul($,Se)|0,h=h+Math.imul($,Ve)|0,w=w+Math.imul(b,ke)|0,v=v+Math.imul(b,Ze)|0,v=v+Math.imul(D,ke)|0,h=h+Math.imul(D,Ze)|0;var Rt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,w=Math.imul(Z,ye),v=Math.imul(Z,Ie),v=v+Math.imul(le,ye)|0,h=Math.imul(le,Ie),w=w+Math.imul(ue,ve)|0,v=v+Math.imul(ue,Q)|0,v=v+Math.imul(we,ve)|0,h=h+Math.imul(we,Q)|0,w=w+Math.imul(O,Ae)|0,v=v+Math.imul(O,q)|0,v=v+Math.imul(W,Ae)|0,h=h+Math.imul(W,q)|0,w=w+Math.imul(se,de)|0,v=v+Math.imul(se,ae)|0,v=v+Math.imul(Y,de)|0,h=h+Math.imul(Y,ae)|0,w=w+Math.imul(L,ge)|0,v=v+Math.imul(L,Ue)|0,v=v+Math.imul(oe,ge)|0,h=h+Math.imul(oe,Ue)|0,w=w+Math.imul(X,Se)|0,v=v+Math.imul(X,Ve)|0,v=v+Math.imul(z,Se)|0,h=h+Math.imul(z,Ve)|0,w=w+Math.imul(U,ke)|0,v=v+Math.imul(U,Ze)|0,v=v+Math.imul($,ke)|0,h=h+Math.imul($,Ze)|0,w=w+Math.imul(b,Be)|0,v=v+Math.imul(b,et)|0,v=v+Math.imul(D,Be)|0,h=h+Math.imul(D,et)|0;var qt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(qt>>>26)|0,qt&=67108863,w=Math.imul(pe,ye),v=Math.imul(pe,Ie),v=v+Math.imul(Ce,ye)|0,h=Math.imul(Ce,Ie),w=w+Math.imul(Z,ve)|0,v=v+Math.imul(Z,Q)|0,v=v+Math.imul(le,ve)|0,h=h+Math.imul(le,Q)|0,w=w+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,q)|0,v=v+Math.imul(we,Ae)|0,h=h+Math.imul(we,q)|0,w=w+Math.imul(O,de)|0,v=v+Math.imul(O,ae)|0,v=v+Math.imul(W,de)|0,h=h+Math.imul(W,ae)|0,w=w+Math.imul(se,ge)|0,v=v+Math.imul(se,Ue)|0,v=v+Math.imul(Y,ge)|0,h=h+Math.imul(Y,Ue)|0,w=w+Math.imul(L,Se)|0,v=v+Math.imul(L,Ve)|0,v=v+Math.imul(oe,Se)|0,h=h+Math.imul(oe,Ve)|0,w=w+Math.imul(X,ke)|0,v=v+Math.imul(X,Ze)|0,v=v+Math.imul(z,ke)|0,h=h+Math.imul(z,Ze)|0,w=w+Math.imul(U,Be)|0,v=v+Math.imul(U,et)|0,v=v+Math.imul($,Be)|0,h=h+Math.imul($,et)|0,w=w+Math.imul(b,De)|0,v=v+Math.imul(b,Qe)|0,v=v+Math.imul(D,De)|0,h=h+Math.imul(D,Qe)|0;var zt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(zt>>>26)|0,zt&=67108863,w=Math.imul(Ee,ye),v=Math.imul(Ee,Ie),v=v+Math.imul(ne,ye)|0,h=Math.imul(ne,Ie),w=w+Math.imul(pe,ve)|0,v=v+Math.imul(pe,Q)|0,v=v+Math.imul(Ce,ve)|0,h=h+Math.imul(Ce,Q)|0,w=w+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,q)|0,v=v+Math.imul(le,Ae)|0,h=h+Math.imul(le,q)|0,w=w+Math.imul(ue,de)|0,v=v+Math.imul(ue,ae)|0,v=v+Math.imul(we,de)|0,h=h+Math.imul(we,ae)|0,w=w+Math.imul(O,ge)|0,v=v+Math.imul(O,Ue)|0,v=v+Math.imul(W,ge)|0,h=h+Math.imul(W,Ue)|0,w=w+Math.imul(se,Se)|0,v=v+Math.imul(se,Ve)|0,v=v+Math.imul(Y,Se)|0,h=h+Math.imul(Y,Ve)|0,w=w+Math.imul(L,ke)|0,v=v+Math.imul(L,Ze)|0,v=v+Math.imul(oe,ke)|0,h=h+Math.imul(oe,Ze)|0,w=w+Math.imul(X,Be)|0,v=v+Math.imul(X,et)|0,v=v+Math.imul(z,Be)|0,h=h+Math.imul(z,et)|0,w=w+Math.imul(U,De)|0,v=v+Math.imul(U,Qe)|0,v=v+Math.imul($,De)|0,h=h+Math.imul($,Qe)|0,w=w+Math.imul(b,Le)|0,v=v+Math.imul(b,rt)|0,v=v+Math.imul(D,Le)|0,h=h+Math.imul(D,rt)|0;var $t=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+($t>>>26)|0,$t&=67108863,w=Math.imul(Ee,ve),v=Math.imul(Ee,Q),v=v+Math.imul(ne,ve)|0,h=Math.imul(ne,Q),w=w+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,q)|0,v=v+Math.imul(Ce,Ae)|0,h=h+Math.imul(Ce,q)|0,w=w+Math.imul(Z,de)|0,v=v+Math.imul(Z,ae)|0,v=v+Math.imul(le,de)|0,h=h+Math.imul(le,ae)|0,w=w+Math.imul(ue,ge)|0,v=v+Math.imul(ue,Ue)|0,v=v+Math.imul(we,ge)|0,h=h+Math.imul(we,Ue)|0,w=w+Math.imul(O,Se)|0,v=v+Math.imul(O,Ve)|0,v=v+Math.imul(W,Se)|0,h=h+Math.imul(W,Ve)|0,w=w+Math.imul(se,ke)|0,v=v+Math.imul(se,Ze)|0,v=v+Math.imul(Y,ke)|0,h=h+Math.imul(Y,Ze)|0,w=w+Math.imul(L,Be)|0,v=v+Math.imul(L,et)|0,v=v+Math.imul(oe,Be)|0,h=h+Math.imul(oe,et)|0,w=w+Math.imul(X,De)|0,v=v+Math.imul(X,Qe)|0,v=v+Math.imul(z,De)|0,h=h+Math.imul(z,Qe)|0,w=w+Math.imul(U,Le)|0,v=v+Math.imul(U,rt)|0,v=v+Math.imul($,Le)|0,h=h+Math.imul($,rt)|0;var Ht=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,w=Math.imul(Ee,Ae),v=Math.imul(Ee,q),v=v+Math.imul(ne,Ae)|0,h=Math.imul(ne,q),w=w+Math.imul(pe,de)|0,v=v+Math.imul(pe,ae)|0,v=v+Math.imul(Ce,de)|0,h=h+Math.imul(Ce,ae)|0,w=w+Math.imul(Z,ge)|0,v=v+Math.imul(Z,Ue)|0,v=v+Math.imul(le,ge)|0,h=h+Math.imul(le,Ue)|0,w=w+Math.imul(ue,Se)|0,v=v+Math.imul(ue,Ve)|0,v=v+Math.imul(we,Se)|0,h=h+Math.imul(we,Ve)|0,w=w+Math.imul(O,ke)|0,v=v+Math.imul(O,Ze)|0,v=v+Math.imul(W,ke)|0,h=h+Math.imul(W,Ze)|0,w=w+Math.imul(se,Be)|0,v=v+Math.imul(se,et)|0,v=v+Math.imul(Y,Be)|0,h=h+Math.imul(Y,et)|0,w=w+Math.imul(L,De)|0,v=v+Math.imul(L,Qe)|0,v=v+Math.imul(oe,De)|0,h=h+Math.imul(oe,Qe)|0,w=w+Math.imul(X,Le)|0,v=v+Math.imul(X,rt)|0,v=v+Math.imul(z,Le)|0,h=h+Math.imul(z,rt)|0;var Kt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,w=Math.imul(Ee,de),v=Math.imul(Ee,ae),v=v+Math.imul(ne,de)|0,h=Math.imul(ne,ae),w=w+Math.imul(pe,ge)|0,v=v+Math.imul(pe,Ue)|0,v=v+Math.imul(Ce,ge)|0,h=h+Math.imul(Ce,Ue)|0,w=w+Math.imul(Z,Se)|0,v=v+Math.imul(Z,Ve)|0,v=v+Math.imul(le,Se)|0,h=h+Math.imul(le,Ve)|0,w=w+Math.imul(ue,ke)|0,v=v+Math.imul(ue,Ze)|0,v=v+Math.imul(we,ke)|0,h=h+Math.imul(we,Ze)|0,w=w+Math.imul(O,Be)|0,v=v+Math.imul(O,et)|0,v=v+Math.imul(W,Be)|0,h=h+Math.imul(W,et)|0,w=w+Math.imul(se,De)|0,v=v+Math.imul(se,Qe)|0,v=v+Math.imul(Y,De)|0,h=h+Math.imul(Y,Qe)|0,w=w+Math.imul(L,Le)|0,v=v+Math.imul(L,rt)|0,v=v+Math.imul(oe,Le)|0,h=h+Math.imul(oe,rt)|0;var Gt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,w=Math.imul(Ee,ge),v=Math.imul(Ee,Ue),v=v+Math.imul(ne,ge)|0,h=Math.imul(ne,Ue),w=w+Math.imul(pe,Se)|0,v=v+Math.imul(pe,Ve)|0,v=v+Math.imul(Ce,Se)|0,h=h+Math.imul(Ce,Ve)|0,w=w+Math.imul(Z,ke)|0,v=v+Math.imul(Z,Ze)|0,v=v+Math.imul(le,ke)|0,h=h+Math.imul(le,Ze)|0,w=w+Math.imul(ue,Be)|0,v=v+Math.imul(ue,et)|0,v=v+Math.imul(we,Be)|0,h=h+Math.imul(we,et)|0,w=w+Math.imul(O,De)|0,v=v+Math.imul(O,Qe)|0,v=v+Math.imul(W,De)|0,h=h+Math.imul(W,Qe)|0,w=w+Math.imul(se,Le)|0,v=v+Math.imul(se,rt)|0,v=v+Math.imul(Y,Le)|0,h=h+Math.imul(Y,rt)|0;var Wt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,w=Math.imul(Ee,Se),v=Math.imul(Ee,Ve),v=v+Math.imul(ne,Se)|0,h=Math.imul(ne,Ve),w=w+Math.imul(pe,ke)|0,v=v+Math.imul(pe,Ze)|0,v=v+Math.imul(Ce,ke)|0,h=h+Math.imul(Ce,Ze)|0,w=w+Math.imul(Z,Be)|0,v=v+Math.imul(Z,et)|0,v=v+Math.imul(le,Be)|0,h=h+Math.imul(le,et)|0,w=w+Math.imul(ue,De)|0,v=v+Math.imul(ue,Qe)|0,v=v+Math.imul(we,De)|0,h=h+Math.imul(we,Qe)|0,w=w+Math.imul(O,Le)|0,v=v+Math.imul(O,rt)|0,v=v+Math.imul(W,Le)|0,h=h+Math.imul(W,rt)|0;var Vt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,w=Math.imul(Ee,ke),v=Math.imul(Ee,Ze),v=v+Math.imul(ne,ke)|0,h=Math.imul(ne,Ze),w=w+Math.imul(pe,Be)|0,v=v+Math.imul(pe,et)|0,v=v+Math.imul(Ce,Be)|0,h=h+Math.imul(Ce,et)|0,w=w+Math.imul(Z,De)|0,v=v+Math.imul(Z,Qe)|0,v=v+Math.imul(le,De)|0,h=h+Math.imul(le,Qe)|0,w=w+Math.imul(ue,Le)|0,v=v+Math.imul(ue,rt)|0,v=v+Math.imul(we,Le)|0,h=h+Math.imul(we,rt)|0;var Zt=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(Ee,Be),v=Math.imul(Ee,et),v=v+Math.imul(ne,Be)|0,h=Math.imul(ne,et),w=w+Math.imul(pe,De)|0,v=v+Math.imul(pe,Qe)|0,v=v+Math.imul(Ce,De)|0,h=h+Math.imul(Ce,Qe)|0,w=w+Math.imul(Z,Le)|0,v=v+Math.imul(Z,rt)|0,v=v+Math.imul(le,Le)|0,h=h+Math.imul(le,rt)|0;var cr=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(cr>>>26)|0,cr&=67108863,w=Math.imul(Ee,De),v=Math.imul(Ee,Qe),v=v+Math.imul(ne,De)|0,h=Math.imul(ne,Qe),w=w+Math.imul(pe,Le)|0,v=v+Math.imul(pe,rt)|0,v=v+Math.imul(Ce,Le)|0,h=h+Math.imul(Ce,rt)|0;var hr=(x+w|0)+((v&8191)<<13)|0;x=(h+(v>>>13)|0)+(hr>>>26)|0,hr&=67108863,w=Math.imul(Ee,Le),v=Math.imul(Ee,rt),v=v+Math.imul(ne,Le)|0,h=Math.imul(ne,rt);var dr=(x+w|0)+((v&8191)<<13)|0;return x=(h+(v>>>13)|0)+(dr>>>26)|0,dr&=67108863,y[0]=ze,y[1]=Ge,y[2]=Et,y[3]=Ct,y[4]=Mt,y[5]=At,y[6]=Rt,y[7]=qt,y[8]=zt,y[9]=$t,y[10]=Ht,y[11]=Kt,y[12]=Gt,y[13]=Wt,y[14]=Vt,y[15]=Zt,y[16]=cr,y[17]=hr,y[18]=dr,x!==0&&(y[19]=x,o.length++),o};Math.imul||(I=P);function B(G,E,d){d.negative=E.negative^G.negative,d.length=G.length+E.length;for(var o=0,u=0,p=0;p>>26)|0,u+=y>>>26,y&=67108863}d.words[p]=x,o=y,y=u}return o!==0?d.words[p]=o:d.length--,d.strip()}function R(G,E,d){var o=new A;return o.mulp(G,E,d)}i.prototype.mulTo=function(E,d){var o,u=this.length+E.length;return this.length===10&&E.length===10?o=I(this,E,d):u<63?o=P(this,E,d):u<1024?o=B(this,E,d):o=R(this,E,d),o};function A(G,E){this.x=G,this.y=E}A.prototype.makeRBT=function(E){for(var d=new Array(E),o=i.prototype._countBits(E)-1,u=0;u>=1;return u},A.prototype.permute=function(E,d,o,u,p,y){for(var x=0;x>>1)p++;return 1<>>13,o[2*y+1]=p&8191,p=p>>>13;for(y=2*d;y>=26,d+=u/67108864|0,d+=p>>>26,this.words[o]=p&67108863}return d!==0&&(this.words[o]=d,this.length++),this},i.prototype.muln=function(E){return this.clone().imuln(E)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(E){var d=M(E);if(d.length===0)return new i(1);for(var o=this,u=0;u=0);var d=E%26,o=(E-d)/26,u=67108863>>>26-d<<26-d,p;if(d!==0){var y=0;for(p=0;p>>26-d}y&&(this.words[p]=y,this.length++)}if(o!==0){for(p=this.length-1;p>=0;p--)this.words[p+o]=this.words[p];for(p=0;p=0);var u;d?u=(d-d%26)/26:u=0;var p=E%26,y=Math.min((E-p)/26,this.length),x=67108863^67108863>>>p<y)for(this.length-=y,v=0;v=0&&(h!==0||v>=u);v--){var s=this.words[v]|0;this.words[v]=h<<26-p|s>>>p,h=s&x}return w&&h!==0&&(w.words[w.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(E,d,o){return n(this.negative===0),this.iushrn(E,d,o)},i.prototype.shln=function(E){return this.clone().ishln(E)},i.prototype.ushln=function(E){return this.clone().iushln(E)},i.prototype.shrn=function(E){return this.clone().ishrn(E)},i.prototype.ushrn=function(E){return this.clone().iushrn(E)},i.prototype.testn=function(E){n(typeof E=="number"&&E>=0);var d=E%26,o=(E-d)/26,u=1<=0);var d=E%26,o=(E-d)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=o)return this;if(d!==0&&o++,this.length=Math.min(o,this.length),d!==0){var u=67108863^67108863>>>d<=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(E){if(n(typeof E=="number"),n(E<67108864),E<0)return this.iaddn(-E);if(this.negative!==0)return this.negative=0,this.iaddn(E),this.negative=1,this;if(this.words[0]-=E,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d>26)-(w/67108864|0),this.words[p+o]=y&67108863}for(;p>26,this.words[p+o]=y&67108863;if(x===0)return this.strip();for(n(x===-1),x=0,p=0;p>26,this.words[p]=y&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(E,d){var o=this.length-E.length,u=this.clone(),p=E,y=p.words[p.length-1]|0,x=this._countBits(y);o=26-x,o!==0&&(p=p.ushln(o),u.iushln(o),y=p.words[p.length-1]|0);var w=u.length-p.length,v;if(d!=="mod"){v=new i(null),v.length=w+1,v.words=new Array(v.length);for(var h=0;h=0;b--){var D=(u.words[p.length+b]|0)*67108864+(u.words[p.length+b-1]|0);for(D=Math.min(D/y|0,67108863),u._ishlnsubmul(p,D,b);u.negative!==0;)D--,u.negative=0,u._ishlnsubmul(p,1,b),u.isZero()||(u.negative^=1);v&&(v.words[b]=D)}return v&&v.strip(),u.strip(),d!=="div"&&o!==0&&u.iushrn(o),{div:v||null,mod:u}},i.prototype.divmod=function(E,d,o){if(n(!E.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var u,p,y;return this.negative!==0&&E.negative===0?(y=this.neg().divmod(E,d),d!=="mod"&&(u=y.div.neg()),d!=="div"&&(p=y.mod.neg(),o&&p.negative!==0&&p.iadd(E)),{div:u,mod:p}):this.negative===0&&E.negative!==0?(y=this.divmod(E.neg(),d),d!=="mod"&&(u=y.div.neg()),{div:u,mod:y.mod}):this.negative&E.negative?(y=this.neg().divmod(E.neg(),d),d!=="div"&&(p=y.mod.neg(),o&&p.negative!==0&&p.isub(E)),{div:y.div,mod:p}):E.length>this.length||this.cmp(E)<0?{div:new i(0),mod:this}:E.length===1?d==="div"?{div:this.divn(E.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modn(E.words[0]))}:{div:this.divn(E.words[0]),mod:new i(this.modn(E.words[0]))}:this._wordDiv(E,d)},i.prototype.div=function(E){return this.divmod(E,"div",!1).div},i.prototype.mod=function(E){return this.divmod(E,"mod",!1).mod},i.prototype.umod=function(E){return this.divmod(E,"mod",!0).mod},i.prototype.divRound=function(E){var d=this.divmod(E);if(d.mod.isZero())return d.div;var o=d.div.negative!==0?d.mod.isub(E):d.mod,u=E.ushrn(1),p=E.andln(1),y=o.cmp(u);return y<0||p===1&&y===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modn=function(E){n(E<=67108863);for(var d=(1<<26)%E,o=0,u=this.length-1;u>=0;u--)o=(d*o+(this.words[u]|0))%E;return o},i.prototype.idivn=function(E){n(E<=67108863);for(var d=0,o=this.length-1;o>=0;o--){var u=(this.words[o]|0)+d*67108864;this.words[o]=u/E|0,d=u%E}return this.strip()},i.prototype.divn=function(E){return this.clone().idivn(E)},i.prototype.egcd=function(E){n(E.negative===0),n(!E.isZero());var d=this,o=E.clone();d.negative!==0?d=d.umod(E):d=d.clone();for(var u=new i(1),p=new i(0),y=new i(0),x=new i(1),w=0;d.isEven()&&o.isEven();)d.iushrn(1),o.iushrn(1),++w;for(var v=o.clone(),h=d.clone();!d.isZero();){for(var s=0,b=1;!(d.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(d.iushrn(s);s-- >0;)(u.isOdd()||p.isOdd())&&(u.iadd(v),p.isub(h)),u.iushrn(1),p.iushrn(1);for(var D=0,C=1;!(o.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(o.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(v),x.isub(h)),y.iushrn(1),x.iushrn(1);d.cmp(o)>=0?(d.isub(o),u.isub(y),p.isub(x)):(o.isub(d),y.isub(u),x.isub(p))}return{a:y,b:x,gcd:o.iushln(w)}},i.prototype._invmp=function(E){n(E.negative===0),n(!E.isZero());var d=this,o=E.clone();d.negative!==0?d=d.umod(E):d=d.clone();for(var u=new i(1),p=new i(0),y=o.clone();d.cmpn(1)>0&&o.cmpn(1)>0;){for(var x=0,w=1;!(d.words[0]&w)&&x<26;++x,w<<=1);if(x>0)for(d.iushrn(x);x-- >0;)u.isOdd()&&u.iadd(y),u.iushrn(1);for(var v=0,h=1;!(o.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(o.iushrn(v);v-- >0;)p.isOdd()&&p.iadd(y),p.iushrn(1);d.cmp(o)>=0?(d.isub(o),u.isub(p)):(o.isub(d),p.isub(u))}var s;return d.cmpn(1)===0?s=u:s=p,s.cmpn(0)<0&&s.iadd(E),s},i.prototype.gcd=function(E){if(this.isZero())return E.abs();if(E.isZero())return this.abs();var d=this.clone(),o=E.clone();d.negative=0,o.negative=0;for(var u=0;d.isEven()&&o.isEven();u++)d.iushrn(1),o.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;o.isEven();)o.iushrn(1);var p=d.cmp(o);if(p<0){var y=d;d=o,o=y}else if(p===0||o.cmpn(1)===0)break;d.isub(o)}while(!0);return o.iushln(u)},i.prototype.invm=function(E){return this.egcd(E).a.umod(E)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(E){return this.words[0]&E},i.prototype.bincn=function(E){n(typeof E=="number");var d=E%26,o=(E-d)/26,u=1<>>26,x&=67108863,this.words[y]=x}return p!==0&&(this.words[y]=p,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(E){var d=E<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var o;if(this.length>1)o=1;else{d&&(E=-E),n(E<=67108863,"Number is too big");var u=this.words[0]|0;o=u===E?0:uE.length)return 1;if(this.length=0;o--){var u=this.words[o]|0,p=E.words[o]|0;if(u!==p){up&&(d=1);break}}return d},i.prototype.gtn=function(E){return this.cmpn(E)===1},i.prototype.gt=function(E){return this.cmp(E)===1},i.prototype.gten=function(E){return this.cmpn(E)>=0},i.prototype.gte=function(E){return this.cmp(E)>=0},i.prototype.ltn=function(E){return this.cmpn(E)===-1},i.prototype.lt=function(E){return this.cmp(E)===-1},i.prototype.lten=function(E){return this.cmpn(E)<=0},i.prototype.lte=function(E){return this.cmp(E)<=0},i.prototype.eqn=function(E){return this.cmpn(E)===0},i.prototype.eq=function(E){return this.cmp(E)===0},i.red=function(E){return new te(E)},i.prototype.toRed=function(E){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),E.convertTo(this)._forceRed(E)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(E){return this.red=E,this},i.prototype.forceRed=function(E){return n(!this.red,"Already a number in reduction context"),this._forceRed(E)},i.prototype.redAdd=function(E){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,E)},i.prototype.redIAdd=function(E){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E)},i.prototype.redSub=function(E){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,E)},i.prototype.redISub=function(E){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,E)},i.prototype.redShl=function(E){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,E)},i.prototype.redMul=function(E){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,E),this.red.mul(this,E)},i.prototype.redIMul=function(E){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,E),this.red.imul(this,E)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(E){return n(this.red&&!E.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E)};var F={k256:null,p224:null,p192:null,p25519:null};function V(G,E){this.name=G,this.p=new i(E,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var E=new i(null);return E.words=new Array(Math.ceil(this.n/13)),E},V.prototype.ireduce=function(E){var d=E,o;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),o=d.bitLength();while(o>this.n);var u=o0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},V.prototype.split=function(E,d){E.iushrn(this.n,0,d)},V.prototype.imulK=function(E){return E.imul(this.k)};function j(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(j,V),j.prototype.split=function(E,d){for(var o=4194303,u=Math.min(E.length,9),p=0;p>>22,y=x}y>>>=22,E.words[p-10]=y,y===0&&E.length>10?E.length-=10:E.length-=9},j.prototype.imulK=function(E){E.words[E.length]=0,E.words[E.length+1]=0,E.length+=2;for(var d=0,o=0;o>>=26,E.words[o]=p,d=u}return d!==0&&(E.words[E.length++]=d),E},i._prime=function(E){if(F[E])return F[E];var d;if(E==="k256")d=new j;else if(E==="p224")d=new N;else if(E==="p192")d=new K;else if(E==="p25519")d=new J;else throw new Error("Unknown prime "+E);return F[E]=d,d};function te(G){if(typeof G=="string"){var E=i._prime(G);this.m=E.p,this.prime=E}else n(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}te.prototype._verify1=function(E){n(E.negative===0,"red works only with positives"),n(E.red,"red works only with red numbers")},te.prototype._verify2=function(E,d){n((E.negative|d.negative)===0,"red works only with positives"),n(E.red&&E.red===d.red,"red works only with red numbers")},te.prototype.imod=function(E){return this.prime?this.prime.ireduce(E)._forceRed(this):E.umod(this.m)._forceRed(this)},te.prototype.neg=function(E){return E.isZero()?E.clone():this.m.sub(E)._forceRed(this)},te.prototype.add=function(E,d){this._verify2(E,d);var o=E.add(d);return o.cmp(this.m)>=0&&o.isub(this.m),o._forceRed(this)},te.prototype.iadd=function(E,d){this._verify2(E,d);var o=E.iadd(d);return o.cmp(this.m)>=0&&o.isub(this.m),o},te.prototype.sub=function(E,d){this._verify2(E,d);var o=E.sub(d);return o.cmpn(0)<0&&o.iadd(this.m),o._forceRed(this)},te.prototype.isub=function(E,d){this._verify2(E,d);var o=E.isub(d);return o.cmpn(0)<0&&o.iadd(this.m),o},te.prototype.shl=function(E,d){return this._verify1(E),this.imod(E.ushln(d))},te.prototype.imul=function(E,d){return this._verify2(E,d),this.imod(E.imul(d))},te.prototype.mul=function(E,d){return this._verify2(E,d),this.imod(E.mul(d))},te.prototype.isqr=function(E){return this.imul(E,E.clone())},te.prototype.sqr=function(E){return this.mul(E,E)},te.prototype.sqrt=function(E){if(E.isZero())return E.clone();var d=this.m.andln(3);if(n(d%2===1),d===3){var o=this.m.add(new i(1)).iushrn(2);return this.pow(E,o)}for(var u=this.m.subn(1),p=0;!u.isZero()&&u.andln(1)===0;)p++,u.iushrn(1);n(!u.isZero());var y=new i(1).toRed(this),x=y.redNeg(),w=this.m.subn(1).iushrn(1),v=this.m.bitLength();for(v=new i(2*v*v).toRed(this);this.pow(v,w).cmp(x)!==0;)v.redIAdd(x);for(var h=this.pow(v,u),s=this.pow(E,u.addn(1).iushrn(1)),b=this.pow(E,u),D=p;b.cmp(y)!==0;){for(var C=b,U=0;C.cmp(y)!==0;U++)C=C.redSqr();n(U=0;p--){for(var h=d.words[p],s=v-1;s>=0;s--){var b=h>>s&1;if(y!==u[0]&&(y=this.sqr(y)),b===0&&x===0){w=0;continue}x<<=1,x|=b,w++,!(w!==o&&(p!==0||s!==0))&&(y=this.mul(y,u[x]),w=0,x=0)}v=26}return y},te.prototype.convertTo=function(E){var d=E.umod(this.m);return d===E?d.clone():d},te.prototype.convertFrom=function(E){var d=E.clone();return d.red=null,d},i.mont=function(E){return new ee(E)};function ee(G){te.call(this,G),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)}a(ee,te),ee.prototype.convertTo=function(E){return this.imod(E.ushln(this.shift))},ee.prototype.convertFrom=function(E){var d=this.imod(E.mul(this.rinv));return d.red=null,d},ee.prototype.imul=function(E,d){if(E.isZero()||d.isZero())return E.words[0]=0,E.length=1,E;var o=E.imul(d),u=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=o.isub(u).iushrn(this.shift),y=p;return p.cmp(this.m)>=0?y=p.isub(this.m):p.cmpn(0)<0&&(y=p.iadd(this.m)),y._forceRed(this)},ee.prototype.mul=function(E,d){if(E.isZero()||d.isZero())return new i(0)._forceRed(this);var o=E.mul(d),u=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=o.isub(u).iushrn(this.shift),y=p;return p.cmp(this.m)>=0?y=p.isub(this.m):p.cmpn(0)<0&&(y=p.iadd(this.m)),y._forceRed(this)},ee.prototype.invm=function(E){var d=this.imod(E._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(e,Oe)})(K5);var br=K5.exports;const Q$=Nr(br);var dc={exports:{}},xm;function G5(){if(xm)return dc.exports;xm=1;var e;dc.exports=function(a){return e||(e=new t(null)),e.generate(a)};function t(n){this.rand=n}if(dc.exports.Rand=t,t.prototype.generate=function(a){return this._rand(a)},t.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var i=new Uint8Array(a),f=0;f=0);return l},r.prototype._randrange=function(a,i){var f=i.sub(a);return a.add(this._randbelow(f))},r.prototype.test=function(a,i,f){var l=a.bitLength(),c=e.mont(a),m=new e(1).toRed(c);i||(i=Math.max(1,l/48|0));for(var g=a.subn(1),_=0;!g.testn(_);_++);for(var S=a.shrn(_),M=g.toRed(c),P=!0;i>0;i--){var I=this._randrange(new e(2),g);f&&f(I);var B=I.toRed(c).redPow(S);if(!(B.cmp(m)===0||B.cmp(M)===0)){for(var R=1;R<_;R++){if(B=B.redSqr(),B.cmp(m)===0)return!1;if(B.cmp(M)===0)break}if(R===_)return!1}}return P},r.prototype.getDivisor=function(a,i){var f=a.bitLength(),l=e.mont(a),c=new e(1).toRed(l);i||(i=Math.max(1,f/48|0));for(var m=a.subn(1),g=0;!m.testn(g);g++);for(var _=a.shrn(g),S=m.toRed(l);i>0;i--){var M=this._randrange(new e(2),m),P=a.gcd(M);if(P.cmpn(1)!==0)return P;var I=M.toRed(l).redPow(_);if(!(I.cmp(c)===0||I.cmp(S)===0)){for(var B=1;BR;)F.ishrn(1);if(F.isEven()&&F.iadd(i),F.testn(1)||F.iadd(f),A.cmp(f)){if(!A.cmp(l))for(;F.mod(c).cmp(m);)F.iadd(_)}else for(;F.mod(r).cmp(g);)F.iadd(_);if(V=F.shrn(1),P(V)&&P(F)&&I(V)&&I(F)&&a.test(V)&&a.test(F))return F}}return $3}const eH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},tH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},rH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},nH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},iH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},aH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},oH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},fH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},sH={modp1:eH,modp2:tH,modp5:rH,modp14:nH,modp15:iH,modp16:aH,modp17:oH,modp18:fH};var H3,Sm;function uH(){if(Sm)return H3;Sm=1;var e=br,t=iM(),r=new t,n=new e(24),a=new e(11),i=new e(10),f=new e(3),l=new e(7),c=aM(),m=f0;H3=P;function g(B,R){return R=R||"utf8",Te.Buffer.isBuffer(B)||(B=new Te.Buffer(B,R)),this._pub=new e(B),this}function _(B,R){return R=R||"utf8",Te.Buffer.isBuffer(B)||(B=new Te.Buffer(B,R)),this._priv=new e(B),this}var S={};function M(B,R){var A=R.toString("hex"),F=[A,B.toString(16)].join("_");if(F in S)return S[F];var V=0;if(B.isEven()||!c.simpleSieve||!c.fermatTest(B)||!r.test(B))return V+=1,A==="02"||A==="05"?V+=8:V+=4,S[F]=V,V;r.test(B.shrn(1))||(V+=2);var j;switch(A){case"02":B.mod(n).cmp(a)&&(V+=8);break;case"05":j=B.mod(i),j.cmp(f)&&j.cmp(l)&&(V+=8);break;default:V+=4}return S[F]=V,V}function P(B,R,A){this.setGenerator(R),this.__prime=new e(B),this._prime=e.mont(this.__prime),this._primeLen=B.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,A?(this.setPublicKey=g,this.setPrivateKey=_):this._primeCode=8}Object.defineProperty(P.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=M(this.__prime,this.__gen)),this._primeCode}}),P.prototype.generateKeys=function(){return this._priv||(this._priv=new e(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},P.prototype.computeSecret=function(B){B=new e(B),B=B.toRed(this._prime);var R=B.redPow(this._priv).fromRed(),A=new Te.Buffer(R.toArray()),F=this.getPrime();if(A.length0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),n(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[x]|=w<>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);else if(p==="le")for(y=0,x=0;y>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);return this._strip()};function l(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;n(!1,"Invalid character in "+d)}function c(d,o,u){var p=l(d,u);return u-1>=o&&(p|=l(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y=u;y-=2)v=c(o,u,y)<=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8;else{var h=o.length-u;for(y=h%2===0?u+1:u;y=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8}this._strip()};function m(d,o,u,p){for(var y=0,x=0,w=Math.min(d.length,u),v=o;v=49?x=h-49+10:h>=17?x=h-17+10:x=h,n(h>=0&&x1&&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")]=_}catch{i.prototype.inspect=_}else i.prototype.inspect=_;function _(){return(this.red?""}var S=["","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"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var y=0,x=0,w=0;w>>24-y&16777215,y+=2,y>=26&&(y-=26,w--),x!==0||w!==this.length-1?p=S[6-h.length]+h+p:p=h+p}for(x!==0&&(p=x.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var s=M[o],b=P[o];p="";var D=this.clone();for(D.negative=0;!D.isZero();){var C=D.modrn(b).toString(o);D=D.idivn(b),D.isZero()?p=C+p:p=S[s-C.length]+C+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},f&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(f,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var I=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var y=this.byteLength(),x=p||Math.max(1,y);n(y<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var w=I(o,x),v=u==="le"?"LE":"BE";return this["_toArrayLike"+v](w,y),w},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,y=0,x=0,w=0;x>8&255),p>16&255),w===6?(p>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p=0&&(o[p--]=v>>8&255),p>=0&&(o[p--]=v>>16&255),w===6?(p>=0&&(o[p--]=v>>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p>=0)for(o[p--]=y;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return u&8191||(p+=13,u>>>=13),u&127||(p+=7,u>>>=7),u&15||(p+=4,u>>>=4),u&3||(p+=2,u>>>=2),u&1||p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function B(d){for(var o=new Array(d.bitLength()),u=0;u>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;uo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;po.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var y=0;yo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){n(typeof o=="number"&&o>=0);var p=o/26|0,y=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<o.length?(p=this,y=o):(p=o,y=this);for(var x=0,w=0;w>>26;for(;x!==0&&w>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;wo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,x;p>0?(y=this,x=o):(y=o,x=this);for(var w=0,v=0;v>26,this.words[v]=u&67108863;for(;w!==0&&v>26,this.words[v]=u&67108863;if(w===0&&v>>26,D=h&67108863,C=Math.min(s,o.length-1),U=Math.max(0,s-d.length+1);U<=C;U++){var $=s-U|0;y=d.words[$]|0,x=o.words[U]|0,w=y*x+D,b+=w/67108864|0,D=w&67108863}u.words[s]=D|0,h=b|0}return h!==0?u.words[s]=h|0:u.length--,u._strip()}var A=function(o,u,p){var y=o.words,x=u.words,w=p.words,v=0,h,s,b,D=y[0]|0,C=D&8191,U=D>>>13,$=y[1]|0,H=$&8191,X=$>>>13,z=y[2]|0,k=z&8191,L=z>>>13,oe=y[3]|0,re=oe&8191,se=oe>>>13,Y=y[4]|0,T=Y&8191,O=Y>>>13,W=y[5]|0,ie=W&8191,ue=W>>>13,we=y[6]|0,_e=we&8191,Z=we>>>13,le=y[7]|0,fe=le&8191,pe=le>>>13,Ce=y[8]|0,Me=Ce&8191,Ee=Ce>>>13,ne=y[9]|0,me=ne&8191,ye=ne>>>13,Ie=x[0]|0,he=Ie&8191,ve=Ie>>>13,Q=x[1]|0,xe=Q&8191,Ae=Q>>>13,q=x[2]|0,be=q&8191,de=q>>>13,ae=x[3]|0,ce=ae&8191,ge=ae>>>13,Ue=x[4]|0,Re=Ue&8191,Se=Ue>>>13,Ve=x[5]|0,je=Ve&8191,ke=Ve>>>13,Ze=x[6]|0,Ne=Ze&8191,Be=Ze>>>13,et=x[7]|0,$e=et&8191,De=et>>>13,Qe=x[8]|0,qe=Qe&8191,Le=Qe>>>13,rt=x[9]|0,ze=rt&8191,Ge=rt>>>13;p.negative=o.negative^u.negative,p.length=19,h=Math.imul(C,he),s=Math.imul(C,ve),s=s+Math.imul(U,he)|0,b=Math.imul(U,ve);var Et=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(H,he),s=Math.imul(H,ve),s=s+Math.imul(X,he)|0,b=Math.imul(X,ve),h=h+Math.imul(C,xe)|0,s=s+Math.imul(C,Ae)|0,s=s+Math.imul(U,xe)|0,b=b+Math.imul(U,Ae)|0;var Ct=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h=Math.imul(k,he),s=Math.imul(k,ve),s=s+Math.imul(L,he)|0,b=Math.imul(L,ve),h=h+Math.imul(H,xe)|0,s=s+Math.imul(H,Ae)|0,s=s+Math.imul(X,xe)|0,b=b+Math.imul(X,Ae)|0,h=h+Math.imul(C,be)|0,s=s+Math.imul(C,de)|0,s=s+Math.imul(U,be)|0,b=b+Math.imul(U,de)|0;var Mt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,h=Math.imul(re,he),s=Math.imul(re,ve),s=s+Math.imul(se,he)|0,b=Math.imul(se,ve),h=h+Math.imul(k,xe)|0,s=s+Math.imul(k,Ae)|0,s=s+Math.imul(L,xe)|0,b=b+Math.imul(L,Ae)|0,h=h+Math.imul(H,be)|0,s=s+Math.imul(H,de)|0,s=s+Math.imul(X,be)|0,b=b+Math.imul(X,de)|0,h=h+Math.imul(C,ce)|0,s=s+Math.imul(C,ge)|0,s=s+Math.imul(U,ce)|0,b=b+Math.imul(U,ge)|0;var At=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(At>>>26)|0,At&=67108863,h=Math.imul(T,he),s=Math.imul(T,ve),s=s+Math.imul(O,he)|0,b=Math.imul(O,ve),h=h+Math.imul(re,xe)|0,s=s+Math.imul(re,Ae)|0,s=s+Math.imul(se,xe)|0,b=b+Math.imul(se,Ae)|0,h=h+Math.imul(k,be)|0,s=s+Math.imul(k,de)|0,s=s+Math.imul(L,be)|0,b=b+Math.imul(L,de)|0,h=h+Math.imul(H,ce)|0,s=s+Math.imul(H,ge)|0,s=s+Math.imul(X,ce)|0,b=b+Math.imul(X,ge)|0,h=h+Math.imul(C,Re)|0,s=s+Math.imul(C,Se)|0,s=s+Math.imul(U,Re)|0,b=b+Math.imul(U,Se)|0;var Rt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,h=Math.imul(ie,he),s=Math.imul(ie,ve),s=s+Math.imul(ue,he)|0,b=Math.imul(ue,ve),h=h+Math.imul(T,xe)|0,s=s+Math.imul(T,Ae)|0,s=s+Math.imul(O,xe)|0,b=b+Math.imul(O,Ae)|0,h=h+Math.imul(re,be)|0,s=s+Math.imul(re,de)|0,s=s+Math.imul(se,be)|0,b=b+Math.imul(se,de)|0,h=h+Math.imul(k,ce)|0,s=s+Math.imul(k,ge)|0,s=s+Math.imul(L,ce)|0,b=b+Math.imul(L,ge)|0,h=h+Math.imul(H,Re)|0,s=s+Math.imul(H,Se)|0,s=s+Math.imul(X,Re)|0,b=b+Math.imul(X,Se)|0,h=h+Math.imul(C,je)|0,s=s+Math.imul(C,ke)|0,s=s+Math.imul(U,je)|0,b=b+Math.imul(U,ke)|0;var qt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(qt>>>26)|0,qt&=67108863,h=Math.imul(_e,he),s=Math.imul(_e,ve),s=s+Math.imul(Z,he)|0,b=Math.imul(Z,ve),h=h+Math.imul(ie,xe)|0,s=s+Math.imul(ie,Ae)|0,s=s+Math.imul(ue,xe)|0,b=b+Math.imul(ue,Ae)|0,h=h+Math.imul(T,be)|0,s=s+Math.imul(T,de)|0,s=s+Math.imul(O,be)|0,b=b+Math.imul(O,de)|0,h=h+Math.imul(re,ce)|0,s=s+Math.imul(re,ge)|0,s=s+Math.imul(se,ce)|0,b=b+Math.imul(se,ge)|0,h=h+Math.imul(k,Re)|0,s=s+Math.imul(k,Se)|0,s=s+Math.imul(L,Re)|0,b=b+Math.imul(L,Se)|0,h=h+Math.imul(H,je)|0,s=s+Math.imul(H,ke)|0,s=s+Math.imul(X,je)|0,b=b+Math.imul(X,ke)|0,h=h+Math.imul(C,Ne)|0,s=s+Math.imul(C,Be)|0,s=s+Math.imul(U,Ne)|0,b=b+Math.imul(U,Be)|0;var zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(fe,he),s=Math.imul(fe,ve),s=s+Math.imul(pe,he)|0,b=Math.imul(pe,ve),h=h+Math.imul(_e,xe)|0,s=s+Math.imul(_e,Ae)|0,s=s+Math.imul(Z,xe)|0,b=b+Math.imul(Z,Ae)|0,h=h+Math.imul(ie,be)|0,s=s+Math.imul(ie,de)|0,s=s+Math.imul(ue,be)|0,b=b+Math.imul(ue,de)|0,h=h+Math.imul(T,ce)|0,s=s+Math.imul(T,ge)|0,s=s+Math.imul(O,ce)|0,b=b+Math.imul(O,ge)|0,h=h+Math.imul(re,Re)|0,s=s+Math.imul(re,Se)|0,s=s+Math.imul(se,Re)|0,b=b+Math.imul(se,Se)|0,h=h+Math.imul(k,je)|0,s=s+Math.imul(k,ke)|0,s=s+Math.imul(L,je)|0,b=b+Math.imul(L,ke)|0,h=h+Math.imul(H,Ne)|0,s=s+Math.imul(H,Be)|0,s=s+Math.imul(X,Ne)|0,b=b+Math.imul(X,Be)|0,h=h+Math.imul(C,$e)|0,s=s+Math.imul(C,De)|0,s=s+Math.imul(U,$e)|0,b=b+Math.imul(U,De)|0;var $t=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+($t>>>26)|0,$t&=67108863,h=Math.imul(Me,he),s=Math.imul(Me,ve),s=s+Math.imul(Ee,he)|0,b=Math.imul(Ee,ve),h=h+Math.imul(fe,xe)|0,s=s+Math.imul(fe,Ae)|0,s=s+Math.imul(pe,xe)|0,b=b+Math.imul(pe,Ae)|0,h=h+Math.imul(_e,be)|0,s=s+Math.imul(_e,de)|0,s=s+Math.imul(Z,be)|0,b=b+Math.imul(Z,de)|0,h=h+Math.imul(ie,ce)|0,s=s+Math.imul(ie,ge)|0,s=s+Math.imul(ue,ce)|0,b=b+Math.imul(ue,ge)|0,h=h+Math.imul(T,Re)|0,s=s+Math.imul(T,Se)|0,s=s+Math.imul(O,Re)|0,b=b+Math.imul(O,Se)|0,h=h+Math.imul(re,je)|0,s=s+Math.imul(re,ke)|0,s=s+Math.imul(se,je)|0,b=b+Math.imul(se,ke)|0,h=h+Math.imul(k,Ne)|0,s=s+Math.imul(k,Be)|0,s=s+Math.imul(L,Ne)|0,b=b+Math.imul(L,Be)|0,h=h+Math.imul(H,$e)|0,s=s+Math.imul(H,De)|0,s=s+Math.imul(X,$e)|0,b=b+Math.imul(X,De)|0,h=h+Math.imul(C,qe)|0,s=s+Math.imul(C,Le)|0,s=s+Math.imul(U,qe)|0,b=b+Math.imul(U,Le)|0;var Ht=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,h=Math.imul(me,he),s=Math.imul(me,ve),s=s+Math.imul(ye,he)|0,b=Math.imul(ye,ve),h=h+Math.imul(Me,xe)|0,s=s+Math.imul(Me,Ae)|0,s=s+Math.imul(Ee,xe)|0,b=b+Math.imul(Ee,Ae)|0,h=h+Math.imul(fe,be)|0,s=s+Math.imul(fe,de)|0,s=s+Math.imul(pe,be)|0,b=b+Math.imul(pe,de)|0,h=h+Math.imul(_e,ce)|0,s=s+Math.imul(_e,ge)|0,s=s+Math.imul(Z,ce)|0,b=b+Math.imul(Z,ge)|0,h=h+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Se)|0,s=s+Math.imul(ue,Re)|0,b=b+Math.imul(ue,Se)|0,h=h+Math.imul(T,je)|0,s=s+Math.imul(T,ke)|0,s=s+Math.imul(O,je)|0,b=b+Math.imul(O,ke)|0,h=h+Math.imul(re,Ne)|0,s=s+Math.imul(re,Be)|0,s=s+Math.imul(se,Ne)|0,b=b+Math.imul(se,Be)|0,h=h+Math.imul(k,$e)|0,s=s+Math.imul(k,De)|0,s=s+Math.imul(L,$e)|0,b=b+Math.imul(L,De)|0,h=h+Math.imul(H,qe)|0,s=s+Math.imul(H,Le)|0,s=s+Math.imul(X,qe)|0,b=b+Math.imul(X,Le)|0,h=h+Math.imul(C,ze)|0,s=s+Math.imul(C,Ge)|0,s=s+Math.imul(U,ze)|0,b=b+Math.imul(U,Ge)|0;var Kt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(me,xe),s=Math.imul(me,Ae),s=s+Math.imul(ye,xe)|0,b=Math.imul(ye,Ae),h=h+Math.imul(Me,be)|0,s=s+Math.imul(Me,de)|0,s=s+Math.imul(Ee,be)|0,b=b+Math.imul(Ee,de)|0,h=h+Math.imul(fe,ce)|0,s=s+Math.imul(fe,ge)|0,s=s+Math.imul(pe,ce)|0,b=b+Math.imul(pe,ge)|0,h=h+Math.imul(_e,Re)|0,s=s+Math.imul(_e,Se)|0,s=s+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Se)|0,h=h+Math.imul(ie,je)|0,s=s+Math.imul(ie,ke)|0,s=s+Math.imul(ue,je)|0,b=b+Math.imul(ue,ke)|0,h=h+Math.imul(T,Ne)|0,s=s+Math.imul(T,Be)|0,s=s+Math.imul(O,Ne)|0,b=b+Math.imul(O,Be)|0,h=h+Math.imul(re,$e)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(se,$e)|0,b=b+Math.imul(se,De)|0,h=h+Math.imul(k,qe)|0,s=s+Math.imul(k,Le)|0,s=s+Math.imul(L,qe)|0,b=b+Math.imul(L,Le)|0,h=h+Math.imul(H,ze)|0,s=s+Math.imul(H,Ge)|0,s=s+Math.imul(X,ze)|0,b=b+Math.imul(X,Ge)|0;var Gt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(me,be),s=Math.imul(me,de),s=s+Math.imul(ye,be)|0,b=Math.imul(ye,de),h=h+Math.imul(Me,ce)|0,s=s+Math.imul(Me,ge)|0,s=s+Math.imul(Ee,ce)|0,b=b+Math.imul(Ee,ge)|0,h=h+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Se)|0,s=s+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Se)|0,h=h+Math.imul(_e,je)|0,s=s+Math.imul(_e,ke)|0,s=s+Math.imul(Z,je)|0,b=b+Math.imul(Z,ke)|0,h=h+Math.imul(ie,Ne)|0,s=s+Math.imul(ie,Be)|0,s=s+Math.imul(ue,Ne)|0,b=b+Math.imul(ue,Be)|0,h=h+Math.imul(T,$e)|0,s=s+Math.imul(T,De)|0,s=s+Math.imul(O,$e)|0,b=b+Math.imul(O,De)|0,h=h+Math.imul(re,qe)|0,s=s+Math.imul(re,Le)|0,s=s+Math.imul(se,qe)|0,b=b+Math.imul(se,Le)|0,h=h+Math.imul(k,ze)|0,s=s+Math.imul(k,Ge)|0,s=s+Math.imul(L,ze)|0,b=b+Math.imul(L,Ge)|0;var Wt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(me,ce),s=Math.imul(me,ge),s=s+Math.imul(ye,ce)|0,b=Math.imul(ye,ge),h=h+Math.imul(Me,Re)|0,s=s+Math.imul(Me,Se)|0,s=s+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Se)|0,h=h+Math.imul(fe,je)|0,s=s+Math.imul(fe,ke)|0,s=s+Math.imul(pe,je)|0,b=b+Math.imul(pe,ke)|0,h=h+Math.imul(_e,Ne)|0,s=s+Math.imul(_e,Be)|0,s=s+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,Be)|0,h=h+Math.imul(ie,$e)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(ue,$e)|0,b=b+Math.imul(ue,De)|0,h=h+Math.imul(T,qe)|0,s=s+Math.imul(T,Le)|0,s=s+Math.imul(O,qe)|0,b=b+Math.imul(O,Le)|0,h=h+Math.imul(re,ze)|0,s=s+Math.imul(re,Ge)|0,s=s+Math.imul(se,ze)|0,b=b+Math.imul(se,Ge)|0;var Vt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(me,Re),s=Math.imul(me,Se),s=s+Math.imul(ye,Re)|0,b=Math.imul(ye,Se),h=h+Math.imul(Me,je)|0,s=s+Math.imul(Me,ke)|0,s=s+Math.imul(Ee,je)|0,b=b+Math.imul(Ee,ke)|0,h=h+Math.imul(fe,Ne)|0,s=s+Math.imul(fe,Be)|0,s=s+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Be)|0,h=h+Math.imul(_e,$e)|0,s=s+Math.imul(_e,De)|0,s=s+Math.imul(Z,$e)|0,b=b+Math.imul(Z,De)|0,h=h+Math.imul(ie,qe)|0,s=s+Math.imul(ie,Le)|0,s=s+Math.imul(ue,qe)|0,b=b+Math.imul(ue,Le)|0,h=h+Math.imul(T,ze)|0,s=s+Math.imul(T,Ge)|0,s=s+Math.imul(O,ze)|0,b=b+Math.imul(O,Ge)|0;var Zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(me,je),s=Math.imul(me,ke),s=s+Math.imul(ye,je)|0,b=Math.imul(ye,ke),h=h+Math.imul(Me,Ne)|0,s=s+Math.imul(Me,Be)|0,s=s+Math.imul(Ee,Ne)|0,b=b+Math.imul(Ee,Be)|0,h=h+Math.imul(fe,$e)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(pe,$e)|0,b=b+Math.imul(pe,De)|0,h=h+Math.imul(_e,qe)|0,s=s+Math.imul(_e,Le)|0,s=s+Math.imul(Z,qe)|0,b=b+Math.imul(Z,Le)|0,h=h+Math.imul(ie,ze)|0,s=s+Math.imul(ie,Ge)|0,s=s+Math.imul(ue,ze)|0,b=b+Math.imul(ue,Ge)|0;var cr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863,h=Math.imul(me,Ne),s=Math.imul(me,Be),s=s+Math.imul(ye,Ne)|0,b=Math.imul(ye,Be),h=h+Math.imul(Me,$e)|0,s=s+Math.imul(Me,De)|0,s=s+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,De)|0,h=h+Math.imul(fe,qe)|0,s=s+Math.imul(fe,Le)|0,s=s+Math.imul(pe,qe)|0,b=b+Math.imul(pe,Le)|0,h=h+Math.imul(_e,ze)|0,s=s+Math.imul(_e,Ge)|0,s=s+Math.imul(Z,ze)|0,b=b+Math.imul(Z,Ge)|0;var hr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(me,$e),s=Math.imul(me,De),s=s+Math.imul(ye,$e)|0,b=Math.imul(ye,De),h=h+Math.imul(Me,qe)|0,s=s+Math.imul(Me,Le)|0,s=s+Math.imul(Ee,qe)|0,b=b+Math.imul(Ee,Le)|0,h=h+Math.imul(fe,ze)|0,s=s+Math.imul(fe,Ge)|0,s=s+Math.imul(pe,ze)|0,b=b+Math.imul(pe,Ge)|0;var dr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(dr>>>26)|0,dr&=67108863,h=Math.imul(me,qe),s=Math.imul(me,Le),s=s+Math.imul(ye,qe)|0,b=Math.imul(ye,Le),h=h+Math.imul(Me,ze)|0,s=s+Math.imul(Me,Ge)|0,s=s+Math.imul(Ee,ze)|0,b=b+Math.imul(Ee,Ge)|0;var Yr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,h=Math.imul(me,ze),s=Math.imul(me,Ge),s=s+Math.imul(ye,ze)|0,b=Math.imul(ye,Ge);var Jr=(v+h|0)+((s&8191)<<13)|0;return v=(b+(s>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w[0]=Et,w[1]=Ct,w[2]=Mt,w[3]=At,w[4]=Rt,w[5]=qt,w[6]=zt,w[7]=$t,w[8]=Ht,w[9]=Kt,w[10]=Gt,w[11]=Wt,w[12]=Vt,w[13]=Zt,w[14]=cr,w[15]=hr,w[16]=dr,w[17]=Yr,w[18]=Jr,v!==0&&(w[19]=v,p.length++),p};Math.imul||(A=R);function F(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,y=0,x=0;x>>26)|0,y+=w>>>26,w&=67108863}u.words[x]=v,p=w,w=y}return p!==0?u.words[x]=p:u.length--,u._strip()}function V(d,o,u){return F(d,o,u)}i.prototype.mulTo=function(o,u){var p,y=this.length+o.length;return this.length===10&&o.length===10?p=A(this,o,u):y<63?p=R(this,o,u):y<1024?p=F(this,o,u):p=V(this,o,u),p},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),V(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var p=0,y=0;y>=26,p+=x/67108864|0,p+=w>>>26,this.words[y]=w&67108863}return p!==0&&(this.words[y]=p,this.length++),u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=B(o);if(u.length===0)return new i(1);for(var p=this,y=0;y=0);var u=o%26,p=(o-u)/26,y=67108863>>>26-u<<26-u,x;if(u!==0){var w=0;for(x=0;x>>26-u}w&&(this.words[x]=w,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x=0);var y;u?y=(u-u%26)/26:y=0;var x=o%26,w=Math.min((o-x)/26,this.length),v=67108863^67108863>>>x<w)for(this.length-=w,s=0;s=0&&(b!==0||s>=y);s--){var D=this.words[s]|0;this.words[s]=b<<26-x|D>>>x,b=D&v}return h&&b!==0&&(h.words[h.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return n(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,y=1<=0);var u=o%26,p=(o-u)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var y=67108863^67108863>>>u<=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u>26)-(h/67108864|0),this.words[x+p]=w&67108863}for(;x>26,this.words[x+p]=w&67108863;if(v===0)return this._strip();for(n(v===-1),v=0,x=0;x>26,this.words[x]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,y=this.clone(),x=o,w=x.words[x.length-1]|0,v=this._countBits(w);p=26-v,p!==0&&(x=x.ushln(p),y.iushln(p),w=x.words[x.length-1]|0);var h=y.length-x.length,s;if(u!=="mod"){s=new i(null),s.length=h+1,s.words=new Array(s.length);for(var b=0;b=0;C--){var U=(y.words[x.length+C]|0)*67108864+(y.words[x.length+C-1]|0);for(U=Math.min(U/w|0,67108863),y._ishlnsubmul(x,U,C);y.negative!==0;)U--,y.negative=0,y._ishlnsubmul(x,1,C),y.isZero()||(y.negative^=1);s&&(s.words[C]=U)}return s&&s._strip(),y._strip(),u!=="div"&&p!==0&&y.iushrn(p),{div:s||null,mod:y}},i.prototype.divmod=function(o,u,p){if(n(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,x,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,u),u!=="mod"&&(y=w.div.neg()),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.iadd(o)),{div:y,mod:x}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),u),u!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),u),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.isub(o)),{div:w.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),x=o.andln(1),w=p.cmp(y);return w<0||x===1&&w===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=(1<<26)%o,y=0,x=this.length-1;x>=0;x--)y=(p*y+(this.words[x]|0))%o;return u?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var x=(this.words[y]|0)+p*67108864;this.words[y]=x/o|0,p=x%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=new i(0),v=new i(1),h=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++h;for(var s=p.clone(),b=u.clone();!u.isZero();){for(var D=0,C=1;!(u.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(u.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(s),x.isub(b)),y.iushrn(1),x.iushrn(1);for(var U=0,$=1;!(p.words[0]&$)&&U<26;++U,$<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(w.isOdd()||v.isOdd())&&(w.iadd(s),v.isub(b)),w.iushrn(1),v.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(w),x.isub(v)):(p.isub(u),w.isub(y),v.isub(x))}return{a:w,b:v,gcd:p.iushln(h)}},i.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var v=0,h=1;!(u.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(u.iushrn(v);v-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var s=0,b=1;!(p.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(p.iushrn(s);s-- >0;)x.isOdd()&&x.iadd(w),x.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(x)):(p.isub(u),x.isub(y))}var D;return u.cmpn(1)===0?D=y:D=x,D.cmpn(0)<0&&D.iadd(o),D},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var y=0;u.isEven()&&p.isEven();y++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=u.cmp(p);if(x<0){var w=u;u=p,p=w}else if(x===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){n(typeof o=="number");var u=o%26,p=(o-u)/26,y=1<>>26,v&=67108863,this.words[w]=v}return x!==0&&(this.words[w]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;p=y===o?0:yo.length)return 1;if(this.length=0;p--){var y=this.words[p]|0,x=o.words[p]|0;if(y!==x){yx&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new G(o)},i.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function N(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},N.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var y=p0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},N.prototype.split=function(o,u){o.iushrn(this.n,0,u)},N.prototype.imulK=function(o){return o.imul(this.k)};function K(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(K,N),K.prototype.split=function(o,u){for(var p=4194303,y=Math.min(o.length,9),x=0;x>>22,w=v}w>>>=22,o.words[x-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},K.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p>>=26,o.words[p]=x,u=y}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(j[o])return j[o];var u;if(o==="k256")u=new K;else if(o==="p224")u=new J;else if(o==="p192")u=new te;else if(o==="p25519")u=new ee;else throw new Error("Unknown prime "+o);return j[o]=u,u};function G(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else n(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}G.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},G.prototype._verify2=function(o,u){n((o.negative|u.negative)===0,"red works only with positives"),n(o.red&&o.red===u.red,"red works only with red numbers")},G.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},G.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},G.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},G.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},G.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},G.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},G.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},G.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},G.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},G.prototype.isqr=function(o){return this.imul(o,o.clone())},G.prototype.sqr=function(o){return this.mul(o,o)},G.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(n(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);n(!y.isZero());var w=new i(1).toRed(this),v=w.redNeg(),h=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,h).cmp(v)!==0;)s.redIAdd(v);for(var b=this.pow(s,y),D=this.pow(o,y.addn(1).iushrn(1)),C=this.pow(o,y),U=x;C.cmp(w)!==0;){for(var $=C,H=0;$.cmp(w)!==0;H++)$=$.redSqr();n(H=0;x--){for(var b=u.words[x],D=s-1;D>=0;D--){var C=b>>D&1;if(w!==y[0]&&(w=this.sqr(w)),C===0&&v===0){h=0;continue}v<<=1,v|=C,h++,!(h!==p&&(x!==0||D!==0))&&(w=this.mul(w,y[v]),h=0,v=0)}s=26}return w},G.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},G.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new E(o)};function E(d){G.call(this,d),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)}a(E,G),E.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},E.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},E.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(e,Oe)})(W5);var cH=W5.exports,bs=cH,hH=f0;function dH(e){var t=oM(e),r=t.toRed(bs.mont(e.modulus)).redPow(new bs(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function oM(e){var t=e.modulus.byteLength(),r;do r=new bs(hH(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function fM(e,t){var r=dH(t),n=t.modulus.byteLength(),a=new bs(e).mul(r.blinder).umod(t.modulus),i=a.toRed(bs.mont(t.prime1)),f=a.toRed(bs.mont(t.prime2)),l=t.coefficient,c=t.prime1,m=t.prime2,g=i.redPow(t.exponent1).fromRed(),_=f.redPow(t.exponent2).fromRed(),S=g.isub(_).imul(l).umod(c).imul(m);return _.iadd(S).imul(r.unblinder).umod(t.modulus).toArrayLike(Te.Buffer,"be",n)}fM.getr=oM;var V5=fM,K3={};const pH="elliptic",vH="6.5.4",gH="EC cryptography",yH="lib/elliptic.js",mH=["lib"],bH={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/"},xH={type:"git",url:"git@github.com:indutny/elliptic"},wH=["EC","Elliptic","curve","Cryptography"],_H="Fedor Indutny ",SH="MIT",EH={url:"https://github.com/indutny/elliptic/issues"},CH="https://github.com/indutny/elliptic",MH={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"},AH={"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"},RH={name:pH,version:vH,description:gH,main:yH,files:mH,scripts:bH,repository:xH,keywords:wH,author:_H,license:SH,bugs:EH,homepage:CH,devDependencies:MH,dependencies:AH};var Ln={},Z5={};(function(e){var t=e;function r(i,f){if(Array.isArray(i))return i.slice();if(!i)return[];var l=[];if(typeof i!="string"){for(var c=0;c>8,_=m&255;g?l.push(g,_):l.push(_)}return l}t.toArray=r;function n(i){return i.length===1?"0"+i:i}t.zero2=n;function a(i){for(var f="",l=0;l(P>>1)-1?R=(P>>1)-A:R=A,I.isubn(R)):R=0,M[B]=R,I.iushrn(1)}return M}t.getNAF=i;function f(g,_){var S=[[],[]];g=g.clone(),_=_.clone();for(var M=0,P=0,I;g.cmpn(-M)>0||_.cmpn(-P)>0;){var B=g.andln(3)+M&3,R=_.andln(3)+P&3;B===3&&(B=-1),R===3&&(R=-1);var A;B&1?(I=g.andln(7)+M&7,(I===3||I===5)&&R===2?A=-B:A=B):A=0,S[0].push(A);var F;R&1?(I=_.andln(7)+P&7,(I===3||I===5)&&B===2?F=-R:F=R):F=0,S[1].push(F),2*M===A+1&&(M=1-M),2*P===F+1&&(P=1-P),g.iushrn(1),_.iushrn(1)}return S}t.getJSF=f;function l(g,_,S){var M="_"+_;g.prototype[_]=function(){return this[M]!==void 0?this[M]:this[M]=S.call(this)}}t.cachedProperty=l;function c(g){return typeof g=="string"?t.toArray(g,"hex"):g}t.parseBytes=c;function m(g){return new r(g,"hex","le")}t.intFromLE=m})(Ln);var X5={},Go=br,Ml=Ln,K1=Ml.getNAF,TH=Ml.getJSF,G1=Ml.assert;function Fo(e,t){this.type=e,this.p=new Go(t.p,16),this.red=t.prime?Go.red(t.prime):Go.mont(this.p),this.zero=new Go(0).toRed(this.red),this.one=new Go(1).toRed(this.red),this.two=new Go(2).toRed(this.red),this.n=t.n&&new Go(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))}var fd=Fo;Fo.prototype.point=function(){throw new Error("Not implemented")};Fo.prototype.validate=function(){throw new Error("Not implemented")};Fo.prototype._fixedNafMul=function(t,r){G1(t.precomputed);var n=t._getDoubles(),a=K1(r,1,this._bitLength),i=(1<=l;m--)c=(c<<1)+a[m];f.push(c)}for(var g=this.jpoint(null,null,null),_=this.jpoint(null,null,null),S=i;S>0;S--){for(l=0;l=0;c--){for(var m=0;c>=0&&f[c]===0;c--)m++;if(c>=0&&m++,l=l.dblp(m),c<0)break;var g=f[c];G1(g!==0),t.type==="affine"?g>0?l=l.mixedAdd(i[g-1>>1]):l=l.mixedAdd(i[-g-1>>1].neg()):g>0?l=l.add(i[g-1>>1]):l=l.add(i[-g-1>>1].neg())}return t.type==="affine"?l.toP():l};Fo.prototype._wnafMulAdd=function(t,r,n,a,i){var f=this._wnafT1,l=this._wnafT2,c=this._wnafT3,m=0,g,_,S;for(g=0;g=1;g-=2){var P=g-1,I=g;if(f[P]!==1||f[I]!==1){c[P]=K1(n[P],f[P],this._bitLength),c[I]=K1(n[I],f[I],this._bitLength),m=Math.max(c[P].length,m),m=Math.max(c[I].length,m);continue}var B=[r[P],null,null,r[I]];r[P].y.cmp(r[I].y)===0?(B[1]=r[P].add(r[I]),B[2]=r[P].toJ().mixedAdd(r[I].neg())):r[P].y.cmp(r[I].y.redNeg())===0?(B[1]=r[P].toJ().mixedAdd(r[I]),B[2]=r[P].add(r[I].neg())):(B[1]=r[P].toJ().mixedAdd(r[I]),B[2]=r[P].toJ().mixedAdd(r[I].neg()));var R=[-3,-1,-5,-7,0,7,5,1,3],A=TH(n[P],n[I]);for(m=Math.max(A[0].length,m),c[P]=new Array(m),c[I]=new Array(m),_=0;_=0;g--){for(var K=0;g>=0;){var J=!0;for(_=0;_=0&&K++,j=j.dblp(K),g<0)break;for(_=0;_0?S=l[_][te-1>>1]:te<0&&(S=l[_][-te-1>>1].neg()),S.type==="affine"?j=j.mixedAdd(S):j=j.add(S))}}for(g=0;g=Math.ceil((t.bitLength()+1)/r.step):!1};ui.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i=0&&(M=m,P=g),_.negative&&(_=_.neg(),S=S.neg()),M.negative&&(M=M.neg(),P=P.neg()),[{a:_,b:S},{a:M,b:P}]};li.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],a=r[1],i=a.b.mul(t).divRound(this.n),f=n.b.neg().mul(t).divRound(this.n),l=i.mul(n.a),c=f.mul(a.a),m=i.mul(n.b),g=f.mul(a.b),_=t.sub(l).sub(c),S=m.add(g).neg();return{k1:_,k2:S}};li.prototype.pointFromX=function(t,r){t=new rr(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(r&&!i||!r&&i)&&(a=a.redNeg()),this.point(t,a)};li.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,a=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};li.prototype._endoWnafMulAdd=function(t,r,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,f=0;f":""};Rr.prototype.isInfinity=function(){return this.inf};Rr.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),a=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Rr.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(),a=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(a),f=i.redSqr().redISub(this.x.redAdd(this.x)),l=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,l)};Rr.prototype.getX=function(){return this.x.fromRed()};Rr.prototype.getY=function(){return this.y.fromRed()};Rr.prototype.mul=function(t){return t=new rr(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)};Rr.prototype.mulAdd=function(t,r,n){var a=[this,r],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Rr.prototype.jmulAdd=function(t,r,n){var a=[this,r],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Rr.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)};Rr.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,a=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return r};Rr.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 Fr(e,t,r,n){l0.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new rr(0)):(this.x=new rr(t,16),this.y=new rr(r,16),this.z=new rr(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}Y5(Fr,l0.BasePoint);li.prototype.jpoint=function(t,r,n){return new Fr(this,t,r,n)};Fr.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),a=this.y.redMul(r).redMul(t);return this.curve.point(n,a)};Fr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Fr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(r),i=t.x.redMul(n),f=this.y.redMul(r.redMul(t.z)),l=t.y.redMul(n.redMul(this.z)),c=a.redSub(i),m=f.redSub(l);if(c.cmpn(0)===0)return m.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=c.redSqr(),_=g.redMul(c),S=a.redMul(g),M=m.redSqr().redIAdd(_).redISub(S).redISub(S),P=m.redMul(S.redISub(M)).redISub(f.redMul(_)),I=this.z.redMul(t.z).redMul(c);return this.curve.jpoint(M,P,I)};Fr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,a=t.x.redMul(r),i=this.y,f=t.y.redMul(r).redMul(this.z),l=n.redSub(a),c=i.redSub(f);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=l.redSqr(),g=m.redMul(l),_=n.redMul(m),S=c.redSqr().redIAdd(g).redISub(_).redISub(_),M=c.redMul(_.redISub(S)).redISub(i.redMul(g)),P=this.z.redMul(l);return this.curve.jpoint(S,M,P)};Fr.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=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};Fr.prototype.inspect=function(){return this.isInfinity()?"":""};Fr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var os=br,sM=ot,sd=fd,IH=Ln;function c0(e){sd.call(this,"mont",e),this.a=new os(e.a,16).toRed(this.red),this.b=new os(e.b,16).toRed(this.red),this.i4=new os(4).toRed(this.red).redInvm(),this.two=new os(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}sM(c0,sd);var BH=c0;c0.prototype.validate=function(t){var r=t.normalize().x,n=r.redSqr(),a=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Ar(e,t,r){sd.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new os(t,16),this.z=new os(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}sM(Ar,sd.BasePoint);c0.prototype.decodePoint=function(t,r){return this.point(IH.toArray(t,r),1)};c0.prototype.point=function(t,r){return new Ar(this,t,r)};c0.prototype.pointFromJSON=function(t){return Ar.fromJSON(this,t)};Ar.prototype.precompute=function(){};Ar.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Ar.fromJSON=function(t,r){return new Ar(t,r[0],r[1]||t.one)};Ar.prototype.inspect=function(){return this.isInfinity()?"":""};Ar.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Ar.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=r.redSub(a),f=r.redMul(a),l=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(f,l)};Ar.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.diffAdd=function(t,r){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=t.x.redAdd(t.z),f=t.x.redSub(t.z),l=f.redMul(n),c=i.redMul(a),m=r.z.redMul(l.redAdd(c).redSqr()),g=r.x.redMul(l.redISub(c).redSqr());return this.curve.point(m,g)};Ar.prototype.mul=function(t){for(var r=t.clone(),n=this,a=this.curve.point(null,null),i=this,f=[];r.cmpn(0)!==0;r.iushrn(1))f.push(r.andln(1));for(var l=f.length-1;l>=0;l--)f[l]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};Ar.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};Ar.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Ar.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var LH=Ln,_a=br,uM=ot,ud=fd,NH=LH.assert;function ca(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,ud.call(this,"edwards",e),this.a=new _a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new _a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new _a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),NH(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}uM(ca,ud);var DH=ca;ca.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};ca.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};ca.prototype.jpoint=function(t,r,n,a){return this.point(t,r,n,a)};ca.prototype.pointFromX=function(t,r){t=new _a(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),f=a.redMul(i.redInvm()),l=f.redSqrt();if(l.redSqr().redSub(f).cmp(this.zero)!==0)throw new Error("invalid point");var c=l.fromRed().isOdd();return(r&&!c||!r&&c)&&(l=l.redNeg()),this.point(t,l)};ca.prototype.pointFromY=function(t,r){t=new _a(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),f=a.redMul(i.redInvm());if(f.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var l=f.redSqrt();if(l.redSqr().redSub(f).cmp(this.zero)!==0)throw new Error("invalid point");return l.fromRed().isOdd()!==r&&(l=l.redNeg()),this.point(l,t)};ca.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),n=t.y.redSqr(),a=r.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return a.cmp(i)===0};function Lt(e,t,r,n,a){ud.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 _a(t,16),this.y=new _a(r,16),this.z=n?new _a(n,16):this.curve.one,this.t=a&&new _a(a,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()))))}uM(Lt,ud.BasePoint);ca.prototype.pointFromJSON=function(t){return Lt.fromJSON(this,t)};ca.prototype.point=function(t,r,n,a){return new Lt(this,t,r,n,a)};Lt.fromJSON=function(t,r){return new Lt(t,r[0],r[1],r[2])};Lt.prototype.inspect=function(){return this.isInfinity()?"":""};Lt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Lt.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),f=a.redAdd(r),l=f.redSub(n),c=a.redSub(r),m=i.redMul(l),g=f.redMul(c),_=i.redMul(c),S=l.redMul(f);return this.curve.point(m,g,S,_)};Lt.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),a,i,f,l,c,m;if(this.curve.twisted){l=this.curve._mulA(r);var g=l.redAdd(n);this.zOne?(a=t.redSub(r).redSub(n).redMul(g.redSub(this.curve.two)),i=g.redMul(l.redSub(n)),f=g.redSqr().redSub(g).redSub(g)):(c=this.z.redSqr(),m=g.redSub(c).redISub(c),a=t.redSub(r).redISub(n).redMul(m),i=g.redMul(l.redSub(n)),f=g.redMul(m))}else l=r.redAdd(n),c=this.curve._mulC(this.z).redSqr(),m=l.redSub(c).redSub(c),a=this.curve._mulC(t.redISub(l)).redMul(m),i=this.curve._mulC(l).redMul(r.redISub(n)),f=l.redMul(m);return this.curve.point(a,i,f)};Lt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Lt.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)),a=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),f=n.redSub(r),l=i.redSub(a),c=i.redAdd(a),m=n.redAdd(r),g=f.redMul(l),_=c.redMul(m),S=f.redMul(m),M=l.redMul(c);return this.curve.point(g,_,M,S)};Lt.prototype._projAdd=function(t){var r=this.z.redMul(t.z),n=r.redSqr(),a=this.x.redMul(t.x),i=this.y.redMul(t.y),f=this.curve.d.redMul(a).redMul(i),l=n.redSub(f),c=n.redAdd(f),m=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(a).redISub(i),g=r.redMul(l).redMul(m),_,S;return this.curve.twisted?(_=r.redMul(c).redMul(i.redSub(this.curve._mulA(a))),S=l.redMul(c)):(_=r.redMul(c).redMul(i.redSub(a)),S=this.curve._mulC(l).redMul(c)),this.curve.point(g,_,S)};Lt.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Lt.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Lt.prototype.mulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!1)};Lt.prototype.jmulAdd=function(t,r,n){return this.curve._wnafMulAdd(1,[this,r],[t,n],2,!0)};Lt.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};Lt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Lt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Lt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Lt.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Lt.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(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(a),this.x.cmp(r)===0)return!0}};Lt.prototype.toP=Lt.prototype.normalize;Lt.prototype.mixedAdd=Lt.prototype.add;(function(e){var t=e;t.base=fd,t.short=kH,t.mont=BH,t.edwards=DH})(X5);var ld={},Al={},ht={},FH=fi,UH=ot;ht.inherits=UH;function jH(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function qH(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),a=0;a>6|192,r[n++]=i&63|128):jH(e,a)?(i=65536+((i&1023)<<10)+(e.charCodeAt(++a)&1023),r[n++]=i>>18|240,r[n++]=i>>12&63|128,r[n++]=i>>6&63|128,r[n++]=i&63|128):(r[n++]=i>>12|224,r[n++]=i>>6&63|128,r[n++]=i&63|128)}else for(a=0;a>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}ht.htonl=lM;function $H(e,t){for(var r="",n=0;n>>0}return i}ht.join32=HH;function KH(e,t){for(var r=new Array(e.length*4),n=0,a=0;n>>24,r[a+1]=i>>>16&255,r[a+2]=i>>>8&255,r[a+3]=i&255):(r[a+3]=i>>>24,r[a+2]=i>>>16&255,r[a+1]=i>>>8&255,r[a]=i&255)}return r}ht.split32=KH;function GH(e,t){return e>>>t|e<<32-t}ht.rotr32=GH;function WH(e,t){return e<>>32-t}ht.rotl32=WH;function VH(e,t){return e+t>>>0}ht.sum32=VH;function ZH(e,t,r){return e+t+r>>>0}ht.sum32_3=ZH;function XH(e,t,r,n){return e+t+r+n>>>0}ht.sum32_4=XH;function YH(e,t,r,n,a){return e+t+r+n+a>>>0}ht.sum32_5=YH;function JH(e,t,r,n){var a=e[t],i=e[t+1],f=n+i>>>0,l=(f>>0,e[t+1]=f}ht.sum64=JH;function QH(e,t,r,n){var a=t+n>>>0,i=(a>>0}ht.sum64_hi=QH;function eK(e,t,r,n){var a=t+n;return a>>>0}ht.sum64_lo=eK;function tK(e,t,r,n,a,i,f,l){var c=0,m=t;m=m+n>>>0,c+=m>>0,c+=m>>0,c+=m>>0}ht.sum64_4_hi=tK;function rK(e,t,r,n,a,i,f,l){var c=t+n+i+l;return c>>>0}ht.sum64_4_lo=rK;function nK(e,t,r,n,a,i,f,l,c,m){var g=0,_=t;_=_+n>>>0,g+=_>>0,g+=_>>0,g+=_>>0,g+=_>>0}ht.sum64_5_hi=nK;function iK(e,t,r,n,a,i,f,l,c,m){var g=t+n+i+l+m;return g>>>0}ht.sum64_5_lo=iK;function aK(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}ht.rotr64_hi=aK;function oK(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}ht.rotr64_lo=oK;function fK(e,t,r){return e>>>r}ht.shr64_hi=fK;function sK(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}ht.shr64_lo=sK;var h0={},Cm=ht,uK=fi;function cd(){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}h0.BlockHash=cd;cd.prototype.update=function(t,r){if(t=Cm.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=Cm.join32(t,0,t.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=t>>>16&255,a[i++]=t>>>8&255,a[i++]=t&255}else for(a[i++]=t&255,a[i++]=t>>>8&255,a[i++]=t>>>16&255,a[i++]=t>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,f=8;f>>3}ha.g0_256=pK;function vK(e){return na(e,17)^na(e,19)^e>>>10}ha.g1_256=vK;var zs=ht,gK=h0,yK=ha,G3=zs.rotl32,N0=zs.sum32,mK=zs.sum32_5,bK=yK.ft_1,gM=gK.BlockHash,xK=[1518500249,1859775393,2400959708,3395469782];function fa(){if(!(this instanceof fa))return new fa;gM.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}zs.inherits(fa,gM);var wK=fa;fa.blockSize=512;fa.outSize=160;fa.hmacStrength=80;fa.padLength=64;fa.prototype._update=function(t,r){for(var n=this.W,a=0;a<16;a++)n[a]=t[r+a];for(;athis.blockSize&&(t=new this.Hash().update(t).digest()),sG(t.length<=this.blockSize);for(var r=t.length;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var hG=Ro;Ro.prototype._init=function(t,r,n){var a=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};Ro.prototype.generate=function(t,r,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(a=n,n=r,r=null),n&&(n=uf.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length"};var W1=br,J5=Ln,gG=J5.assert;function hd(e,t){if(e instanceof hd)return e;this._importDER(e,t)||(gG(e.r&&e.s,"Signature without r or s"),this.r=new W1(e.r,16),this.s=new W1(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var yG=hd;function mG(){this.place=0}function X3(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var a=0,i=0,f=t.place;i>>=0;return a<=127?!1:(t.place=f,a)}function Pm(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}hd.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=Pm(r),n=Pm(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];Y3(a,r.length),a=a.concat(r),a.push(2),Y3(a,n.length);var i=a.concat(n),f=[48];return Y3(f,i.length),f=f.concat(i),J5.encode(f,t)};var J3,Om;function bG(){if(Om)return J3;Om=1;var e=br,t=hG,r=Ln,n=ld,a=G5(),i=r.assert,f=vG,l=yG;function c(m){if(!(this instanceof c))return new c(m);typeof m=="string"&&(i(Object.prototype.hasOwnProperty.call(n,m),"Unknown curve "+m),m=n[m]),m instanceof n.PresetCurve&&(m={curve:m}),this.curve=m.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=m.curve.g,this.g.precompute(m.curve.n.bitLength()+1),this.hash=m.hash||m.curve.hash}return J3=c,c.prototype.keyPair=function(g){return new f(this,g)},c.prototype.keyFromPrivate=function(g,_){return f.fromPrivate(this,g,_)},c.prototype.keyFromPublic=function(g,_){return f.fromPublic(this,g,_)},c.prototype.genKeyPair=function(g){g||(g={});for(var _=new t({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||a(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),M=this.n.sub(new e(2));;){var P=new e(_.generate(S));if(!(P.cmp(M)>0))return P.iaddn(1),this.keyFromPrivate(P)}},c.prototype._truncateToN=function(g,_){var S=g.byteLength()*8-this.n.bitLength();return S>0&&(g=g.ushrn(S)),!_&&g.cmp(this.n)>=0?g.sub(this.n):g},c.prototype.sign=function(g,_,S,M){typeof S=="object"&&(M=S,S=null),M||(M={}),_=this.keyFromPrivate(_,S),g=this._truncateToN(new e(g,16));for(var P=this.n.byteLength(),I=_.getPrivate().toArray("be",P),B=g.toArray("be",P),R=new t({hash:this.hash,entropy:I,nonce:B,pers:M.pers,persEnc:M.persEnc||"utf8"}),A=this.n.sub(new e(1)),F=0;;F++){var V=M.k?M.k(F):new e(R.generate(this.n.byteLength()));if(V=this._truncateToN(V,!0),!(V.cmpn(1)<=0||V.cmp(A)>=0)){var j=this.g.mul(V);if(!j.isInfinity()){var N=j.getX(),K=N.umod(this.n);if(K.cmpn(0)!==0){var J=V.invm(this.n).mul(K.mul(_.getPrivate()).iadd(g));if(J=J.umod(this.n),J.cmpn(0)!==0){var te=(j.getY().isOdd()?1:0)|(N.cmp(K)!==0?2:0);return M.canonical&&J.cmp(this.nh)>0&&(J=this.n.sub(J),te^=1),new l({r:K,s:J,recoveryParam:te})}}}}}},c.prototype.verify=function(g,_,S,M){g=this._truncateToN(new e(g,16)),S=this.keyFromPublic(S,M),_=new l(_,"hex");var P=_.r,I=_.s;if(P.cmpn(1)<0||P.cmp(this.n)>=0||I.cmpn(1)<0||I.cmp(this.n)>=0)return!1;var B=I.invm(this.n),R=B.mul(g).umod(this.n),A=B.mul(P).umod(this.n),F;return this.curve._maxwellTrick?(F=this.g.jmulAdd(R,S.getPublic(),A),F.isInfinity()?!1:F.eqXToP(P)):(F=this.g.mulAdd(R,S.getPublic(),A),F.isInfinity()?!1:F.getX().umod(this.n).cmp(P)===0)},c.prototype.recoverPubKey=function(m,g,_,S){i((3&_)===_,"The recovery param is more than two bits"),g=new l(g,S);var M=this.n,P=new e(m),I=g.r,B=g.s,R=_&1,A=_>>1;if(I.cmp(this.curve.p.umod(this.curve.n))>=0&&A)throw new Error("Unable to find sencond key candinate");A?I=this.curve.pointFromX(I.add(this.curve.n),R):I=this.curve.pointFromX(I,R);var F=g.r.invm(M),V=M.sub(P).mul(F).umod(M),j=B.mul(F).umod(M);return this.g.mulAdd(V,I,j)},c.prototype.getKeyRecoveryParam=function(m,g,_,S){if(g=new l(g,S),g.recoveryParam!==null)return g.recoveryParam;for(var M=0;M<4;M++){var P;try{P=this.recoverPubKey(m,g,M)}catch{continue}if(P.eq(_))return M}throw new Error("Unable to find valid recovery factor")},J3}var Rl=Ln,RM=Rl.assert,km=Rl.parseBytes,v0=Rl.cachedProperty;function Cr(e,t){this.eddsa=e,this._secret=km(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=km(t.pub)}Cr.fromPublic=function(t,r){return r instanceof Cr?r:new Cr(t,{pub:r})};Cr.fromSecret=function(t,r){return r instanceof Cr?r:new Cr(t,{secret:r})};Cr.prototype.secret=function(){return this._secret};v0(Cr,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});v0(Cr,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});v0(Cr,"privBytes",function(){var t=this.eddsa,r=this.hash(),n=t.encodingLength-1,a=r.slice(0,t.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});v0(Cr,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});v0(Cr,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});v0(Cr,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Cr.prototype.sign=function(t){return RM(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};Cr.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};Cr.prototype.getSecret=function(t){return RM(this._secret,"KeyPair is public only"),Rl.encode(this.secret(),t)};Cr.prototype.getPublic=function(t){return Rl.encode(this.pubBytes(),t)};var xG=Cr,wG=br,dd=Ln,_G=dd.assert,pd=dd.cachedProperty,SG=dd.parseBytes;function Tf(e,t){this.eddsa=e,typeof t!="object"&&(t=SG(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),_G(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof wG&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}pd(Tf,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});pd(Tf,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});pd(Tf,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});pd(Tf,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Tf.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Tf.prototype.toHex=function(){return dd.encode(this.toBytes(),"hex").toUpperCase()};var EG=Tf,CG=Al,MG=ld,Ks=Ln,AG=Ks.assert,TM=Ks.parseBytes,PM=xG,Im=EG;function wn(e){if(AG(e==="ed25519","only tested with ed25519 so far"),!(this instanceof wn))return new wn(e);e=MG[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=CG.sha512}var RG=wn;wn.prototype.sign=function(t,r){t=TM(t);var n=this.keyFromSecret(r),a=this.hashInt(n.messagePrefix(),t),i=this.g.mul(a),f=this.encodePoint(i),l=this.hashInt(f,n.pubBytes(),t).mul(n.priv()),c=a.add(l).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:f})};wn.prototype.verify=function(t,r,n){t=TM(t),r=this.makeSignature(r);var a=this.keyFromPublic(n),i=this.hashInt(r.Rencoded(),a.pubBytes(),t),f=this.g.mul(r.S()),l=r.R().add(a.pub().mul(i));return l.eq(f)};wn.prototype.hashInt=function(){for(var t=this.hash(),r=0;r0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),n(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[x]|=w<>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);else if(p==="le")for(y=0,x=0;y>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);return this._strip()};function l(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;n(!1,"Invalid character in "+d)}function c(d,o,u){var p=l(d,u);return u-1>=o&&(p|=l(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y=u;y-=2)v=c(o,u,y)<=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8;else{var h=o.length-u;for(y=h%2===0?u+1:u;y=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8}this._strip()};function m(d,o,u,p){for(var y=0,x=0,w=Math.min(d.length,u),v=o;v=49?x=h-49+10:h>=17?x=h-17+10:x=h,n(h>=0&&x1&&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")]=_}catch{i.prototype.inspect=_}else i.prototype.inspect=_;function _(){return(this.red?""}var S=["","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"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var y=0,x=0,w=0;w>>24-y&16777215,y+=2,y>=26&&(y-=26,w--),x!==0||w!==this.length-1?p=S[6-h.length]+h+p:p=h+p}for(x!==0&&(p=x.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var s=M[o],b=P[o];p="";var D=this.clone();for(D.negative=0;!D.isZero();){var C=D.modrn(b).toString(o);D=D.idivn(b),D.isZero()?p=C+p:p=S[s-C.length]+C+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},f&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(f,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var I=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var y=this.byteLength(),x=p||Math.max(1,y);n(y<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var w=I(o,x),v=u==="le"?"LE":"BE";return this["_toArrayLike"+v](w,y),w},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,y=0,x=0,w=0;x>8&255),p>16&255),w===6?(p>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p=0&&(o[p--]=v>>8&255),p>=0&&(o[p--]=v>>16&255),w===6?(p>=0&&(o[p--]=v>>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p>=0)for(o[p--]=y;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return u&8191||(p+=13,u>>>=13),u&127||(p+=7,u>>>=7),u&15||(p+=4,u>>>=4),u&3||(p+=2,u>>>=2),u&1||p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function B(d){for(var o=new Array(d.bitLength()),u=0;u>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;uo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;po.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var y=0;yo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){n(typeof o=="number"&&o>=0);var p=o/26|0,y=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<o.length?(p=this,y=o):(p=o,y=this);for(var x=0,w=0;w>>26;for(;x!==0&&w>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;wo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,x;p>0?(y=this,x=o):(y=o,x=this);for(var w=0,v=0;v>26,this.words[v]=u&67108863;for(;w!==0&&v>26,this.words[v]=u&67108863;if(w===0&&v>>26,D=h&67108863,C=Math.min(s,o.length-1),U=Math.max(0,s-d.length+1);U<=C;U++){var $=s-U|0;y=d.words[$]|0,x=o.words[U]|0,w=y*x+D,b+=w/67108864|0,D=w&67108863}u.words[s]=D|0,h=b|0}return h!==0?u.words[s]=h|0:u.length--,u._strip()}var A=function(o,u,p){var y=o.words,x=u.words,w=p.words,v=0,h,s,b,D=y[0]|0,C=D&8191,U=D>>>13,$=y[1]|0,H=$&8191,X=$>>>13,z=y[2]|0,k=z&8191,L=z>>>13,oe=y[3]|0,re=oe&8191,se=oe>>>13,Y=y[4]|0,T=Y&8191,O=Y>>>13,W=y[5]|0,ie=W&8191,ue=W>>>13,we=y[6]|0,_e=we&8191,Z=we>>>13,le=y[7]|0,fe=le&8191,pe=le>>>13,Ce=y[8]|0,Me=Ce&8191,Ee=Ce>>>13,ne=y[9]|0,me=ne&8191,ye=ne>>>13,Ie=x[0]|0,he=Ie&8191,ve=Ie>>>13,Q=x[1]|0,xe=Q&8191,Ae=Q>>>13,q=x[2]|0,be=q&8191,de=q>>>13,ae=x[3]|0,ce=ae&8191,ge=ae>>>13,Ue=x[4]|0,Re=Ue&8191,Se=Ue>>>13,Ve=x[5]|0,je=Ve&8191,ke=Ve>>>13,Ze=x[6]|0,Ne=Ze&8191,Be=Ze>>>13,et=x[7]|0,$e=et&8191,De=et>>>13,Qe=x[8]|0,qe=Qe&8191,Le=Qe>>>13,rt=x[9]|0,ze=rt&8191,Ge=rt>>>13;p.negative=o.negative^u.negative,p.length=19,h=Math.imul(C,he),s=Math.imul(C,ve),s=s+Math.imul(U,he)|0,b=Math.imul(U,ve);var Et=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(H,he),s=Math.imul(H,ve),s=s+Math.imul(X,he)|0,b=Math.imul(X,ve),h=h+Math.imul(C,xe)|0,s=s+Math.imul(C,Ae)|0,s=s+Math.imul(U,xe)|0,b=b+Math.imul(U,Ae)|0;var Ct=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h=Math.imul(k,he),s=Math.imul(k,ve),s=s+Math.imul(L,he)|0,b=Math.imul(L,ve),h=h+Math.imul(H,xe)|0,s=s+Math.imul(H,Ae)|0,s=s+Math.imul(X,xe)|0,b=b+Math.imul(X,Ae)|0,h=h+Math.imul(C,be)|0,s=s+Math.imul(C,de)|0,s=s+Math.imul(U,be)|0,b=b+Math.imul(U,de)|0;var Mt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,h=Math.imul(re,he),s=Math.imul(re,ve),s=s+Math.imul(se,he)|0,b=Math.imul(se,ve),h=h+Math.imul(k,xe)|0,s=s+Math.imul(k,Ae)|0,s=s+Math.imul(L,xe)|0,b=b+Math.imul(L,Ae)|0,h=h+Math.imul(H,be)|0,s=s+Math.imul(H,de)|0,s=s+Math.imul(X,be)|0,b=b+Math.imul(X,de)|0,h=h+Math.imul(C,ce)|0,s=s+Math.imul(C,ge)|0,s=s+Math.imul(U,ce)|0,b=b+Math.imul(U,ge)|0;var At=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(At>>>26)|0,At&=67108863,h=Math.imul(T,he),s=Math.imul(T,ve),s=s+Math.imul(O,he)|0,b=Math.imul(O,ve),h=h+Math.imul(re,xe)|0,s=s+Math.imul(re,Ae)|0,s=s+Math.imul(se,xe)|0,b=b+Math.imul(se,Ae)|0,h=h+Math.imul(k,be)|0,s=s+Math.imul(k,de)|0,s=s+Math.imul(L,be)|0,b=b+Math.imul(L,de)|0,h=h+Math.imul(H,ce)|0,s=s+Math.imul(H,ge)|0,s=s+Math.imul(X,ce)|0,b=b+Math.imul(X,ge)|0,h=h+Math.imul(C,Re)|0,s=s+Math.imul(C,Se)|0,s=s+Math.imul(U,Re)|0,b=b+Math.imul(U,Se)|0;var Rt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,h=Math.imul(ie,he),s=Math.imul(ie,ve),s=s+Math.imul(ue,he)|0,b=Math.imul(ue,ve),h=h+Math.imul(T,xe)|0,s=s+Math.imul(T,Ae)|0,s=s+Math.imul(O,xe)|0,b=b+Math.imul(O,Ae)|0,h=h+Math.imul(re,be)|0,s=s+Math.imul(re,de)|0,s=s+Math.imul(se,be)|0,b=b+Math.imul(se,de)|0,h=h+Math.imul(k,ce)|0,s=s+Math.imul(k,ge)|0,s=s+Math.imul(L,ce)|0,b=b+Math.imul(L,ge)|0,h=h+Math.imul(H,Re)|0,s=s+Math.imul(H,Se)|0,s=s+Math.imul(X,Re)|0,b=b+Math.imul(X,Se)|0,h=h+Math.imul(C,je)|0,s=s+Math.imul(C,ke)|0,s=s+Math.imul(U,je)|0,b=b+Math.imul(U,ke)|0;var qt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(qt>>>26)|0,qt&=67108863,h=Math.imul(_e,he),s=Math.imul(_e,ve),s=s+Math.imul(Z,he)|0,b=Math.imul(Z,ve),h=h+Math.imul(ie,xe)|0,s=s+Math.imul(ie,Ae)|0,s=s+Math.imul(ue,xe)|0,b=b+Math.imul(ue,Ae)|0,h=h+Math.imul(T,be)|0,s=s+Math.imul(T,de)|0,s=s+Math.imul(O,be)|0,b=b+Math.imul(O,de)|0,h=h+Math.imul(re,ce)|0,s=s+Math.imul(re,ge)|0,s=s+Math.imul(se,ce)|0,b=b+Math.imul(se,ge)|0,h=h+Math.imul(k,Re)|0,s=s+Math.imul(k,Se)|0,s=s+Math.imul(L,Re)|0,b=b+Math.imul(L,Se)|0,h=h+Math.imul(H,je)|0,s=s+Math.imul(H,ke)|0,s=s+Math.imul(X,je)|0,b=b+Math.imul(X,ke)|0,h=h+Math.imul(C,Ne)|0,s=s+Math.imul(C,Be)|0,s=s+Math.imul(U,Ne)|0,b=b+Math.imul(U,Be)|0;var zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(fe,he),s=Math.imul(fe,ve),s=s+Math.imul(pe,he)|0,b=Math.imul(pe,ve),h=h+Math.imul(_e,xe)|0,s=s+Math.imul(_e,Ae)|0,s=s+Math.imul(Z,xe)|0,b=b+Math.imul(Z,Ae)|0,h=h+Math.imul(ie,be)|0,s=s+Math.imul(ie,de)|0,s=s+Math.imul(ue,be)|0,b=b+Math.imul(ue,de)|0,h=h+Math.imul(T,ce)|0,s=s+Math.imul(T,ge)|0,s=s+Math.imul(O,ce)|0,b=b+Math.imul(O,ge)|0,h=h+Math.imul(re,Re)|0,s=s+Math.imul(re,Se)|0,s=s+Math.imul(se,Re)|0,b=b+Math.imul(se,Se)|0,h=h+Math.imul(k,je)|0,s=s+Math.imul(k,ke)|0,s=s+Math.imul(L,je)|0,b=b+Math.imul(L,ke)|0,h=h+Math.imul(H,Ne)|0,s=s+Math.imul(H,Be)|0,s=s+Math.imul(X,Ne)|0,b=b+Math.imul(X,Be)|0,h=h+Math.imul(C,$e)|0,s=s+Math.imul(C,De)|0,s=s+Math.imul(U,$e)|0,b=b+Math.imul(U,De)|0;var $t=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+($t>>>26)|0,$t&=67108863,h=Math.imul(Me,he),s=Math.imul(Me,ve),s=s+Math.imul(Ee,he)|0,b=Math.imul(Ee,ve),h=h+Math.imul(fe,xe)|0,s=s+Math.imul(fe,Ae)|0,s=s+Math.imul(pe,xe)|0,b=b+Math.imul(pe,Ae)|0,h=h+Math.imul(_e,be)|0,s=s+Math.imul(_e,de)|0,s=s+Math.imul(Z,be)|0,b=b+Math.imul(Z,de)|0,h=h+Math.imul(ie,ce)|0,s=s+Math.imul(ie,ge)|0,s=s+Math.imul(ue,ce)|0,b=b+Math.imul(ue,ge)|0,h=h+Math.imul(T,Re)|0,s=s+Math.imul(T,Se)|0,s=s+Math.imul(O,Re)|0,b=b+Math.imul(O,Se)|0,h=h+Math.imul(re,je)|0,s=s+Math.imul(re,ke)|0,s=s+Math.imul(se,je)|0,b=b+Math.imul(se,ke)|0,h=h+Math.imul(k,Ne)|0,s=s+Math.imul(k,Be)|0,s=s+Math.imul(L,Ne)|0,b=b+Math.imul(L,Be)|0,h=h+Math.imul(H,$e)|0,s=s+Math.imul(H,De)|0,s=s+Math.imul(X,$e)|0,b=b+Math.imul(X,De)|0,h=h+Math.imul(C,qe)|0,s=s+Math.imul(C,Le)|0,s=s+Math.imul(U,qe)|0,b=b+Math.imul(U,Le)|0;var Ht=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,h=Math.imul(me,he),s=Math.imul(me,ve),s=s+Math.imul(ye,he)|0,b=Math.imul(ye,ve),h=h+Math.imul(Me,xe)|0,s=s+Math.imul(Me,Ae)|0,s=s+Math.imul(Ee,xe)|0,b=b+Math.imul(Ee,Ae)|0,h=h+Math.imul(fe,be)|0,s=s+Math.imul(fe,de)|0,s=s+Math.imul(pe,be)|0,b=b+Math.imul(pe,de)|0,h=h+Math.imul(_e,ce)|0,s=s+Math.imul(_e,ge)|0,s=s+Math.imul(Z,ce)|0,b=b+Math.imul(Z,ge)|0,h=h+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Se)|0,s=s+Math.imul(ue,Re)|0,b=b+Math.imul(ue,Se)|0,h=h+Math.imul(T,je)|0,s=s+Math.imul(T,ke)|0,s=s+Math.imul(O,je)|0,b=b+Math.imul(O,ke)|0,h=h+Math.imul(re,Ne)|0,s=s+Math.imul(re,Be)|0,s=s+Math.imul(se,Ne)|0,b=b+Math.imul(se,Be)|0,h=h+Math.imul(k,$e)|0,s=s+Math.imul(k,De)|0,s=s+Math.imul(L,$e)|0,b=b+Math.imul(L,De)|0,h=h+Math.imul(H,qe)|0,s=s+Math.imul(H,Le)|0,s=s+Math.imul(X,qe)|0,b=b+Math.imul(X,Le)|0,h=h+Math.imul(C,ze)|0,s=s+Math.imul(C,Ge)|0,s=s+Math.imul(U,ze)|0,b=b+Math.imul(U,Ge)|0;var Kt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(me,xe),s=Math.imul(me,Ae),s=s+Math.imul(ye,xe)|0,b=Math.imul(ye,Ae),h=h+Math.imul(Me,be)|0,s=s+Math.imul(Me,de)|0,s=s+Math.imul(Ee,be)|0,b=b+Math.imul(Ee,de)|0,h=h+Math.imul(fe,ce)|0,s=s+Math.imul(fe,ge)|0,s=s+Math.imul(pe,ce)|0,b=b+Math.imul(pe,ge)|0,h=h+Math.imul(_e,Re)|0,s=s+Math.imul(_e,Se)|0,s=s+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Se)|0,h=h+Math.imul(ie,je)|0,s=s+Math.imul(ie,ke)|0,s=s+Math.imul(ue,je)|0,b=b+Math.imul(ue,ke)|0,h=h+Math.imul(T,Ne)|0,s=s+Math.imul(T,Be)|0,s=s+Math.imul(O,Ne)|0,b=b+Math.imul(O,Be)|0,h=h+Math.imul(re,$e)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(se,$e)|0,b=b+Math.imul(se,De)|0,h=h+Math.imul(k,qe)|0,s=s+Math.imul(k,Le)|0,s=s+Math.imul(L,qe)|0,b=b+Math.imul(L,Le)|0,h=h+Math.imul(H,ze)|0,s=s+Math.imul(H,Ge)|0,s=s+Math.imul(X,ze)|0,b=b+Math.imul(X,Ge)|0;var Gt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(me,be),s=Math.imul(me,de),s=s+Math.imul(ye,be)|0,b=Math.imul(ye,de),h=h+Math.imul(Me,ce)|0,s=s+Math.imul(Me,ge)|0,s=s+Math.imul(Ee,ce)|0,b=b+Math.imul(Ee,ge)|0,h=h+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Se)|0,s=s+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Se)|0,h=h+Math.imul(_e,je)|0,s=s+Math.imul(_e,ke)|0,s=s+Math.imul(Z,je)|0,b=b+Math.imul(Z,ke)|0,h=h+Math.imul(ie,Ne)|0,s=s+Math.imul(ie,Be)|0,s=s+Math.imul(ue,Ne)|0,b=b+Math.imul(ue,Be)|0,h=h+Math.imul(T,$e)|0,s=s+Math.imul(T,De)|0,s=s+Math.imul(O,$e)|0,b=b+Math.imul(O,De)|0,h=h+Math.imul(re,qe)|0,s=s+Math.imul(re,Le)|0,s=s+Math.imul(se,qe)|0,b=b+Math.imul(se,Le)|0,h=h+Math.imul(k,ze)|0,s=s+Math.imul(k,Ge)|0,s=s+Math.imul(L,ze)|0,b=b+Math.imul(L,Ge)|0;var Wt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(me,ce),s=Math.imul(me,ge),s=s+Math.imul(ye,ce)|0,b=Math.imul(ye,ge),h=h+Math.imul(Me,Re)|0,s=s+Math.imul(Me,Se)|0,s=s+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Se)|0,h=h+Math.imul(fe,je)|0,s=s+Math.imul(fe,ke)|0,s=s+Math.imul(pe,je)|0,b=b+Math.imul(pe,ke)|0,h=h+Math.imul(_e,Ne)|0,s=s+Math.imul(_e,Be)|0,s=s+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,Be)|0,h=h+Math.imul(ie,$e)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(ue,$e)|0,b=b+Math.imul(ue,De)|0,h=h+Math.imul(T,qe)|0,s=s+Math.imul(T,Le)|0,s=s+Math.imul(O,qe)|0,b=b+Math.imul(O,Le)|0,h=h+Math.imul(re,ze)|0,s=s+Math.imul(re,Ge)|0,s=s+Math.imul(se,ze)|0,b=b+Math.imul(se,Ge)|0;var Vt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(me,Re),s=Math.imul(me,Se),s=s+Math.imul(ye,Re)|0,b=Math.imul(ye,Se),h=h+Math.imul(Me,je)|0,s=s+Math.imul(Me,ke)|0,s=s+Math.imul(Ee,je)|0,b=b+Math.imul(Ee,ke)|0,h=h+Math.imul(fe,Ne)|0,s=s+Math.imul(fe,Be)|0,s=s+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Be)|0,h=h+Math.imul(_e,$e)|0,s=s+Math.imul(_e,De)|0,s=s+Math.imul(Z,$e)|0,b=b+Math.imul(Z,De)|0,h=h+Math.imul(ie,qe)|0,s=s+Math.imul(ie,Le)|0,s=s+Math.imul(ue,qe)|0,b=b+Math.imul(ue,Le)|0,h=h+Math.imul(T,ze)|0,s=s+Math.imul(T,Ge)|0,s=s+Math.imul(O,ze)|0,b=b+Math.imul(O,Ge)|0;var Zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(me,je),s=Math.imul(me,ke),s=s+Math.imul(ye,je)|0,b=Math.imul(ye,ke),h=h+Math.imul(Me,Ne)|0,s=s+Math.imul(Me,Be)|0,s=s+Math.imul(Ee,Ne)|0,b=b+Math.imul(Ee,Be)|0,h=h+Math.imul(fe,$e)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(pe,$e)|0,b=b+Math.imul(pe,De)|0,h=h+Math.imul(_e,qe)|0,s=s+Math.imul(_e,Le)|0,s=s+Math.imul(Z,qe)|0,b=b+Math.imul(Z,Le)|0,h=h+Math.imul(ie,ze)|0,s=s+Math.imul(ie,Ge)|0,s=s+Math.imul(ue,ze)|0,b=b+Math.imul(ue,Ge)|0;var cr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863,h=Math.imul(me,Ne),s=Math.imul(me,Be),s=s+Math.imul(ye,Ne)|0,b=Math.imul(ye,Be),h=h+Math.imul(Me,$e)|0,s=s+Math.imul(Me,De)|0,s=s+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,De)|0,h=h+Math.imul(fe,qe)|0,s=s+Math.imul(fe,Le)|0,s=s+Math.imul(pe,qe)|0,b=b+Math.imul(pe,Le)|0,h=h+Math.imul(_e,ze)|0,s=s+Math.imul(_e,Ge)|0,s=s+Math.imul(Z,ze)|0,b=b+Math.imul(Z,Ge)|0;var hr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(me,$e),s=Math.imul(me,De),s=s+Math.imul(ye,$e)|0,b=Math.imul(ye,De),h=h+Math.imul(Me,qe)|0,s=s+Math.imul(Me,Le)|0,s=s+Math.imul(Ee,qe)|0,b=b+Math.imul(Ee,Le)|0,h=h+Math.imul(fe,ze)|0,s=s+Math.imul(fe,Ge)|0,s=s+Math.imul(pe,ze)|0,b=b+Math.imul(pe,Ge)|0;var dr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(dr>>>26)|0,dr&=67108863,h=Math.imul(me,qe),s=Math.imul(me,Le),s=s+Math.imul(ye,qe)|0,b=Math.imul(ye,Le),h=h+Math.imul(Me,ze)|0,s=s+Math.imul(Me,Ge)|0,s=s+Math.imul(Ee,ze)|0,b=b+Math.imul(Ee,Ge)|0;var Yr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,h=Math.imul(me,ze),s=Math.imul(me,Ge),s=s+Math.imul(ye,ze)|0,b=Math.imul(ye,Ge);var Jr=(v+h|0)+((s&8191)<<13)|0;return v=(b+(s>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w[0]=Et,w[1]=Ct,w[2]=Mt,w[3]=At,w[4]=Rt,w[5]=qt,w[6]=zt,w[7]=$t,w[8]=Ht,w[9]=Kt,w[10]=Gt,w[11]=Wt,w[12]=Vt,w[13]=Zt,w[14]=cr,w[15]=hr,w[16]=dr,w[17]=Yr,w[18]=Jr,v!==0&&(w[19]=v,p.length++),p};Math.imul||(A=R);function F(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,y=0,x=0;x>>26)|0,y+=w>>>26,w&=67108863}u.words[x]=v,p=w,w=y}return p!==0?u.words[x]=p:u.length--,u._strip()}function V(d,o,u){return F(d,o,u)}i.prototype.mulTo=function(o,u){var p,y=this.length+o.length;return this.length===10&&o.length===10?p=A(this,o,u):y<63?p=R(this,o,u):y<1024?p=F(this,o,u):p=V(this,o,u),p},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),V(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var p=0,y=0;y>=26,p+=x/67108864|0,p+=w>>>26,this.words[y]=w&67108863}return p!==0&&(this.words[y]=p,this.length++),u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=B(o);if(u.length===0)return new i(1);for(var p=this,y=0;y=0);var u=o%26,p=(o-u)/26,y=67108863>>>26-u<<26-u,x;if(u!==0){var w=0;for(x=0;x>>26-u}w&&(this.words[x]=w,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x=0);var y;u?y=(u-u%26)/26:y=0;var x=o%26,w=Math.min((o-x)/26,this.length),v=67108863^67108863>>>x<w)for(this.length-=w,s=0;s=0&&(b!==0||s>=y);s--){var D=this.words[s]|0;this.words[s]=b<<26-x|D>>>x,b=D&v}return h&&b!==0&&(h.words[h.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return n(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,y=1<=0);var u=o%26,p=(o-u)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var y=67108863^67108863>>>u<=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u>26)-(h/67108864|0),this.words[x+p]=w&67108863}for(;x>26,this.words[x+p]=w&67108863;if(v===0)return this._strip();for(n(v===-1),v=0,x=0;x>26,this.words[x]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,y=this.clone(),x=o,w=x.words[x.length-1]|0,v=this._countBits(w);p=26-v,p!==0&&(x=x.ushln(p),y.iushln(p),w=x.words[x.length-1]|0);var h=y.length-x.length,s;if(u!=="mod"){s=new i(null),s.length=h+1,s.words=new Array(s.length);for(var b=0;b=0;C--){var U=(y.words[x.length+C]|0)*67108864+(y.words[x.length+C-1]|0);for(U=Math.min(U/w|0,67108863),y._ishlnsubmul(x,U,C);y.negative!==0;)U--,y.negative=0,y._ishlnsubmul(x,1,C),y.isZero()||(y.negative^=1);s&&(s.words[C]=U)}return s&&s._strip(),y._strip(),u!=="div"&&p!==0&&y.iushrn(p),{div:s||null,mod:y}},i.prototype.divmod=function(o,u,p){if(n(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,x,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,u),u!=="mod"&&(y=w.div.neg()),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.iadd(o)),{div:y,mod:x}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),u),u!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),u),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.isub(o)),{div:w.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),x=o.andln(1),w=p.cmp(y);return w<0||x===1&&w===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=(1<<26)%o,y=0,x=this.length-1;x>=0;x--)y=(p*y+(this.words[x]|0))%o;return u?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var x=(this.words[y]|0)+p*67108864;this.words[y]=x/o|0,p=x%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=new i(0),v=new i(1),h=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++h;for(var s=p.clone(),b=u.clone();!u.isZero();){for(var D=0,C=1;!(u.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(u.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(s),x.isub(b)),y.iushrn(1),x.iushrn(1);for(var U=0,$=1;!(p.words[0]&$)&&U<26;++U,$<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(w.isOdd()||v.isOdd())&&(w.iadd(s),v.isub(b)),w.iushrn(1),v.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(w),x.isub(v)):(p.isub(u),w.isub(y),v.isub(x))}return{a:w,b:v,gcd:p.iushln(h)}},i.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var v=0,h=1;!(u.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(u.iushrn(v);v-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var s=0,b=1;!(p.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(p.iushrn(s);s-- >0;)x.isOdd()&&x.iadd(w),x.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(x)):(p.isub(u),x.isub(y))}var D;return u.cmpn(1)===0?D=y:D=x,D.cmpn(0)<0&&D.iadd(o),D},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var y=0;u.isEven()&&p.isEven();y++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=u.cmp(p);if(x<0){var w=u;u=p,p=w}else if(x===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){n(typeof o=="number");var u=o%26,p=(o-u)/26,y=1<>>26,v&=67108863,this.words[w]=v}return x!==0&&(this.words[w]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;p=y===o?0:yo.length)return 1;if(this.length=0;p--){var y=this.words[p]|0,x=o.words[p]|0;if(y!==x){yx&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new G(o)},i.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function N(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},N.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var y=p0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},N.prototype.split=function(o,u){o.iushrn(this.n,0,u)},N.prototype.imulK=function(o){return o.imul(this.k)};function K(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(K,N),K.prototype.split=function(o,u){for(var p=4194303,y=Math.min(o.length,9),x=0;x>>22,w=v}w>>>=22,o.words[x-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},K.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p>>=26,o.words[p]=x,u=y}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(j[o])return j[o];var u;if(o==="k256")u=new K;else if(o==="p224")u=new J;else if(o==="p192")u=new te;else if(o==="p25519")u=new ee;else throw new Error("Unknown prime "+o);return j[o]=u,u};function G(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else n(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}G.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},G.prototype._verify2=function(o,u){n((o.negative|u.negative)===0,"red works only with positives"),n(o.red&&o.red===u.red,"red works only with red numbers")},G.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},G.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},G.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},G.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},G.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},G.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},G.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},G.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},G.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},G.prototype.isqr=function(o){return this.imul(o,o.clone())},G.prototype.sqr=function(o){return this.mul(o,o)},G.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(n(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);n(!y.isZero());var w=new i(1).toRed(this),v=w.redNeg(),h=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,h).cmp(v)!==0;)s.redIAdd(v);for(var b=this.pow(s,y),D=this.pow(o,y.addn(1).iushrn(1)),C=this.pow(o,y),U=x;C.cmp(w)!==0;){for(var $=C,H=0;$.cmp(w)!==0;H++)$=$.redSqr();n(H=0;x--){for(var b=u.words[x],D=s-1;D>=0;D--){var C=b>>D&1;if(w!==y[0]&&(w=this.sqr(w)),C===0&&v===0){h=0;continue}v<<=1,v|=C,h++,!(h!==p&&(x!==0||D!==0))&&(w=this.mul(w,y[v]),h=0,v=0)}s=26}return w},G.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},G.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new E(o)};function E(d){G.call(this,d),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)}a(E,G),E.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},E.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},E.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(e,Oe)})(Q5);var OM=Q5.exports,Di={},Tl={},kM={},e7={},Yc=Te,xs=Yc.Buffer,Wn={},Vn;for(Vn in Yc)Yc.hasOwnProperty(Vn)&&(Vn==="SlowBuffer"||Vn==="Buffer"||(Wn[Vn]=Yc[Vn]));var ws=Wn.Buffer={};for(Vn in xs)xs.hasOwnProperty(Vn)&&(Vn==="allocUnsafe"||Vn==="allocUnsafeSlow"||(ws[Vn]=xs[Vn]));Wn.Buffer.prototype=xs.prototype;(!ws.from||ws.from===Uint8Array.from)&&(ws.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return xs(e,t,r)});ws.alloc||(ws.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=xs(e);return!t||t.length===0?n.fill(0):typeof r=="string"?n.fill(t,r):n.fill(t),n});if(!Wn.kStringMaxLength)try{Wn.kStringMaxLength=He.binding("buffer").kStringMaxLength}catch{}Wn.constants||(Wn.constants={MAX_LENGTH:Wn.kMaxLength},Wn.kStringMaxLength&&(Wn.constants.MAX_STRING_LENGTH=Wn.kStringMaxLength));var t7=Wn,gd={};const TG=ot;function ci(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}gd.Reporter=ci;ci.prototype.isError=function(t){return t instanceof Gs};ci.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};ci.prototype.restore=function(t){const r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};ci.prototype.enterKey=function(t){return this._reporterState.path.push(t)};ci.prototype.exitKey=function(t){const r=this._reporterState;r.path=r.path.slice(0,t-1)};ci.prototype.leaveKey=function(t,r,n){const a=this._reporterState;this.exitKey(t),a.obj!==null&&(a.obj[r]=n)};ci.prototype.path=function(){return this._reporterState.path.join("/")};ci.prototype.enterObject=function(){const t=this._reporterState,r=t.obj;return t.obj={},r};ci.prototype.leaveObject=function(t){const r=this._reporterState,n=r.obj;return r.obj=t,n};ci.prototype.error=function(t){let r;const n=this._reporterState,a=t instanceof Gs;if(a?r=t:r=new Gs(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw r;return a||n.errors.push(r),r};ci.prototype.wrapResult=function(t){const r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function Gs(e,t){this.path=e,this.rethrow(t)}TG(Gs,Error);Gs.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Gs),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var wf={};const PG=ot,yd=gd.Reporter,Ws=t7.Buffer;function ii(e,t){if(yd.call(this,t),!Ws.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}PG(ii,yd);wf.DecoderBuffer=ii;ii.isDecoderBuffer=function(t){return t instanceof ii?!0:typeof t=="object"&&Ws.isBuffer(t.base)&&t.constructor.name==="DecoderBuffer"&&typeof t.offset=="number"&&typeof t.length=="number"&&typeof t.save=="function"&&typeof t.restore=="function"&&typeof t.isEmpty=="function"&&typeof t.readUInt8=="function"&&typeof t.skip=="function"&&typeof t.raw=="function"};ii.prototype.save=function(){return{offset:this.offset,reporter:yd.prototype.save.call(this)}};ii.prototype.restore=function(t){const r=new ii(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,yd.prototype.restore.call(this,t.reporter),r};ii.prototype.isEmpty=function(){return this.offset===this.length};ii.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};ii.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");const n=new ii(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n};ii.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function Vs(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return Vs.isEncoderBuffer(r)||(r=new Vs(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=Ws.byteLength(e);else if(Ws.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}wf.EncoderBuffer=Vs;Vs.isEncoderBuffer=function(t){return t instanceof Vs?!0:typeof t=="object"&&t.constructor.name==="EncoderBuffer"&&typeof t.length=="number"&&typeof t.join=="function"};Vs.prototype.join=function(t,r){return t||(t=Ws.alloc(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):Ws.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t};const OG=gd.Reporter,kG=wf.EncoderBuffer,IG=wf.DecoderBuffer,on=fi,IM=["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"],BG=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(IM),LG=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Ot(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var r7=Ot;const NG=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Ot.prototype.clone=function(){const t=this._baseState,r={};NG.forEach(function(a){r[a]=t[a]});const n=new this.constructor(r.parent);return n._baseState=r,n};Ot.prototype._wrap=function(){const t=this._baseState;BG.forEach(function(r){this[r]=function(){const a=new this.constructor(this);return t.children.push(a),a[r].apply(a,arguments)}},this)};Ot.prototype._init=function(t){const r=this._baseState;on(r.parent===null),t.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),on.equal(r.children.length,1,"Root node can have only one child")};Ot.prototype._useArgs=function(t){const r=this._baseState,n=t.filter(function(a){return a instanceof this.constructor},this);t=t.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(on(r.children===null),r.children=n,n.forEach(function(a){a._baseState.parent=this},this)),t.length!==0&&(on(r.args===null),r.args=t,r.reverseArgs=t.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;const i={};return Object.keys(a).forEach(function(f){f==(f|0)&&(f|=0);const l=a[f];i[l]=f}),i}))};LG.forEach(function(e){Ot.prototype[e]=function(){const r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});IM.forEach(function(e){Ot.prototype[e]=function(){const r=this._baseState,n=Array.prototype.slice.call(arguments);return on(r.tag===null),r.tag=e,this._useArgs(n),this}});Ot.prototype.use=function(t){on(t);const r=this._baseState;return on(r.use===null),r.use=t,this};Ot.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this};Ot.prototype.def=function(t){const r=this._baseState;return on(r.default===null),r.default=t,r.optional=!0,this};Ot.prototype.explicit=function(t){const r=this._baseState;return on(r.explicit===null&&r.implicit===null),r.explicit=t,this};Ot.prototype.implicit=function(t){const r=this._baseState;return on(r.explicit===null&&r.implicit===null),r.implicit=t,this};Ot.prototype.obj=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};Ot.prototype.key=function(t){const r=this._baseState;return on(r.key===null),r.key=t,this};Ot.prototype.any=function(){const t=this._baseState;return t.any=!0,this};Ot.prototype.choice=function(t){const r=this._baseState;return on(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(n){return t[n]})),this};Ot.prototype.contains=function(t){const r=this._baseState;return on(r.use===null),r.contains=t,this};Ot.prototype._decode=function(t,r){const n=this._baseState;if(n.parent===null)return t.wrapResult(n.children[0]._decode(t,r));let a=n.default,i=!0,f=null;if(n.key!==null&&(f=t.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){const m=t.save();try{n.choice===null?this._decodeGeneric(n.tag,t,r):this._decodeChoice(t,r),i=!0}catch{i=!1}t.restore(m)}else if(i=this._peekTag(t,c,n.any),t.isError(i))return i}let l;if(n.obj&&i&&(l=t.enterObject()),i){if(n.explicit!==null){const m=this._decodeTag(t,n.explicit);if(t.isError(m))return m;t=m}const c=t.offset;if(n.use===null&&n.choice===null){let m;n.any&&(m=t.save());const g=this._decodeTag(t,n.implicit!==null?n.implicit:n.tag,n.any);if(t.isError(g))return g;n.any?a=t.raw(m):t=g}if(r&&r.track&&n.tag!==null&&r.track(t.path(),c,t.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,t,r):a=this._decodeChoice(t,r)),t.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(g){g._decode(t,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){const m=new IG(a);a=this._getUse(n.contains,t._reporterState.obj)._decode(m,r)}}return n.obj&&i&&(a=t.leaveObject(l)),n.key!==null&&(a!==null||i===!0)?t.leaveKey(f,n.key,a):f!==null&&t.exitKey(f),a};Ot.prototype._decodeGeneric=function(t,r,n){const a=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,a.args[0],n):/str$/.test(t)?this._decodeStr(r,t,n):t==="objid"&&a.args?this._decodeObjid(r,a.args[0],a.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,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+t)};Ot.prototype._getUse=function(t,r){const n=this._baseState;return n.useDecoder=this._use(t,r),on(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};Ot.prototype._decodeChoice=function(t,r){const n=this._baseState;let a=null,i=!1;return Object.keys(n.choice).some(function(f){const l=t.save(),c=n.choice[f];try{const m=c._decode(t,r);if(t.isError(m))return!1;a={type:f,value:m},i=!0}catch{return t.restore(l),!1}return!0},this),i?a:t.error("Choice not matched")};Ot.prototype._createEncoderBuffer=function(t){return new kG(t,this.reporter)};Ot.prototype._encode=function(t,r,n){const a=this._baseState;if(a.default!==null&&a.default===t)return;const i=this._encodeValue(t,r,n);if(i!==void 0&&!this._skipDefault(i,r,n))return i};Ot.prototype._encodeValue=function(t,r,n){const a=this._baseState;if(a.parent===null)return a.children[0]._encode(t,r||new OG);let i=null;if(this.reporter=r,a.optional&&t===void 0)if(a.default!==null)t=a.default;else return;let f=null,l=!1;if(a.any)i=this._createEncoderBuffer(t);else if(a.choice)i=this._encodeChoice(t,r);else if(a.contains)f=this._getUse(a.contains,n)._encode(t,r),l=!0;else if(a.children)f=a.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,r,t);if(c._baseState.key===null)return r.error("Child should have a key");const m=r.enterKey(c._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");const g=c._encode(t[c._baseState.key],r,t);return r.leaveKey(m),g},this).filter(function(c){return c}),f=this._createEncoderBuffer(f);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return r.error("Too many args for : "+a.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");const c=this.clone();c._baseState.implicit=null,f=this._createEncoderBuffer(t.map(function(m){const g=this._baseState;return this._getUse(g.args[0],t)._encode(m,r)},c))}else a.use!==null?i=this._getUse(a.use,n)._encode(t,r):(f=this._encodePrimitive(a.tag,t),l=!0);if(!a.any&&a.choice===null){const c=a.implicit!==null?a.implicit:a.tag,m=a.implicit===null?"universal":"context";c===null?a.use===null&&r.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(c,l,m,f))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};Ot.prototype._encodeChoice=function(t,r){const n=this._baseState,a=n.choice[t.type];return a||on(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(t.value,r)};Ot.prototype._encodePrimitive=function(t,r){const 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)};Ot.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};Ot.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)};var md={};(function(e){function t(r){const n={};return Object.keys(r).forEach(function(a){(a|0)==a&&(a=a|0);const i=r[a];n[i]=a}),n}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)})(md);const DG=ot,ma=t7.Buffer,BM=r7,Q3=md;function LM(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Fi,this.tree._init(e.body)}var NM=LM;LM.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Fi(e){BM.call(this,"der",e)}DG(Fi,BM);Fi.prototype._encodeComposite=function(t,r,n,a){const i=FG(t,r,n,this.reporter);if(a.length<128){const c=ma.alloc(2);return c[0]=i,c[1]=a.length,this._createEncoderBuffer([c,a])}let f=1;for(let c=a.length;c>=256;c>>=8)f++;const l=ma.alloc(2+f);l[0]=i,l[1]=128|f;for(let c=1+f,m=a.length;m>0;c--,m>>=8)l[c]=m&255;return this._createEncoderBuffer([l,a])};Fi.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){const n=ma.alloc(t.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}let a=0;for(let l=0;l=128;c>>=7)a++}const i=ma.alloc(a);let f=i.length-1;for(let l=t.length-1;l>=0;l--){let c=t[l];for(i[f--]=c&127;(c>>=7)>0;)i[f--]=128|c&127}return this._createEncoderBuffer(i)};function Un(e){return e<10?"0"+e:e}Fi.prototype._encodeTime=function(t,r){let n;const a=new Date(t);return r==="gentime"?n=[Un(a.getUTCFullYear()),Un(a.getUTCMonth()+1),Un(a.getUTCDate()),Un(a.getUTCHours()),Un(a.getUTCMinutes()),Un(a.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[Un(a.getUTCFullYear()%100),Un(a.getUTCMonth()+1),Un(a.getUTCDate()),Un(a.getUTCHours()),Un(a.getUTCMinutes()),Un(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};Fi.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Fi.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"&&!ma.isBuffer(t)){const i=t.toArray();!t.sign&&i[0]&128&&i.unshift(0),t=ma.from(i)}if(ma.isBuffer(t)){let i=t.length;t.length===0&&i++;const f=ma.alloc(i);return t.copy(f),t.length===0&&(f[0]=0),this._createEncoderBuffer(f)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let i=t;i>=256;i>>=8)n++;const a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=t&255,t>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(ma.from(a))};Fi.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Fi.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Fi.prototype._skipDefault=function(t,r,n){const a=this._baseState;let i;if(a.default===null)return!1;const f=t.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,r,n).join()),f.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=Q3.tagClassByName[r||"universal"]<<6,a)}const UG=ot,n7=NM;function i7(e){n7.call(this,e),this.enc="pem"}UG(i7,n7);var jG=i7;i7.prototype.encode=function(t,r){const a=n7.prototype.encode.call(this,t).toString("base64"),i=["-----BEGIN "+r.label+"-----"];for(let f=0;f>6],a=(r&32)===0;if((r&31)===31){let f=r;for(r=0;(f&128)===128;){if(f=e.readUInt8(t),e.isError(f))return f;r<<=7,r|=f&127}}else r&=31;const i=Nm.tag[r];return{cls:n,primitive:a,tag:r,tagStr:i}}function jM(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&n===128)return null;if(!(n&128))return n;const a=n&127;if(a>4)return e.error("length octect is too long");n=0;for(let i=0;i0&&F.ishrn(V),F}function P(R,A){R=M(R,A),R=R.mod(A);var F=e.from(R.toArray());if(F.length=0)throw new Error("invalid sig")}return ep=i,ep}var tp,qm;function SW(){if(qm)return tp;qm=1;var e=st.Buffer,t=xl,r=Li,n=ot,a=wW(),i=_W(),f=gC;Object.keys(f).forEach(function(_){f[_].id=e.from(f[_].id,"hex"),f[_.toLowerCase()]=f[_]});function l(_){r.Writable.call(this);var S=f[_];if(!S)throw new Error("Unknown message digest");this._hashType=S.hash,this._hash=t(S.hash),this._tag=S.id,this._signType=S.sign}n(l,r.Writable),l.prototype._write=function(S,M,P){this._hash.update(S),P()},l.prototype.update=function(S,M){return this._hash.update(typeof S=="string"?e.from(S,M):S),this},l.prototype.sign=function(S,M){this.end();var P=this._hash.digest(),I=a(P,S,this._hashType,this._signType,this._tag);return M?I.toString(M):I};function c(_){r.Writable.call(this);var S=f[_];if(!S)throw new Error("Unknown message digest");this._hash=t(S.hash),this._tag=S.id,this._signType=S.sign}n(c,r.Writable),c.prototype._write=function(S,M,P){this._hash.update(S),P()},c.prototype.update=function(S,M){return this._hash.update(typeof S=="string"?e.from(S,M):S),this},c.prototype.verify=function(S,M,P){var I=typeof M=="string"?e.from(M,P):M;this.end();var B=this._hash.digest();return i(I,B,S,this._signType,this._tag)};function m(_){return new l(_)}function g(_){return new c(_)}return tp={Sign:m,Verify:g,createSign:m,createVerify:g},tp}var rp,zm;function EW(){if(zm)return rp;zm=1;var e=vd(),t=br;rp=function(f){return new n(f)};var r={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}};r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1;function n(i){this.curveType=r[i],this.curveType||(this.curveType={name:i}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}n.prototype.generateKeys=function(i,f){return this.keys=this.curve.genKeyPair(),this.getPublicKey(i,f)},n.prototype.computeSecret=function(i,f,l){f=f||"utf8",Te.Buffer.isBuffer(i)||(i=new Te.Buffer(i,f));var c=this.curve.keyFromPublic(i).getPublic(),m=c.mul(this.keys.getPrivate()).getX();return a(m,l,this.curveType.byteLength)},n.prototype.getPublicKey=function(i,f){var l=this.keys.getPublic(f==="compressed",!0);return f==="hybrid"&&(l[l.length-1]%2?l[0]=7:l[0]=6),a(l,i)},n.prototype.getPrivateKey=function(i){return a(this.keys.getPrivate(),i)},n.prototype.setPublicKey=function(i,f){return f=f||"utf8",Te.Buffer.isBuffer(i)||(i=new Te.Buffer(i,f)),this.keys._importPublic(i),this},n.prototype.setPrivateKey=function(i,f){f=f||"utf8",Te.Buffer.isBuffer(i)||(i=new Te.Buffer(i,f));var l=new t(i);return l=l.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(l),this};function a(i,f,l){Array.isArray(i)||(i=i.toArray());var c=new Te.Buffer(i);if(l&&c.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?kW(f,i):OW(f,i)};function BW(e,t){var r=e.modulus.byteLength(),n=t.length,a=PW("sha1").update(Mi.alloc(0)).digest(),i=a.length,f=2*i;if(n>r-f-2)throw new Error("message too long");var l=Mi.alloc(r-n-f-2),c=r-i-1,m=T6(i),g=Km(Mi.concat([a,l,Mi.alloc(1,1),t],c),Hm(m,c)),_=Km(m,Hm(g,i));return new l7(Mi.concat([Mi.alloc(1),_,g],r))}function LW(e,t,r){var n=t.length,a=e.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return r?i=Mi.alloc(a-n-3,255):i=NW(a-n-3),new l7(Mi.concat([Mi.from([0,r?1:2]),i,Mi.alloc(1),t],a))}function NW(e){for(var t=Mi.allocUnsafe(e),r=0,n=T6(e*2),a=0,i;rf||new Vm(r).cmp(i.modulus)>=0)throw new Error("decryption error");var l;n?l=jW(new Vm(r),i):l=FW(r,i);var c=Zu.alloc(f-l.length);if(l=Zu.concat([c,l],f),a===4)return zW(i,l);if(a===1)return $W(i,l,n);if(a===3)return l;throw new Error("unknown padding")};function zW(e,t){var r=e.modulus.byteLength(),n=UW("sha1").update(Zu.alloc(0)).digest(),a=n.length;if(t[0]!==0)throw new Error("decryption error");var i=t.slice(1,a+1),f=t.slice(a+1),l=Wm(i,Gm(f,a)),c=Wm(f,Gm(l,r-a-1));if(HW(n,c.slice(0,a)))throw new Error("decryption error");for(var m=a;c[m]===0;)m++;if(c[m++]!==1)throw new Error("decryption error");return c.slice(m)}function $W(e,t,r){for(var n=t.slice(0,2),a=2,i=0;t[a++]!==0;)if(a>=t.length){i++;break}var f=t.slice(2,a-1);if((n.toString("hex")!=="0002"&&!r||n.toString("hex")!=="0001"&&r)&&i++,f.length<8&&i++,i)throw new Error("decryption error");return t.slice(a)}function HW(e,t){e=Zu.from(e),t=Zu.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var a=-1;++aQM||e<0)throw new TypeError("offset must be a uint32");if(e>JM||e>t)throw new RangeError("offset out of range")}function tA(e,t,r){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>QM||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>JM)throw new RangeError("buffer too small")}P6&&P6.getRandomValues||!He.browser?(Y0.randomFill=KW,Y0.randomFillSync=GW):(Y0.randomFill=Zm,Y0.randomFillSync=Zm);function KW(e,t,r,n){if(!YM.isBuffer(e)&&!(e instanceof Oe.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 eA(t,e.length),tA(r,t,e.length),rA(e,t,r,n)}function rA(e,t,r,n){if(He.browser){var a=e.buffer,i=new Uint8Array(a,t,r);if(P6.getRandomValues(i),n){He.nextTick(function(){n(null,e)});return}return e}if(n){Xm(r,function(l,c){if(l)return n(l);c.copy(e,t),n(null,e)});return}var f=Xm(r);return f.copy(e,t),e}function GW(e,t,r){if(typeof t>"u"&&(t=0),!YM.isBuffer(e)&&!(e instanceof Oe.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return eA(t,e.length),r===void 0&&(r=e.length-t),tA(r,t,e.length),rA(e,t,r)}var Ym;function c7(){if(Ym)return ft;Ym=1,ft.randomBytes=ft.rng=ft.pseudoRandomBytes=ft.prng=f0,ft.createHash=ft.Hash=xl,ft.createHmac=ft.Hmac=vC;var e=Oz,t=Object.keys(e),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);ft.getHashes=function(){return r};var n=td;ft.pbkdf2=n.pbkdf2,ft.pbkdf2Sync=n.pbkdf2Sync;var a=ki;ft.Cipher=a.Cipher,ft.createCipher=a.createCipher,ft.Cipheriv=a.Cipheriv,ft.createCipheriv=a.createCipheriv,ft.Decipher=a.Decipher,ft.createDecipher=a.createDecipher,ft.Decipheriv=a.Decipheriv,ft.createDecipheriv=a.createDecipheriv,ft.getCiphers=a.getCiphers,ft.listCiphers=a.listCiphers;var i=lH();ft.DiffieHellmanGroup=i.DiffieHellmanGroup,ft.createDiffieHellmanGroup=i.createDiffieHellmanGroup,ft.getDiffieHellman=i.getDiffieHellman,ft.createDiffieHellman=i.createDiffieHellman,ft.DiffieHellman=i.DiffieHellman;var f=SW();ft.createSign=f.createSign,ft.Sign=f.Sign,ft.createVerify=f.createVerify,ft.Verify=f.Verify,ft.createECDH=EW();var l=GM;ft.publicEncrypt=l.publicEncrypt,ft.privateEncrypt=l.privateEncrypt,ft.publicDecrypt=l.publicDecrypt,ft.privateDecrypt=l.privateDecrypt;var c=Y0;return ft.randomFill=c.randomFill,ft.randomFillSync=c.randomFillSync,ft.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))},ft.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},ft}var Na=c7();const WW=Nr(Na),VW=vT({__proto__:null,default:WW},[Na]);/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */const Ir=BigInt(0),mt=BigInt(1),fo=BigInt(2),ZW=BigInt(8),Jm=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),Dt=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:Jm,n:Jm,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")}),nA=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),du=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742");const XW=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),YW=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),JW=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),QW=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952");class yt{constructor(t,r,n,a){this.x=t,this.y=r,this.z=n,this.t=a}static fromAffine(t){if(!(t instanceof yr))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return t.equals(yr.ZERO)?yt.ZERO:new yt(t.x,t.y,mt,Ke(t.x*t.y))}static toAffineBatch(t){const r=rV(t.map(n=>n.z));return t.map((n,a)=>n.toAffine(r[a]))}static normalizeZ(t){return this.toAffineBatch(t).map(this.fromAffine)}equals(t){eb(t);const{x:r,y:n,z:a}=this,{x:i,y:f,z:l}=t,c=Ke(r*l),m=Ke(i*a),g=Ke(n*l),_=Ke(f*a);return c===m&&g===_}negate(){return new yt(Ke(-this.x),this.y,this.z,Ke(-this.t))}double(){const{x:t,y:r,z:n}=this,{a}=Dt,i=Ke(t*t),f=Ke(r*r),l=Ke(fo*Ke(n*n)),c=Ke(a*i),m=t+r,g=Ke(Ke(m*m)-i-f),_=c+f,S=_-l,M=c-f,P=Ke(g*S),I=Ke(_*M),B=Ke(g*M),R=Ke(S*_);return new yt(P,I,R,B)}add(t){eb(t);const{x:r,y:n,z:a,t:i}=this,{x:f,y:l,z:c,t:m}=t,g=Ke((n-r)*(l+f)),_=Ke((n+r)*(l-f)),S=Ke(_-g);if(S===Ir)return this.double();const M=Ke(a*fo*m),P=Ke(i*fo*c),I=P+M,B=_+g,R=P-M,A=Ke(I*S),U=Ke(B*R),V=Ke(I*R),j=Ke(S*B);return new yt(A,U,j,V)}subtract(t){return this.add(t.negate())}precomputeWindow(t){const r=1+256/t,n=[];let a=this,i=a;for(let f=0;f>=_,P>c&&(P-=g,t+=mt);const I=M,B=M+Math.abs(P)-1,R=S%2!==0,A=P<0;P===0?f=f.add(Qm(R,a[I])):i=i.add(Qm(A,a[B]))}return yt.normalizeZ([i,f])[0]}multiply(t,r){return this.wNAF(Z1(t,Dt.l),r)}multiplyUnsafe(t){let r=Z1(t,Dt.l,!1);const n=yt.BASE,a=yt.ZERO;if(r===Ir)return a;if(this.equals(a)||r===mt)return this;if(this.equals(n))return this.wNAF(r);let i=a,f=this;for(;r>Ir;)r&mt&&(i=i.add(f)),f=f.double(),r>>=mt;return i}isSmallOrder(){return this.multiplyUnsafe(Dt.h).equals(yt.ZERO)}isTorsionFree(){let t=this.multiplyUnsafe(Dt.l/fo).double();return Dt.l%fo&&(t=t.add(this)),t.equals(yt.ZERO)}toAffine(t){const{x:r,y:n,z:a}=this,i=this.equals(yt.ZERO);t==null&&(t=i?ZW:xd(a));const f=Ke(r*t),l=Ke(n*t),c=Ke(a*t);if(i)return yr.ZERO;if(c!==mt)throw new Error("invZ was invalid");return new yr(f,l)}fromRistrettoBytes(){ip()}toRistrettoBytes(){ip()}fromRistrettoHash(){ip()}}yt.BASE=new yt(Dt.Gx,Dt.Gy,mt,Ke(Dt.Gx*Dt.Gy));yt.ZERO=new yt(Ir,mt,mt,Ir);function Qm(e,t){const r=t.negate();return e?r:t}function eb(e){if(!(e instanceof yt))throw new TypeError("ExtendedPoint expected")}function np(e){if(!(e instanceof Zn))throw new TypeError("RistrettoPoint expected")}function ip(){throw new Error("Legacy method: switch to RistrettoPoint")}class Zn{constructor(t){this.ep=t}static calcElligatorRistrettoMap(t){const{d:r}=Dt,n=Ke(du*t*t),a=Ke((n+mt)*JW);let i=BigInt(-1);const f=Ke((i-r*n)*Ke(n+r));let{isValid:l,value:c}=d7(a,f),m=Ke(c*t);Ja(m)||(m=Ke(-m)),l||(c=m),l||(i=n);const g=Ke(i*(n-mt)*QW-f),_=c*c,S=Ke((c+c)*f),M=Ke(g*XW),P=Ke(mt-_),I=Ke(mt+_);return new yt(Ke(S*I),Ke(P*M),Ke(M*I),Ke(S*P))}static hashToCurve(t){t=To(t,64);const r=ap(t.slice(0,32)),n=this.calcElligatorRistrettoMap(r),a=ap(t.slice(32,64)),i=this.calcElligatorRistrettoMap(a);return new Zn(n.add(i))}static fromHex(t){t=To(t,32);const{a:r,d:n}=Dt,a="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",i=ap(t);if(!iV(Xu(i),t)||Ja(i))throw new Error(a);const f=Ke(i*i),l=Ke(mt+r*f),c=Ke(mt-r*f),m=Ke(l*l),g=Ke(c*c),_=Ke(r*n*m-g),{isValid:S,value:M}=rb(Ke(_*g)),P=Ke(M*c),I=Ke(M*P*_);let B=Ke((i+i)*P);Ja(B)&&(B=Ke(-B));const R=Ke(l*I),A=Ke(B*R);if(!S||Ja(A)||R===Ir)throw new Error(a);return new Zn(new yt(B,R,mt,A))}toRawBytes(){let{x:t,y:r,z:n,t:a}=this.ep;const i=Ke(Ke(n+r)*Ke(n-r)),f=Ke(t*r),l=Ke(f*f),{value:c}=rb(Ke(i*l)),m=Ke(c*i),g=Ke(c*f),_=Ke(m*g*a);let S;if(Ja(a*_)){let P=Ke(r*du),I=Ke(t*du);t=P,r=I,S=Ke(m*YW)}else S=g;Ja(t*_)&&(r=Ke(-r));let M=Ke((n-r)*S);return Ja(M)&&(M=Ke(-M)),Xu(M)}toHex(){return Pl(this.toRawBytes())}toString(){return this.toHex()}equals(t){np(t);const r=this.ep,n=t.ep,a=Ke(r.x*n.y)===Ke(r.y*n.x),i=Ke(r.y*n.y)===Ke(r.x*n.x);return a||i}add(t){return np(t),new Zn(this.ep.add(t.ep))}subtract(t){return np(t),new Zn(this.ep.subtract(t.ep))}multiply(t){return new Zn(this.ep.multiply(t))}multiplyUnsafe(t){return new Zn(this.ep.multiplyUnsafe(t))}}Zn.BASE=new Zn(yt.BASE);Zn.ZERO=new Zn(yt.ZERO);const O6=new WeakMap;let yr=class k6{constructor(t,r){this.x=t,this.y=r}_setWindowSize(t){this._WINDOW_SIZE=t,O6.delete(this)}static fromHex(t,r=!0){const{d:n,P:a}=Dt;t=To(t,32);const i=t.slice();i[31]=t[31]&-129;const f=Ol(i);if(r&&f>=a)throw new Error("Expected 0 < hex < P");if(!r&&f>=nA)throw new Error("Expected 0 < hex < 2**256");const l=Ke(f*f),c=Ke(l-mt),m=Ke(n*l+mt);let{isValid:g,value:_}=d7(c,m);if(!g)throw new Error("Point.fromHex: invalid y coordinate");const S=(_&mt)===mt;return(t[31]&128)!==0!==S&&(_=Ke(-_)),new k6(_,f)}static async fromPrivateKey(t){return(await p7(t)).point}toRawBytes(){const t=Xu(this.y);return t[31]|=this.x&mt?128:0,t}toHex(){return Pl(this.toRawBytes())}toX25519(){const{y:t}=this,r=Ke((mt+t)*xd(mt-t));return Xu(r)}isTorsionFree(){return yt.fromAffine(this).isTorsionFree()}equals(t){return this.x===t.x&&this.y===t.y}negate(){return new k6(Ke(-this.x),this.y)}add(t){return yt.fromAffine(this).add(yt.fromAffine(t)).toAffine()}subtract(t){return this.add(t.negate())}multiply(t){return yt.fromAffine(this).multiply(t,this).toAffine()}};yr.BASE=new yr(Dt.Gx,Dt.Gy);yr.ZERO=new yr(Ir,mt);let I6=class iA{constructor(t,r){this.r=t,this.s=r,this.assertValidity()}static fromHex(t){const r=To(t,64),n=yr.fromHex(r.slice(0,32),!1),a=Ol(r.slice(32,64));return new iA(n,a)}assertValidity(){const{r:t,s:r}=this;if(!(t instanceof yr))throw new Error("Expected Point instance");return Z1(r,Dt.l,!1),this}toRawBytes(){const t=new Uint8Array(64);return t.set(this.r.toRawBytes()),t.set(Xu(this.s),32),t}toHex(){return Pl(this.toRawBytes())}};function tb(...e){if(!e.every(n=>n instanceof Uint8Array))throw new Error("Expected Uint8Array list");if(e.length===1)return e[0];const t=e.reduce((n,a)=>n+a.length,0),r=new Uint8Array(t);for(let n=0,a=0;nt.toString(16).padStart(2,"0"));function Pl(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r=Ir?r:t+r}function xd(e,t=Dt.P){if(e===Ir||t<=Ir)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Ke(e,t),n=t,a=Ir,i=mt;for(;r!==Ir;){const l=n/r,c=n%r,m=a-i*l;n=r,r=c,a=i,i=m}if(n!==mt)throw new Error("invert: does not exist");return Ke(a,t)}function rV(e,t=Dt.P){const r=new Array(e.length),n=e.reduce((i,f,l)=>f===Ir?i:(r[l]=i,Ke(i*f,t)),mt),a=xd(n,t);return e.reduceRight((i,f,l)=>f===Ir?i:(r[l]=Ke(i*r[l],t),Ke(i*f,t)),a),r}function $i(e,t){const{P:r}=Dt;let n=e;for(;t-- >Ir;)n*=n,n%=r;return n}function nV(e){const{P:t}=Dt,r=BigInt(5),n=BigInt(10),a=BigInt(20),i=BigInt(40),f=BigInt(80),c=e*e%t*e%t,m=$i(c,fo)*c%t,g=$i(m,mt)*e%t,_=$i(g,r)*g%t,S=$i(_,n)*_%t,M=$i(S,a)*S%t,P=$i(M,i)*M%t,I=$i(P,f)*P%t,B=$i(I,f)*P%t,R=$i(B,n)*_%t;return{pow_p_5_8:$i(R,fo)*e%t,b2:c}}function d7(e,t){const r=Ke(t*t*t),n=Ke(r*r*t),a=nV(e*n).pow_p_5_8;let i=Ke(e*r*a);const f=Ke(t*i*i),l=i,c=Ke(i*du),m=f===e,g=f===Ke(-e),_=f===Ke(-e*du);return m&&(i=l),(g||_)&&(i=c),Ja(i)&&(i=Ke(-i)),{isValid:m||g,value:i}}function rb(e){return d7(mt,e)}function V1(e){return Ke(Ol(e),Dt.l)}function iV(e,t){if(e.length!==t.length)return!1;for(let r=0;r{if(e=To(e),e.length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return Ke(Ol(e),Dt.l-mt)+mt},randomBytes:(e=32)=>{if(Ga.web)return Ga.web.getRandomValues(new Uint8Array(e));if(Ga.node){const{randomBytes:t}=Ga.node;return new Uint8Array(t(e).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>Zs.randomBytes(32),sha512:async(...e)=>{const t=tb(...e);if(Ga.web){const r=await Ga.web.subtle.digest("SHA-512",t.buffer);return new Uint8Array(r)}else{if(Ga.node)return Uint8Array.from(Ga.node.createHash("sha512").update(t).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(e=8,t=yr.BASE){const r=t.equals(yr.BASE)?t:new yr(t.x,t.y);return r._setWindowSize(e),r.multiply(fo),r},sha512Sync:void 0};Object.defineProperties(Zs,{sha512Sync:{configurable:!1,get(){return op},set(e){op||(op=e)}}});class kl{constructor(t,r){Pe(this,"_key");Pe(this,"pk");Pe(this,"ownerLength",Ut[2].pubLength);Pe(this,"signatureLength",Ut[2].sigLength);Pe(this,"_publicKey");Pe(this,"signatureType",2);this._key=t,this.pk=r}get publicKey(){return this._publicKey}get key(){throw new Error("You must implement `key`")}sign(t){return sV(Te.Buffer.from(t),Te.Buffer.from(this.key))}static async verify(t,r,n){let a=t;return typeof t=="string"&&(a=Tt.toBuffer(t)),wd(Te.Buffer.from(n),Te.Buffer.from(r),Te.Buffer.from(a))}}var v7={},wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.b64UrlDecode=wt.b64UrlEncode=wt.bufferTob64Url=wt.bufferTob64=wt.b64UrlToBuffer=wt.stringToB64Url=kr=wt.stringToBuffer=wt.bufferToString=wt.b64UrlToString=so=wt.concatBuffers=void 0;const oA=r0;function cV(e){let t=0;for(let a=0;a"u"){const t=Mr.TextDecoder;return new t("utf-8",{fatal:!0}).decode(e)}return new TextDecoder("utf-8",{fatal:!0}).decode(e)}wt.bufferToString=fA;function sA(e){if(typeof TextEncoder>"u"){const t=Mr.TextEncoder;return new t().encode(e)}return new TextEncoder().encode(e)}var kr=wt.stringToBuffer=sA;function dV(e){return cA(sA(e))}wt.stringToB64Url=dV;function uA(e){return new Uint8Array(oA.toByteArray(dA(e)))}wt.b64UrlToBuffer=uA;function lA(e){return oA.fromByteArray(new Uint8Array(e))}wt.bufferTob64=lA;function cA(e){return hA(lA(e))}wt.bufferTob64Url=cA;function hA(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}wt.b64UrlEncode=hA;function dA(e){e=e.replace(/\-/g,"+").replace(/\_/g,"/");let t;return e.length%4==0?t=0:t=4-e.length%4,e.concat("=".repeat(t))}wt.b64UrlDecode=dA;Object.defineProperty(v7,"__esModule",{value:!0});const Wa=wt;class pV{constructor(){if(this.keyLength=4096,this.publicExponent=65537,this.hashAlgorithm="sha256",!this.detectWebCrypto())throw new Error("SubtleCrypto not available!");this.driver=crypto.subtle}async generateJWK(){let t=await this.driver.generateKey({name:"RSA-PSS",modulusLength:4096,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},!0,["sign"]),r=await this.driver.exportKey("jwk",t.privateKey);return{kty:r.kty,e:r.e,n:r.n,d:r.d,p:r.p,q:r.q,dp:r.dp,dq:r.dq,qi:r.qi}}async sign(t,r,{saltLength:n}={}){let a=await this.driver.sign({name:"RSA-PSS",saltLength:32},await this.jwkToCryptoKey(t),r);return new Uint8Array(a)}async hash(t,r="SHA-256"){let n=await this.driver.digest(r,t);return new Uint8Array(n)}async verify(t,r,n){const a={kty:"RSA",e:"AQAB",n:t},i=await this.jwkToPublicCryptoKey(a),f=await this.driver.digest("SHA-256",r),l=await this.driver.verify({name:"RSA-PSS",saltLength:0},i,n,r),c=await this.driver.verify({name:"RSA-PSS",saltLength:32},i,n,r),m=await this.driver.verify({name:"RSA-PSS",saltLength:Math.ceil((i.algorithm.modulusLength-1)/8)-f.byteLength-2},i,n,r);return l||c||m}async jwkToCryptoKey(t){return this.driver.importKey("jwk",t,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["sign"])}async jwkToPublicCryptoKey(t){return this.driver.importKey("jwk",t,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["verify"])}detectWebCrypto(){if(typeof crypto>"u")return!1;const t=crypto==null?void 0:crypto.subtle;return t===void 0?!1:["generateKey","importKey","exportKey","digest","sign"].every(n=>typeof t[n]=="function")}async encrypt(t,r,n){const a=await this.driver.importKey("raw",typeof r=="string"?Wa.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),i=await this.driver.deriveKey({name:"PBKDF2",salt:n?Wa.stringToBuffer(n):Wa.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},a,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),f=new Uint8Array(16);crypto.getRandomValues(f);const l=await this.driver.encrypt({name:"AES-CBC",iv:f},i,t);return Wa.concatBuffers([f,l])}async decrypt(t,r,n){const a=await this.driver.importKey("raw",typeof r=="string"?Wa.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),i=await this.driver.deriveKey({name:"PBKDF2",salt:n?Wa.stringToBuffer(n):Wa.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},a,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),f=t.slice(0,16),l=await this.driver.decrypt({name:"AES-CBC",iv:f},i,t.slice(16));return Wa.concatBuffers([l])}}var fp=v7.default=pV;async function Il(e){if(typeof e[Symbol.asyncIterator]=="function"){const a=e,i=Na.createHash("sha384");let f=0;for await(const m of a)f+=m.byteLength,i.update(m);const l=so([kr("blob"),kr(f.toString())]),c=so([await vn().hash(l,"SHA-384"),i.digest()]);return await vn().hash(c,"SHA-384")}else if(Array.isArray(e)){const a=so([kr("list"),kr(e.length.toString())]);return await pA(e,await vn().hash(a,"SHA-384"))}const t=e,r=so([kr("blob"),kr(t.byteLength.toString())]),n=so([await vn().hash(r,"SHA-384"),await vn().hash(t,"SHA-384")]);return await vn().hash(n,"SHA-384")}async function pA(e,t){if(e.length<1)return t;const r=so([t,await Il(e[0])]),n=await vn().hash(r,"SHA-384");return await pA(e.slice(1),n)}var vA={},gc={},g7={},gA={exports:{}};(function(e){(function(t){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,i=Math.floor,f="[BigNumber Error] ",l=f+"Number primitive has more than 15 significant digits: ",c=1e14,m=14,g=9007199254740991,_=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],S=1e7,M=1e9;function P(N){var K,J,te,ee=D.prototype={constructor:D,toString:null,valueOf:null},G=new D(1),E=20,d=4,o=-7,u=21,p=-1e7,y=1e7,x=!1,w=1,v=0,h={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},s="0123456789abcdefghijklmnopqrstuvwxyz",b=!0;function D(z,k){var L,oe,re,se,Y,T,O,W,ie=this;if(!(ie instanceof D))return new D(z,k);if(k==null){if(z&&z._isBigNumber===!0){ie.s=z.s,!z.c||z.e>y?ie.c=ie.e=null:z.e=10;Y/=10,se++);se>y?ie.c=ie.e=null:(ie.e=se,ie.c=[z]);return}W=String(z)}else{if(!n.test(W=String(z)))return te(ie,W,T);ie.s=W.charCodeAt(0)==45?(W=W.slice(1),-1):1}(se=W.indexOf("."))>-1&&(W=W.replace(".","")),(Y=W.search(/e/i))>0?(se<0&&(se=Y),se+=+W.slice(Y+1),W=W.substring(0,Y)):se<0&&(se=W.length)}else{if(A(k,2,s.length,"Base"),k==10&&b)return ie=new D(z),H(ie,E+ie.e+1,d);if(W=String(z),T=typeof z=="number"){if(z*0!=0)return te(ie,W,T,k);if(ie.s=1/z<0?(W=W.slice(1),-1):1,D.DEBUG&&W.replace(/^0\.0*|\./,"").length>15)throw Error(l+z)}else ie.s=W.charCodeAt(0)===45?(W=W.slice(1),-1):1;for(L=s.slice(0,k),se=Y=0,O=W.length;Yse){se=O;continue}}else if(!re&&(W==W.toUpperCase()&&(W=W.toLowerCase())||W==W.toLowerCase()&&(W=W.toUpperCase()))){re=!0,Y=-1,se=0;continue}return te(ie,String(z),T,k)}T=!1,W=J(W,k,10,ie.s),(se=W.indexOf("."))>-1?W=W.replace(".",""):se=W.length}for(Y=0;W.charCodeAt(Y)===48;Y++);for(O=W.length;W.charCodeAt(--O)===48;);if(W=W.slice(Y,++O)){if(O-=Y,T&&D.DEBUG&&O>15&&(z>g||z!==i(z)))throw Error(l+ie.s*z);if((se=se-Y-1)>y)ie.c=ie.e=null;else if(se=-M&&re<=M&&re===i(re)){if(oe[0]===0){if(re===0&&oe.length===1)return!0;break e}if(k=(re+1)%m,k<1&&(k+=m),String(oe[0]).length==k){for(k=0;k=c||L!==i(L))break e;if(L!==0)return!0}}}else if(oe===null&&re===null&&(se===null||se===1||se===-1))return!0;throw Error(f+"Invalid BigNumber: "+z)},D.maximum=D.max=function(){return F(arguments,-1)},D.minimum=D.min=function(){return F(arguments,1)},D.random=function(){var z=9007199254740992,k=Math.random()*z&2097151?function(){return i(Math.random()*z)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(L){var oe,re,se,Y,T,O=0,W=[],ie=new D(G);if(L==null?L=E:A(L,0,M),Y=a(L/m),x)if(crypto.getRandomValues){for(oe=crypto.getRandomValues(new Uint32Array(Y*=2));O>>11),T>=9e15?(re=crypto.getRandomValues(new Uint32Array(2)),oe[O]=re[0],oe[O+1]=re[1]):(W.push(T%1e14),O+=2);O=Y/2}else if(crypto.randomBytes){for(oe=crypto.randomBytes(Y*=7);O=9e15?crypto.randomBytes(7).copy(oe,O):(W.push(T%1e14),O+=7);O=Y/7}else throw x=!1,Error(f+"crypto unavailable");if(!x)for(;O=10;T/=10,O++);Ore-1&&(T[Y+1]==null&&(T[Y+1]=0),T[Y+1]+=T[Y]/re|0,T[Y]%=re)}return T.reverse()}return function(L,oe,re,se,Y){var T,O,W,ie,ue,we,_e,Z,le=L.indexOf("."),fe=E,pe=d;for(le>=0&&(ie=v,v=0,L=L.replace(".",""),Z=new D(oe),we=Z.pow(L.length-le),v=ie,Z.c=k(j(B(we.c),we.e,"0"),10,re,z),Z.e=Z.c.length),_e=k(L,oe,re,Y?(T=s,z):(T=z,s)),W=ie=_e.length;_e[--ie]==0;_e.pop());if(!_e[0])return T.charAt(0);if(le<0?--W:(we.c=_e,we.e=W,we.s=se,we=K(we,Z,fe,pe,re),_e=we.c,ue=we.r,W=we.e),O=W+fe+1,le=_e[O],ie=re/2,ue=ue||O<0||_e[O+1]!=null,ue=pe<4?(le!=null||ue)&&(pe==0||pe==(we.s<0?3:2)):le>ie||le==ie&&(pe==4||ue||pe==6&&_e[O-1]&1||pe==(we.s<0?8:7)),O<1||!_e[0])L=ue?j(T.charAt(1),-fe,T.charAt(0)):T.charAt(0);else{if(_e.length=O,ue)for(--re;++_e[--O]>re;)_e[O]=0,O||(++W,_e=[1].concat(_e));for(ie=_e.length;!_e[--ie];);for(le=0,L="";le<=ie;L+=T.charAt(_e[le++]));L=j(L,W,T.charAt(0))}return L}}(),K=function(){function z(oe,re,se){var Y,T,O,W,ie=0,ue=oe.length,we=re%S,_e=re/S|0;for(oe=oe.slice();ue--;)O=oe[ue]%S,W=oe[ue]/S|0,Y=_e*O+W*we,T=we*O+Y%S*S+ie,ie=(T/se|0)+(Y/S|0)+_e*W,oe[ue]=T%se;return ie&&(oe=[ie].concat(oe)),oe}function k(oe,re,se,Y){var T,O;if(se!=Y)O=se>Y?1:-1;else for(T=O=0;Tre[T]?1:-1;break}return O}function L(oe,re,se,Y){for(var T=0;se--;)oe[se]-=T,T=oe[se]1;oe.splice(0,1));}return function(oe,re,se,Y,T){var O,W,ie,ue,we,_e,Z,le,fe,pe,Ce,Me,Ee,ne,me,ye,Ie,he=oe.s==re.s?1:-1,ve=oe.c,Q=re.c;if(!ve||!ve[0]||!Q||!Q[0])return new D(!oe.s||!re.s||(ve?Q&&ve[0]==Q[0]:!Q)?NaN:ve&&ve[0]==0||!Q?he*0:he/0);for(le=new D(he),fe=le.c=[],W=oe.e-re.e,he=se+W+1,T||(T=c,W=I(oe.e/m)-I(re.e/m),he=he/m|0),ie=0;Q[ie]==(ve[ie]||0);ie++);if(Q[ie]>(ve[ie]||0)&&W--,he<0)fe.push(1),ue=!0;else{for(ne=ve.length,ye=Q.length,ie=0,he+=2,we=i(T/(Q[0]+1)),we>1&&(Q=z(Q,we,T),ve=z(ve,we,T),ye=Q.length,ne=ve.length),Ee=ye,pe=ve.slice(0,ye),Ce=pe.length;Ce=T/2&&me++;do{if(we=0,O=k(Q,pe,ye,Ce),O<0){if(Me=pe[0],ye!=Ce&&(Me=Me*T+(pe[1]||0)),we=i(Me/me),we>1)for(we>=T&&(we=T-1),_e=z(Q,we,T),Z=_e.length,Ce=pe.length;k(_e,pe,Z,Ce)==1;)we--,L(_e,ye=10;he/=10,ie++);H(le,se+(le.e=ie+W*m-1)+1,Y,ue)}else le.e=W,le.r=+ue;return le}}();function C(z,k,L,oe){var re,se,Y,T,O;if(L==null?L=d:A(L,0,8),!z.c)return z.toString();if(re=z.c[0],Y=z.e,k==null)O=B(z.c),O=oe==1||oe==2&&(Y<=o||Y>=u)?V(O,Y):j(O,Y,"0");else if(z=H(new D(z),k,L),se=z.e,O=B(z.c),T=O.length,oe==1||oe==2&&(k<=se||se<=o)){for(;TT){if(--k>0)for(O+=".";k--;O+="0");}else if(k+=se-T,k>0)for(se+1==T&&(O+=".");k--;O+="0");return z.s<0&&re?"-"+O:O}function F(z,k){for(var L,oe,re=1,se=new D(z[0]);re=10;re/=10,oe++);return(L=oe+L*m-1)>y?z.c=z.e=null:L=10;T/=10,re++);if(se=k-re,se<0)se+=m,Y=k,O=ue[W=0],ie=i(O/we[re-Y-1]%10);else if(W=a((se+1)/m),W>=ue.length)if(oe){for(;ue.length<=W;ue.push(0));O=ie=0,re=1,se%=m,Y=se-m+1}else break e;else{for(O=T=ue[W],re=1;T>=10;T/=10,re++);se%=m,Y=se-m+re,ie=Y<0?0:i(O/we[re-Y-1]%10)}if(oe=oe||k<0||ue[W+1]!=null||(Y<0?O:O%we[re-Y-1]),oe=L<4?(ie||oe)&&(L==0||L==(z.s<0?3:2)):ie>5||ie==5&&(L==4||oe||L==6&&(se>0?Y>0?O/we[re-Y]:0:ue[W-1])%10&1||L==(z.s<0?8:7)),k<1||!ue[0])return ue.length=0,oe?(k-=z.e+1,ue[0]=we[(m-k%m)%m],z.e=-k||0):ue[0]=z.e=0,z;if(se==0?(ue.length=W,T=1,W--):(ue.length=W+1,T=we[m-se],ue[W]=Y>0?i(O/we[re-Y]%we[Y])*T:0),oe)for(;;)if(W==0){for(se=1,Y=ue[0];Y>=10;Y/=10,se++);for(Y=ue[0]+=T,T=1;Y>=10;Y/=10,T++);se!=T&&(z.e++,ue[0]==c&&(ue[0]=1));break}else{if(ue[W]+=T,ue[W]!=c)break;ue[W--]=0,T=1}for(se=ue.length;ue[--se]===0;ue.pop());}z.e>y?z.c=z.e=null:z.e=u?V(k,L):j(k,L,"0"),z.s<0?"-"+k:k)}return ee.absoluteValue=ee.abs=function(){var z=new D(this);return z.s<0&&(z.s=1),z},ee.comparedTo=function(z,k){return R(this,new D(z,k))},ee.decimalPlaces=ee.dp=function(z,k){var L,oe,re,se=this;if(z!=null)return A(z,0,M),k==null?k=d:A(k,0,8),H(new D(se),z+se.e+1,k);if(!(L=se.c))return null;if(oe=((re=L.length-1)-I(this.e/m))*m,re=L[re])for(;re%10==0;re/=10,oe--);return oe<0&&(oe=0),oe},ee.dividedBy=ee.div=function(z,k){return K(this,new D(z,k),E,d)},ee.dividedToIntegerBy=ee.idiv=function(z,k){return K(this,new D(z,k),0,1)},ee.exponentiatedBy=ee.pow=function(z,k){var L,oe,re,se,Y,T,O,W,ie,ue=this;if(z=new D(z),z.c&&!z.isInteger())throw Error(f+"Exponent not an integer: "+X(z));if(k!=null&&(k=new D(k)),T=z.e>14,!ue.c||!ue.c[0]||ue.c[0]==1&&!ue.e&&ue.c.length==1||!z.c||!z.c[0])return ie=new D(Math.pow(+X(ue),T?z.s*(2-U(z)):+X(z))),k?ie.mod(k):ie;if(O=z.s<0,k){if(k.c?!k.c[0]:!k.s)return new D(NaN);oe=!O&&ue.isInteger()&&k.isInteger(),oe&&(ue=ue.mod(k))}else{if(z.e>9&&(ue.e>0||ue.e<-1||(ue.e==0?ue.c[0]>1||T&&ue.c[1]>=24e7:ue.c[0]<8e13||T&&ue.c[0]<=9999975e7)))return se=ue.s<0&&U(z)?-0:0,ue.e>-1&&(se=1/se),new D(O?1/se:se);v&&(se=a(v/m+2))}for(T?(L=new D(.5),O&&(z.s=1),W=U(z)):(re=Math.abs(+X(z)),W=re%2),ie=new D(G);;){if(W){if(ie=ie.times(ue),!ie.c)break;se?ie.c.length>se&&(ie.c.length=se):oe&&(ie=ie.mod(k))}if(re){if(re=i(re/2),re===0)break;W=re%2}else if(z=z.times(L),H(z,z.e+1,1),z.e>14)W=U(z);else{if(re=+X(z),re===0)break;W=re%2}ue=ue.times(ue),se?ue.c&&ue.c.length>se&&(ue.c.length=se):oe&&(ue=ue.mod(k))}return oe?ie:(O&&(ie=G.div(ie)),k?ie.mod(k):se?H(ie,v,d,Y):ie)},ee.integerValue=function(z){var k=new D(this);return z==null?z=d:A(z,0,8),H(k,k.e+1,z)},ee.isEqualTo=ee.eq=function(z,k){return R(this,new D(z,k))===0},ee.isFinite=function(){return!!this.c},ee.isGreaterThan=ee.gt=function(z,k){return R(this,new D(z,k))>0},ee.isGreaterThanOrEqualTo=ee.gte=function(z,k){return(k=R(this,new D(z,k)))===1||k===0},ee.isInteger=function(){return!!this.c&&I(this.e/m)>this.c.length-2},ee.isLessThan=ee.lt=function(z,k){return R(this,new D(z,k))<0},ee.isLessThanOrEqualTo=ee.lte=function(z,k){return(k=R(this,new D(z,k)))===-1||k===0},ee.isNaN=function(){return!this.s},ee.isNegative=function(){return this.s<0},ee.isPositive=function(){return this.s>0},ee.isZero=function(){return!!this.c&&this.c[0]==0},ee.minus=function(z,k){var L,oe,re,se,Y=this,T=Y.s;if(z=new D(z,k),k=z.s,!T||!k)return new D(NaN);if(T!=k)return z.s=-k,Y.plus(z);var O=Y.e/m,W=z.e/m,ie=Y.c,ue=z.c;if(!O||!W){if(!ie||!ue)return ie?(z.s=-k,z):new D(ue?Y:NaN);if(!ie[0]||!ue[0])return ue[0]?(z.s=-k,z):new D(ie[0]?Y:d==3?-0:0)}if(O=I(O),W=I(W),ie=ie.slice(),T=O-W){for((se=T<0)?(T=-T,re=ie):(W=O,re=ue),re.reverse(),k=T;k--;re.push(0));re.reverse()}else for(oe=(se=(T=ie.length)<(k=ue.length))?T:k,T=k=0;k0)for(;k--;ie[L++]=0);for(k=c-1;oe>T;){if(ie[--oe]=0;){for(L=0,we=Me[re]%fe,_e=Me[re]/fe|0,Y=O,se=re+Y;se>re;)W=Ce[--Y]%fe,ie=Ce[Y]/fe|0,T=_e*W+ie*we,W=we*W+T%fe*fe+Z[se]+L,L=(W/le|0)+(T/fe|0)+_e*ie,Z[se--]=W%le;Z[se]=L}return L?++oe:Z.splice(0,1),$(z,Z,oe)},ee.negated=function(){var z=new D(this);return z.s=-z.s||null,z},ee.plus=function(z,k){var L,oe=this,re=oe.s;if(z=new D(z,k),k=z.s,!re||!k)return new D(NaN);if(re!=k)return z.s=-k,oe.minus(z);var se=oe.e/m,Y=z.e/m,T=oe.c,O=z.c;if(!se||!Y){if(!T||!O)return new D(re/0);if(!T[0]||!O[0])return O[0]?z:new D(T[0]?oe:re*0)}if(se=I(se),Y=I(Y),T=T.slice(),re=se-Y){for(re>0?(Y=se,L=O):(re=-re,L=T),L.reverse();re--;L.push(0));L.reverse()}for(re=T.length,k=O.length,re-k<0&&(L=O,O=T,T=L,k=re),re=0;k;)re=(T[--k]=T[k]+O[k]+re)/c|0,T[k]=c===T[k]?0:T[k]%c;return re&&(T=[re].concat(T),++Y),$(z,T,Y)},ee.precision=ee.sd=function(z,k){var L,oe,re,se=this;if(z!=null&&z!==!!z)return A(z,1,M),k==null?k=d:A(k,0,8),H(new D(se),z,k);if(!(L=se.c))return null;if(re=L.length-1,oe=re*m+1,re=L[re]){for(;re%10==0;re/=10,oe--);for(re=L[0];re>=10;re/=10,oe++);}return z&&se.e+1>oe&&(oe=se.e+1),oe},ee.shiftedBy=function(z){return A(z,-g,g),this.times("1e"+z)},ee.squareRoot=ee.sqrt=function(){var z,k,L,oe,re,se=this,Y=se.c,T=se.s,O=se.e,W=E+4,ie=new D("0.5");if(T!==1||!Y||!Y[0])return new D(!T||T<0&&(!Y||Y[0])?NaN:Y?se:1/0);if(T=Math.sqrt(+X(se)),T==0||T==1/0?(k=B(Y),(k.length+O)%2==0&&(k+="0"),T=Math.sqrt(+k),O=I((O+1)/2)-(O<0||O%2),T==1/0?k="5e"+O:(k=T.toExponential(),k=k.slice(0,k.indexOf("e")+1)+O),L=new D(k)):L=new D(T+""),L.c[0]){for(O=L.e,T=O+W,T<3&&(T=0);;)if(re=L,L=ie.times(re.plus(K(se,re,W,1))),B(re.c).slice(0,T)===(k=B(L.c)).slice(0,T))if(L.e0&&Z>0){for(se=Z%T||T,ie=_e.substr(0,se);se0&&(ie+=W+_e.slice(se)),we&&(ie="-"+ie)}oe=ue?ie+(L.decimalSeparator||"")+((O=+L.fractionGroupSize)?ue.replace(new RegExp("\\d{"+O+"}\\B","g"),"$&"+(L.fractionGroupSeparator||"")):ue):ie}return(L.prefix||"")+oe+(L.suffix||"")},ee.toFraction=function(z){var k,L,oe,re,se,Y,T,O,W,ie,ue,we,_e=this,Z=_e.c;if(z!=null&&(T=new D(z),!T.isInteger()&&(T.c||T.s!==1)||T.lt(G)))throw Error(f+"Argument "+(T.isInteger()?"out of range: ":"not an integer: ")+X(T));if(!Z)return new D(_e);for(k=new D(G),W=L=new D(G),oe=O=new D(G),we=B(Z),se=k.e=we.length-_e.e-1,k.c[0]=_[(Y=se%m)<0?m+Y:Y],z=!z||T.comparedTo(k)>0?se>0?k:W:T,Y=y,y=1/0,T=new D(we),O.c[0]=0;ie=K(T,k,0,1),re=L.plus(ie.times(oe)),re.comparedTo(z)!=1;)L=oe,oe=re,W=O.plus(ie.times(re=W)),O=re,k=T.minus(ie.times(re=k)),T=re;return re=K(z.minus(L),oe,0,1),O=O.plus(re.times(W)),L=L.plus(re.times(oe)),O.s=W.s=_e.s,se=se*2,ue=K(W,oe,se,d).minus(_e).abs().comparedTo(K(O,L,se,d).minus(_e).abs())<1?[W,oe]:[O,L],y=Y,ue},ee.toNumber=function(){return+X(this)},ee.toPrecision=function(z,k){return z!=null&&A(z,1,M),C(this,z,k,2)},ee.toString=function(z){var k,L=this,oe=L.s,re=L.e;return re===null?oe?(k="Infinity",oe<0&&(k="-"+k)):k="NaN":(z==null?k=re<=o||re>=u?V(B(L.c),re):j(B(L.c),re,"0"):z===10&&b?(L=H(new D(L),E+re+1,d),k=j(B(L.c),L.e,"0")):(A(z,2,s.length,"Base"),k=J(j(B(L.c),re,"0"),10,z,oe,!0)),oe<0&&L.c[0]&&(k="-"+k)),k},ee.valueOf=ee.toJSON=function(){return X(this)},ee._isBigNumber=!0,N!=null&&D.set(N),D}function I(N){var K=N|0;return N>0||N===K?K:K-1}function B(N){for(var K,J,te=1,ee=N.length,G=N[0]+"";teu^J?1:-1;for(d=(o=ee.length)<(u=G.length)?o:u,E=0;EG[E]^J?1:-1;return o==u?0:o>u^J?1:-1}function A(N,K,J,te){if(NJ||N!==i(N))throw Error(f+(te||"Argument")+(typeof N=="number"?NJ?" out of range: ":" not an integer: ":" not a primitive number: ")+String(N))}function U(N){var K=N.c.length-1;return I(N.e/m)==K&&N.c[K]%2!=0}function V(N,K){return(N.length>1?N.charAt(0)+"."+N.slice(1):N)+(K<0?"e":"e+")+K}function j(N,K,J){var te,ee;if(K<0){for(ee=J+".";++K;ee+=J);N=ee+N}else if(te=N.length,++K>te){for(ee=J,K-=te;--K;ee+=J);N+=ee}else K{let n=vV.BigNumber.clone({DECIMAL_PLACES:r});return new n(t)}}winstonToAr(t,{formatted:r=!1,decimals:n=12,trim:a=!0}={}){let i=this.stringToBigNum(t,n).shiftedBy(-12);return r?i.toFormat(n):i.toFixed(n)}arToWinston(t,{formatted:r=!1}={}){let n=this.stringToBigNum(t).shiftedBy(12);return r?n.toFormat():n.toFixed(0)}compare(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.comparedTo(a)}isEqual(t,r){return this.compare(t,r)===0}isLessThan(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.isLessThan(a)}isGreaterThan(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.isGreaterThan(a)}add(t,r){let n=this.stringToBigNum(t);return this.stringToBigNum(r),n.plus(r).toFixed(0)}sub(t,r){let n=this.stringToBigNum(t);return this.stringToBigNum(r),n.minus(r).toFixed(0)}stringToBigNum(t,r=12){return this.BigNum(t,r)}};g7.default=gV;var y7={},m7={exports:{}},mA=function(t,r){return function(){for(var a=new Array(arguments.length),i=0;i"u"}function mV(e){return e!==null&&!X1(e)&&e.constructor!==null&&!X1(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var bA=Pf("ArrayBuffer");function bV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bA(e.buffer),t}function xV(e){return typeof e=="string"}function wV(e){return typeof e=="number"}function xA(e){return e!==null&&typeof e=="object"}function Jc(e){if(x7(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var _V=Pf("Date"),SV=Pf("File"),EV=Pf("Blob"),CV=Pf("FileList");function _7(e){return b7.call(e)==="[object Function]"}function MV(e){return xA(e)&&_7(e.pipe)}function AV(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||b7.call(e)===t||_7(e.toString)&&e.toString()===t)}var RV=Pf("URLSearchParams");function TV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function PV(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function S7(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),w7(e))for(var r=0,n=e.length;r0;)i=n[a],f[i]||(t[i]=e[i],f[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function LV(e,t,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r}function NV(e){if(!e)return null;var t=e.length;if(X1(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r}var DV=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Ur={isArray:w7,isArrayBuffer:bA,isBuffer:mV,isFormData:AV,isArrayBufferView:bV,isString:xV,isNumber:wV,isObject:xA,isPlainObject:Jc,isUndefined:X1,isDate:_V,isFile:SV,isBlob:EV,isFunction:_7,isStream:MV,isURLSearchParams:RV,isStandardBrowserEnv:PV,forEach:S7,merge:B6,extend:OV,trim:TV,stripBOM:kV,inherits:IV,toFlatObject:BV,kindOf:x7,kindOfTest:Pf,endsWith:LV,toArray:NV,isTypedArray:DV,isFileList:CV},Ff=Ur;function nb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var wA=function(t,r,n){if(!r)return t;var a;if(n)a=n(r);else if(Ff.isURLSearchParams(r))a=r.toString();else{var i=[];Ff.forEach(r,function(c,m){c===null||typeof c>"u"||(Ff.isArray(c)?m=m+"[]":c=[c],Ff.forEach(c,function(_){Ff.isDate(_)?_=_.toISOString():Ff.isObject(_)&&(_=JSON.stringify(_)),i.push(nb(m)+"="+nb(_))}))}),a=i.join("&")}if(a){var f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t},FV=Ur;function _d(){this.handlers=[]}_d.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};_d.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};_d.prototype.forEach=function(t){FV.forEach(this.handlers,function(n){n!==null&&t(n)})};var UV=_d,jV=Ur,qV=function(t,r){jV.forEach(t,function(a,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=a,delete t[i])})},_A=Ur;function Xs(e,t,r,n,a){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}_A.inherits(Xs,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var SA=Xs.prototype,EA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){EA[e]={value:e}});Object.defineProperties(Xs,EA);Object.defineProperty(SA,"isAxiosError",{value:!0});Xs.from=function(e,t,r,n,a,i){var f=Object.create(SA);return _A.toFlatObject(e,f,function(c){return c!==Error.prototype}),Xs.call(f,e.message,t,r,n,a),f.name=e.name,i&&Object.assign(f,i),f};var g0=Xs,CA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yi=Ur;function zV(e,t){t=t||new FormData;var r=[];function n(i){return i===null?"":yi.isDate(i)?i.toISOString():yi.isArrayBuffer(i)||yi.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Te.Buffer.from(i):i}function a(i,f){if(yi.isPlainObject(i)||yi.isArray(i)){if(r.indexOf(i)!==-1)throw Error("Circular reference detected in "+f);r.push(i),yi.forEach(i,function(c,m){if(!yi.isUndefined(c)){var g=f?f+"."+m:m,_;if(c&&!f&&typeof c=="object"){if(yi.endsWith(m,"{}"))c=JSON.stringify(c);else if(yi.endsWith(m,"[]")&&(_=yi.toArray(c))){_.forEach(function(S){!yi.isUndefined(S)&&t.append(g,n(S))});return}}a(c,g)}}),r.pop()}else t.append(f,n(i))}return a(e),t}var MA=zV,sp,ib;function $V(){if(ib)return sp;ib=1;var e=g0;return sp=function(r,n,a){var i=a.config.validateStatus;!a.status||!i||i(a.status)?r(a):n(new e("Request failed with status code "+a.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))},sp}var up,ab;function HV(){if(ab)return up;ab=1;var e=Ur;return up=e.isStandardBrowserEnv()?function(){return{write:function(n,a,i,f,l,c){var m=[];m.push(n+"="+encodeURIComponent(a)),e.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),e.isString(f)&&m.push("path="+f),e.isString(l)&&m.push("domain="+l),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read:function(n){var a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),up}var KV=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},GV=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t},WV=KV,VV=GV,AA=function(t,r){return t&&!WV(r)?VV(t,r):r},lp,ob;function ZV(){if(ob)return lp;ob=1;var e=Ur,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return lp=function(n){var a={},i,f,l;return n&&e.forEach(n.split(` -`),function(m){if(l=m.indexOf(":"),i=e.trim(m.substr(0,l)).toLowerCase(),f=e.trim(m.substr(l+1)),i){if(a[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?a[i]=(a[i]?a[i]:[]).concat([f]):a[i]=a[i]?a[i]+", "+f:f}}),a},lp}var cp,fb;function XV(){if(fb)return cp;fb=1;var e=Ur;return cp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),a;function i(f){var l=f;return r&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=i(window.location.href),function(l){var c=e.isString(l)?i(l):l;return c.protocol===a.protocol&&c.host===a.host}}():function(){return function(){return!0}}(),cp}var hp,sb;function Sd(){if(sb)return hp;sb=1;var e=g0,t=Ur;function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),hp=r,hp}var dp,ub;function YV(){return ub||(ub=1,dp=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),dp}var pp,lb;function cb(){if(lb)return pp;lb=1;var e=Ur,t=$V(),r=HV(),n=wA,a=AA,i=ZV(),f=XV(),l=CA,c=g0,m=Sd(),g=YV();return pp=function(S){return new Promise(function(P,I){var B=S.data,R=S.headers,A=S.responseType,U;function V(){S.cancelToken&&S.cancelToken.unsubscribe(U),S.signal&&S.signal.removeEventListener("abort",U)}e.isFormData(B)&&e.isStandardBrowserEnv()&&delete R["Content-Type"];var j=new XMLHttpRequest;if(S.auth){var N=S.auth.username||"",K=S.auth.password?unescape(encodeURIComponent(S.auth.password)):"";R.Authorization="Basic "+btoa(N+":"+K)}var J=a(S.baseURL,S.url);j.open(S.method.toUpperCase(),n(J,S.params,S.paramsSerializer),!0),j.timeout=S.timeout;function te(){if(j){var E="getAllResponseHeaders"in j?i(j.getAllResponseHeaders()):null,d=!A||A==="text"||A==="json"?j.responseText:j.response,o={data:d,status:j.status,statusText:j.statusText,headers:E,config:S,request:j};t(function(p){P(p),V()},function(p){I(p),V()},o),j=null}}if("onloadend"in j?j.onloadend=te:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(te)},j.onabort=function(){j&&(I(new c("Request aborted",c.ECONNABORTED,S,j)),j=null)},j.onerror=function(){I(new c("Network Error",c.ERR_NETWORK,S,j,j)),j=null},j.ontimeout=function(){var d=S.timeout?"timeout of "+S.timeout+"ms exceeded":"timeout exceeded",o=S.transitional||l;S.timeoutErrorMessage&&(d=S.timeoutErrorMessage),I(new c(d,o.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,S,j)),j=null},e.isStandardBrowserEnv()){var ee=(S.withCredentials||f(J))&&S.xsrfCookieName?r.read(S.xsrfCookieName):void 0;ee&&(R[S.xsrfHeaderName]=ee)}"setRequestHeader"in j&&e.forEach(R,function(d,o){typeof B>"u"&&o.toLowerCase()==="content-type"?delete R[o]:j.setRequestHeader(o,d)}),e.isUndefined(S.withCredentials)||(j.withCredentials=!!S.withCredentials),A&&A!=="json"&&(j.responseType=S.responseType),typeof S.onDownloadProgress=="function"&&j.addEventListener("progress",S.onDownloadProgress),typeof S.onUploadProgress=="function"&&j.upload&&j.upload.addEventListener("progress",S.onUploadProgress),(S.cancelToken||S.signal)&&(U=function(E){j&&(I(!E||E&&E.type?new m:E),j.abort(),j=null)},S.cancelToken&&S.cancelToken.subscribe(U),S.signal&&(S.signal.aborted?U():S.signal.addEventListener("abort",U))),B||(B=null);var G=g(J);if(G&&["http","https","file"].indexOf(G)===-1){I(new c("Unsupported protocol "+G+":",c.ERR_BAD_REQUEST,S));return}j.send(B)})},pp}var vp,hb;function JV(){return hb||(hb=1,vp=null),vp}var _r=Ur,db=qV,pb=g0,QV=CA,eZ=MA,tZ={"Content-Type":"application/x-www-form-urlencoded"};function vb(e,t){!_r.isUndefined(e)&&_r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function rZ(){var e;return(typeof XMLHttpRequest<"u"||typeof He<"u"&&Object.prototype.toString.call(He)==="[object process]")&&(e=cb()),e}function nZ(e,t,r){if(_r.isString(e))try{return(t||JSON.parse)(e),_r.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Ed={transitional:QV,adapter:rZ(),transformRequest:[function(t,r){if(db(r,"Accept"),db(r,"Content-Type"),_r.isFormData(t)||_r.isArrayBuffer(t)||_r.isBuffer(t)||_r.isStream(t)||_r.isFile(t)||_r.isBlob(t))return t;if(_r.isArrayBufferView(t))return t.buffer;if(_r.isURLSearchParams(t))return vb(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n=_r.isObject(t),a=r&&r["Content-Type"],i;if((i=_r.isFileList(t))||n&&a==="multipart/form-data"){var f=this.env&&this.env.FormData;return eZ(i?{"files[]":t}:t,f&&new f)}else if(n||a==="application/json")return vb(r,"application/json"),nZ(t);return t}],transformResponse:[function(t){var r=this.transitional||Ed.transitional,n=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&_r.isString(t)&&t.length)try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?pb.from(f,pb.ERR_BAD_RESPONSE,this,null,this.response):f}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:JV()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_r.forEach(["delete","get","head"],function(t){Ed.headers[t]={}});_r.forEach(["post","put","patch"],function(t){Ed.headers[t]=_r.merge(tZ)});var E7=Ed,iZ=Ur,aZ=E7,oZ=function(t,r,n){var a=this||aZ;return iZ.forEach(n,function(f){t=f.call(a,t,r)}),t},gp,gb;function RA(){return gb||(gb=1,gp=function(t){return!!(t&&t.__CANCEL__)}),gp}var yb=Ur,yp=oZ,fZ=RA(),sZ=E7,uZ=Sd();function mp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uZ}var lZ=function(t){mp(t),t.headers=t.headers||{},t.data=yp.call(t,t.data,t.headers,t.transformRequest),t.headers=yb.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),yb.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||sZ.adapter;return r(t).then(function(a){return mp(t),a.data=yp.call(t,a.data,a.headers,t.transformResponse),a},function(a){return fZ(a)||(mp(t),a&&a.response&&(a.response.data=yp.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},Sn=Ur,TA=function(t,r){r=r||{};var n={};function a(g,_){return Sn.isPlainObject(g)&&Sn.isPlainObject(_)?Sn.merge(g,_):Sn.isPlainObject(_)?Sn.merge({},_):Sn.isArray(_)?_.slice():_}function i(g){if(Sn.isUndefined(r[g])){if(!Sn.isUndefined(t[g]))return a(void 0,t[g])}else return a(t[g],r[g])}function f(g){if(!Sn.isUndefined(r[g]))return a(void 0,r[g])}function l(g){if(Sn.isUndefined(r[g])){if(!Sn.isUndefined(t[g]))return a(void 0,t[g])}else return a(void 0,r[g])}function c(g){if(g in r)return a(t[g],r[g]);if(g in t)return a(void 0,t[g])}var m={url:f,method:f,data:f,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c};return Sn.forEach(Object.keys(t).concat(Object.keys(r)),function(_){var S=m[_]||i,M=S(_);Sn.isUndefined(M)&&S!==c||(n[_]=M)}),n},bp,mb;function PA(){return mb||(mb=1,bp={version:"0.27.2"}),bp}var cZ=PA().version,io=g0,C7={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){C7[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var bb={};C7.transitional=function(t,r,n){function a(i,f){return"[Axios v"+cZ+"] Transitional option '"+i+"'"+f+(n?". "+n:"")}return function(i,f,l){if(t===!1)throw new io(a(f," has been removed"+(r?" in "+r:"")),io.ERR_DEPRECATED);return r&&!bb[f]&&(bb[f]=!0,console.warn(a(f," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,f,l):!0}};function hZ(e,t,r){if(typeof e!="object")throw new io("options must be an object",io.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),a=n.length;a-- >0;){var i=n[a],f=t[i];if(f){var l=e[i],c=l===void 0||f(l,i,e);if(c!==!0)throw new io("option "+i+" must be "+c,io.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new io("Unknown option "+i,io.ERR_BAD_OPTION)}}var dZ={assertOptions:hZ,validators:C7},OA=Ur,pZ=wA,xb=UV,wb=lZ,Cd=TA,vZ=AA,kA=dZ,Uf=kA.validators;function Ys(e){this.defaults=e,this.interceptors={request:new xb,response:new xb}}Ys.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Cd(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&kA.assertOptions(n,{silentJSONParsing:Uf.transitional(Uf.boolean),forcedJSONParsing:Uf.transitional(Uf.boolean),clarifyTimeoutError:Uf.transitional(Uf.boolean)},!1);var a=[],i=!0;this.interceptors.request.forEach(function(M){typeof M.runWhen=="function"&&M.runWhen(r)===!1||(i=i&&M.synchronous,a.unshift(M.fulfilled,M.rejected))});var f=[];this.interceptors.response.forEach(function(M){f.push(M.fulfilled,M.rejected)});var l;if(!i){var c=[wb,void 0];for(Array.prototype.unshift.apply(c,a),c=c.concat(f),l=Promise.resolve(r);c.length;)l=l.then(c.shift(),c.shift());return l}for(var m=r;a.length;){var g=a.shift(),_=a.shift();try{m=g(m)}catch(S){_(S);break}}try{l=wb(m)}catch(S){return Promise.reject(S)}for(;f.length;)l=l.then(f.shift(),f.shift());return l};Ys.prototype.getUri=function(t){t=Cd(this.defaults,t);var r=vZ(t.baseURL,t.url);return pZ(r,t.params,t.paramsSerializer)};OA.forEach(["delete","get","head","options"],function(t){Ys.prototype[t]=function(r,n){return this.request(Cd(n||{},{method:t,url:r,data:(n||{}).data}))}});OA.forEach(["post","put","patch"],function(t){function r(n){return function(i,f,l){return this.request(Cd(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:f}))}}Ys.prototype[t]=r(),Ys.prototype[t+"Form"]=r(!0)});var gZ=Ys,xp,_b;function yZ(){if(_b)return xp;_b=1;var e=Sd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(f){n=f});var a=this;this.promise.then(function(i){if(a._listeners){var f,l=a._listeners.length;for(f=0;f(this.config.logger(`Requesting: ${n.baseURL}/${n.url}`),n)),r.interceptors.response.use(n=>(this.config.logger(`Response: ${n.config.url} - ${n.status}`),n))),r}};y7.default=MZ;var M7={};Object.defineProperty(M7,"__esModule",{value:!0});let AZ=class{constructor(t){this.api=t}getInfo(){return this.api.get("info").then(t=>t.data)}getPeers(){return this.api.get("peers").then(t=>t.data)}};M7.default=AZ;var yc={},Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.getError=void 0;let RZ=class extends Error{constructor(t,r={}){r.message?super(r.message):super(),this.type=t,this.response=r.response}getType(){return this.type}};Uo.default=RZ;function TZ(e){let t=e.data;if(typeof e.data=="string")try{t=JSON.parse(e.data)}catch{}if(e.data instanceof ArrayBuffer||e.data instanceof Uint8Array)try{t=JSON.parse(t.toString())}catch{}return t?t.error||t:e.statusText||"unknown"}Uo.getError=TZ;var jf={},mc={},Mb;function PZ(){if(Mb)return mc;Mb=1,Object.defineProperty(mc,"__esModule",{value:!0});const e=Y1();async function t(n){if(Array.isArray(n)){const f=e.default.utils.concatBuffers([e.default.utils.stringToBuffer("list"),e.default.utils.stringToBuffer(n.length.toString())]);return await r(n,await e.default.crypto.hash(f,"SHA-384"))}const a=e.default.utils.concatBuffers([e.default.utils.stringToBuffer("blob"),e.default.utils.stringToBuffer(n.byteLength.toString())]),i=e.default.utils.concatBuffers([await e.default.crypto.hash(a,"SHA-384"),await e.default.crypto.hash(n,"SHA-384")]);return await e.default.crypto.hash(i,"SHA-384")}mc.default=t;async function r(n,a){if(n.length<1)return a;const i=e.default.utils.concatBuffers([a,await t(n[0])]),f=await e.default.crypto.hash(i,"SHA-384");return await r(n.slice(1),f)}return mc}var Sp={},Ab;function BA(){return Ab||(Ab=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.debug=e.validatePath=e.arrayCompare=e.bufferToInt=e.intToBuffer=e.arrayFlatten=e.generateProofs=e.buildLayers=e.generateTransactionChunks=e.generateTree=e.computeRootHash=e.generateLeaves=e.chunkData=e.MIN_CHUNK_SIZE=e.MAX_CHUNK_SIZE=void 0;const t=Y1(),r=wt;e.MAX_CHUNK_SIZE=256*1024,e.MIN_CHUNK_SIZE=32*1024;const n=32,a=32;async function i(j){let N=[],K=j,J=0;for(;K.byteLength>=e.MAX_CHUNK_SIZE;){let te=e.MAX_CHUNK_SIZE,ee=K.byteLength-e.MAX_CHUNK_SIZE;ee>0&&ee({type:"leaf",id:await I(await Promise.all([I(N),I(B(J))])),dataHash:N,minByteRange:K,maxByteRange:J})))}e.generateLeaves=f;async function l(j){return(await c(j)).id}e.computeRootHash=l;async function c(j){return await g(await f(await i(j)))}e.generateTree=c;async function m(j){const N=await i(j),K=await f(N),J=await g(K),te=await _(J),ee=N.slice(-1)[0];return ee.maxByteRange-ee.minByteRange===0&&(N.splice(N.length-1,1),te.splice(te.length-1,1)),{data_root:J.id,chunks:N,proofs:te}}e.generateTransactionChunks=m;async function g(j,N=0){if(j.length<2)return j[0];const K=[];for(let J=0;J{Array.isArray(K)?N.push(...M(K)):N.push(K)}),N}e.arrayFlatten=M;async function P(j,N){return N?{type:"branch",id:await I([await I(j.id),await I(N.id),await I(B(j.maxByteRange))]),byteRange:j.maxByteRange,maxByteRange:N.maxByteRange,leftChild:j,rightChild:N}:j}async function I(j){return Array.isArray(j)&&(j=t.default.utils.concatBuffers(j)),new Uint8Array(await t.default.crypto.hash(j))}function B(j){const N=new Uint8Array(n);for(var K=N.length-1;K>=0;K--){var J=j%256;N[K]=J,j=(j-J)/256}return N}e.intToBuffer=B;function R(j){let N=0;for(var K=0;Kj.every((K,J)=>N[J]===K);e.arrayCompare=A;async function U(j,N,K,J,te){if(J<=0)return!1;if(N>=J)return U(j,0,J-1,J,te);if(N<0)return U(j,0,0,J,te);if(te.length==a+n){const p=te.slice(0,a),y=te.slice(p.length,p.length+n),x=await I([await I(p),await I(y)]);return(0,e.arrayCompare)(j,x)?{offset:J-1,leftBound:K,rightBound:J,chunkSize:J-K}:!1}const ee=te.slice(0,a),G=te.slice(ee.length,ee.length+a),E=te.slice(ee.length+G.length,ee.length+G.length+n),d=R(E),o=te.slice(ee.length+G.length+E.length),u=await I([await I(ee),await I(G),await I(E)]);return(0,e.arrayCompare)(j,u)?N ${JSON.stringify(E)}`;return V(G,d)}e.debug=V}(Sp)),Sp}var Rb;function A7(){if(Rb)return jf;Rb=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.Tag=void 0;const e=wt,t=PZ(),r=BA();class n{get(l,c){if(!Object.getOwnPropertyNames(this).includes(l))throw new Error(`Field "${l}" is not a property of the Arweave Transaction class.`);return this[l]instanceof Uint8Array?c&&c.decode&&c.string?e.bufferToString(this[l]):c&&c.decode&&!c.string?this[l]:e.bufferTob64Url(this[l]):c&&c.decode==!0?c&&c.string?e.b64UrlToString(this[l]):e.b64UrlToBuffer(this[l]):this[l]}}class a extends n{constructor(l,c,m=!1){super(),this.name=l,this.value=c}}jf.Tag=a;class i extends n{constructor(l={}){super(),this.format=2,this.id="",this.last_tx="",this.owner="",this.tags=[],this.target="",this.quantity="0",this.data_size="0",this.data=new Uint8Array,this.data_root="",this.reward="0",this.signature="",Object.assign(this,l),typeof this.data=="string"&&(this.data=e.b64UrlToBuffer(this.data)),l.tags&&(this.tags=l.tags.map(c=>new a(c.name,c.value)))}addTag(l,c){this.tags.push(new a(e.stringToB64Url(l),e.stringToB64Url(c)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:e.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(l){this.owner=l}setSignature({id:l,owner:c,reward:m,tags:g,signature:_}){this.id=l,this.owner=c,m&&(this.reward=m),g&&(this.tags=g),this.signature=_}async prepareChunks(l){!this.chunks&&l.byteLength>0&&(this.chunks=await(0,r.generateTransactionChunks)(l),this.data_root=e.bufferTob64Url(this.chunks.data_root)),!this.chunks&&l.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(l,c){if(!this.chunks)throw new Error("Chunks have not been prepared");const m=this.chunks.proofs[l],g=this.chunks.chunks[l];return{data_root:this.data_root,data_size:this.data_size,data_path:e.bufferTob64Url(m.proof),offset:m.offset.toString(),chunk:e.bufferTob64Url(c.slice(g.minByteRange,g.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let l=this.tags.reduce((m,g)=>e.concatBuffers([m,g.get("name",{decode:!0,string:!1}),g.get("value",{decode:!0,string:!1})]),new Uint8Array);return e.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),e.stringToBuffer(this.quantity),e.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),l]);case 2:this.data_root||await this.prepareChunks(this.data);const c=this.tags.map(m=>[m.get("name",{decode:!0,string:!1}),m.get("value",{decode:!0,string:!1})]);return await(0,t.default)([e.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),e.stringToBuffer(this.quantity),e.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),c,e.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}}return jf.default=i,jf}var F0={},Tb;function OZ(){if(Tb)return F0;Tb=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.TransactionUploader=void 0;const e=A7(),t=wt,r=Uo,n=BA(),a=1,i=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],f=1e3*40;class l{get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}constructor(m,g){if(this.api=m,this.chunkIndex=0,this.txPosted=!1,this.lastRequestTimeEnd=0,this.totalErrors=0,this.lastResponseStatus=0,this.lastResponseError="",!g.id)throw new Error("Transaction is not signed");if(!g.chunks)throw new Error("Transaction chunks not prepared");this.data=g.data,this.transaction=new e.default(Object.assign({},g,{data:new Uint8Array(0)}))}async uploadChunk(m){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let g=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+f-Date.now(),f);if(g>0&&(g=g-g*Math.random()*.3,await new Promise(P=>setTimeout(P,g))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}m&&(this.chunkIndex=m);const _=this.transaction.getChunk(m||this.chunkIndex,this.data);if(!await(0,n.validatePath)(this.transaction.chunks.data_root,parseInt(_.offset),0,parseInt(_.data_size),t.b64UrlToBuffer(_.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);const M=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(P=>(console.error(P.message),{status:-1,data:{error:P.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=M.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,r.getError)(M),i.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(m,g,_){if(!g||typeof g.chunkIndex!="number"||typeof g.transaction!="object")throw new Error("Serialized object does not match expected format.");var S=new e.default(g.transaction);S.chunks||await S.prepareChunks(_);const M=new l(m,S);if(M.chunkIndex=g.chunkIndex,M.lastRequestTimeEnd=g.lastRequestTimeEnd,M.lastResponseError=g.lastResponseError,M.lastResponseStatus=g.lastResponseStatus,M.txPosted=g.txPosted,M.data=_,M.transaction.data_root!==g.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return M}static async fromTransactionId(m,g){const _=await m.get(`tx/${g}`);if(_.status!==200)throw new Error(`Tx ${g} not found: ${_.status}`);const S=_.data;return S.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:S}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=a){this.transaction.data=this.data;const _=await this.api.post("tx",this.transaction).catch(S=>(console.error(S),{status:-1,data:{error:S.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=_.status,this.transaction.data=new Uint8Array(0),_.status>=200&&_.status<300){this.txPosted=!0,this.chunkIndex=a;return}throw this.lastResponseError=(0,r.getError)(_),new Error(`Unable to upload transaction: ${_.status}, ${this.lastResponseError}`)}const g=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=g.status,!(g.status>=200&&g.status<300))throw this.lastResponseError=(0,r.getError)(g),new Error(`Unable to upload transaction: ${g.status}, ${this.lastResponseError}`);this.txPosted=!0}}return F0.TransactionUploader=l,F0}var Pb;function kZ(){if(Pb)return yc;Pb=1;var e=Oe&&Oe.__await||function(l){return this instanceof e?(this.v=l,this):new e(l)},t=Oe&&Oe.__asyncGenerator||function(l,c,m){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=m.apply(l,c||[]),_,S=[];return _={},M("next"),M("throw"),M("return"),_[Symbol.asyncIterator]=function(){return this},_;function M(U){g[U]&&(_[U]=function(V){return new Promise(function(j,N){S.push([U,V,j,N])>1||P(U,V)})})}function P(U,V){try{I(g[U](V))}catch(j){A(S[0][3],j)}}function I(U){U.value instanceof e?Promise.resolve(U.value.v).then(B,R):A(S[0][2],U)}function B(U){P("next",U)}function R(U){P("throw",U)}function A(U,V){U(V),S.shift(),S.length&&P(S[0][0],S[0][1])}};Object.defineProperty(yc,"__esModule",{value:!0});const r=Uo,n=A7(),a=wt,i=OZ();class f{constructor(c,m,g){this.api=c,this.crypto=m,this.chunks=g}getTransactionAnchor(){return this.api.get("tx_anchor",{transformResponse:[]}).then(c=>c.data)}getPrice(c,m){let g=m?`price/${c}/${m}`:`price/${c}`;return this.api.get(g,{transformResponse:[function(_){return _}]}).then(_=>_.data)}async get(c){const m=await this.api.get(`tx/${c}`);if(m.status==200){const g=parseInt(m.data.data_size);if(m.data.format>=2&&g>0&&g<=1024*1024*12){const _=await this.getData(c);return new n.default(Object.assign(Object.assign({},m.data),{data:_}))}return new n.default(Object.assign(Object.assign({},m.data),{format:m.data.format||1}))}throw m.status==404?new r.default("TX_NOT_FOUND"):m.status==410?new r.default("TX_FAILED"):new r.default("TX_INVALID")}fromRaw(c){return new n.default(c)}async search(c,m){return this.api.post("arql",{op:"equals",expr1:c,expr2:m}).then(g=>g.data?g.data:[])}getStatus(c){return this.api.get(`tx/${c}/status`).then(m=>m.status==200?{status:200,confirmed:m.data}:{status:m.status,confirmed:null})}async getData(c,m){let g;try{g=await this.chunks.downloadChunkedData(c)}catch(_){console.error(`Error while trying to download chunked data for ${c}`),console.error(_)}if(!g){console.warn(`Falling back to gateway cache for ${c}`);try{g=(await this.api.get(`/${c}`)).data}catch(_){console.error(`Error while trying to download contiguous data from gateway cache for ${c}`),console.error(_)}}if(!g)throw new Error(`${c} was not found!`);return m&&m.decode&&!m.string?g:m&&m.decode&&m.string?a.bufferToString(g):a.bufferTob64Url(g)}async sign(c,m,g){if(!m&&typeof arweaveWallet!="object")throw new Error("A new Arweave transaction must provide the jwk parameter.");if(!m||m==="use_wallet"){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}const _=await arweaveWallet.sign(c,g);c.setSignature({id:_.id,owner:_.owner,reward:_.reward,tags:_.tags,signature:_.signature})}else{c.setOwner(m.n);let _=await c.getSignatureData(),S=await this.crypto.sign(m,_,g),M=await this.crypto.hash(S);c.setSignature({id:a.bufferTob64Url(M),owner:m.n,signature:a.bufferTob64Url(S)})}}async verify(c){const m=await c.getSignatureData(),g=c.get("signature",{decode:!0,string:!1}),_=a.bufferTob64Url(await this.crypto.hash(g));if(c.id!==_)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(c.owner,m,g)}async post(c){if(typeof c=="string"?c=new n.default(JSON.parse(c)):typeof c.readInt32BE=="function"?c=new n.default(JSON.parse(c.toString())):typeof c=="object"&&!(c instanceof n.default)&&(c=new n.default(c)),!(c instanceof n.default))throw new Error("Must be Transaction object");c.chunks||await c.prepareChunks(c.data);const m=await this.getUploader(c,c.data);try{for(;!m.isComplete;)await m.uploadChunk()}catch(g){if(m.lastResponseStatus>0)return{status:m.lastResponseStatus,statusText:m.lastResponseError,data:{error:m.lastResponseError}};throw g}return{status:200,statusText:"OK",data:{}}}async getUploader(c,m){let g;if(m instanceof ArrayBuffer&&(m=new Uint8Array(m)),c instanceof n.default){if(m||(m=c.data),!(m instanceof Uint8Array))throw new Error("Data format is invalid");c.chunks||await c.prepareChunks(m),g=new i.TransactionUploader(this.api,c),(!g.data||g.data.length===0)&&(g.data=m)}else{if(typeof c=="string"&&(c=await i.TransactionUploader.fromTransactionId(this.api,c)),!m||!(m instanceof Uint8Array))throw new Error("Must provide data when resuming upload");g=await i.TransactionUploader.fromSerialized(this.api,c,m)}return g}upload(c,m){return t(this,arguments,function*(){const _=yield e(this.getUploader(c,m));for(;!_.isComplete;)yield e(_.uploadChunk()),yield yield e(_);return yield e(_)})}}return yc.default=f,yc}var R7={};Object.defineProperty(R7,"__esModule",{value:!0});const Ob=wt;let IZ=class{constructor(t,r){this.api=t,this.crypto=r}getBalance(t){return this.api.get(`wallet/${t}/balance`,{transformResponse:[function(r){return r}]}).then(r=>r.data)}getLastTransactionID(t){return this.api.get(`wallet/${t}/last_tx`).then(r=>r.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(t){return!t||t==="use_wallet"?this.getAddress():this.getAddress(t)}async getAddress(t){if(!t||t==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(t.n)}async ownerToAddress(t){return Ob.bufferTob64Url(await this.crypto.hash(Ob.b64UrlToBuffer(t)))}};R7.default=IZ;var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.SiloResource=void 0;const kb=wt;let BZ=class{constructor(t,r,n){this.api=t,this.crypto=r,this.transactions=n}async get(t){if(!t)throw new Error("No Silo URI specified");const r=await this.parseUri(t),n=await this.transactions.search("Silo-Name",r.getAccessKey());if(n.length==0)throw new Error(`No data could be found for the Silo URI: ${t}`);const a=await this.transactions.get(n[0]);if(!a)throw new Error(`No data could be found for the Silo URI: ${t}`);const i=a.get("data",{decode:!0,string:!1});return this.crypto.decrypt(i,r.getEncryptionKey())}async readTransactionData(t,r){if(!r)throw new Error("No Silo URI specified");const n=await this.parseUri(r),a=t.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,n.getEncryptionKey())}async parseUri(t){const r=t.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!r)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");const n=r[1],a=Math.pow(2,parseInt(r[2])),i=await this.hash(kb.stringToBuffer(n),a),f=kb.bufferTob64(i.slice(0,15)),l=await this.hash(i.slice(16,31),1);return new LA(t,f,l)}async hash(t,r){let n=await this.crypto.hash(t);for(let a=0;aP.data||[])}}return gc.default=_,_.crypto=new r.default,_.utils=l,gc}(function(e){var t=Oe&&Oe.__createBinding||(Object.create?function(a,i,f,l){l===void 0&&(l=f);var c=Object.getOwnPropertyDescriptor(i,f);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[f]}}),Object.defineProperty(a,l,c)}:function(a,i,f,l){l===void 0&&(l=f),a[l]=i[f]}),r=Oe&&Oe.__exportStar||function(a,i){for(var f in a)f!=="default"&&!Object.prototype.hasOwnProperty.call(i,f)&&t(i,a,f)};Object.defineProperty(e,"__esModule",{value:!0});const n=Y1();n.default.init=function(a={}){function i(){const g={host:"arweave.net",port:443,protocol:"https"};if(typeof location!="object"||!location.protocol||!location.hostname)return g;const _=location.protocol.replace(":",""),S=location.hostname,M=location.port?parseInt(location.port):_=="https"?443:80;return["localhost","127.0.0.1"].includes(S)||_=="file"?g:{host:S,port:M,protocol:_}}const f=i(),l=a.protocol||f.protocol,c=a.host||f.host,m=a.port||f.port;return new n.default(Object.assign(Object.assign({},a),{host:c,protocol:l,port:m}))},typeof globalThis=="object"?globalThis.Arweave=n.default:typeof self=="object"&&(self.Arweave=n.default),r(Y1(),e),e.default=n.default})(vA);const FA=Nr(vA),FZ=fp.default?fp.default:fp;class UA extends FZ{getPublicKey(t){throw new Error("Unimplemented")}}let UZ;function vn(){return UZ??(UZ=new UA)}class jA{constructor(t,r){Pe(this,"_key");Pe(this,"pk");Pe(this,"signatureType",1);Pe(this,"ownerLength",Ut[1].pubLength);Pe(this,"signatureLength",Ut[1].sigLength);Pe(this,"_publicKey");this._key=t,this.pk=r,r||(this.pk=vn().getPublicKey(JSON.parse(t)))}get publicKey(){return this._publicKey}sign(t){return Na.createSign("sha256").update(t).sign({key:this._key,padding:Na.constants.RSA_PKCS1_PSS_PADDING})}static async verify(t,r,n){return await vn().verify(Te.Buffer.isBuffer(t)?Tt.encode(t):t,r,n)}}var Yu={},jZ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),qZ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zZ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&jZ(t,e,r);return qZ(t,e),t};Object.defineProperty(Yu,"__esModule",{value:!0});var qA=Yu.jwkTopem=Yu.pemTojwk=void 0;const ja=zZ(Tl);function $Z(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function O7(e){return $Z(Te.Buffer.from(e,"hex").toString("base64"))}var zA=ja.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),$A=ja.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),HZ=ja.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use($A),this.key("publicKey").bitstr())}),HA=ja.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),KZ=ja.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),KA=ja.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(HA),this.key("n").int(),this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(KZ))}),GZ=ja.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(HA),this.key("algorithm").use($A),this.key("privateKey").bitstr())});function GA(e,t){return t=t||{},Object.keys(t).forEach(function(r){e[r]=t[r]}),e}function k7(e){return e.length%2===1?"0"+e:e}function WA(e,t){var r=zA.decode(e,"der"),n=k7(r.e.toString(16)),a={kty:"RSA",n:Qa(r.n),e:O7(n)};return GA(a,t)}function VA(e,t){var r=KA.decode(e,"der"),n=k7(r.e.toString(16)),a={kty:"RSA",n:Qa(r.n),e:O7(n),d:Qa(r.d),p:Qa(r.p),q:Qa(r.q),dp:Qa(r.dp),dq:Qa(r.dq),qi:Qa(r.qi)};return GA(a,t)}function WZ(e,t){var r=HZ.decode(e,"der");return WA(r.publicKey.data,t)}function VZ(e,t){var r=GZ.decode(e,"der");return VA(r.privateKey.data,t)}function ZZ(e){var t=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(e);if(!t)return null;var r=!!t[1],n=t[2]==="PRIVATE";return n?r?VA:VZ:r?WA:WZ}function XZ(e){return{n:Va(e.n),e:Va(e.e),d:e.d&&Va(e.d),p:e.p&&Va(e.p),q:e.q&&Va(e.q),dp:e.dp&&Va(e.dp),dq:e.dq&&Va(e.dq),qi:e.qi&&Va(e.qi)}}function Qa(e){return O7(k7(e.toString(16)))}function YZ(e){return new ja.bignum(Te.Buffer.from(e,"base64"))}function Va(e){return/^[0-9]+$/.test(e)?new ja.bignum(e,10):YZ(e)}function JZ(e,t){var r=e.toString().split(/(\r\n|\r|\n)+/g);r=r.filter(function(a){return a.trim().length!==0});var n=ZZ(r[0]);return r=r.slice(1,-1).join(""),n(Te.Buffer.from(r.replace(/[^\w\d\+\/=]+/g,""),"base64"),t)}Yu.pemTojwk=JZ;function QZ(e){var t=XZ(e),r=!!t.d,n=r?"PRIVATE":"PUBLIC",a="-----BEGIN RSA "+n+` KEY----- +`))},ft.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},ft}var Na=c7();const WW=Nr(Na),VW=vT({__proto__:null,default:WW},[Na]);/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */const Ir=BigInt(0),mt=BigInt(1),fo=BigInt(2),ZW=BigInt(8),Jm=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),Dt=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:Jm,n:Jm,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")}),nA=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),du=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742");const XW=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),YW=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),JW=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),QW=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952");class yt{constructor(t,r,n,a){this.x=t,this.y=r,this.z=n,this.t=a}static fromAffine(t){if(!(t instanceof yr))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return t.equals(yr.ZERO)?yt.ZERO:new yt(t.x,t.y,mt,Ke(t.x*t.y))}static toAffineBatch(t){const r=rV(t.map(n=>n.z));return t.map((n,a)=>n.toAffine(r[a]))}static normalizeZ(t){return this.toAffineBatch(t).map(this.fromAffine)}equals(t){eb(t);const{x:r,y:n,z:a}=this,{x:i,y:f,z:l}=t,c=Ke(r*l),m=Ke(i*a),g=Ke(n*l),_=Ke(f*a);return c===m&&g===_}negate(){return new yt(Ke(-this.x),this.y,this.z,Ke(-this.t))}double(){const{x:t,y:r,z:n}=this,{a}=Dt,i=Ke(t*t),f=Ke(r*r),l=Ke(fo*Ke(n*n)),c=Ke(a*i),m=t+r,g=Ke(Ke(m*m)-i-f),_=c+f,S=_-l,M=c-f,P=Ke(g*S),I=Ke(_*M),B=Ke(g*M),R=Ke(S*_);return new yt(P,I,R,B)}add(t){eb(t);const{x:r,y:n,z:a,t:i}=this,{x:f,y:l,z:c,t:m}=t,g=Ke((n-r)*(l+f)),_=Ke((n+r)*(l-f)),S=Ke(_-g);if(S===Ir)return this.double();const M=Ke(a*fo*m),P=Ke(i*fo*c),I=P+M,B=_+g,R=P-M,A=Ke(I*S),F=Ke(B*R),V=Ke(I*R),j=Ke(S*B);return new yt(A,F,j,V)}subtract(t){return this.add(t.negate())}precomputeWindow(t){const r=1+256/t,n=[];let a=this,i=a;for(let f=0;f>=_,P>c&&(P-=g,t+=mt);const I=M,B=M+Math.abs(P)-1,R=S%2!==0,A=P<0;P===0?f=f.add(Qm(R,a[I])):i=i.add(Qm(A,a[B]))}return yt.normalizeZ([i,f])[0]}multiply(t,r){return this.wNAF(Z1(t,Dt.l),r)}multiplyUnsafe(t){let r=Z1(t,Dt.l,!1);const n=yt.BASE,a=yt.ZERO;if(r===Ir)return a;if(this.equals(a)||r===mt)return this;if(this.equals(n))return this.wNAF(r);let i=a,f=this;for(;r>Ir;)r&mt&&(i=i.add(f)),f=f.double(),r>>=mt;return i}isSmallOrder(){return this.multiplyUnsafe(Dt.h).equals(yt.ZERO)}isTorsionFree(){let t=this.multiplyUnsafe(Dt.l/fo).double();return Dt.l%fo&&(t=t.add(this)),t.equals(yt.ZERO)}toAffine(t){const{x:r,y:n,z:a}=this,i=this.equals(yt.ZERO);t==null&&(t=i?ZW:xd(a));const f=Ke(r*t),l=Ke(n*t),c=Ke(a*t);if(i)return yr.ZERO;if(c!==mt)throw new Error("invZ was invalid");return new yr(f,l)}fromRistrettoBytes(){ip()}toRistrettoBytes(){ip()}fromRistrettoHash(){ip()}}yt.BASE=new yt(Dt.Gx,Dt.Gy,mt,Ke(Dt.Gx*Dt.Gy));yt.ZERO=new yt(Ir,mt,mt,Ir);function Qm(e,t){const r=t.negate();return e?r:t}function eb(e){if(!(e instanceof yt))throw new TypeError("ExtendedPoint expected")}function np(e){if(!(e instanceof Zn))throw new TypeError("RistrettoPoint expected")}function ip(){throw new Error("Legacy method: switch to RistrettoPoint")}class Zn{constructor(t){this.ep=t}static calcElligatorRistrettoMap(t){const{d:r}=Dt,n=Ke(du*t*t),a=Ke((n+mt)*JW);let i=BigInt(-1);const f=Ke((i-r*n)*Ke(n+r));let{isValid:l,value:c}=d7(a,f),m=Ke(c*t);Ja(m)||(m=Ke(-m)),l||(c=m),l||(i=n);const g=Ke(i*(n-mt)*QW-f),_=c*c,S=Ke((c+c)*f),M=Ke(g*XW),P=Ke(mt-_),I=Ke(mt+_);return new yt(Ke(S*I),Ke(P*M),Ke(M*I),Ke(S*P))}static hashToCurve(t){t=To(t,64);const r=ap(t.slice(0,32)),n=this.calcElligatorRistrettoMap(r),a=ap(t.slice(32,64)),i=this.calcElligatorRistrettoMap(a);return new Zn(n.add(i))}static fromHex(t){t=To(t,32);const{a:r,d:n}=Dt,a="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",i=ap(t);if(!iV(Xu(i),t)||Ja(i))throw new Error(a);const f=Ke(i*i),l=Ke(mt+r*f),c=Ke(mt-r*f),m=Ke(l*l),g=Ke(c*c),_=Ke(r*n*m-g),{isValid:S,value:M}=rb(Ke(_*g)),P=Ke(M*c),I=Ke(M*P*_);let B=Ke((i+i)*P);Ja(B)&&(B=Ke(-B));const R=Ke(l*I),A=Ke(B*R);if(!S||Ja(A)||R===Ir)throw new Error(a);return new Zn(new yt(B,R,mt,A))}toRawBytes(){let{x:t,y:r,z:n,t:a}=this.ep;const i=Ke(Ke(n+r)*Ke(n-r)),f=Ke(t*r),l=Ke(f*f),{value:c}=rb(Ke(i*l)),m=Ke(c*i),g=Ke(c*f),_=Ke(m*g*a);let S;if(Ja(a*_)){let P=Ke(r*du),I=Ke(t*du);t=P,r=I,S=Ke(m*YW)}else S=g;Ja(t*_)&&(r=Ke(-r));let M=Ke((n-r)*S);return Ja(M)&&(M=Ke(-M)),Xu(M)}toHex(){return Pl(this.toRawBytes())}toString(){return this.toHex()}equals(t){np(t);const r=this.ep,n=t.ep,a=Ke(r.x*n.y)===Ke(r.y*n.x),i=Ke(r.y*n.y)===Ke(r.x*n.x);return a||i}add(t){return np(t),new Zn(this.ep.add(t.ep))}subtract(t){return np(t),new Zn(this.ep.subtract(t.ep))}multiply(t){return new Zn(this.ep.multiply(t))}multiplyUnsafe(t){return new Zn(this.ep.multiplyUnsafe(t))}}Zn.BASE=new Zn(yt.BASE);Zn.ZERO=new Zn(yt.ZERO);const O6=new WeakMap;let yr=class k6{constructor(t,r){this.x=t,this.y=r}_setWindowSize(t){this._WINDOW_SIZE=t,O6.delete(this)}static fromHex(t,r=!0){const{d:n,P:a}=Dt;t=To(t,32);const i=t.slice();i[31]=t[31]&-129;const f=Ol(i);if(r&&f>=a)throw new Error("Expected 0 < hex < P");if(!r&&f>=nA)throw new Error("Expected 0 < hex < 2**256");const l=Ke(f*f),c=Ke(l-mt),m=Ke(n*l+mt);let{isValid:g,value:_}=d7(c,m);if(!g)throw new Error("Point.fromHex: invalid y coordinate");const S=(_&mt)===mt;return(t[31]&128)!==0!==S&&(_=Ke(-_)),new k6(_,f)}static async fromPrivateKey(t){return(await p7(t)).point}toRawBytes(){const t=Xu(this.y);return t[31]|=this.x&mt?128:0,t}toHex(){return Pl(this.toRawBytes())}toX25519(){const{y:t}=this,r=Ke((mt+t)*xd(mt-t));return Xu(r)}isTorsionFree(){return yt.fromAffine(this).isTorsionFree()}equals(t){return this.x===t.x&&this.y===t.y}negate(){return new k6(Ke(-this.x),this.y)}add(t){return yt.fromAffine(this).add(yt.fromAffine(t)).toAffine()}subtract(t){return this.add(t.negate())}multiply(t){return yt.fromAffine(this).multiply(t,this).toAffine()}};yr.BASE=new yr(Dt.Gx,Dt.Gy);yr.ZERO=new yr(Ir,mt);let I6=class iA{constructor(t,r){this.r=t,this.s=r,this.assertValidity()}static fromHex(t){const r=To(t,64),n=yr.fromHex(r.slice(0,32),!1),a=Ol(r.slice(32,64));return new iA(n,a)}assertValidity(){const{r:t,s:r}=this;if(!(t instanceof yr))throw new Error("Expected Point instance");return Z1(r,Dt.l,!1),this}toRawBytes(){const t=new Uint8Array(64);return t.set(this.r.toRawBytes()),t.set(Xu(this.s),32),t}toHex(){return Pl(this.toRawBytes())}};function tb(...e){if(!e.every(n=>n instanceof Uint8Array))throw new Error("Expected Uint8Array list");if(e.length===1)return e[0];const t=e.reduce((n,a)=>n+a.length,0),r=new Uint8Array(t);for(let n=0,a=0;nt.toString(16).padStart(2,"0"));function Pl(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r=Ir?r:t+r}function xd(e,t=Dt.P){if(e===Ir||t<=Ir)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Ke(e,t),n=t,a=Ir,i=mt;for(;r!==Ir;){const l=n/r,c=n%r,m=a-i*l;n=r,r=c,a=i,i=m}if(n!==mt)throw new Error("invert: does not exist");return Ke(a,t)}function rV(e,t=Dt.P){const r=new Array(e.length),n=e.reduce((i,f,l)=>f===Ir?i:(r[l]=i,Ke(i*f,t)),mt),a=xd(n,t);return e.reduceRight((i,f,l)=>f===Ir?i:(r[l]=Ke(i*r[l],t),Ke(i*f,t)),a),r}function $i(e,t){const{P:r}=Dt;let n=e;for(;t-- >Ir;)n*=n,n%=r;return n}function nV(e){const{P:t}=Dt,r=BigInt(5),n=BigInt(10),a=BigInt(20),i=BigInt(40),f=BigInt(80),c=e*e%t*e%t,m=$i(c,fo)*c%t,g=$i(m,mt)*e%t,_=$i(g,r)*g%t,S=$i(_,n)*_%t,M=$i(S,a)*S%t,P=$i(M,i)*M%t,I=$i(P,f)*P%t,B=$i(I,f)*P%t,R=$i(B,n)*_%t;return{pow_p_5_8:$i(R,fo)*e%t,b2:c}}function d7(e,t){const r=Ke(t*t*t),n=Ke(r*r*t),a=nV(e*n).pow_p_5_8;let i=Ke(e*r*a);const f=Ke(t*i*i),l=i,c=Ke(i*du),m=f===e,g=f===Ke(-e),_=f===Ke(-e*du);return m&&(i=l),(g||_)&&(i=c),Ja(i)&&(i=Ke(-i)),{isValid:m||g,value:i}}function rb(e){return d7(mt,e)}function V1(e){return Ke(Ol(e),Dt.l)}function iV(e,t){if(e.length!==t.length)return!1;for(let r=0;r{if(e=To(e),e.length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return Ke(Ol(e),Dt.l-mt)+mt},randomBytes:(e=32)=>{if(Ga.web)return Ga.web.getRandomValues(new Uint8Array(e));if(Ga.node){const{randomBytes:t}=Ga.node;return new Uint8Array(t(e).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>Zs.randomBytes(32),sha512:async(...e)=>{const t=tb(...e);if(Ga.web){const r=await Ga.web.subtle.digest("SHA-512",t.buffer);return new Uint8Array(r)}else{if(Ga.node)return Uint8Array.from(Ga.node.createHash("sha512").update(t).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(e=8,t=yr.BASE){const r=t.equals(yr.BASE)?t:new yr(t.x,t.y);return r._setWindowSize(e),r.multiply(fo),r},sha512Sync:void 0};Object.defineProperties(Zs,{sha512Sync:{configurable:!1,get(){return op},set(e){op||(op=e)}}});class kl{constructor(t,r){Pe(this,"_key");Pe(this,"pk");Pe(this,"ownerLength",Ut[2].pubLength);Pe(this,"signatureLength",Ut[2].sigLength);Pe(this,"_publicKey");Pe(this,"signatureType",2);this._key=t,this.pk=r}get publicKey(){return this._publicKey}get key(){throw new Error("You must implement `key`")}sign(t){return sV(Te.Buffer.from(t),Te.Buffer.from(this.key))}static async verify(t,r,n){let a=t;return typeof t=="string"&&(a=Tt.toBuffer(t)),wd(Te.Buffer.from(n),Te.Buffer.from(r),Te.Buffer.from(a))}}var v7={},wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.b64UrlDecode=wt.b64UrlEncode=wt.bufferTob64Url=wt.bufferTob64=wt.b64UrlToBuffer=wt.stringToB64Url=kr=wt.stringToBuffer=wt.bufferToString=wt.b64UrlToString=so=wt.concatBuffers=void 0;const oA=r0;function cV(e){let t=0;for(let a=0;a"u"){const t=Mr.TextDecoder;return new t("utf-8",{fatal:!0}).decode(e)}return new TextDecoder("utf-8",{fatal:!0}).decode(e)}wt.bufferToString=fA;function sA(e){if(typeof TextEncoder>"u"){const t=Mr.TextEncoder;return new t().encode(e)}return new TextEncoder().encode(e)}var kr=wt.stringToBuffer=sA;function dV(e){return cA(sA(e))}wt.stringToB64Url=dV;function uA(e){return new Uint8Array(oA.toByteArray(dA(e)))}wt.b64UrlToBuffer=uA;function lA(e){return oA.fromByteArray(new Uint8Array(e))}wt.bufferTob64=lA;function cA(e){return hA(lA(e))}wt.bufferTob64Url=cA;function hA(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}wt.b64UrlEncode=hA;function dA(e){e=e.replace(/\-/g,"+").replace(/\_/g,"/");let t;return e.length%4==0?t=0:t=4-e.length%4,e.concat("=".repeat(t))}wt.b64UrlDecode=dA;Object.defineProperty(v7,"__esModule",{value:!0});const Wa=wt;class pV{constructor(){if(this.keyLength=4096,this.publicExponent=65537,this.hashAlgorithm="sha256",!this.detectWebCrypto())throw new Error("SubtleCrypto not available!");this.driver=crypto.subtle}async generateJWK(){let t=await this.driver.generateKey({name:"RSA-PSS",modulusLength:4096,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},!0,["sign"]),r=await this.driver.exportKey("jwk",t.privateKey);return{kty:r.kty,e:r.e,n:r.n,d:r.d,p:r.p,q:r.q,dp:r.dp,dq:r.dq,qi:r.qi}}async sign(t,r,{saltLength:n}={}){let a=await this.driver.sign({name:"RSA-PSS",saltLength:32},await this.jwkToCryptoKey(t),r);return new Uint8Array(a)}async hash(t,r="SHA-256"){let n=await this.driver.digest(r,t);return new Uint8Array(n)}async verify(t,r,n){const a={kty:"RSA",e:"AQAB",n:t},i=await this.jwkToPublicCryptoKey(a),f=await this.driver.digest("SHA-256",r),l=await this.driver.verify({name:"RSA-PSS",saltLength:0},i,n,r),c=await this.driver.verify({name:"RSA-PSS",saltLength:32},i,n,r),m=await this.driver.verify({name:"RSA-PSS",saltLength:Math.ceil((i.algorithm.modulusLength-1)/8)-f.byteLength-2},i,n,r);return l||c||m}async jwkToCryptoKey(t){return this.driver.importKey("jwk",t,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["sign"])}async jwkToPublicCryptoKey(t){return this.driver.importKey("jwk",t,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["verify"])}detectWebCrypto(){if(typeof crypto>"u")return!1;const t=crypto==null?void 0:crypto.subtle;return t===void 0?!1:["generateKey","importKey","exportKey","digest","sign"].every(n=>typeof t[n]=="function")}async encrypt(t,r,n){const a=await this.driver.importKey("raw",typeof r=="string"?Wa.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),i=await this.driver.deriveKey({name:"PBKDF2",salt:n?Wa.stringToBuffer(n):Wa.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},a,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),f=new Uint8Array(16);crypto.getRandomValues(f);const l=await this.driver.encrypt({name:"AES-CBC",iv:f},i,t);return Wa.concatBuffers([f,l])}async decrypt(t,r,n){const a=await this.driver.importKey("raw",typeof r=="string"?Wa.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),i=await this.driver.deriveKey({name:"PBKDF2",salt:n?Wa.stringToBuffer(n):Wa.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},a,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),f=t.slice(0,16),l=await this.driver.decrypt({name:"AES-CBC",iv:f},i,t.slice(16));return Wa.concatBuffers([l])}}var fp=v7.default=pV;async function Il(e){if(typeof e[Symbol.asyncIterator]=="function"){const a=e,i=Na.createHash("sha384");let f=0;for await(const m of a)f+=m.byteLength,i.update(m);const l=so([kr("blob"),kr(f.toString())]),c=so([await vn().hash(l,"SHA-384"),i.digest()]);return await vn().hash(c,"SHA-384")}else if(Array.isArray(e)){const a=so([kr("list"),kr(e.length.toString())]);return await pA(e,await vn().hash(a,"SHA-384"))}const t=e,r=so([kr("blob"),kr(t.byteLength.toString())]),n=so([await vn().hash(r,"SHA-384"),await vn().hash(t,"SHA-384")]);return await vn().hash(n,"SHA-384")}async function pA(e,t){if(e.length<1)return t;const r=so([t,await Il(e[0])]),n=await vn().hash(r,"SHA-384");return await pA(e.slice(1),n)}var vA={},gc={},g7={},gA={exports:{}};(function(e){(function(t){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,i=Math.floor,f="[BigNumber Error] ",l=f+"Number primitive has more than 15 significant digits: ",c=1e14,m=14,g=9007199254740991,_=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],S=1e7,M=1e9;function P(N){var K,J,te,ee=D.prototype={constructor:D,toString:null,valueOf:null},G=new D(1),E=20,d=4,o=-7,u=21,p=-1e7,y=1e7,x=!1,w=1,v=0,h={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},s="0123456789abcdefghijklmnopqrstuvwxyz",b=!0;function D(z,k){var L,oe,re,se,Y,T,O,W,ie=this;if(!(ie instanceof D))return new D(z,k);if(k==null){if(z&&z._isBigNumber===!0){ie.s=z.s,!z.c||z.e>y?ie.c=ie.e=null:z.e=10;Y/=10,se++);se>y?ie.c=ie.e=null:(ie.e=se,ie.c=[z]);return}W=String(z)}else{if(!n.test(W=String(z)))return te(ie,W,T);ie.s=W.charCodeAt(0)==45?(W=W.slice(1),-1):1}(se=W.indexOf("."))>-1&&(W=W.replace(".","")),(Y=W.search(/e/i))>0?(se<0&&(se=Y),se+=+W.slice(Y+1),W=W.substring(0,Y)):se<0&&(se=W.length)}else{if(A(k,2,s.length,"Base"),k==10&&b)return ie=new D(z),H(ie,E+ie.e+1,d);if(W=String(z),T=typeof z=="number"){if(z*0!=0)return te(ie,W,T,k);if(ie.s=1/z<0?(W=W.slice(1),-1):1,D.DEBUG&&W.replace(/^0\.0*|\./,"").length>15)throw Error(l+z)}else ie.s=W.charCodeAt(0)===45?(W=W.slice(1),-1):1;for(L=s.slice(0,k),se=Y=0,O=W.length;Yse){se=O;continue}}else if(!re&&(W==W.toUpperCase()&&(W=W.toLowerCase())||W==W.toLowerCase()&&(W=W.toUpperCase()))){re=!0,Y=-1,se=0;continue}return te(ie,String(z),T,k)}T=!1,W=J(W,k,10,ie.s),(se=W.indexOf("."))>-1?W=W.replace(".",""):se=W.length}for(Y=0;W.charCodeAt(Y)===48;Y++);for(O=W.length;W.charCodeAt(--O)===48;);if(W=W.slice(Y,++O)){if(O-=Y,T&&D.DEBUG&&O>15&&(z>g||z!==i(z)))throw Error(l+ie.s*z);if((se=se-Y-1)>y)ie.c=ie.e=null;else if(se=-M&&re<=M&&re===i(re)){if(oe[0]===0){if(re===0&&oe.length===1)return!0;break e}if(k=(re+1)%m,k<1&&(k+=m),String(oe[0]).length==k){for(k=0;k=c||L!==i(L))break e;if(L!==0)return!0}}}else if(oe===null&&re===null&&(se===null||se===1||se===-1))return!0;throw Error(f+"Invalid BigNumber: "+z)},D.maximum=D.max=function(){return U(arguments,-1)},D.minimum=D.min=function(){return U(arguments,1)},D.random=function(){var z=9007199254740992,k=Math.random()*z&2097151?function(){return i(Math.random()*z)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(L){var oe,re,se,Y,T,O=0,W=[],ie=new D(G);if(L==null?L=E:A(L,0,M),Y=a(L/m),x)if(crypto.getRandomValues){for(oe=crypto.getRandomValues(new Uint32Array(Y*=2));O>>11),T>=9e15?(re=crypto.getRandomValues(new Uint32Array(2)),oe[O]=re[0],oe[O+1]=re[1]):(W.push(T%1e14),O+=2);O=Y/2}else if(crypto.randomBytes){for(oe=crypto.randomBytes(Y*=7);O=9e15?crypto.randomBytes(7).copy(oe,O):(W.push(T%1e14),O+=7);O=Y/7}else throw x=!1,Error(f+"crypto unavailable");if(!x)for(;O=10;T/=10,O++);Ore-1&&(T[Y+1]==null&&(T[Y+1]=0),T[Y+1]+=T[Y]/re|0,T[Y]%=re)}return T.reverse()}return function(L,oe,re,se,Y){var T,O,W,ie,ue,we,_e,Z,le=L.indexOf("."),fe=E,pe=d;for(le>=0&&(ie=v,v=0,L=L.replace(".",""),Z=new D(oe),we=Z.pow(L.length-le),v=ie,Z.c=k(j(B(we.c),we.e,"0"),10,re,z),Z.e=Z.c.length),_e=k(L,oe,re,Y?(T=s,z):(T=z,s)),W=ie=_e.length;_e[--ie]==0;_e.pop());if(!_e[0])return T.charAt(0);if(le<0?--W:(we.c=_e,we.e=W,we.s=se,we=K(we,Z,fe,pe,re),_e=we.c,ue=we.r,W=we.e),O=W+fe+1,le=_e[O],ie=re/2,ue=ue||O<0||_e[O+1]!=null,ue=pe<4?(le!=null||ue)&&(pe==0||pe==(we.s<0?3:2)):le>ie||le==ie&&(pe==4||ue||pe==6&&_e[O-1]&1||pe==(we.s<0?8:7)),O<1||!_e[0])L=ue?j(T.charAt(1),-fe,T.charAt(0)):T.charAt(0);else{if(_e.length=O,ue)for(--re;++_e[--O]>re;)_e[O]=0,O||(++W,_e=[1].concat(_e));for(ie=_e.length;!_e[--ie];);for(le=0,L="";le<=ie;L+=T.charAt(_e[le++]));L=j(L,W,T.charAt(0))}return L}}(),K=function(){function z(oe,re,se){var Y,T,O,W,ie=0,ue=oe.length,we=re%S,_e=re/S|0;for(oe=oe.slice();ue--;)O=oe[ue]%S,W=oe[ue]/S|0,Y=_e*O+W*we,T=we*O+Y%S*S+ie,ie=(T/se|0)+(Y/S|0)+_e*W,oe[ue]=T%se;return ie&&(oe=[ie].concat(oe)),oe}function k(oe,re,se,Y){var T,O;if(se!=Y)O=se>Y?1:-1;else for(T=O=0;Tre[T]?1:-1;break}return O}function L(oe,re,se,Y){for(var T=0;se--;)oe[se]-=T,T=oe[se]1;oe.splice(0,1));}return function(oe,re,se,Y,T){var O,W,ie,ue,we,_e,Z,le,fe,pe,Ce,Me,Ee,ne,me,ye,Ie,he=oe.s==re.s?1:-1,ve=oe.c,Q=re.c;if(!ve||!ve[0]||!Q||!Q[0])return new D(!oe.s||!re.s||(ve?Q&&ve[0]==Q[0]:!Q)?NaN:ve&&ve[0]==0||!Q?he*0:he/0);for(le=new D(he),fe=le.c=[],W=oe.e-re.e,he=se+W+1,T||(T=c,W=I(oe.e/m)-I(re.e/m),he=he/m|0),ie=0;Q[ie]==(ve[ie]||0);ie++);if(Q[ie]>(ve[ie]||0)&&W--,he<0)fe.push(1),ue=!0;else{for(ne=ve.length,ye=Q.length,ie=0,he+=2,we=i(T/(Q[0]+1)),we>1&&(Q=z(Q,we,T),ve=z(ve,we,T),ye=Q.length,ne=ve.length),Ee=ye,pe=ve.slice(0,ye),Ce=pe.length;Ce=T/2&&me++;do{if(we=0,O=k(Q,pe,ye,Ce),O<0){if(Me=pe[0],ye!=Ce&&(Me=Me*T+(pe[1]||0)),we=i(Me/me),we>1)for(we>=T&&(we=T-1),_e=z(Q,we,T),Z=_e.length,Ce=pe.length;k(_e,pe,Z,Ce)==1;)we--,L(_e,ye=10;he/=10,ie++);H(le,se+(le.e=ie+W*m-1)+1,Y,ue)}else le.e=W,le.r=+ue;return le}}();function C(z,k,L,oe){var re,se,Y,T,O;if(L==null?L=d:A(L,0,8),!z.c)return z.toString();if(re=z.c[0],Y=z.e,k==null)O=B(z.c),O=oe==1||oe==2&&(Y<=o||Y>=u)?V(O,Y):j(O,Y,"0");else if(z=H(new D(z),k,L),se=z.e,O=B(z.c),T=O.length,oe==1||oe==2&&(k<=se||se<=o)){for(;TT){if(--k>0)for(O+=".";k--;O+="0");}else if(k+=se-T,k>0)for(se+1==T&&(O+=".");k--;O+="0");return z.s<0&&re?"-"+O:O}function U(z,k){for(var L,oe,re=1,se=new D(z[0]);re=10;re/=10,oe++);return(L=oe+L*m-1)>y?z.c=z.e=null:L=10;T/=10,re++);if(se=k-re,se<0)se+=m,Y=k,O=ue[W=0],ie=i(O/we[re-Y-1]%10);else if(W=a((se+1)/m),W>=ue.length)if(oe){for(;ue.length<=W;ue.push(0));O=ie=0,re=1,se%=m,Y=se-m+1}else break e;else{for(O=T=ue[W],re=1;T>=10;T/=10,re++);se%=m,Y=se-m+re,ie=Y<0?0:i(O/we[re-Y-1]%10)}if(oe=oe||k<0||ue[W+1]!=null||(Y<0?O:O%we[re-Y-1]),oe=L<4?(ie||oe)&&(L==0||L==(z.s<0?3:2)):ie>5||ie==5&&(L==4||oe||L==6&&(se>0?Y>0?O/we[re-Y]:0:ue[W-1])%10&1||L==(z.s<0?8:7)),k<1||!ue[0])return ue.length=0,oe?(k-=z.e+1,ue[0]=we[(m-k%m)%m],z.e=-k||0):ue[0]=z.e=0,z;if(se==0?(ue.length=W,T=1,W--):(ue.length=W+1,T=we[m-se],ue[W]=Y>0?i(O/we[re-Y]%we[Y])*T:0),oe)for(;;)if(W==0){for(se=1,Y=ue[0];Y>=10;Y/=10,se++);for(Y=ue[0]+=T,T=1;Y>=10;Y/=10,T++);se!=T&&(z.e++,ue[0]==c&&(ue[0]=1));break}else{if(ue[W]+=T,ue[W]!=c)break;ue[W--]=0,T=1}for(se=ue.length;ue[--se]===0;ue.pop());}z.e>y?z.c=z.e=null:z.e=u?V(k,L):j(k,L,"0"),z.s<0?"-"+k:k)}return ee.absoluteValue=ee.abs=function(){var z=new D(this);return z.s<0&&(z.s=1),z},ee.comparedTo=function(z,k){return R(this,new D(z,k))},ee.decimalPlaces=ee.dp=function(z,k){var L,oe,re,se=this;if(z!=null)return A(z,0,M),k==null?k=d:A(k,0,8),H(new D(se),z+se.e+1,k);if(!(L=se.c))return null;if(oe=((re=L.length-1)-I(this.e/m))*m,re=L[re])for(;re%10==0;re/=10,oe--);return oe<0&&(oe=0),oe},ee.dividedBy=ee.div=function(z,k){return K(this,new D(z,k),E,d)},ee.dividedToIntegerBy=ee.idiv=function(z,k){return K(this,new D(z,k),0,1)},ee.exponentiatedBy=ee.pow=function(z,k){var L,oe,re,se,Y,T,O,W,ie,ue=this;if(z=new D(z),z.c&&!z.isInteger())throw Error(f+"Exponent not an integer: "+X(z));if(k!=null&&(k=new D(k)),T=z.e>14,!ue.c||!ue.c[0]||ue.c[0]==1&&!ue.e&&ue.c.length==1||!z.c||!z.c[0])return ie=new D(Math.pow(+X(ue),T?z.s*(2-F(z)):+X(z))),k?ie.mod(k):ie;if(O=z.s<0,k){if(k.c?!k.c[0]:!k.s)return new D(NaN);oe=!O&&ue.isInteger()&&k.isInteger(),oe&&(ue=ue.mod(k))}else{if(z.e>9&&(ue.e>0||ue.e<-1||(ue.e==0?ue.c[0]>1||T&&ue.c[1]>=24e7:ue.c[0]<8e13||T&&ue.c[0]<=9999975e7)))return se=ue.s<0&&F(z)?-0:0,ue.e>-1&&(se=1/se),new D(O?1/se:se);v&&(se=a(v/m+2))}for(T?(L=new D(.5),O&&(z.s=1),W=F(z)):(re=Math.abs(+X(z)),W=re%2),ie=new D(G);;){if(W){if(ie=ie.times(ue),!ie.c)break;se?ie.c.length>se&&(ie.c.length=se):oe&&(ie=ie.mod(k))}if(re){if(re=i(re/2),re===0)break;W=re%2}else if(z=z.times(L),H(z,z.e+1,1),z.e>14)W=F(z);else{if(re=+X(z),re===0)break;W=re%2}ue=ue.times(ue),se?ue.c&&ue.c.length>se&&(ue.c.length=se):oe&&(ue=ue.mod(k))}return oe?ie:(O&&(ie=G.div(ie)),k?ie.mod(k):se?H(ie,v,d,Y):ie)},ee.integerValue=function(z){var k=new D(this);return z==null?z=d:A(z,0,8),H(k,k.e+1,z)},ee.isEqualTo=ee.eq=function(z,k){return R(this,new D(z,k))===0},ee.isFinite=function(){return!!this.c},ee.isGreaterThan=ee.gt=function(z,k){return R(this,new D(z,k))>0},ee.isGreaterThanOrEqualTo=ee.gte=function(z,k){return(k=R(this,new D(z,k)))===1||k===0},ee.isInteger=function(){return!!this.c&&I(this.e/m)>this.c.length-2},ee.isLessThan=ee.lt=function(z,k){return R(this,new D(z,k))<0},ee.isLessThanOrEqualTo=ee.lte=function(z,k){return(k=R(this,new D(z,k)))===-1||k===0},ee.isNaN=function(){return!this.s},ee.isNegative=function(){return this.s<0},ee.isPositive=function(){return this.s>0},ee.isZero=function(){return!!this.c&&this.c[0]==0},ee.minus=function(z,k){var L,oe,re,se,Y=this,T=Y.s;if(z=new D(z,k),k=z.s,!T||!k)return new D(NaN);if(T!=k)return z.s=-k,Y.plus(z);var O=Y.e/m,W=z.e/m,ie=Y.c,ue=z.c;if(!O||!W){if(!ie||!ue)return ie?(z.s=-k,z):new D(ue?Y:NaN);if(!ie[0]||!ue[0])return ue[0]?(z.s=-k,z):new D(ie[0]?Y:d==3?-0:0)}if(O=I(O),W=I(W),ie=ie.slice(),T=O-W){for((se=T<0)?(T=-T,re=ie):(W=O,re=ue),re.reverse(),k=T;k--;re.push(0));re.reverse()}else for(oe=(se=(T=ie.length)<(k=ue.length))?T:k,T=k=0;k0)for(;k--;ie[L++]=0);for(k=c-1;oe>T;){if(ie[--oe]=0;){for(L=0,we=Me[re]%fe,_e=Me[re]/fe|0,Y=O,se=re+Y;se>re;)W=Ce[--Y]%fe,ie=Ce[Y]/fe|0,T=_e*W+ie*we,W=we*W+T%fe*fe+Z[se]+L,L=(W/le|0)+(T/fe|0)+_e*ie,Z[se--]=W%le;Z[se]=L}return L?++oe:Z.splice(0,1),$(z,Z,oe)},ee.negated=function(){var z=new D(this);return z.s=-z.s||null,z},ee.plus=function(z,k){var L,oe=this,re=oe.s;if(z=new D(z,k),k=z.s,!re||!k)return new D(NaN);if(re!=k)return z.s=-k,oe.minus(z);var se=oe.e/m,Y=z.e/m,T=oe.c,O=z.c;if(!se||!Y){if(!T||!O)return new D(re/0);if(!T[0]||!O[0])return O[0]?z:new D(T[0]?oe:re*0)}if(se=I(se),Y=I(Y),T=T.slice(),re=se-Y){for(re>0?(Y=se,L=O):(re=-re,L=T),L.reverse();re--;L.push(0));L.reverse()}for(re=T.length,k=O.length,re-k<0&&(L=O,O=T,T=L,k=re),re=0;k;)re=(T[--k]=T[k]+O[k]+re)/c|0,T[k]=c===T[k]?0:T[k]%c;return re&&(T=[re].concat(T),++Y),$(z,T,Y)},ee.precision=ee.sd=function(z,k){var L,oe,re,se=this;if(z!=null&&z!==!!z)return A(z,1,M),k==null?k=d:A(k,0,8),H(new D(se),z,k);if(!(L=se.c))return null;if(re=L.length-1,oe=re*m+1,re=L[re]){for(;re%10==0;re/=10,oe--);for(re=L[0];re>=10;re/=10,oe++);}return z&&se.e+1>oe&&(oe=se.e+1),oe},ee.shiftedBy=function(z){return A(z,-g,g),this.times("1e"+z)},ee.squareRoot=ee.sqrt=function(){var z,k,L,oe,re,se=this,Y=se.c,T=se.s,O=se.e,W=E+4,ie=new D("0.5");if(T!==1||!Y||!Y[0])return new D(!T||T<0&&(!Y||Y[0])?NaN:Y?se:1/0);if(T=Math.sqrt(+X(se)),T==0||T==1/0?(k=B(Y),(k.length+O)%2==0&&(k+="0"),T=Math.sqrt(+k),O=I((O+1)/2)-(O<0||O%2),T==1/0?k="5e"+O:(k=T.toExponential(),k=k.slice(0,k.indexOf("e")+1)+O),L=new D(k)):L=new D(T+""),L.c[0]){for(O=L.e,T=O+W,T<3&&(T=0);;)if(re=L,L=ie.times(re.plus(K(se,re,W,1))),B(re.c).slice(0,T)===(k=B(L.c)).slice(0,T))if(L.e0&&Z>0){for(se=Z%T||T,ie=_e.substr(0,se);se0&&(ie+=W+_e.slice(se)),we&&(ie="-"+ie)}oe=ue?ie+(L.decimalSeparator||"")+((O=+L.fractionGroupSize)?ue.replace(new RegExp("\\d{"+O+"}\\B","g"),"$&"+(L.fractionGroupSeparator||"")):ue):ie}return(L.prefix||"")+oe+(L.suffix||"")},ee.toFraction=function(z){var k,L,oe,re,se,Y,T,O,W,ie,ue,we,_e=this,Z=_e.c;if(z!=null&&(T=new D(z),!T.isInteger()&&(T.c||T.s!==1)||T.lt(G)))throw Error(f+"Argument "+(T.isInteger()?"out of range: ":"not an integer: ")+X(T));if(!Z)return new D(_e);for(k=new D(G),W=L=new D(G),oe=O=new D(G),we=B(Z),se=k.e=we.length-_e.e-1,k.c[0]=_[(Y=se%m)<0?m+Y:Y],z=!z||T.comparedTo(k)>0?se>0?k:W:T,Y=y,y=1/0,T=new D(we),O.c[0]=0;ie=K(T,k,0,1),re=L.plus(ie.times(oe)),re.comparedTo(z)!=1;)L=oe,oe=re,W=O.plus(ie.times(re=W)),O=re,k=T.minus(ie.times(re=k)),T=re;return re=K(z.minus(L),oe,0,1),O=O.plus(re.times(W)),L=L.plus(re.times(oe)),O.s=W.s=_e.s,se=se*2,ue=K(W,oe,se,d).minus(_e).abs().comparedTo(K(O,L,se,d).minus(_e).abs())<1?[W,oe]:[O,L],y=Y,ue},ee.toNumber=function(){return+X(this)},ee.toPrecision=function(z,k){return z!=null&&A(z,1,M),C(this,z,k,2)},ee.toString=function(z){var k,L=this,oe=L.s,re=L.e;return re===null?oe?(k="Infinity",oe<0&&(k="-"+k)):k="NaN":(z==null?k=re<=o||re>=u?V(B(L.c),re):j(B(L.c),re,"0"):z===10&&b?(L=H(new D(L),E+re+1,d),k=j(B(L.c),L.e,"0")):(A(z,2,s.length,"Base"),k=J(j(B(L.c),re,"0"),10,z,oe,!0)),oe<0&&L.c[0]&&(k="-"+k)),k},ee.valueOf=ee.toJSON=function(){return X(this)},ee._isBigNumber=!0,N!=null&&D.set(N),D}function I(N){var K=N|0;return N>0||N===K?K:K-1}function B(N){for(var K,J,te=1,ee=N.length,G=N[0]+"";teu^J?1:-1;for(d=(o=ee.length)<(u=G.length)?o:u,E=0;EG[E]^J?1:-1;return o==u?0:o>u^J?1:-1}function A(N,K,J,te){if(NJ||N!==i(N))throw Error(f+(te||"Argument")+(typeof N=="number"?NJ?" out of range: ":" not an integer: ":" not a primitive number: ")+String(N))}function F(N){var K=N.c.length-1;return I(N.e/m)==K&&N.c[K]%2!=0}function V(N,K){return(N.length>1?N.charAt(0)+"."+N.slice(1):N)+(K<0?"e":"e+")+K}function j(N,K,J){var te,ee;if(K<0){for(ee=J+".";++K;ee+=J);N=ee+N}else if(te=N.length,++K>te){for(ee=J,K-=te;--K;ee+=J);N+=ee}else K{let n=vV.BigNumber.clone({DECIMAL_PLACES:r});return new n(t)}}winstonToAr(t,{formatted:r=!1,decimals:n=12,trim:a=!0}={}){let i=this.stringToBigNum(t,n).shiftedBy(-12);return r?i.toFormat(n):i.toFixed(n)}arToWinston(t,{formatted:r=!1}={}){let n=this.stringToBigNum(t).shiftedBy(12);return r?n.toFormat():n.toFixed(0)}compare(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.comparedTo(a)}isEqual(t,r){return this.compare(t,r)===0}isLessThan(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.isLessThan(a)}isGreaterThan(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.isGreaterThan(a)}add(t,r){let n=this.stringToBigNum(t);return this.stringToBigNum(r),n.plus(r).toFixed(0)}sub(t,r){let n=this.stringToBigNum(t);return this.stringToBigNum(r),n.minus(r).toFixed(0)}stringToBigNum(t,r=12){return this.BigNum(t,r)}};g7.default=gV;var y7={},m7={exports:{}},mA=function(t,r){return function(){for(var a=new Array(arguments.length),i=0;i"u"}function mV(e){return e!==null&&!X1(e)&&e.constructor!==null&&!X1(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var bA=Pf("ArrayBuffer");function bV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bA(e.buffer),t}function xV(e){return typeof e=="string"}function wV(e){return typeof e=="number"}function xA(e){return e!==null&&typeof e=="object"}function Jc(e){if(x7(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var _V=Pf("Date"),SV=Pf("File"),EV=Pf("Blob"),CV=Pf("FileList");function _7(e){return b7.call(e)==="[object Function]"}function MV(e){return xA(e)&&_7(e.pipe)}function AV(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||b7.call(e)===t||_7(e.toString)&&e.toString()===t)}var RV=Pf("URLSearchParams");function TV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function PV(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function S7(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),w7(e))for(var r=0,n=e.length;r0;)i=n[a],f[i]||(t[i]=e[i],f[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function LV(e,t,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r}function NV(e){if(!e)return null;var t=e.length;if(X1(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r}var DV=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Ur={isArray:w7,isArrayBuffer:bA,isBuffer:mV,isFormData:AV,isArrayBufferView:bV,isString:xV,isNumber:wV,isObject:xA,isPlainObject:Jc,isUndefined:X1,isDate:_V,isFile:SV,isBlob:EV,isFunction:_7,isStream:MV,isURLSearchParams:RV,isStandardBrowserEnv:PV,forEach:S7,merge:B6,extend:OV,trim:TV,stripBOM:kV,inherits:IV,toFlatObject:BV,kindOf:x7,kindOfTest:Pf,endsWith:LV,toArray:NV,isTypedArray:DV,isFileList:CV},Ff=Ur;function nb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var wA=function(t,r,n){if(!r)return t;var a;if(n)a=n(r);else if(Ff.isURLSearchParams(r))a=r.toString();else{var i=[];Ff.forEach(r,function(c,m){c===null||typeof c>"u"||(Ff.isArray(c)?m=m+"[]":c=[c],Ff.forEach(c,function(_){Ff.isDate(_)?_=_.toISOString():Ff.isObject(_)&&(_=JSON.stringify(_)),i.push(nb(m)+"="+nb(_))}))}),a=i.join("&")}if(a){var f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t},FV=Ur;function _d(){this.handlers=[]}_d.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};_d.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};_d.prototype.forEach=function(t){FV.forEach(this.handlers,function(n){n!==null&&t(n)})};var UV=_d,jV=Ur,qV=function(t,r){jV.forEach(t,function(a,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=a,delete t[i])})},_A=Ur;function Xs(e,t,r,n,a){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}_A.inherits(Xs,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var SA=Xs.prototype,EA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){EA[e]={value:e}});Object.defineProperties(Xs,EA);Object.defineProperty(SA,"isAxiosError",{value:!0});Xs.from=function(e,t,r,n,a,i){var f=Object.create(SA);return _A.toFlatObject(e,f,function(c){return c!==Error.prototype}),Xs.call(f,e.message,t,r,n,a),f.name=e.name,i&&Object.assign(f,i),f};var g0=Xs,CA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yi=Ur;function zV(e,t){t=t||new FormData;var r=[];function n(i){return i===null?"":yi.isDate(i)?i.toISOString():yi.isArrayBuffer(i)||yi.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Te.Buffer.from(i):i}function a(i,f){if(yi.isPlainObject(i)||yi.isArray(i)){if(r.indexOf(i)!==-1)throw Error("Circular reference detected in "+f);r.push(i),yi.forEach(i,function(c,m){if(!yi.isUndefined(c)){var g=f?f+"."+m:m,_;if(c&&!f&&typeof c=="object"){if(yi.endsWith(m,"{}"))c=JSON.stringify(c);else if(yi.endsWith(m,"[]")&&(_=yi.toArray(c))){_.forEach(function(S){!yi.isUndefined(S)&&t.append(g,n(S))});return}}a(c,g)}}),r.pop()}else t.append(f,n(i))}return a(e),t}var MA=zV,sp,ib;function $V(){if(ib)return sp;ib=1;var e=g0;return sp=function(r,n,a){var i=a.config.validateStatus;!a.status||!i||i(a.status)?r(a):n(new e("Request failed with status code "+a.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))},sp}var up,ab;function HV(){if(ab)return up;ab=1;var e=Ur;return up=e.isStandardBrowserEnv()?function(){return{write:function(n,a,i,f,l,c){var m=[];m.push(n+"="+encodeURIComponent(a)),e.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),e.isString(f)&&m.push("path="+f),e.isString(l)&&m.push("domain="+l),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read:function(n){var a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),up}var KV=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},GV=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t},WV=KV,VV=GV,AA=function(t,r){return t&&!WV(r)?VV(t,r):r},lp,ob;function ZV(){if(ob)return lp;ob=1;var e=Ur,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return lp=function(n){var a={},i,f,l;return n&&e.forEach(n.split(` +`),function(m){if(l=m.indexOf(":"),i=e.trim(m.substr(0,l)).toLowerCase(),f=e.trim(m.substr(l+1)),i){if(a[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?a[i]=(a[i]?a[i]:[]).concat([f]):a[i]=a[i]?a[i]+", "+f:f}}),a},lp}var cp,fb;function XV(){if(fb)return cp;fb=1;var e=Ur;return cp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),a;function i(f){var l=f;return r&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=i(window.location.href),function(l){var c=e.isString(l)?i(l):l;return c.protocol===a.protocol&&c.host===a.host}}():function(){return function(){return!0}}(),cp}var hp,sb;function Sd(){if(sb)return hp;sb=1;var e=g0,t=Ur;function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),hp=r,hp}var dp,ub;function YV(){return ub||(ub=1,dp=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),dp}var pp,lb;function cb(){if(lb)return pp;lb=1;var e=Ur,t=$V(),r=HV(),n=wA,a=AA,i=ZV(),f=XV(),l=CA,c=g0,m=Sd(),g=YV();return pp=function(S){return new Promise(function(P,I){var B=S.data,R=S.headers,A=S.responseType,F;function V(){S.cancelToken&&S.cancelToken.unsubscribe(F),S.signal&&S.signal.removeEventListener("abort",F)}e.isFormData(B)&&e.isStandardBrowserEnv()&&delete R["Content-Type"];var j=new XMLHttpRequest;if(S.auth){var N=S.auth.username||"",K=S.auth.password?unescape(encodeURIComponent(S.auth.password)):"";R.Authorization="Basic "+btoa(N+":"+K)}var J=a(S.baseURL,S.url);j.open(S.method.toUpperCase(),n(J,S.params,S.paramsSerializer),!0),j.timeout=S.timeout;function te(){if(j){var E="getAllResponseHeaders"in j?i(j.getAllResponseHeaders()):null,d=!A||A==="text"||A==="json"?j.responseText:j.response,o={data:d,status:j.status,statusText:j.statusText,headers:E,config:S,request:j};t(function(p){P(p),V()},function(p){I(p),V()},o),j=null}}if("onloadend"in j?j.onloadend=te:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(te)},j.onabort=function(){j&&(I(new c("Request aborted",c.ECONNABORTED,S,j)),j=null)},j.onerror=function(){I(new c("Network Error",c.ERR_NETWORK,S,j,j)),j=null},j.ontimeout=function(){var d=S.timeout?"timeout of "+S.timeout+"ms exceeded":"timeout exceeded",o=S.transitional||l;S.timeoutErrorMessage&&(d=S.timeoutErrorMessage),I(new c(d,o.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,S,j)),j=null},e.isStandardBrowserEnv()){var ee=(S.withCredentials||f(J))&&S.xsrfCookieName?r.read(S.xsrfCookieName):void 0;ee&&(R[S.xsrfHeaderName]=ee)}"setRequestHeader"in j&&e.forEach(R,function(d,o){typeof B>"u"&&o.toLowerCase()==="content-type"?delete R[o]:j.setRequestHeader(o,d)}),e.isUndefined(S.withCredentials)||(j.withCredentials=!!S.withCredentials),A&&A!=="json"&&(j.responseType=S.responseType),typeof S.onDownloadProgress=="function"&&j.addEventListener("progress",S.onDownloadProgress),typeof S.onUploadProgress=="function"&&j.upload&&j.upload.addEventListener("progress",S.onUploadProgress),(S.cancelToken||S.signal)&&(F=function(E){j&&(I(!E||E&&E.type?new m:E),j.abort(),j=null)},S.cancelToken&&S.cancelToken.subscribe(F),S.signal&&(S.signal.aborted?F():S.signal.addEventListener("abort",F))),B||(B=null);var G=g(J);if(G&&["http","https","file"].indexOf(G)===-1){I(new c("Unsupported protocol "+G+":",c.ERR_BAD_REQUEST,S));return}j.send(B)})},pp}var vp,hb;function JV(){return hb||(hb=1,vp=null),vp}var _r=Ur,db=qV,pb=g0,QV=CA,eZ=MA,tZ={"Content-Type":"application/x-www-form-urlencoded"};function vb(e,t){!_r.isUndefined(e)&&_r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function rZ(){var e;return(typeof XMLHttpRequest<"u"||typeof He<"u"&&Object.prototype.toString.call(He)==="[object process]")&&(e=cb()),e}function nZ(e,t,r){if(_r.isString(e))try{return(t||JSON.parse)(e),_r.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Ed={transitional:QV,adapter:rZ(),transformRequest:[function(t,r){if(db(r,"Accept"),db(r,"Content-Type"),_r.isFormData(t)||_r.isArrayBuffer(t)||_r.isBuffer(t)||_r.isStream(t)||_r.isFile(t)||_r.isBlob(t))return t;if(_r.isArrayBufferView(t))return t.buffer;if(_r.isURLSearchParams(t))return vb(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n=_r.isObject(t),a=r&&r["Content-Type"],i;if((i=_r.isFileList(t))||n&&a==="multipart/form-data"){var f=this.env&&this.env.FormData;return eZ(i?{"files[]":t}:t,f&&new f)}else if(n||a==="application/json")return vb(r,"application/json"),nZ(t);return t}],transformResponse:[function(t){var r=this.transitional||Ed.transitional,n=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&_r.isString(t)&&t.length)try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?pb.from(f,pb.ERR_BAD_RESPONSE,this,null,this.response):f}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:JV()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_r.forEach(["delete","get","head"],function(t){Ed.headers[t]={}});_r.forEach(["post","put","patch"],function(t){Ed.headers[t]=_r.merge(tZ)});var E7=Ed,iZ=Ur,aZ=E7,oZ=function(t,r,n){var a=this||aZ;return iZ.forEach(n,function(f){t=f.call(a,t,r)}),t},gp,gb;function RA(){return gb||(gb=1,gp=function(t){return!!(t&&t.__CANCEL__)}),gp}var yb=Ur,yp=oZ,fZ=RA(),sZ=E7,uZ=Sd();function mp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uZ}var lZ=function(t){mp(t),t.headers=t.headers||{},t.data=yp.call(t,t.data,t.headers,t.transformRequest),t.headers=yb.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),yb.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||sZ.adapter;return r(t).then(function(a){return mp(t),a.data=yp.call(t,a.data,a.headers,t.transformResponse),a},function(a){return fZ(a)||(mp(t),a&&a.response&&(a.response.data=yp.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},Sn=Ur,TA=function(t,r){r=r||{};var n={};function a(g,_){return Sn.isPlainObject(g)&&Sn.isPlainObject(_)?Sn.merge(g,_):Sn.isPlainObject(_)?Sn.merge({},_):Sn.isArray(_)?_.slice():_}function i(g){if(Sn.isUndefined(r[g])){if(!Sn.isUndefined(t[g]))return a(void 0,t[g])}else return a(t[g],r[g])}function f(g){if(!Sn.isUndefined(r[g]))return a(void 0,r[g])}function l(g){if(Sn.isUndefined(r[g])){if(!Sn.isUndefined(t[g]))return a(void 0,t[g])}else return a(void 0,r[g])}function c(g){if(g in r)return a(t[g],r[g]);if(g in t)return a(void 0,t[g])}var m={url:f,method:f,data:f,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c};return Sn.forEach(Object.keys(t).concat(Object.keys(r)),function(_){var S=m[_]||i,M=S(_);Sn.isUndefined(M)&&S!==c||(n[_]=M)}),n},bp,mb;function PA(){return mb||(mb=1,bp={version:"0.27.2"}),bp}var cZ=PA().version,io=g0,C7={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){C7[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var bb={};C7.transitional=function(t,r,n){function a(i,f){return"[Axios v"+cZ+"] Transitional option '"+i+"'"+f+(n?". "+n:"")}return function(i,f,l){if(t===!1)throw new io(a(f," has been removed"+(r?" in "+r:"")),io.ERR_DEPRECATED);return r&&!bb[f]&&(bb[f]=!0,console.warn(a(f," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,f,l):!0}};function hZ(e,t,r){if(typeof e!="object")throw new io("options must be an object",io.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),a=n.length;a-- >0;){var i=n[a],f=t[i];if(f){var l=e[i],c=l===void 0||f(l,i,e);if(c!==!0)throw new io("option "+i+" must be "+c,io.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new io("Unknown option "+i,io.ERR_BAD_OPTION)}}var dZ={assertOptions:hZ,validators:C7},OA=Ur,pZ=wA,xb=UV,wb=lZ,Cd=TA,vZ=AA,kA=dZ,Uf=kA.validators;function Ys(e){this.defaults=e,this.interceptors={request:new xb,response:new xb}}Ys.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Cd(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&kA.assertOptions(n,{silentJSONParsing:Uf.transitional(Uf.boolean),forcedJSONParsing:Uf.transitional(Uf.boolean),clarifyTimeoutError:Uf.transitional(Uf.boolean)},!1);var a=[],i=!0;this.interceptors.request.forEach(function(M){typeof M.runWhen=="function"&&M.runWhen(r)===!1||(i=i&&M.synchronous,a.unshift(M.fulfilled,M.rejected))});var f=[];this.interceptors.response.forEach(function(M){f.push(M.fulfilled,M.rejected)});var l;if(!i){var c=[wb,void 0];for(Array.prototype.unshift.apply(c,a),c=c.concat(f),l=Promise.resolve(r);c.length;)l=l.then(c.shift(),c.shift());return l}for(var m=r;a.length;){var g=a.shift(),_=a.shift();try{m=g(m)}catch(S){_(S);break}}try{l=wb(m)}catch(S){return Promise.reject(S)}for(;f.length;)l=l.then(f.shift(),f.shift());return l};Ys.prototype.getUri=function(t){t=Cd(this.defaults,t);var r=vZ(t.baseURL,t.url);return pZ(r,t.params,t.paramsSerializer)};OA.forEach(["delete","get","head","options"],function(t){Ys.prototype[t]=function(r,n){return this.request(Cd(n||{},{method:t,url:r,data:(n||{}).data}))}});OA.forEach(["post","put","patch"],function(t){function r(n){return function(i,f,l){return this.request(Cd(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:f}))}}Ys.prototype[t]=r(),Ys.prototype[t+"Form"]=r(!0)});var gZ=Ys,xp,_b;function yZ(){if(_b)return xp;_b=1;var e=Sd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(f){n=f});var a=this;this.promise.then(function(i){if(a._listeners){var f,l=a._listeners.length;for(f=0;f(this.config.logger(`Requesting: ${n.baseURL}/${n.url}`),n)),r.interceptors.response.use(n=>(this.config.logger(`Response: ${n.config.url} - ${n.status}`),n))),r}};y7.default=MZ;var M7={};Object.defineProperty(M7,"__esModule",{value:!0});let AZ=class{constructor(t){this.api=t}getInfo(){return this.api.get("info").then(t=>t.data)}getPeers(){return this.api.get("peers").then(t=>t.data)}};M7.default=AZ;var yc={},Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.getError=void 0;let RZ=class extends Error{constructor(t,r={}){r.message?super(r.message):super(),this.type=t,this.response=r.response}getType(){return this.type}};Uo.default=RZ;function TZ(e){let t=e.data;if(typeof e.data=="string")try{t=JSON.parse(e.data)}catch{}if(e.data instanceof ArrayBuffer||e.data instanceof Uint8Array)try{t=JSON.parse(t.toString())}catch{}return t?t.error||t:e.statusText||"unknown"}Uo.getError=TZ;var jf={},mc={},Mb;function PZ(){if(Mb)return mc;Mb=1,Object.defineProperty(mc,"__esModule",{value:!0});const e=Y1();async function t(n){if(Array.isArray(n)){const f=e.default.utils.concatBuffers([e.default.utils.stringToBuffer("list"),e.default.utils.stringToBuffer(n.length.toString())]);return await r(n,await e.default.crypto.hash(f,"SHA-384"))}const a=e.default.utils.concatBuffers([e.default.utils.stringToBuffer("blob"),e.default.utils.stringToBuffer(n.byteLength.toString())]),i=e.default.utils.concatBuffers([await e.default.crypto.hash(a,"SHA-384"),await e.default.crypto.hash(n,"SHA-384")]);return await e.default.crypto.hash(i,"SHA-384")}mc.default=t;async function r(n,a){if(n.length<1)return a;const i=e.default.utils.concatBuffers([a,await t(n[0])]),f=await e.default.crypto.hash(i,"SHA-384");return await r(n.slice(1),f)}return mc}var Sp={},Ab;function BA(){return Ab||(Ab=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.debug=e.validatePath=e.arrayCompare=e.bufferToInt=e.intToBuffer=e.arrayFlatten=e.generateProofs=e.buildLayers=e.generateTransactionChunks=e.generateTree=e.computeRootHash=e.generateLeaves=e.chunkData=e.MIN_CHUNK_SIZE=e.MAX_CHUNK_SIZE=void 0;const t=Y1(),r=wt;e.MAX_CHUNK_SIZE=256*1024,e.MIN_CHUNK_SIZE=32*1024;const n=32,a=32;async function i(j){let N=[],K=j,J=0;for(;K.byteLength>=e.MAX_CHUNK_SIZE;){let te=e.MAX_CHUNK_SIZE,ee=K.byteLength-e.MAX_CHUNK_SIZE;ee>0&&ee({type:"leaf",id:await I(await Promise.all([I(N),I(B(J))])),dataHash:N,minByteRange:K,maxByteRange:J})))}e.generateLeaves=f;async function l(j){return(await c(j)).id}e.computeRootHash=l;async function c(j){return await g(await f(await i(j)))}e.generateTree=c;async function m(j){const N=await i(j),K=await f(N),J=await g(K),te=await _(J),ee=N.slice(-1)[0];return ee.maxByteRange-ee.minByteRange===0&&(N.splice(N.length-1,1),te.splice(te.length-1,1)),{data_root:J.id,chunks:N,proofs:te}}e.generateTransactionChunks=m;async function g(j,N=0){if(j.length<2)return j[0];const K=[];for(let J=0;J{Array.isArray(K)?N.push(...M(K)):N.push(K)}),N}e.arrayFlatten=M;async function P(j,N){return N?{type:"branch",id:await I([await I(j.id),await I(N.id),await I(B(j.maxByteRange))]),byteRange:j.maxByteRange,maxByteRange:N.maxByteRange,leftChild:j,rightChild:N}:j}async function I(j){return Array.isArray(j)&&(j=t.default.utils.concatBuffers(j)),new Uint8Array(await t.default.crypto.hash(j))}function B(j){const N=new Uint8Array(n);for(var K=N.length-1;K>=0;K--){var J=j%256;N[K]=J,j=(j-J)/256}return N}e.intToBuffer=B;function R(j){let N=0;for(var K=0;Kj.every((K,J)=>N[J]===K);e.arrayCompare=A;async function F(j,N,K,J,te){if(J<=0)return!1;if(N>=J)return F(j,0,J-1,J,te);if(N<0)return F(j,0,0,J,te);if(te.length==a+n){const p=te.slice(0,a),y=te.slice(p.length,p.length+n),x=await I([await I(p),await I(y)]);return(0,e.arrayCompare)(j,x)?{offset:J-1,leftBound:K,rightBound:J,chunkSize:J-K}:!1}const ee=te.slice(0,a),G=te.slice(ee.length,ee.length+a),E=te.slice(ee.length+G.length,ee.length+G.length+n),d=R(E),o=te.slice(ee.length+G.length+E.length),u=await I([await I(ee),await I(G),await I(E)]);return(0,e.arrayCompare)(j,u)?N ${JSON.stringify(E)}`;return V(G,d)}e.debug=V}(Sp)),Sp}var Rb;function A7(){if(Rb)return jf;Rb=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.Tag=void 0;const e=wt,t=PZ(),r=BA();class n{get(l,c){if(!Object.getOwnPropertyNames(this).includes(l))throw new Error(`Field "${l}" is not a property of the Arweave Transaction class.`);return this[l]instanceof Uint8Array?c&&c.decode&&c.string?e.bufferToString(this[l]):c&&c.decode&&!c.string?this[l]:e.bufferTob64Url(this[l]):c&&c.decode==!0?c&&c.string?e.b64UrlToString(this[l]):e.b64UrlToBuffer(this[l]):this[l]}}class a extends n{constructor(l,c,m=!1){super(),this.name=l,this.value=c}}jf.Tag=a;class i extends n{constructor(l={}){super(),this.format=2,this.id="",this.last_tx="",this.owner="",this.tags=[],this.target="",this.quantity="0",this.data_size="0",this.data=new Uint8Array,this.data_root="",this.reward="0",this.signature="",Object.assign(this,l),typeof this.data=="string"&&(this.data=e.b64UrlToBuffer(this.data)),l.tags&&(this.tags=l.tags.map(c=>new a(c.name,c.value)))}addTag(l,c){this.tags.push(new a(e.stringToB64Url(l),e.stringToB64Url(c)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:e.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(l){this.owner=l}setSignature({id:l,owner:c,reward:m,tags:g,signature:_}){this.id=l,this.owner=c,m&&(this.reward=m),g&&(this.tags=g),this.signature=_}async prepareChunks(l){!this.chunks&&l.byteLength>0&&(this.chunks=await(0,r.generateTransactionChunks)(l),this.data_root=e.bufferTob64Url(this.chunks.data_root)),!this.chunks&&l.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(l,c){if(!this.chunks)throw new Error("Chunks have not been prepared");const m=this.chunks.proofs[l],g=this.chunks.chunks[l];return{data_root:this.data_root,data_size:this.data_size,data_path:e.bufferTob64Url(m.proof),offset:m.offset.toString(),chunk:e.bufferTob64Url(c.slice(g.minByteRange,g.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let l=this.tags.reduce((m,g)=>e.concatBuffers([m,g.get("name",{decode:!0,string:!1}),g.get("value",{decode:!0,string:!1})]),new Uint8Array);return e.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),e.stringToBuffer(this.quantity),e.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),l]);case 2:this.data_root||await this.prepareChunks(this.data);const c=this.tags.map(m=>[m.get("name",{decode:!0,string:!1}),m.get("value",{decode:!0,string:!1})]);return await(0,t.default)([e.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),e.stringToBuffer(this.quantity),e.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),c,e.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}}return jf.default=i,jf}var F0={},Tb;function OZ(){if(Tb)return F0;Tb=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.TransactionUploader=void 0;const e=A7(),t=wt,r=Uo,n=BA(),a=1,i=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],f=1e3*40;class l{get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}constructor(m,g){if(this.api=m,this.chunkIndex=0,this.txPosted=!1,this.lastRequestTimeEnd=0,this.totalErrors=0,this.lastResponseStatus=0,this.lastResponseError="",!g.id)throw new Error("Transaction is not signed");if(!g.chunks)throw new Error("Transaction chunks not prepared");this.data=g.data,this.transaction=new e.default(Object.assign({},g,{data:new Uint8Array(0)}))}async uploadChunk(m){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let g=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+f-Date.now(),f);if(g>0&&(g=g-g*Math.random()*.3,await new Promise(P=>setTimeout(P,g))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}m&&(this.chunkIndex=m);const _=this.transaction.getChunk(m||this.chunkIndex,this.data);if(!await(0,n.validatePath)(this.transaction.chunks.data_root,parseInt(_.offset),0,parseInt(_.data_size),t.b64UrlToBuffer(_.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);const M=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(P=>(console.error(P.message),{status:-1,data:{error:P.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=M.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,r.getError)(M),i.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(m,g,_){if(!g||typeof g.chunkIndex!="number"||typeof g.transaction!="object")throw new Error("Serialized object does not match expected format.");var S=new e.default(g.transaction);S.chunks||await S.prepareChunks(_);const M=new l(m,S);if(M.chunkIndex=g.chunkIndex,M.lastRequestTimeEnd=g.lastRequestTimeEnd,M.lastResponseError=g.lastResponseError,M.lastResponseStatus=g.lastResponseStatus,M.txPosted=g.txPosted,M.data=_,M.transaction.data_root!==g.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return M}static async fromTransactionId(m,g){const _=await m.get(`tx/${g}`);if(_.status!==200)throw new Error(`Tx ${g} not found: ${_.status}`);const S=_.data;return S.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:S}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=a){this.transaction.data=this.data;const _=await this.api.post("tx",this.transaction).catch(S=>(console.error(S),{status:-1,data:{error:S.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=_.status,this.transaction.data=new Uint8Array(0),_.status>=200&&_.status<300){this.txPosted=!0,this.chunkIndex=a;return}throw this.lastResponseError=(0,r.getError)(_),new Error(`Unable to upload transaction: ${_.status}, ${this.lastResponseError}`)}const g=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=g.status,!(g.status>=200&&g.status<300))throw this.lastResponseError=(0,r.getError)(g),new Error(`Unable to upload transaction: ${g.status}, ${this.lastResponseError}`);this.txPosted=!0}}return F0.TransactionUploader=l,F0}var Pb;function kZ(){if(Pb)return yc;Pb=1;var e=Oe&&Oe.__await||function(l){return this instanceof e?(this.v=l,this):new e(l)},t=Oe&&Oe.__asyncGenerator||function(l,c,m){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=m.apply(l,c||[]),_,S=[];return _={},M("next"),M("throw"),M("return"),_[Symbol.asyncIterator]=function(){return this},_;function M(F){g[F]&&(_[F]=function(V){return new Promise(function(j,N){S.push([F,V,j,N])>1||P(F,V)})})}function P(F,V){try{I(g[F](V))}catch(j){A(S[0][3],j)}}function I(F){F.value instanceof e?Promise.resolve(F.value.v).then(B,R):A(S[0][2],F)}function B(F){P("next",F)}function R(F){P("throw",F)}function A(F,V){F(V),S.shift(),S.length&&P(S[0][0],S[0][1])}};Object.defineProperty(yc,"__esModule",{value:!0});const r=Uo,n=A7(),a=wt,i=OZ();class f{constructor(c,m,g){this.api=c,this.crypto=m,this.chunks=g}getTransactionAnchor(){return this.api.get("tx_anchor",{transformResponse:[]}).then(c=>c.data)}getPrice(c,m){let g=m?`price/${c}/${m}`:`price/${c}`;return this.api.get(g,{transformResponse:[function(_){return _}]}).then(_=>_.data)}async get(c){const m=await this.api.get(`tx/${c}`);if(m.status==200){const g=parseInt(m.data.data_size);if(m.data.format>=2&&g>0&&g<=1024*1024*12){const _=await this.getData(c);return new n.default(Object.assign(Object.assign({},m.data),{data:_}))}return new n.default(Object.assign(Object.assign({},m.data),{format:m.data.format||1}))}throw m.status==404?new r.default("TX_NOT_FOUND"):m.status==410?new r.default("TX_FAILED"):new r.default("TX_INVALID")}fromRaw(c){return new n.default(c)}async search(c,m){return this.api.post("arql",{op:"equals",expr1:c,expr2:m}).then(g=>g.data?g.data:[])}getStatus(c){return this.api.get(`tx/${c}/status`).then(m=>m.status==200?{status:200,confirmed:m.data}:{status:m.status,confirmed:null})}async getData(c,m){let g;try{g=await this.chunks.downloadChunkedData(c)}catch(_){console.error(`Error while trying to download chunked data for ${c}`),console.error(_)}if(!g){console.warn(`Falling back to gateway cache for ${c}`);try{g=(await this.api.get(`/${c}`)).data}catch(_){console.error(`Error while trying to download contiguous data from gateway cache for ${c}`),console.error(_)}}if(!g)throw new Error(`${c} was not found!`);return m&&m.decode&&!m.string?g:m&&m.decode&&m.string?a.bufferToString(g):a.bufferTob64Url(g)}async sign(c,m,g){if(!m&&typeof arweaveWallet!="object")throw new Error("A new Arweave transaction must provide the jwk parameter.");if(!m||m==="use_wallet"){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}const _=await arweaveWallet.sign(c,g);c.setSignature({id:_.id,owner:_.owner,reward:_.reward,tags:_.tags,signature:_.signature})}else{c.setOwner(m.n);let _=await c.getSignatureData(),S=await this.crypto.sign(m,_,g),M=await this.crypto.hash(S);c.setSignature({id:a.bufferTob64Url(M),owner:m.n,signature:a.bufferTob64Url(S)})}}async verify(c){const m=await c.getSignatureData(),g=c.get("signature",{decode:!0,string:!1}),_=a.bufferTob64Url(await this.crypto.hash(g));if(c.id!==_)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(c.owner,m,g)}async post(c){if(typeof c=="string"?c=new n.default(JSON.parse(c)):typeof c.readInt32BE=="function"?c=new n.default(JSON.parse(c.toString())):typeof c=="object"&&!(c instanceof n.default)&&(c=new n.default(c)),!(c instanceof n.default))throw new Error("Must be Transaction object");c.chunks||await c.prepareChunks(c.data);const m=await this.getUploader(c,c.data);try{for(;!m.isComplete;)await m.uploadChunk()}catch(g){if(m.lastResponseStatus>0)return{status:m.lastResponseStatus,statusText:m.lastResponseError,data:{error:m.lastResponseError}};throw g}return{status:200,statusText:"OK",data:{}}}async getUploader(c,m){let g;if(m instanceof ArrayBuffer&&(m=new Uint8Array(m)),c instanceof n.default){if(m||(m=c.data),!(m instanceof Uint8Array))throw new Error("Data format is invalid");c.chunks||await c.prepareChunks(m),g=new i.TransactionUploader(this.api,c),(!g.data||g.data.length===0)&&(g.data=m)}else{if(typeof c=="string"&&(c=await i.TransactionUploader.fromTransactionId(this.api,c)),!m||!(m instanceof Uint8Array))throw new Error("Must provide data when resuming upload");g=await i.TransactionUploader.fromSerialized(this.api,c,m)}return g}upload(c,m){return t(this,arguments,function*(){const _=yield e(this.getUploader(c,m));for(;!_.isComplete;)yield e(_.uploadChunk()),yield yield e(_);return yield e(_)})}}return yc.default=f,yc}var R7={};Object.defineProperty(R7,"__esModule",{value:!0});const Ob=wt;let IZ=class{constructor(t,r){this.api=t,this.crypto=r}getBalance(t){return this.api.get(`wallet/${t}/balance`,{transformResponse:[function(r){return r}]}).then(r=>r.data)}getLastTransactionID(t){return this.api.get(`wallet/${t}/last_tx`).then(r=>r.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(t){return!t||t==="use_wallet"?this.getAddress():this.getAddress(t)}async getAddress(t){if(!t||t==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(t.n)}async ownerToAddress(t){return Ob.bufferTob64Url(await this.crypto.hash(Ob.b64UrlToBuffer(t)))}};R7.default=IZ;var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.SiloResource=void 0;const kb=wt;let BZ=class{constructor(t,r,n){this.api=t,this.crypto=r,this.transactions=n}async get(t){if(!t)throw new Error("No Silo URI specified");const r=await this.parseUri(t),n=await this.transactions.search("Silo-Name",r.getAccessKey());if(n.length==0)throw new Error(`No data could be found for the Silo URI: ${t}`);const a=await this.transactions.get(n[0]);if(!a)throw new Error(`No data could be found for the Silo URI: ${t}`);const i=a.get("data",{decode:!0,string:!1});return this.crypto.decrypt(i,r.getEncryptionKey())}async readTransactionData(t,r){if(!r)throw new Error("No Silo URI specified");const n=await this.parseUri(r),a=t.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,n.getEncryptionKey())}async parseUri(t){const r=t.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!r)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");const n=r[1],a=Math.pow(2,parseInt(r[2])),i=await this.hash(kb.stringToBuffer(n),a),f=kb.bufferTob64(i.slice(0,15)),l=await this.hash(i.slice(16,31),1);return new LA(t,f,l)}async hash(t,r){let n=await this.crypto.hash(t);for(let a=0;aP.data||[])}}return gc.default=_,_.crypto=new r.default,_.utils=l,gc}(function(e){var t=Oe&&Oe.__createBinding||(Object.create?function(a,i,f,l){l===void 0&&(l=f);var c=Object.getOwnPropertyDescriptor(i,f);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[f]}}),Object.defineProperty(a,l,c)}:function(a,i,f,l){l===void 0&&(l=f),a[l]=i[f]}),r=Oe&&Oe.__exportStar||function(a,i){for(var f in a)f!=="default"&&!Object.prototype.hasOwnProperty.call(i,f)&&t(i,a,f)};Object.defineProperty(e,"__esModule",{value:!0});const n=Y1();n.default.init=function(a={}){function i(){const g={host:"arweave.net",port:443,protocol:"https"};if(typeof location!="object"||!location.protocol||!location.hostname)return g;const _=location.protocol.replace(":",""),S=location.hostname,M=location.port?parseInt(location.port):_=="https"?443:80;return["localhost","127.0.0.1"].includes(S)||_=="file"?g:{host:S,port:M,protocol:_}}const f=i(),l=a.protocol||f.protocol,c=a.host||f.host,m=a.port||f.port;return new n.default(Object.assign(Object.assign({},a),{host:c,protocol:l,port:m}))},typeof globalThis=="object"?globalThis.Arweave=n.default:typeof self=="object"&&(self.Arweave=n.default),r(Y1(),e),e.default=n.default})(vA);const FA=Nr(vA),FZ=fp.default?fp.default:fp;class UA extends FZ{getPublicKey(t){throw new Error("Unimplemented")}}let UZ;function vn(){return UZ??(UZ=new UA)}class jA{constructor(t,r){Pe(this,"_key");Pe(this,"pk");Pe(this,"signatureType",1);Pe(this,"ownerLength",Ut[1].pubLength);Pe(this,"signatureLength",Ut[1].sigLength);Pe(this,"_publicKey");this._key=t,this.pk=r,r||(this.pk=vn().getPublicKey(JSON.parse(t)))}get publicKey(){return this._publicKey}sign(t){return Na.createSign("sha256").update(t).sign({key:this._key,padding:Na.constants.RSA_PKCS1_PSS_PADDING})}static async verify(t,r,n){return await vn().verify(Te.Buffer.isBuffer(t)?Tt.encode(t):t,r,n)}}var Yu={},jZ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),qZ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zZ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&jZ(t,e,r);return qZ(t,e),t};Object.defineProperty(Yu,"__esModule",{value:!0});var qA=Yu.jwkTopem=Yu.pemTojwk=void 0;const ja=zZ(Tl);function $Z(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function O7(e){return $Z(Te.Buffer.from(e,"hex").toString("base64"))}var zA=ja.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),$A=ja.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),HZ=ja.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use($A),this.key("publicKey").bitstr())}),HA=ja.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),KZ=ja.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),KA=ja.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(HA),this.key("n").int(),this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(KZ))}),GZ=ja.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(HA),this.key("algorithm").use($A),this.key("privateKey").bitstr())});function GA(e,t){return t=t||{},Object.keys(t).forEach(function(r){e[r]=t[r]}),e}function k7(e){return e.length%2===1?"0"+e:e}function WA(e,t){var r=zA.decode(e,"der"),n=k7(r.e.toString(16)),a={kty:"RSA",n:Qa(r.n),e:O7(n)};return GA(a,t)}function VA(e,t){var r=KA.decode(e,"der"),n=k7(r.e.toString(16)),a={kty:"RSA",n:Qa(r.n),e:O7(n),d:Qa(r.d),p:Qa(r.p),q:Qa(r.q),dp:Qa(r.dp),dq:Qa(r.dq),qi:Qa(r.qi)};return GA(a,t)}function WZ(e,t){var r=HZ.decode(e,"der");return WA(r.publicKey.data,t)}function VZ(e,t){var r=GZ.decode(e,"der");return VA(r.privateKey.data,t)}function ZZ(e){var t=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(e);if(!t)return null;var r=!!t[1],n=t[2]==="PRIVATE";return n?r?VA:VZ:r?WA:WZ}function XZ(e){return{n:Va(e.n),e:Va(e.e),d:e.d&&Va(e.d),p:e.p&&Va(e.p),q:e.q&&Va(e.q),dp:e.dp&&Va(e.dp),dq:e.dq&&Va(e.dq),qi:e.qi&&Va(e.qi)}}function Qa(e){return O7(k7(e.toString(16)))}function YZ(e){return new ja.bignum(Te.Buffer.from(e,"base64"))}function Va(e){return/^[0-9]+$/.test(e)?new ja.bignum(e,10):YZ(e)}function JZ(e,t){var r=e.toString().split(/(\r\n|\r|\n)+/g);r=r.filter(function(a){return a.trim().length!==0});var n=ZZ(r[0]);return r=r.slice(1,-1).join(""),n(Te.Buffer.from(r.replace(/[^\w\d\+\/=]+/g,""),"base64"),t)}Yu.pemTojwk=JZ;function QZ(e){var t=XZ(e),r=!!t.d,n=r?"PRIVATE":"PUBLIC",a="-----BEGIN RSA "+n+` KEY----- `,i=` -----END RSA `+n+` KEY----- `,f=Te.Buffer.alloc(0);r?(t.version="two-prime",f=KA.encode(t,"der")):f=zA.encode(t,"der");var l=f.toString("base64").match(/.{1,64}/g).join(` -`);return a+l+i}qA=Yu.jwkTopem=QZ;class I7 extends jA{constructor(r){super(qA(r),r.n);Pe(this,"jwk");this.jwk=r}get publicKey(){if(!this.pk)throw new Error("ArweaveSigner - pk is undefined");return Tt.toBuffer(this.pk)}sign(r){return vn().sign(this.jwk,r)}static async verify(r,n,a){return await vn().verify(r,n,a)}}class ZA{constructor(t){Pe(this,"_publicKey");Pe(this,"ownerLength",Ut[2].pubLength);Pe(this,"signatureLength",Ut[2].sigLength);Pe(this,"signatureType",2);Pe(this,"pem");Pe(this,"provider");if(this.provider=t,!this.provider.publicKey)throw new Error("InjectedSolanaSigner - provider.publicKey is undefined");this._publicKey=this.provider.publicKey.toBuffer()}get publicKey(){return this._publicKey}async sign(t){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");return await this.provider.signMessage(t)}static async verify(t,r,n){let a=t;return typeof t=="string"&&(a=Tt.toBuffer(t)),wd(Te.Buffer.from(n),Te.Buffer.from(r),Te.Buffer.from(a))}}var XA={exports:{}};(function(e){(function(){var t="input is invalid type",r="finalize already called",n=typeof window=="object",a=n?window:{};a.JS_SHA3_NO_WINDOW&&(n=!1);var i=!n&&typeof self=="object",f=!a.JS_SHA3_NO_NODE_JS&&typeof He=="object"&&He.versions&&He.versions.node;f?a=Oe:i&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,c=!a.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",m="0123456789abcdef".split(""),g=[31,7936,2031616,520093696],_=[4,1024,262144,67108864],S=[1,256,65536,16777216],M=[6,1536,393216,100663296],P=[0,8,16,24],I=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],B=[224,256,384,512],R=[128,256],A=["hex","buffer","arrayBuffer","array","digest"],U={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(C){return Object.prototype.toString.call(C)==="[object Array]"}),c&&(a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(C){return typeof C=="object"&&C.buffer&&C.buffer.constructor===ArrayBuffer});for(var V=function(C,F,$){return function(H){return new s(C,F,C).update(H)[$]()}},j=function(C,F,$){return function(H,X){return new s(C,F,X).update(H)[$]()}},N=function(C,F,$){return function(H,X,z,k){return o["cshake"+C].update(H,X,z,k)[$]()}},K=function(C,F,$){return function(H,X,z,k){return o["kmac"+C].update(H,X,z,k)[$]()}},J=function(C,F,$,H){for(var X=0;X>5,this.byteCount=this.blockCount<<2,this.outputBlocks=$>>5,this.extraBytes=($&31)>>3;for(var H=0;H<50;++H)this.s[H]=0}s.prototype.update=function(C){if(this.finalized)throw new Error(r);var F,$=typeof C;if($!=="string"){if($==="object"){if(C===null)throw new Error(t);if(c&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!Array.isArray(C)&&(!c||!ArrayBuffer.isView(C)))throw new Error(t)}else throw new Error(t);F=!0}for(var H=this.blocks,X=this.byteCount,z=C.length,k=this.blockCount,L=0,oe=this.s,re,se;L>2]|=C[L]<>2]|=se<>2]|=(192|se>>6)<>2]|=(128|se&63)<=57344?(H[re>>2]|=(224|se>>12)<>2]|=(128|se>>6&63)<>2]|=(128|se&63)<>2]|=(240|se>>18)<>2]|=(128|se>>12&63)<>2]|=(128|se>>6&63)<>2]|=(128|se&63)<=X){for(this.start=re-X,this.block=H[k],re=0;re>8,$=C&255;$>0;)X.unshift($),C=C>>8,$=C&255,++H;return F?X.push(H):X.unshift(H),this.update(X),X.length},s.prototype.encodeString=function(C){var F,$=typeof C;if($!=="string"){if($==="object"){if(C===null)throw new Error(t);if(c&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!Array.isArray(C)&&(!c||!ArrayBuffer.isView(C)))throw new Error(t)}else throw new Error(t);F=!0}var H=0,X=C.length;if(F)H=X;else for(var z=0;z=57344?H+=3:(k=65536+((k&1023)<<10|C.charCodeAt(++z)&1023),H+=4)}return H+=this.encode(H*8),this.update(C),H},s.prototype.bytepad=function(C,F){for(var $=this.encode(F),H=0;H>2]|=this.padding[F&3],this.lastByteIndex===this.byteCount)for(C[0]=C[$],F=1;F<$+1;++F)C[F]=0;for(C[$-1]|=2147483648,F=0;F<$;++F)H[F]^=C[F];D(H)}},s.prototype.toString=s.prototype.hex=function(){this.finalize();for(var C=this.blockCount,F=this.s,$=this.outputBlocks,H=this.extraBytes,X=0,z=0,k="",L;z<$;){for(X=0;X>4&15]+m[L&15]+m[L>>12&15]+m[L>>8&15]+m[L>>20&15]+m[L>>16&15]+m[L>>28&15]+m[L>>24&15];z%C===0&&(D(F),X=0)}return H&&(L=F[X],k+=m[L>>4&15]+m[L&15],H>1&&(k+=m[L>>12&15]+m[L>>8&15]),H>2&&(k+=m[L>>20&15]+m[L>>16&15])),k},s.prototype.arrayBuffer=function(){this.finalize();var C=this.blockCount,F=this.s,$=this.outputBlocks,H=this.extraBytes,X=0,z=0,k=this.outputBits>>3,L;H?L=new ArrayBuffer($+1<<2):L=new ArrayBuffer(k);for(var oe=new Uint32Array(L);z<$;){for(X=0;X>8&255,k[L+2]=oe>>16&255,k[L+3]=oe>>24&255;z%C===0&&D(F)}return H&&(L=z<<2,oe=F[X],k[L]=oe&255,H>1&&(k[L+1]=oe>>8&255),H>2&&(k[L+2]=oe>>16&255)),k};function b(C,F,$){s.call(this,C,F,$)}b.prototype=new s,b.prototype.finalize=function(){return this.encode(this.outputBits,!0),s.prototype.finalize.call(this)};var D=function(C){var F,$,H,X,z,k,L,oe,re,se,Y,T,O,W,ie,ue,we,_e,Z,le,fe,pe,Ce,Me,Ee,ne,me,ye,Ie,he,ve,Q,xe,Ae,q,be,de,ae,ce,ge,Ue,Re,Se,Ve,je,ke,Ze,Ne,Be,et,$e,De,Qe,qe,Le,rt,ze,Ge,Et,Ct,Mt,At,Rt;for(H=0;H<48;H+=2)X=C[0]^C[10]^C[20]^C[30]^C[40],z=C[1]^C[11]^C[21]^C[31]^C[41],k=C[2]^C[12]^C[22]^C[32]^C[42],L=C[3]^C[13]^C[23]^C[33]^C[43],oe=C[4]^C[14]^C[24]^C[34]^C[44],re=C[5]^C[15]^C[25]^C[35]^C[45],se=C[6]^C[16]^C[26]^C[36]^C[46],Y=C[7]^C[17]^C[27]^C[37]^C[47],T=C[8]^C[18]^C[28]^C[38]^C[48],O=C[9]^C[19]^C[29]^C[39]^C[49],F=T^(k<<1|L>>>31),$=O^(L<<1|k>>>31),C[0]^=F,C[1]^=$,C[10]^=F,C[11]^=$,C[20]^=F,C[21]^=$,C[30]^=F,C[31]^=$,C[40]^=F,C[41]^=$,F=X^(oe<<1|re>>>31),$=z^(re<<1|oe>>>31),C[2]^=F,C[3]^=$,C[12]^=F,C[13]^=$,C[22]^=F,C[23]^=$,C[32]^=F,C[33]^=$,C[42]^=F,C[43]^=$,F=k^(se<<1|Y>>>31),$=L^(Y<<1|se>>>31),C[4]^=F,C[5]^=$,C[14]^=F,C[15]^=$,C[24]^=F,C[25]^=$,C[34]^=F,C[35]^=$,C[44]^=F,C[45]^=$,F=oe^(T<<1|O>>>31),$=re^(O<<1|T>>>31),C[6]^=F,C[7]^=$,C[16]^=F,C[17]^=$,C[26]^=F,C[27]^=$,C[36]^=F,C[37]^=$,C[46]^=F,C[47]^=$,F=se^(X<<1|z>>>31),$=Y^(z<<1|X>>>31),C[8]^=F,C[9]^=$,C[18]^=F,C[19]^=$,C[28]^=F,C[29]^=$,C[38]^=F,C[39]^=$,C[48]^=F,C[49]^=$,W=C[0],ie=C[1],ke=C[11]<<4|C[10]>>>28,Ze=C[10]<<4|C[11]>>>28,ye=C[20]<<3|C[21]>>>29,Ie=C[21]<<3|C[20]>>>29,Ct=C[31]<<9|C[30]>>>23,Mt=C[30]<<9|C[31]>>>23,Re=C[40]<<18|C[41]>>>14,Se=C[41]<<18|C[40]>>>14,Ae=C[2]<<1|C[3]>>>31,q=C[3]<<1|C[2]>>>31,ue=C[13]<<12|C[12]>>>20,we=C[12]<<12|C[13]>>>20,Ne=C[22]<<10|C[23]>>>22,Be=C[23]<<10|C[22]>>>22,he=C[33]<<13|C[32]>>>19,ve=C[32]<<13|C[33]>>>19,At=C[42]<<2|C[43]>>>30,Rt=C[43]<<2|C[42]>>>30,qe=C[5]<<30|C[4]>>>2,Le=C[4]<<30|C[5]>>>2,be=C[14]<<6|C[15]>>>26,de=C[15]<<6|C[14]>>>26,_e=C[25]<<11|C[24]>>>21,Z=C[24]<<11|C[25]>>>21,et=C[34]<<15|C[35]>>>17,$e=C[35]<<15|C[34]>>>17,Q=C[45]<<29|C[44]>>>3,xe=C[44]<<29|C[45]>>>3,Me=C[6]<<28|C[7]>>>4,Ee=C[7]<<28|C[6]>>>4,rt=C[17]<<23|C[16]>>>9,ze=C[16]<<23|C[17]>>>9,ae=C[26]<<25|C[27]>>>7,ce=C[27]<<25|C[26]>>>7,le=C[36]<<21|C[37]>>>11,fe=C[37]<<21|C[36]>>>11,De=C[47]<<24|C[46]>>>8,Qe=C[46]<<24|C[47]>>>8,Ve=C[8]<<27|C[9]>>>5,je=C[9]<<27|C[8]>>>5,ne=C[18]<<20|C[19]>>>12,me=C[19]<<20|C[18]>>>12,Ge=C[29]<<7|C[28]>>>25,Et=C[28]<<7|C[29]>>>25,ge=C[38]<<8|C[39]>>>24,Ue=C[39]<<8|C[38]>>>24,pe=C[48]<<14|C[49]>>>18,Ce=C[49]<<14|C[48]>>>18,C[0]=W^~ue&_e,C[1]=ie^~we&Z,C[10]=Me^~ne&ye,C[11]=Ee^~me&Ie,C[20]=Ae^~be&ae,C[21]=q^~de&ce,C[30]=Ve^~ke&Ne,C[31]=je^~Ze&Be,C[40]=qe^~rt&Ge,C[41]=Le^~ze&Et,C[2]=ue^~_e&le,C[3]=we^~Z&fe,C[12]=ne^~ye&he,C[13]=me^~Ie&ve,C[22]=be^~ae&ge,C[23]=de^~ce&Ue,C[32]=ke^~Ne&et,C[33]=Ze^~Be&$e,C[42]=rt^~Ge&Ct,C[43]=ze^~Et&Mt,C[4]=_e^~le&pe,C[5]=Z^~fe&Ce,C[14]=ye^~he&Q,C[15]=Ie^~ve&xe,C[24]=ae^~ge&Re,C[25]=ce^~Ue&Se,C[34]=Ne^~et&De,C[35]=Be^~$e&Qe,C[44]=Ge^~Ct&At,C[45]=Et^~Mt&Rt,C[6]=le^~pe&W,C[7]=fe^~Ce&ie,C[16]=he^~Q&Me,C[17]=ve^~xe&Ee,C[26]=ge^~Re&Ae,C[27]=Ue^~Se&q,C[36]=et^~De&Ve,C[37]=$e^~Qe&je,C[46]=Ct^~At&qe,C[47]=Mt^~Rt&Le,C[8]=pe^~W&ue,C[9]=Ce^~ie&we,C[18]=Q^~Me&ne,C[19]=xe^~Ee&me,C[28]=Re^~Ae&be,C[29]=Se^~q&de,C[38]=De^~Ve&ke,C[39]=Qe^~je&Ze,C[48]=At^~qe&rt,C[49]=Rt^~Le&ze,C[0]^=I[H],C[1]^=I[H+1]};if(l)e.exports=o;else for(p=0;p{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch{e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(e){return e.message}return null}const Fb=nX();var L6;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(L6||(L6={}));var _i;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(_i||(_i={}));const Ub="0123456789abcdef";class tt{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){const n=t.toLowerCase();e1[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(Db>e1[n])&&console.log.apply(console,r)}debug(...t){this._log(tt.levels.DEBUG,t)}info(...t){this._log(tt.levels.INFO,t)}warn(...t){this._log(tt.levels.WARNING,t)}makeError(t,r,n){if(Nb)return this.makeError("censored error",r,{});r||(r=tt.errors.UNKNOWN_ERROR),n||(n={});const a=[];Object.keys(n).forEach(c=>{const m=n[c];try{if(m instanceof Uint8Array){let g="";for(let _=0;_>4],g+=Ub[m[_]&15];a.push(c+"=Uint8Array(0x"+g+")")}else a.push(c+"="+JSON.stringify(m))}catch{a.push(c+"="+JSON.stringify(n[c].toString()))}}),a.push(`code=${r}`),a.push(`version=${this.version}`);const i=t;let f="";switch(r){case _i.NUMERIC_FAULT:{f="NUMERIC_FAULT";const c=t;switch(c){case"overflow":case"underflow":case"division-by-zero":f+="-"+c;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result";break}break}case _i.CALL_EXCEPTION:case _i.INSUFFICIENT_FUNDS:case _i.MISSING_NEW:case _i.NONCE_EXPIRED:case _i.REPLACEMENT_UNDERPRICED:case _i.TRANSACTION_REPLACED:case _i.UNPREDICTABLE_GAS_LIMIT:f=r;break}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),a.length&&(t+=" ("+a.join(", ")+")");const l=new Error(t);return l.reason=i,l.code=r,Object.keys(n).forEach(function(c){l[c]=n[c]}),l}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,tt.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,a){t||this.throwError(r,n,a)}assertArgument(t,r,n,a){t||this.throwArgumentError(r,n,a)}checkNormalize(t){Fb&&this.throwError("platform missing String.prototype.normalize",tt.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Fb})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,tt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,tt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",tr&&this.throwError("too many arguments"+n,tt.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",tt.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",tt.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",tt.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return Ep||(Ep=new tt(rX)),Ep}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",tt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Lb){if(!t)return;this.globalLogger().throwError("error censorship permanent",tt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Nb=!!t,Lb=!!r}static setLogLevel(t){const r=e1[t.toLowerCase()];if(r==null){tt.globalLogger().warn("invalid log level - "+t);return}Db=r}static from(t){return new tt(t)}}tt.errors=_i;tt.levels=L6;const iX="bytes/5.7.0",ir=new tt(iX);function YA(e){return!!e.toHexString}function _s(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return _s(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function B7(e){return an(e)&&!(e.length%2)||Md(e)}function jb(e){return typeof e=="number"&&e==e&&e%1===0}function Md(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!jb(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function Ye(e,t){if(t||(t={}),typeof e=="number"){ir.checkSafeUint53(e,"invalid arrayify value");const r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),_s(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),YA(e)&&(e=e.toHexString()),an(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":ir.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let a=0;aYe(a)),r=t.reduce((a,i)=>a+i.length,0),n=new Uint8Array(r);return t.reduce((a,i)=>(n.set(i,a),a+i.length),0),_s(n)}function _o(e){let t=Ye(e);if(t.length===0)return t;let r=0;for(;rt&&ir.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),_s(r)}function an(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}const Cp="0123456789abcdef";function nt(e,t){if(t||(t={}),typeof e=="number"){ir.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=Cp[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),YA(e))return e.toHexString();if(an(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":ir.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Md(e)){let r="0x";for(let n=0;n>4]+Cp[a&15]}return r}return ir.throwArgumentError("invalid hexlify value","value",e)}function JA(e){if(typeof e!="string")e=nt(e);else if(!an(e)||e.length%2)return null;return(e.length-2)/2}function Ju(e,t,r){return typeof e!="string"?e=nt(e):(!an(e)||e.length%2)&&ir.throwArgumentError("invalid hexData","value",e),t=2+2*t,r!=null?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function Ss(e){let t="0x";return e.forEach(r=>{t+=nt(r).substring(2)}),t}function Qn(e,t){for(typeof e!="string"?e=nt(e):an(e)||ir.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&ir.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function y0(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(B7(e)){let r=Ye(e);r.length===64?(t.v=27+(r[32]>>7),r[32]&=127,t.r=nt(r.slice(0,32)),t.s=nt(r.slice(32,64))):r.length===65?(t.r=nt(r.slice(0,32)),t.s=nt(r.slice(32,64)),t.v=r[64]):ir.throwArgumentError("invalid signature string","signature",e),t.v<27&&(t.v===0||t.v===1?t.v+=27:ir.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=nt(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,t._vs!=null){const a=aX(Ye(t._vs),32);t._vs=nt(a);const i=a[0]>=128?1:0;t.recoveryParam==null?t.recoveryParam=i:t.recoveryParam!==i&&ir.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),a[0]&=127;const f=nt(a);t.s==null?t.s=f:t.s!==f&&ir.throwArgumentError("signature v mismatch _vs","signature",e)}if(t.recoveryParam==null)t.v==null?ir.throwArgumentError("signature missing v and recoveryParam","signature",e):t.v===0||t.v===1?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(t.v==null)t.v=27+t.recoveryParam;else{const a=t.v===0||t.v===1?t.v:1-t.v%2;t.recoveryParam!==a&&ir.throwArgumentError("signature recoveryParam mismatch v","signature",e)}t.r==null||!an(t.r)?ir.throwArgumentError("signature missing or invalid r","signature",e):t.r=Qn(t.r,32),t.s==null||!an(t.s)?ir.throwArgumentError("signature missing or invalid s","signature",e):t.s=Qn(t.s,32);const r=Ye(t.s);r[0]>=128&&ir.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=nt(r);t._vs&&(an(t._vs)||ir.throwArgumentError("signature invalid _vs","signature",e),t._vs=Qn(t._vs,32)),t._vs==null?t._vs=n:t._vs!==n&&ir.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function qb(e){return e=y0(e),nt(Po([e.r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}function rn(e){return"0x"+tX.keccak_256(Ye(e))}var L7={exports:{}};L7.exports;(function(e){(function(t,r){function n(d,o){if(!d)throw new Error(o||"Assertion failed")}function a(d,o){d.super_=o;var u=function(){};u.prototype=o.prototype,d.prototype=new u,d.prototype.constructor=d}function i(d,o,u){if(i.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(d||0,o||10,u||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=Te.Buffer}catch{}i.isBN=function(o){return o instanceof i?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===i.wordSize&&Array.isArray(o.words)},i.max=function(o,u){return o.cmp(u)>0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),n(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[x]|=w<>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);else if(p==="le")for(y=0,x=0;y>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);return this._strip()};function l(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;n(!1,"Invalid character in "+d)}function c(d,o,u){var p=l(d,u);return u-1>=o&&(p|=l(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y=u;y-=2)v=c(o,u,y)<=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8;else{var h=o.length-u;for(y=h%2===0?u+1:u;y=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8}this._strip()};function m(d,o,u,p){for(var y=0,x=0,w=Math.min(d.length,u),v=o;v=49?x=h-49+10:h>=17?x=h-17+10:x=h,n(h>=0&&x1&&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")]=_}catch{i.prototype.inspect=_}else i.prototype.inspect=_;function _(){return(this.red?""}var S=["","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"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var y=0,x=0,w=0;w>>24-y&16777215,y+=2,y>=26&&(y-=26,w--),x!==0||w!==this.length-1?p=S[6-h.length]+h+p:p=h+p}for(x!==0&&(p=x.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var s=M[o],b=P[o];p="";var D=this.clone();for(D.negative=0;!D.isZero();){var C=D.modrn(b).toString(o);D=D.idivn(b),D.isZero()?p=C+p:p=S[s-C.length]+C+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},f&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(f,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var I=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var y=this.byteLength(),x=p||Math.max(1,y);n(y<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var w=I(o,x),v=u==="le"?"LE":"BE";return this["_toArrayLike"+v](w,y),w},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,y=0,x=0,w=0;x>8&255),p>16&255),w===6?(p>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p=0&&(o[p--]=v>>8&255),p>=0&&(o[p--]=v>>16&255),w===6?(p>=0&&(o[p--]=v>>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p>=0)for(o[p--]=y;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return u&8191||(p+=13,u>>>=13),u&127||(p+=7,u>>>=7),u&15||(p+=4,u>>>=4),u&3||(p+=2,u>>>=2),u&1||p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function B(d){for(var o=new Array(d.bitLength()),u=0;u>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;uo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;po.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var y=0;yo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){n(typeof o=="number"&&o>=0);var p=o/26|0,y=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<o.length?(p=this,y=o):(p=o,y=this);for(var x=0,w=0;w>>26;for(;x!==0&&w>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;wo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,x;p>0?(y=this,x=o):(y=o,x=this);for(var w=0,v=0;v>26,this.words[v]=u&67108863;for(;w!==0&&v>26,this.words[v]=u&67108863;if(w===0&&v>>26,D=h&67108863,C=Math.min(s,o.length-1),F=Math.max(0,s-d.length+1);F<=C;F++){var $=s-F|0;y=d.words[$]|0,x=o.words[F]|0,w=y*x+D,b+=w/67108864|0,D=w&67108863}u.words[s]=D|0,h=b|0}return h!==0?u.words[s]=h|0:u.length--,u._strip()}var A=function(o,u,p){var y=o.words,x=u.words,w=p.words,v=0,h,s,b,D=y[0]|0,C=D&8191,F=D>>>13,$=y[1]|0,H=$&8191,X=$>>>13,z=y[2]|0,k=z&8191,L=z>>>13,oe=y[3]|0,re=oe&8191,se=oe>>>13,Y=y[4]|0,T=Y&8191,O=Y>>>13,W=y[5]|0,ie=W&8191,ue=W>>>13,we=y[6]|0,_e=we&8191,Z=we>>>13,le=y[7]|0,fe=le&8191,pe=le>>>13,Ce=y[8]|0,Me=Ce&8191,Ee=Ce>>>13,ne=y[9]|0,me=ne&8191,ye=ne>>>13,Ie=x[0]|0,he=Ie&8191,ve=Ie>>>13,Q=x[1]|0,xe=Q&8191,Ae=Q>>>13,q=x[2]|0,be=q&8191,de=q>>>13,ae=x[3]|0,ce=ae&8191,ge=ae>>>13,Ue=x[4]|0,Re=Ue&8191,Se=Ue>>>13,Ve=x[5]|0,je=Ve&8191,ke=Ve>>>13,Ze=x[6]|0,Ne=Ze&8191,Be=Ze>>>13,et=x[7]|0,$e=et&8191,De=et>>>13,Qe=x[8]|0,qe=Qe&8191,Le=Qe>>>13,rt=x[9]|0,ze=rt&8191,Ge=rt>>>13;p.negative=o.negative^u.negative,p.length=19,h=Math.imul(C,he),s=Math.imul(C,ve),s=s+Math.imul(F,he)|0,b=Math.imul(F,ve);var Et=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(H,he),s=Math.imul(H,ve),s=s+Math.imul(X,he)|0,b=Math.imul(X,ve),h=h+Math.imul(C,xe)|0,s=s+Math.imul(C,Ae)|0,s=s+Math.imul(F,xe)|0,b=b+Math.imul(F,Ae)|0;var Ct=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h=Math.imul(k,he),s=Math.imul(k,ve),s=s+Math.imul(L,he)|0,b=Math.imul(L,ve),h=h+Math.imul(H,xe)|0,s=s+Math.imul(H,Ae)|0,s=s+Math.imul(X,xe)|0,b=b+Math.imul(X,Ae)|0,h=h+Math.imul(C,be)|0,s=s+Math.imul(C,de)|0,s=s+Math.imul(F,be)|0,b=b+Math.imul(F,de)|0;var Mt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,h=Math.imul(re,he),s=Math.imul(re,ve),s=s+Math.imul(se,he)|0,b=Math.imul(se,ve),h=h+Math.imul(k,xe)|0,s=s+Math.imul(k,Ae)|0,s=s+Math.imul(L,xe)|0,b=b+Math.imul(L,Ae)|0,h=h+Math.imul(H,be)|0,s=s+Math.imul(H,de)|0,s=s+Math.imul(X,be)|0,b=b+Math.imul(X,de)|0,h=h+Math.imul(C,ce)|0,s=s+Math.imul(C,ge)|0,s=s+Math.imul(F,ce)|0,b=b+Math.imul(F,ge)|0;var At=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(At>>>26)|0,At&=67108863,h=Math.imul(T,he),s=Math.imul(T,ve),s=s+Math.imul(O,he)|0,b=Math.imul(O,ve),h=h+Math.imul(re,xe)|0,s=s+Math.imul(re,Ae)|0,s=s+Math.imul(se,xe)|0,b=b+Math.imul(se,Ae)|0,h=h+Math.imul(k,be)|0,s=s+Math.imul(k,de)|0,s=s+Math.imul(L,be)|0,b=b+Math.imul(L,de)|0,h=h+Math.imul(H,ce)|0,s=s+Math.imul(H,ge)|0,s=s+Math.imul(X,ce)|0,b=b+Math.imul(X,ge)|0,h=h+Math.imul(C,Re)|0,s=s+Math.imul(C,Se)|0,s=s+Math.imul(F,Re)|0,b=b+Math.imul(F,Se)|0;var Rt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,h=Math.imul(ie,he),s=Math.imul(ie,ve),s=s+Math.imul(ue,he)|0,b=Math.imul(ue,ve),h=h+Math.imul(T,xe)|0,s=s+Math.imul(T,Ae)|0,s=s+Math.imul(O,xe)|0,b=b+Math.imul(O,Ae)|0,h=h+Math.imul(re,be)|0,s=s+Math.imul(re,de)|0,s=s+Math.imul(se,be)|0,b=b+Math.imul(se,de)|0,h=h+Math.imul(k,ce)|0,s=s+Math.imul(k,ge)|0,s=s+Math.imul(L,ce)|0,b=b+Math.imul(L,ge)|0,h=h+Math.imul(H,Re)|0,s=s+Math.imul(H,Se)|0,s=s+Math.imul(X,Re)|0,b=b+Math.imul(X,Se)|0,h=h+Math.imul(C,je)|0,s=s+Math.imul(C,ke)|0,s=s+Math.imul(F,je)|0,b=b+Math.imul(F,ke)|0;var qt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(qt>>>26)|0,qt&=67108863,h=Math.imul(_e,he),s=Math.imul(_e,ve),s=s+Math.imul(Z,he)|0,b=Math.imul(Z,ve),h=h+Math.imul(ie,xe)|0,s=s+Math.imul(ie,Ae)|0,s=s+Math.imul(ue,xe)|0,b=b+Math.imul(ue,Ae)|0,h=h+Math.imul(T,be)|0,s=s+Math.imul(T,de)|0,s=s+Math.imul(O,be)|0,b=b+Math.imul(O,de)|0,h=h+Math.imul(re,ce)|0,s=s+Math.imul(re,ge)|0,s=s+Math.imul(se,ce)|0,b=b+Math.imul(se,ge)|0,h=h+Math.imul(k,Re)|0,s=s+Math.imul(k,Se)|0,s=s+Math.imul(L,Re)|0,b=b+Math.imul(L,Se)|0,h=h+Math.imul(H,je)|0,s=s+Math.imul(H,ke)|0,s=s+Math.imul(X,je)|0,b=b+Math.imul(X,ke)|0,h=h+Math.imul(C,Ne)|0,s=s+Math.imul(C,Be)|0,s=s+Math.imul(F,Ne)|0,b=b+Math.imul(F,Be)|0;var zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(fe,he),s=Math.imul(fe,ve),s=s+Math.imul(pe,he)|0,b=Math.imul(pe,ve),h=h+Math.imul(_e,xe)|0,s=s+Math.imul(_e,Ae)|0,s=s+Math.imul(Z,xe)|0,b=b+Math.imul(Z,Ae)|0,h=h+Math.imul(ie,be)|0,s=s+Math.imul(ie,de)|0,s=s+Math.imul(ue,be)|0,b=b+Math.imul(ue,de)|0,h=h+Math.imul(T,ce)|0,s=s+Math.imul(T,ge)|0,s=s+Math.imul(O,ce)|0,b=b+Math.imul(O,ge)|0,h=h+Math.imul(re,Re)|0,s=s+Math.imul(re,Se)|0,s=s+Math.imul(se,Re)|0,b=b+Math.imul(se,Se)|0,h=h+Math.imul(k,je)|0,s=s+Math.imul(k,ke)|0,s=s+Math.imul(L,je)|0,b=b+Math.imul(L,ke)|0,h=h+Math.imul(H,Ne)|0,s=s+Math.imul(H,Be)|0,s=s+Math.imul(X,Ne)|0,b=b+Math.imul(X,Be)|0,h=h+Math.imul(C,$e)|0,s=s+Math.imul(C,De)|0,s=s+Math.imul(F,$e)|0,b=b+Math.imul(F,De)|0;var $t=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+($t>>>26)|0,$t&=67108863,h=Math.imul(Me,he),s=Math.imul(Me,ve),s=s+Math.imul(Ee,he)|0,b=Math.imul(Ee,ve),h=h+Math.imul(fe,xe)|0,s=s+Math.imul(fe,Ae)|0,s=s+Math.imul(pe,xe)|0,b=b+Math.imul(pe,Ae)|0,h=h+Math.imul(_e,be)|0,s=s+Math.imul(_e,de)|0,s=s+Math.imul(Z,be)|0,b=b+Math.imul(Z,de)|0,h=h+Math.imul(ie,ce)|0,s=s+Math.imul(ie,ge)|0,s=s+Math.imul(ue,ce)|0,b=b+Math.imul(ue,ge)|0,h=h+Math.imul(T,Re)|0,s=s+Math.imul(T,Se)|0,s=s+Math.imul(O,Re)|0,b=b+Math.imul(O,Se)|0,h=h+Math.imul(re,je)|0,s=s+Math.imul(re,ke)|0,s=s+Math.imul(se,je)|0,b=b+Math.imul(se,ke)|0,h=h+Math.imul(k,Ne)|0,s=s+Math.imul(k,Be)|0,s=s+Math.imul(L,Ne)|0,b=b+Math.imul(L,Be)|0,h=h+Math.imul(H,$e)|0,s=s+Math.imul(H,De)|0,s=s+Math.imul(X,$e)|0,b=b+Math.imul(X,De)|0,h=h+Math.imul(C,qe)|0,s=s+Math.imul(C,Le)|0,s=s+Math.imul(F,qe)|0,b=b+Math.imul(F,Le)|0;var Ht=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,h=Math.imul(me,he),s=Math.imul(me,ve),s=s+Math.imul(ye,he)|0,b=Math.imul(ye,ve),h=h+Math.imul(Me,xe)|0,s=s+Math.imul(Me,Ae)|0,s=s+Math.imul(Ee,xe)|0,b=b+Math.imul(Ee,Ae)|0,h=h+Math.imul(fe,be)|0,s=s+Math.imul(fe,de)|0,s=s+Math.imul(pe,be)|0,b=b+Math.imul(pe,de)|0,h=h+Math.imul(_e,ce)|0,s=s+Math.imul(_e,ge)|0,s=s+Math.imul(Z,ce)|0,b=b+Math.imul(Z,ge)|0,h=h+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Se)|0,s=s+Math.imul(ue,Re)|0,b=b+Math.imul(ue,Se)|0,h=h+Math.imul(T,je)|0,s=s+Math.imul(T,ke)|0,s=s+Math.imul(O,je)|0,b=b+Math.imul(O,ke)|0,h=h+Math.imul(re,Ne)|0,s=s+Math.imul(re,Be)|0,s=s+Math.imul(se,Ne)|0,b=b+Math.imul(se,Be)|0,h=h+Math.imul(k,$e)|0,s=s+Math.imul(k,De)|0,s=s+Math.imul(L,$e)|0,b=b+Math.imul(L,De)|0,h=h+Math.imul(H,qe)|0,s=s+Math.imul(H,Le)|0,s=s+Math.imul(X,qe)|0,b=b+Math.imul(X,Le)|0,h=h+Math.imul(C,ze)|0,s=s+Math.imul(C,Ge)|0,s=s+Math.imul(F,ze)|0,b=b+Math.imul(F,Ge)|0;var Kt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(me,xe),s=Math.imul(me,Ae),s=s+Math.imul(ye,xe)|0,b=Math.imul(ye,Ae),h=h+Math.imul(Me,be)|0,s=s+Math.imul(Me,de)|0,s=s+Math.imul(Ee,be)|0,b=b+Math.imul(Ee,de)|0,h=h+Math.imul(fe,ce)|0,s=s+Math.imul(fe,ge)|0,s=s+Math.imul(pe,ce)|0,b=b+Math.imul(pe,ge)|0,h=h+Math.imul(_e,Re)|0,s=s+Math.imul(_e,Se)|0,s=s+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Se)|0,h=h+Math.imul(ie,je)|0,s=s+Math.imul(ie,ke)|0,s=s+Math.imul(ue,je)|0,b=b+Math.imul(ue,ke)|0,h=h+Math.imul(T,Ne)|0,s=s+Math.imul(T,Be)|0,s=s+Math.imul(O,Ne)|0,b=b+Math.imul(O,Be)|0,h=h+Math.imul(re,$e)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(se,$e)|0,b=b+Math.imul(se,De)|0,h=h+Math.imul(k,qe)|0,s=s+Math.imul(k,Le)|0,s=s+Math.imul(L,qe)|0,b=b+Math.imul(L,Le)|0,h=h+Math.imul(H,ze)|0,s=s+Math.imul(H,Ge)|0,s=s+Math.imul(X,ze)|0,b=b+Math.imul(X,Ge)|0;var Gt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(me,be),s=Math.imul(me,de),s=s+Math.imul(ye,be)|0,b=Math.imul(ye,de),h=h+Math.imul(Me,ce)|0,s=s+Math.imul(Me,ge)|0,s=s+Math.imul(Ee,ce)|0,b=b+Math.imul(Ee,ge)|0,h=h+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Se)|0,s=s+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Se)|0,h=h+Math.imul(_e,je)|0,s=s+Math.imul(_e,ke)|0,s=s+Math.imul(Z,je)|0,b=b+Math.imul(Z,ke)|0,h=h+Math.imul(ie,Ne)|0,s=s+Math.imul(ie,Be)|0,s=s+Math.imul(ue,Ne)|0,b=b+Math.imul(ue,Be)|0,h=h+Math.imul(T,$e)|0,s=s+Math.imul(T,De)|0,s=s+Math.imul(O,$e)|0,b=b+Math.imul(O,De)|0,h=h+Math.imul(re,qe)|0,s=s+Math.imul(re,Le)|0,s=s+Math.imul(se,qe)|0,b=b+Math.imul(se,Le)|0,h=h+Math.imul(k,ze)|0,s=s+Math.imul(k,Ge)|0,s=s+Math.imul(L,ze)|0,b=b+Math.imul(L,Ge)|0;var Wt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(me,ce),s=Math.imul(me,ge),s=s+Math.imul(ye,ce)|0,b=Math.imul(ye,ge),h=h+Math.imul(Me,Re)|0,s=s+Math.imul(Me,Se)|0,s=s+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Se)|0,h=h+Math.imul(fe,je)|0,s=s+Math.imul(fe,ke)|0,s=s+Math.imul(pe,je)|0,b=b+Math.imul(pe,ke)|0,h=h+Math.imul(_e,Ne)|0,s=s+Math.imul(_e,Be)|0,s=s+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,Be)|0,h=h+Math.imul(ie,$e)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(ue,$e)|0,b=b+Math.imul(ue,De)|0,h=h+Math.imul(T,qe)|0,s=s+Math.imul(T,Le)|0,s=s+Math.imul(O,qe)|0,b=b+Math.imul(O,Le)|0,h=h+Math.imul(re,ze)|0,s=s+Math.imul(re,Ge)|0,s=s+Math.imul(se,ze)|0,b=b+Math.imul(se,Ge)|0;var Vt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(me,Re),s=Math.imul(me,Se),s=s+Math.imul(ye,Re)|0,b=Math.imul(ye,Se),h=h+Math.imul(Me,je)|0,s=s+Math.imul(Me,ke)|0,s=s+Math.imul(Ee,je)|0,b=b+Math.imul(Ee,ke)|0,h=h+Math.imul(fe,Ne)|0,s=s+Math.imul(fe,Be)|0,s=s+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Be)|0,h=h+Math.imul(_e,$e)|0,s=s+Math.imul(_e,De)|0,s=s+Math.imul(Z,$e)|0,b=b+Math.imul(Z,De)|0,h=h+Math.imul(ie,qe)|0,s=s+Math.imul(ie,Le)|0,s=s+Math.imul(ue,qe)|0,b=b+Math.imul(ue,Le)|0,h=h+Math.imul(T,ze)|0,s=s+Math.imul(T,Ge)|0,s=s+Math.imul(O,ze)|0,b=b+Math.imul(O,Ge)|0;var Zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(me,je),s=Math.imul(me,ke),s=s+Math.imul(ye,je)|0,b=Math.imul(ye,ke),h=h+Math.imul(Me,Ne)|0,s=s+Math.imul(Me,Be)|0,s=s+Math.imul(Ee,Ne)|0,b=b+Math.imul(Ee,Be)|0,h=h+Math.imul(fe,$e)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(pe,$e)|0,b=b+Math.imul(pe,De)|0,h=h+Math.imul(_e,qe)|0,s=s+Math.imul(_e,Le)|0,s=s+Math.imul(Z,qe)|0,b=b+Math.imul(Z,Le)|0,h=h+Math.imul(ie,ze)|0,s=s+Math.imul(ie,Ge)|0,s=s+Math.imul(ue,ze)|0,b=b+Math.imul(ue,Ge)|0;var cr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863,h=Math.imul(me,Ne),s=Math.imul(me,Be),s=s+Math.imul(ye,Ne)|0,b=Math.imul(ye,Be),h=h+Math.imul(Me,$e)|0,s=s+Math.imul(Me,De)|0,s=s+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,De)|0,h=h+Math.imul(fe,qe)|0,s=s+Math.imul(fe,Le)|0,s=s+Math.imul(pe,qe)|0,b=b+Math.imul(pe,Le)|0,h=h+Math.imul(_e,ze)|0,s=s+Math.imul(_e,Ge)|0,s=s+Math.imul(Z,ze)|0,b=b+Math.imul(Z,Ge)|0;var hr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(me,$e),s=Math.imul(me,De),s=s+Math.imul(ye,$e)|0,b=Math.imul(ye,De),h=h+Math.imul(Me,qe)|0,s=s+Math.imul(Me,Le)|0,s=s+Math.imul(Ee,qe)|0,b=b+Math.imul(Ee,Le)|0,h=h+Math.imul(fe,ze)|0,s=s+Math.imul(fe,Ge)|0,s=s+Math.imul(pe,ze)|0,b=b+Math.imul(pe,Ge)|0;var dr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(dr>>>26)|0,dr&=67108863,h=Math.imul(me,qe),s=Math.imul(me,Le),s=s+Math.imul(ye,qe)|0,b=Math.imul(ye,Le),h=h+Math.imul(Me,ze)|0,s=s+Math.imul(Me,Ge)|0,s=s+Math.imul(Ee,ze)|0,b=b+Math.imul(Ee,Ge)|0;var Yr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,h=Math.imul(me,ze),s=Math.imul(me,Ge),s=s+Math.imul(ye,ze)|0,b=Math.imul(ye,Ge);var Jr=(v+h|0)+((s&8191)<<13)|0;return v=(b+(s>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w[0]=Et,w[1]=Ct,w[2]=Mt,w[3]=At,w[4]=Rt,w[5]=qt,w[6]=zt,w[7]=$t,w[8]=Ht,w[9]=Kt,w[10]=Gt,w[11]=Wt,w[12]=Vt,w[13]=Zt,w[14]=cr,w[15]=hr,w[16]=dr,w[17]=Yr,w[18]=Jr,v!==0&&(w[19]=v,p.length++),p};Math.imul||(A=R);function U(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,y=0,x=0;x>>26)|0,y+=w>>>26,w&=67108863}u.words[x]=v,p=w,w=y}return p!==0?u.words[x]=p:u.length--,u._strip()}function V(d,o,u){return U(d,o,u)}i.prototype.mulTo=function(o,u){var p,y=this.length+o.length;return this.length===10&&o.length===10?p=A(this,o,u):y<63?p=R(this,o,u):y<1024?p=U(this,o,u):p=V(this,o,u),p},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),V(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var p=0,y=0;y>=26,p+=x/67108864|0,p+=w>>>26,this.words[y]=w&67108863}return p!==0&&(this.words[y]=p,this.length++),u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=B(o);if(u.length===0)return new i(1);for(var p=this,y=0;y=0);var u=o%26,p=(o-u)/26,y=67108863>>>26-u<<26-u,x;if(u!==0){var w=0;for(x=0;x>>26-u}w&&(this.words[x]=w,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x=0);var y;u?y=(u-u%26)/26:y=0;var x=o%26,w=Math.min((o-x)/26,this.length),v=67108863^67108863>>>x<w)for(this.length-=w,s=0;s=0&&(b!==0||s>=y);s--){var D=this.words[s]|0;this.words[s]=b<<26-x|D>>>x,b=D&v}return h&&b!==0&&(h.words[h.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return n(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,y=1<=0);var u=o%26,p=(o-u)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var y=67108863^67108863>>>u<=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u>26)-(h/67108864|0),this.words[x+p]=w&67108863}for(;x>26,this.words[x+p]=w&67108863;if(v===0)return this._strip();for(n(v===-1),v=0,x=0;x>26,this.words[x]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,y=this.clone(),x=o,w=x.words[x.length-1]|0,v=this._countBits(w);p=26-v,p!==0&&(x=x.ushln(p),y.iushln(p),w=x.words[x.length-1]|0);var h=y.length-x.length,s;if(u!=="mod"){s=new i(null),s.length=h+1,s.words=new Array(s.length);for(var b=0;b=0;C--){var F=(y.words[x.length+C]|0)*67108864+(y.words[x.length+C-1]|0);for(F=Math.min(F/w|0,67108863),y._ishlnsubmul(x,F,C);y.negative!==0;)F--,y.negative=0,y._ishlnsubmul(x,1,C),y.isZero()||(y.negative^=1);s&&(s.words[C]=F)}return s&&s._strip(),y._strip(),u!=="div"&&p!==0&&y.iushrn(p),{div:s||null,mod:y}},i.prototype.divmod=function(o,u,p){if(n(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,x,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,u),u!=="mod"&&(y=w.div.neg()),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.iadd(o)),{div:y,mod:x}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),u),u!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),u),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.isub(o)),{div:w.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),x=o.andln(1),w=p.cmp(y);return w<0||x===1&&w===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=(1<<26)%o,y=0,x=this.length-1;x>=0;x--)y=(p*y+(this.words[x]|0))%o;return u?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var x=(this.words[y]|0)+p*67108864;this.words[y]=x/o|0,p=x%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=new i(0),v=new i(1),h=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++h;for(var s=p.clone(),b=u.clone();!u.isZero();){for(var D=0,C=1;!(u.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(u.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(s),x.isub(b)),y.iushrn(1),x.iushrn(1);for(var F=0,$=1;!(p.words[0]&$)&&F<26;++F,$<<=1);if(F>0)for(p.iushrn(F);F-- >0;)(w.isOdd()||v.isOdd())&&(w.iadd(s),v.isub(b)),w.iushrn(1),v.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(w),x.isub(v)):(p.isub(u),w.isub(y),v.isub(x))}return{a:w,b:v,gcd:p.iushln(h)}},i.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var v=0,h=1;!(u.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(u.iushrn(v);v-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var s=0,b=1;!(p.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(p.iushrn(s);s-- >0;)x.isOdd()&&x.iadd(w),x.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(x)):(p.isub(u),x.isub(y))}var D;return u.cmpn(1)===0?D=y:D=x,D.cmpn(0)<0&&D.iadd(o),D},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var y=0;u.isEven()&&p.isEven();y++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=u.cmp(p);if(x<0){var w=u;u=p,p=w}else if(x===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){n(typeof o=="number");var u=o%26,p=(o-u)/26,y=1<>>26,v&=67108863,this.words[w]=v}return x!==0&&(this.words[w]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;p=y===o?0:yo.length)return 1;if(this.length=0;p--){var y=this.words[p]|0,x=o.words[p]|0;if(y!==x){yx&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new G(o)},i.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function N(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},N.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var y=p0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},N.prototype.split=function(o,u){o.iushrn(this.n,0,u)},N.prototype.imulK=function(o){return o.imul(this.k)};function K(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(K,N),K.prototype.split=function(o,u){for(var p=4194303,y=Math.min(o.length,9),x=0;x>>22,w=v}w>>>=22,o.words[x-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},K.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p>>=26,o.words[p]=x,u=y}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(j[o])return j[o];var u;if(o==="k256")u=new K;else if(o==="p224")u=new J;else if(o==="p192")u=new te;else if(o==="p25519")u=new ee;else throw new Error("Unknown prime "+o);return j[o]=u,u};function G(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else n(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}G.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},G.prototype._verify2=function(o,u){n((o.negative|u.negative)===0,"red works only with positives"),n(o.red&&o.red===u.red,"red works only with red numbers")},G.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},G.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},G.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},G.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},G.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},G.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},G.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},G.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},G.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},G.prototype.isqr=function(o){return this.imul(o,o.clone())},G.prototype.sqr=function(o){return this.mul(o,o)},G.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(n(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);n(!y.isZero());var w=new i(1).toRed(this),v=w.redNeg(),h=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,h).cmp(v)!==0;)s.redIAdd(v);for(var b=this.pow(s,y),D=this.pow(o,y.addn(1).iushrn(1)),C=this.pow(o,y),F=x;C.cmp(w)!==0;){for(var $=C,H=0;$.cmp(w)!==0;H++)$=$.redSqr();n(H=0;x--){for(var b=u.words[x],D=s-1;D>=0;D--){var C=b>>D&1;if(w!==y[0]&&(w=this.sqr(w)),C===0&&v===0){h=0;continue}v<<=1,v|=C,h++,!(h!==p&&(x!==0||D!==0))&&(w=this.mul(w,y[v]),h=0,v=0)}s=26}return w},G.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},G.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new E(o)};function E(d){G.call(this,d),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)}a(E,G),E.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},E.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},E.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(e,Oe)})(L7);var oX=L7.exports;const fX=Nr(oX),sX="bignumber/5.7.0";var J1=fX.BN;const va=new tt(sX),Mp={},zb=9007199254740991;let $b=!1;class It{constructor(t,r){t!==Mp&&va.throwError("cannot call constructor directly; use BigNumber.from",tt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return ln(ut(this).fromTwos(t))}toTwos(t){return ln(ut(this).toTwos(t))}abs(){return this._hex[0]==="-"?It.from(this._hex.substring(1)):this}add(t){return ln(ut(this).add(ut(t)))}sub(t){return ln(ut(this).sub(ut(t)))}div(t){return It.from(t).isZero()&&jn("division-by-zero","div"),ln(ut(this).div(ut(t)))}mul(t){return ln(ut(this).mul(ut(t)))}mod(t){const r=ut(t);return r.isNeg()&&jn("division-by-zero","mod"),ln(ut(this).umod(r))}pow(t){const r=ut(t);return r.isNeg()&&jn("negative-power","pow"),ln(ut(this).pow(r))}and(t){const r=ut(t);return(this.isNegative()||r.isNeg())&&jn("unbound-bitwise-result","and"),ln(ut(this).and(r))}or(t){const r=ut(t);return(this.isNegative()||r.isNeg())&&jn("unbound-bitwise-result","or"),ln(ut(this).or(r))}xor(t){const r=ut(t);return(this.isNegative()||r.isNeg())&&jn("unbound-bitwise-result","xor"),ln(ut(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&jn("negative-width","mask"),ln(ut(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&jn("negative-width","shl"),ln(ut(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&jn("negative-width","shr"),ln(ut(this).shrn(t))}eq(t){return ut(this).eq(ut(t))}lt(t){return ut(this).lt(ut(t))}lte(t){return ut(this).lte(ut(t))}gt(t){return ut(this).gt(ut(t))}gte(t){return ut(this).gte(ut(t))}isNegative(){return this._hex[0]==="-"}isZero(){return ut(this).isZero()}toNumber(){try{return ut(this).toNumber()}catch{jn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return va.throwError("this platform does not support BigInt",tt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?$b||($b=!0,va.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?va.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",tt.errors.UNEXPECTED_ARGUMENT,{}):va.throwError("BigNumber.toString does not accept parameters",tt.errors.UNEXPECTED_ARGUMENT,{})),ut(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof It)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new It(Mp,Qu(t)):t.match(/^-?[0-9]+$/)?new It(Mp,Qu(new J1(t))):va.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&jn("underflow","BigNumber.from",t),(t>=zb||t<=-zb)&&jn("overflow","BigNumber.from",t),It.from(String(t));const r=t;if(typeof r=="bigint")return It.from(r.toString());if(Md(r))return It.from(nt(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return It.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(an(n)||n[0]==="-"&&an(n.substring(1))))return It.from(n)}return va.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function Qu(e){if(typeof e!="string")return Qu(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&va.throwArgumentError("invalid hex","value",e),e=Qu(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function ln(e){return It.from(Qu(e))}function ut(e){const t=It.from(e).toHexString();return t[0]==="-"?new J1("-"+t.substring(3),16):new J1(t.substring(2),16)}function jn(e,t,r){const n={fault:e,operation:t};return r!=null&&(n.value=r),va.throwError(e,tt.errors.NUMERIC_FAULT,n)}function uX(e){return new J1(e,36).toString(16)}const lX="strings/5.7.0",cX=new tt(lX);var _f;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(_f||(_f={}));var Hb;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(Hb||(Hb={}));function Aa(e,t=_f.current){t!=_f.current&&(cX.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n>6|192),r.push(a&63|128);else if((a&64512)==55296){n++;const i=e.charCodeAt(n);if(n>=e.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");const f=65536+((a&1023)<<10)+(i&1023);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(f&63|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(a&63|128)}return Ye(r)}function N7(e){return rn(Aa(e))}const hX="hash/5.7.0",dX=`Ethereum Signed Message: -`;function Ad(e){return typeof e=="string"&&(e=Aa(e)),rn(Po([Aa(dX),Aa(String(e.length)),e]))}const pX="rlp/5.7.0",vX=new tt(pX);function Kb(e){const t=[];for(;e;)t.unshift(e&255),e>>=8;return t}function QA(e){if(Array.isArray(e)){let n=[];if(e.forEach(function(i){n=n.concat(QA(i))}),n.length<=55)return n.unshift(192+n.length),n;const a=Kb(n.length);return a.unshift(247+a.length),a.concat(n)}B7(e)||vX.throwArgumentError("RLP object must be BytesLike","object",e);const t=Array.prototype.slice.call(Ye(e));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=Kb(t.length);return r.unshift(183+r.length),r.concat(t)}function Q1(e){return nt(QA(e))}const gX="address/5.7.0",J0=new tt(gX);function Gb(e){an(e,20)||J0.throwArgumentError("invalid address","address",e),e=e.toLowerCase();const t=e.substring(2).split(""),r=new Uint8Array(40);for(let a=0;a<40;a++)r[a]=t[a].charCodeAt(0);const n=Ye(rn(r));for(let a=0;a<40;a+=2)n[a>>1]>>4>=8&&(t[a]=t[a].toUpperCase()),(n[a>>1]&15)>=8&&(t[a+1]=t[a+1].toUpperCase());return"0x"+t.join("")}const yX=9007199254740991;function mX(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}const D7={};for(let e=0;e<10;e++)D7[String(e)]=String(e);for(let e=0;e<26;e++)D7[String.fromCharCode(65+e)]=String(10+e);const Wb=Math.floor(mX(yX));function bX(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";let t=e.split("").map(n=>D7[n]).join("");for(;t.length>=Wb;){let n=t.substring(0,Wb);t=parseInt(n,10)%97+t.substring(n.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function Bi(e){let t=null;if(typeof e!="string"&&J0.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))e.substring(0,2)!=="0x"&&(e="0x"+e),t=Gb(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&J0.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==bX(e)&&J0.throwArgumentError("bad icap checksum","address",e),t=uX(e.substring(4));t.length<40;)t="0"+t;t=Gb("0x"+t)}else J0.throwArgumentError("invalid address","address",e);return t}const xX="properties/5.7.0";var wX=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const eh=new tt(xX);function it(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function fs(e){return wX(this,void 0,void 0,function*(){const t=Object.keys(e).map(n=>{const a=e[n];return Promise.resolve(a).then(i=>({key:n,value:i}))});return(yield Promise.all(t)).reduce((n,a)=>(n[a.key]=a.value,n),{})})}function _X(e,t){(!e||typeof e!="object")&&eh.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||eh.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function N6(e){const t={};for(const r in e)t[r]=e[r];return t}const SX={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function eR(e){if(e==null||SX[typeof e])return!0;if(Array.isArray(e)||typeof e=="object"){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let r=0;rth(t)));if(typeof e=="object"){const t={};for(const r in e){const n=e[r];n!==void 0&&it(t,r,th(n))}return t}return eh.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}function th(e){return EX(e)}class tR{constructor(t){for(const r in t)this[r]=th(t[r])}}var CX=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const Xt=new tt(hX),rR=new Uint8Array(32);rR.fill(0);const MX=It.from(-1),nR=It.from(0),iR=It.from(1),AX=It.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function RX(e){const t=Ye(e),r=t.length%32;return r?Ss([t,rR.slice(r)]):nt(t)}const TX=Qn(iR.toHexString(),32),PX=Qn(nR.toHexString(),32),Vb={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Ap=["name","version","chainId","verifyingContract","salt"];function Zb(e){return function(t){return typeof t!="string"&&Xt.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const OX={name:Zb("name"),version:Zb("version"),chainId:function(e){try{return It.from(e).toString()}catch{}return Xt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Bi(e).toLowerCase()}catch{}return Xt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=Ye(e);if(t.length!==32)throw new Error("bad length");return nt(t)}catch{}return Xt.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function Rp(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=t[1]==="",n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&Xt.throwArgumentError("invalid numeric width","type",e);const a=AX.mask(r?n-1:n),i=r?a.add(iR).mul(MX):nR;return function(f){const l=It.from(f);return(l.lt(i)||l.gt(a))&&Xt.throwArgumentError(`value out-of-bounds for ${e}`,"value",f),Qn(l.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(r===0||r>32||t[1]!==String(r))&&Xt.throwArgumentError("invalid bytes width","type",e),function(n){return Ye(n).length!==r&&Xt.throwArgumentError(`invalid length for ${e}`,"value",n),RX(n)}}}switch(e){case"address":return function(t){return Qn(Bi(t),32)};case"bool":return function(t){return t?TX:PX};case"bytes":return function(t){return rn(t)};case"string":return function(t){return N7(t)}}return null}function Xb(e,t){return`${e}(${t.map(({name:r,type:n})=>n+" "+r).join(",")})`}class hn{constructor(t){it(this,"types",Object.freeze(th(t))),it(this,"_encoderCache",{}),it(this,"_types",{});const r={},n={},a={};Object.keys(t).forEach(l=>{r[l]={},n[l]=[],a[l]={}});for(const l in t){const c={};t[l].forEach(m=>{c[m.name]&&Xt.throwArgumentError(`duplicate variable name ${JSON.stringify(m.name)} in ${JSON.stringify(l)}`,"types",t),c[m.name]=!0;const g=m.type.match(/^([^\x5b]*)(\x5b|$)/)[1];g===l&&Xt.throwArgumentError(`circular type reference to ${JSON.stringify(g)}`,"types",t),!Rp(g)&&(n[g]||Xt.throwArgumentError(`unknown type ${JSON.stringify(g)}`,"types",t),n[g].push(l),r[l][g]=!0)})}const i=Object.keys(n).filter(l=>n[l].length===0);i.length===0?Xt.throwArgumentError("missing primary type","types",t):i.length>1&&Xt.throwArgumentError(`ambiguous primary types or unused types: ${i.map(l=>JSON.stringify(l)).join(", ")}`,"types",t),it(this,"primaryType",i[0]);function f(l,c){c[l]&&Xt.throwArgumentError(`circular type reference to ${JSON.stringify(l)}`,"types",t),c[l]=!0,Object.keys(r[l]).forEach(m=>{n[m]&&(f(m,c),Object.keys(c).forEach(g=>{a[g][m]=!0}))}),delete c[l]}f(this.primaryType,{});for(const l in a){const c=Object.keys(a[l]);c.sort(),this._types[l]=Xb(l,t[l])+c.map(m=>Xb(m,t[m])).join("")}}getEncoder(t){let r=this._encoderCache[t];return r||(r=this._encoderCache[t]=this._getEncoder(t)),r}_getEncoder(t){{const a=Rp(t);if(a)return a}const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const a=r[1],i=this.getEncoder(a),f=parseInt(r[3]);return l=>{f>=0&&l.length!==f&&Xt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);let c=l.map(i);return this._types[a]&&(c=c.map(rn)),rn(Ss(c))}}const n=this.types[t];if(n){const a=N7(this._types[t]);return i=>{const f=n.map(({name:l,type:c})=>{const m=this.getEncoder(c)(i[l]);return this._types[c]?rn(m):m});return f.unshift(a),Ss(f)}}return Xt.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const r=this._types[t];return r||Xt.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),r}encodeData(t,r){return this.getEncoder(t)(r)}hashStruct(t,r){return rn(this.encodeData(t,r))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,r,n){if(Rp(t))return n(t,r);const a=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){const f=a[1],l=parseInt(a[3]);return l>=0&&r.length!==l&&Xt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(c=>this._visit(f,c,n))}const i=this.types[t];return i?i.reduce((f,{name:l,type:c})=>(f[l]=this._visit(c,r[l],n),f),{}):Xt.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,r){return this._visit(this.primaryType,t,r)}static from(t){return new hn(t)}static getPrimaryType(t){return hn.from(t).primaryType}static hashStruct(t,r,n){return hn.from(r).hashStruct(t,n)}static hashDomain(t){const r=[];for(const n in t){const a=Vb[n];a||Xt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",t),r.push({name:n,type:a})}return r.sort((n,a)=>Ap.indexOf(n.name)-Ap.indexOf(a.name)),hn.hashStruct("EIP712Domain",{EIP712Domain:r},t)}static encode(t,r,n){return Ss(["0x1901",hn.hashDomain(t),hn.from(r).hash(n)])}static hash(t,r,n){return rn(hn.encode(t,r,n))}static resolveNames(t,r,n,a){return CX(this,void 0,void 0,function*(){t=N6(t);const i={};t.verifyingContract&&!an(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const f=hn.from(r);f.visit(n,(l,c)=>(l==="address"&&!an(c,20)&&(i[c]="0x"),c));for(const l in i)i[l]=yield a(l);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),n=f.visit(n,(l,c)=>l==="address"&&i[c]?i[c]:c),{domain:t,value:n}})}static getPayload(t,r,n){hn.hashDomain(t);const a={},i=[];Ap.forEach(c=>{const m=t[c];m!=null&&(a[c]=OX[c](m),i.push({name:c,type:Vb[c]}))});const f=hn.from(r),l=N6(r);return l.EIP712Domain?Xt.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):l.EIP712Domain=i,f.encode(n),{types:l,domain:a,primaryType:f.primaryType,message:f.visit(n,(c,m)=>{if(c.match(/^bytes(\d*)/))return nt(Ye(m));if(c.match(/^u?int/))return It.from(m).toString();switch(c){case"address":return m.toLowerCase();case"bool":return!!m;case"string":return typeof m!="string"&&Xt.throwArgumentError("invalid string","value",m),m}return Xt.throwArgumentError("unsupported type","type",c)})}}}var F7={exports:{}};F7.exports;(function(e){(function(t,r){function n(d,o){if(!d)throw new Error(o||"Assertion failed")}function a(d,o){d.super_=o;var u=function(){};u.prototype=o.prototype,d.prototype=new u,d.prototype.constructor=d}function i(d,o,u){if(i.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(d||0,o||10,u||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=Te.Buffer}catch{}i.isBN=function(o){return o instanceof i?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===i.wordSize&&Array.isArray(o.words)},i.max=function(o,u){return o.cmp(u)>0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),n(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[x]|=w<>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);else if(p==="le")for(y=0,x=0;y>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);return this._strip()};function l(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;n(!1,"Invalid character in "+d)}function c(d,o,u){var p=l(d,u);return u-1>=o&&(p|=l(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y=u;y-=2)v=c(o,u,y)<=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8;else{var h=o.length-u;for(y=h%2===0?u+1:u;y=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8}this._strip()};function m(d,o,u,p){for(var y=0,x=0,w=Math.min(d.length,u),v=o;v=49?x=h-49+10:h>=17?x=h-17+10:x=h,n(h>=0&&x1&&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")]=_}catch{i.prototype.inspect=_}else i.prototype.inspect=_;function _(){return(this.red?""}var S=["","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"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var y=0,x=0,w=0;w>>24-y&16777215,y+=2,y>=26&&(y-=26,w--),x!==0||w!==this.length-1?p=S[6-h.length]+h+p:p=h+p}for(x!==0&&(p=x.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var s=M[o],b=P[o];p="";var D=this.clone();for(D.negative=0;!D.isZero();){var C=D.modrn(b).toString(o);D=D.idivn(b),D.isZero()?p=C+p:p=S[s-C.length]+C+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},f&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(f,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var I=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var y=this.byteLength(),x=p||Math.max(1,y);n(y<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var w=I(o,x),v=u==="le"?"LE":"BE";return this["_toArrayLike"+v](w,y),w},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,y=0,x=0,w=0;x>8&255),p>16&255),w===6?(p>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p=0&&(o[p--]=v>>8&255),p>=0&&(o[p--]=v>>16&255),w===6?(p>=0&&(o[p--]=v>>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p>=0)for(o[p--]=y;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return u&8191||(p+=13,u>>>=13),u&127||(p+=7,u>>>=7),u&15||(p+=4,u>>>=4),u&3||(p+=2,u>>>=2),u&1||p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function B(d){for(var o=new Array(d.bitLength()),u=0;u>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;uo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;po.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var y=0;yo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){n(typeof o=="number"&&o>=0);var p=o/26|0,y=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<o.length?(p=this,y=o):(p=o,y=this);for(var x=0,w=0;w>>26;for(;x!==0&&w>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;wo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,x;p>0?(y=this,x=o):(y=o,x=this);for(var w=0,v=0;v>26,this.words[v]=u&67108863;for(;w!==0&&v>26,this.words[v]=u&67108863;if(w===0&&v>>26,D=h&67108863,C=Math.min(s,o.length-1),F=Math.max(0,s-d.length+1);F<=C;F++){var $=s-F|0;y=d.words[$]|0,x=o.words[F]|0,w=y*x+D,b+=w/67108864|0,D=w&67108863}u.words[s]=D|0,h=b|0}return h!==0?u.words[s]=h|0:u.length--,u._strip()}var A=function(o,u,p){var y=o.words,x=u.words,w=p.words,v=0,h,s,b,D=y[0]|0,C=D&8191,F=D>>>13,$=y[1]|0,H=$&8191,X=$>>>13,z=y[2]|0,k=z&8191,L=z>>>13,oe=y[3]|0,re=oe&8191,se=oe>>>13,Y=y[4]|0,T=Y&8191,O=Y>>>13,W=y[5]|0,ie=W&8191,ue=W>>>13,we=y[6]|0,_e=we&8191,Z=we>>>13,le=y[7]|0,fe=le&8191,pe=le>>>13,Ce=y[8]|0,Me=Ce&8191,Ee=Ce>>>13,ne=y[9]|0,me=ne&8191,ye=ne>>>13,Ie=x[0]|0,he=Ie&8191,ve=Ie>>>13,Q=x[1]|0,xe=Q&8191,Ae=Q>>>13,q=x[2]|0,be=q&8191,de=q>>>13,ae=x[3]|0,ce=ae&8191,ge=ae>>>13,Ue=x[4]|0,Re=Ue&8191,Se=Ue>>>13,Ve=x[5]|0,je=Ve&8191,ke=Ve>>>13,Ze=x[6]|0,Ne=Ze&8191,Be=Ze>>>13,et=x[7]|0,$e=et&8191,De=et>>>13,Qe=x[8]|0,qe=Qe&8191,Le=Qe>>>13,rt=x[9]|0,ze=rt&8191,Ge=rt>>>13;p.negative=o.negative^u.negative,p.length=19,h=Math.imul(C,he),s=Math.imul(C,ve),s=s+Math.imul(F,he)|0,b=Math.imul(F,ve);var Et=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(H,he),s=Math.imul(H,ve),s=s+Math.imul(X,he)|0,b=Math.imul(X,ve),h=h+Math.imul(C,xe)|0,s=s+Math.imul(C,Ae)|0,s=s+Math.imul(F,xe)|0,b=b+Math.imul(F,Ae)|0;var Ct=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h=Math.imul(k,he),s=Math.imul(k,ve),s=s+Math.imul(L,he)|0,b=Math.imul(L,ve),h=h+Math.imul(H,xe)|0,s=s+Math.imul(H,Ae)|0,s=s+Math.imul(X,xe)|0,b=b+Math.imul(X,Ae)|0,h=h+Math.imul(C,be)|0,s=s+Math.imul(C,de)|0,s=s+Math.imul(F,be)|0,b=b+Math.imul(F,de)|0;var Mt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,h=Math.imul(re,he),s=Math.imul(re,ve),s=s+Math.imul(se,he)|0,b=Math.imul(se,ve),h=h+Math.imul(k,xe)|0,s=s+Math.imul(k,Ae)|0,s=s+Math.imul(L,xe)|0,b=b+Math.imul(L,Ae)|0,h=h+Math.imul(H,be)|0,s=s+Math.imul(H,de)|0,s=s+Math.imul(X,be)|0,b=b+Math.imul(X,de)|0,h=h+Math.imul(C,ce)|0,s=s+Math.imul(C,ge)|0,s=s+Math.imul(F,ce)|0,b=b+Math.imul(F,ge)|0;var At=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(At>>>26)|0,At&=67108863,h=Math.imul(T,he),s=Math.imul(T,ve),s=s+Math.imul(O,he)|0,b=Math.imul(O,ve),h=h+Math.imul(re,xe)|0,s=s+Math.imul(re,Ae)|0,s=s+Math.imul(se,xe)|0,b=b+Math.imul(se,Ae)|0,h=h+Math.imul(k,be)|0,s=s+Math.imul(k,de)|0,s=s+Math.imul(L,be)|0,b=b+Math.imul(L,de)|0,h=h+Math.imul(H,ce)|0,s=s+Math.imul(H,ge)|0,s=s+Math.imul(X,ce)|0,b=b+Math.imul(X,ge)|0,h=h+Math.imul(C,Re)|0,s=s+Math.imul(C,Se)|0,s=s+Math.imul(F,Re)|0,b=b+Math.imul(F,Se)|0;var Rt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,h=Math.imul(ie,he),s=Math.imul(ie,ve),s=s+Math.imul(ue,he)|0,b=Math.imul(ue,ve),h=h+Math.imul(T,xe)|0,s=s+Math.imul(T,Ae)|0,s=s+Math.imul(O,xe)|0,b=b+Math.imul(O,Ae)|0,h=h+Math.imul(re,be)|0,s=s+Math.imul(re,de)|0,s=s+Math.imul(se,be)|0,b=b+Math.imul(se,de)|0,h=h+Math.imul(k,ce)|0,s=s+Math.imul(k,ge)|0,s=s+Math.imul(L,ce)|0,b=b+Math.imul(L,ge)|0,h=h+Math.imul(H,Re)|0,s=s+Math.imul(H,Se)|0,s=s+Math.imul(X,Re)|0,b=b+Math.imul(X,Se)|0,h=h+Math.imul(C,je)|0,s=s+Math.imul(C,ke)|0,s=s+Math.imul(F,je)|0,b=b+Math.imul(F,ke)|0;var qt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(qt>>>26)|0,qt&=67108863,h=Math.imul(_e,he),s=Math.imul(_e,ve),s=s+Math.imul(Z,he)|0,b=Math.imul(Z,ve),h=h+Math.imul(ie,xe)|0,s=s+Math.imul(ie,Ae)|0,s=s+Math.imul(ue,xe)|0,b=b+Math.imul(ue,Ae)|0,h=h+Math.imul(T,be)|0,s=s+Math.imul(T,de)|0,s=s+Math.imul(O,be)|0,b=b+Math.imul(O,de)|0,h=h+Math.imul(re,ce)|0,s=s+Math.imul(re,ge)|0,s=s+Math.imul(se,ce)|0,b=b+Math.imul(se,ge)|0,h=h+Math.imul(k,Re)|0,s=s+Math.imul(k,Se)|0,s=s+Math.imul(L,Re)|0,b=b+Math.imul(L,Se)|0,h=h+Math.imul(H,je)|0,s=s+Math.imul(H,ke)|0,s=s+Math.imul(X,je)|0,b=b+Math.imul(X,ke)|0,h=h+Math.imul(C,Ne)|0,s=s+Math.imul(C,Be)|0,s=s+Math.imul(F,Ne)|0,b=b+Math.imul(F,Be)|0;var zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(fe,he),s=Math.imul(fe,ve),s=s+Math.imul(pe,he)|0,b=Math.imul(pe,ve),h=h+Math.imul(_e,xe)|0,s=s+Math.imul(_e,Ae)|0,s=s+Math.imul(Z,xe)|0,b=b+Math.imul(Z,Ae)|0,h=h+Math.imul(ie,be)|0,s=s+Math.imul(ie,de)|0,s=s+Math.imul(ue,be)|0,b=b+Math.imul(ue,de)|0,h=h+Math.imul(T,ce)|0,s=s+Math.imul(T,ge)|0,s=s+Math.imul(O,ce)|0,b=b+Math.imul(O,ge)|0,h=h+Math.imul(re,Re)|0,s=s+Math.imul(re,Se)|0,s=s+Math.imul(se,Re)|0,b=b+Math.imul(se,Se)|0,h=h+Math.imul(k,je)|0,s=s+Math.imul(k,ke)|0,s=s+Math.imul(L,je)|0,b=b+Math.imul(L,ke)|0,h=h+Math.imul(H,Ne)|0,s=s+Math.imul(H,Be)|0,s=s+Math.imul(X,Ne)|0,b=b+Math.imul(X,Be)|0,h=h+Math.imul(C,$e)|0,s=s+Math.imul(C,De)|0,s=s+Math.imul(F,$e)|0,b=b+Math.imul(F,De)|0;var $t=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+($t>>>26)|0,$t&=67108863,h=Math.imul(Me,he),s=Math.imul(Me,ve),s=s+Math.imul(Ee,he)|0,b=Math.imul(Ee,ve),h=h+Math.imul(fe,xe)|0,s=s+Math.imul(fe,Ae)|0,s=s+Math.imul(pe,xe)|0,b=b+Math.imul(pe,Ae)|0,h=h+Math.imul(_e,be)|0,s=s+Math.imul(_e,de)|0,s=s+Math.imul(Z,be)|0,b=b+Math.imul(Z,de)|0,h=h+Math.imul(ie,ce)|0,s=s+Math.imul(ie,ge)|0,s=s+Math.imul(ue,ce)|0,b=b+Math.imul(ue,ge)|0,h=h+Math.imul(T,Re)|0,s=s+Math.imul(T,Se)|0,s=s+Math.imul(O,Re)|0,b=b+Math.imul(O,Se)|0,h=h+Math.imul(re,je)|0,s=s+Math.imul(re,ke)|0,s=s+Math.imul(se,je)|0,b=b+Math.imul(se,ke)|0,h=h+Math.imul(k,Ne)|0,s=s+Math.imul(k,Be)|0,s=s+Math.imul(L,Ne)|0,b=b+Math.imul(L,Be)|0,h=h+Math.imul(H,$e)|0,s=s+Math.imul(H,De)|0,s=s+Math.imul(X,$e)|0,b=b+Math.imul(X,De)|0,h=h+Math.imul(C,qe)|0,s=s+Math.imul(C,Le)|0,s=s+Math.imul(F,qe)|0,b=b+Math.imul(F,Le)|0;var Ht=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,h=Math.imul(me,he),s=Math.imul(me,ve),s=s+Math.imul(ye,he)|0,b=Math.imul(ye,ve),h=h+Math.imul(Me,xe)|0,s=s+Math.imul(Me,Ae)|0,s=s+Math.imul(Ee,xe)|0,b=b+Math.imul(Ee,Ae)|0,h=h+Math.imul(fe,be)|0,s=s+Math.imul(fe,de)|0,s=s+Math.imul(pe,be)|0,b=b+Math.imul(pe,de)|0,h=h+Math.imul(_e,ce)|0,s=s+Math.imul(_e,ge)|0,s=s+Math.imul(Z,ce)|0,b=b+Math.imul(Z,ge)|0,h=h+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Se)|0,s=s+Math.imul(ue,Re)|0,b=b+Math.imul(ue,Se)|0,h=h+Math.imul(T,je)|0,s=s+Math.imul(T,ke)|0,s=s+Math.imul(O,je)|0,b=b+Math.imul(O,ke)|0,h=h+Math.imul(re,Ne)|0,s=s+Math.imul(re,Be)|0,s=s+Math.imul(se,Ne)|0,b=b+Math.imul(se,Be)|0,h=h+Math.imul(k,$e)|0,s=s+Math.imul(k,De)|0,s=s+Math.imul(L,$e)|0,b=b+Math.imul(L,De)|0,h=h+Math.imul(H,qe)|0,s=s+Math.imul(H,Le)|0,s=s+Math.imul(X,qe)|0,b=b+Math.imul(X,Le)|0,h=h+Math.imul(C,ze)|0,s=s+Math.imul(C,Ge)|0,s=s+Math.imul(F,ze)|0,b=b+Math.imul(F,Ge)|0;var Kt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(me,xe),s=Math.imul(me,Ae),s=s+Math.imul(ye,xe)|0,b=Math.imul(ye,Ae),h=h+Math.imul(Me,be)|0,s=s+Math.imul(Me,de)|0,s=s+Math.imul(Ee,be)|0,b=b+Math.imul(Ee,de)|0,h=h+Math.imul(fe,ce)|0,s=s+Math.imul(fe,ge)|0,s=s+Math.imul(pe,ce)|0,b=b+Math.imul(pe,ge)|0,h=h+Math.imul(_e,Re)|0,s=s+Math.imul(_e,Se)|0,s=s+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Se)|0,h=h+Math.imul(ie,je)|0,s=s+Math.imul(ie,ke)|0,s=s+Math.imul(ue,je)|0,b=b+Math.imul(ue,ke)|0,h=h+Math.imul(T,Ne)|0,s=s+Math.imul(T,Be)|0,s=s+Math.imul(O,Ne)|0,b=b+Math.imul(O,Be)|0,h=h+Math.imul(re,$e)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(se,$e)|0,b=b+Math.imul(se,De)|0,h=h+Math.imul(k,qe)|0,s=s+Math.imul(k,Le)|0,s=s+Math.imul(L,qe)|0,b=b+Math.imul(L,Le)|0,h=h+Math.imul(H,ze)|0,s=s+Math.imul(H,Ge)|0,s=s+Math.imul(X,ze)|0,b=b+Math.imul(X,Ge)|0;var Gt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(me,be),s=Math.imul(me,de),s=s+Math.imul(ye,be)|0,b=Math.imul(ye,de),h=h+Math.imul(Me,ce)|0,s=s+Math.imul(Me,ge)|0,s=s+Math.imul(Ee,ce)|0,b=b+Math.imul(Ee,ge)|0,h=h+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Se)|0,s=s+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Se)|0,h=h+Math.imul(_e,je)|0,s=s+Math.imul(_e,ke)|0,s=s+Math.imul(Z,je)|0,b=b+Math.imul(Z,ke)|0,h=h+Math.imul(ie,Ne)|0,s=s+Math.imul(ie,Be)|0,s=s+Math.imul(ue,Ne)|0,b=b+Math.imul(ue,Be)|0,h=h+Math.imul(T,$e)|0,s=s+Math.imul(T,De)|0,s=s+Math.imul(O,$e)|0,b=b+Math.imul(O,De)|0,h=h+Math.imul(re,qe)|0,s=s+Math.imul(re,Le)|0,s=s+Math.imul(se,qe)|0,b=b+Math.imul(se,Le)|0,h=h+Math.imul(k,ze)|0,s=s+Math.imul(k,Ge)|0,s=s+Math.imul(L,ze)|0,b=b+Math.imul(L,Ge)|0;var Wt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(me,ce),s=Math.imul(me,ge),s=s+Math.imul(ye,ce)|0,b=Math.imul(ye,ge),h=h+Math.imul(Me,Re)|0,s=s+Math.imul(Me,Se)|0,s=s+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Se)|0,h=h+Math.imul(fe,je)|0,s=s+Math.imul(fe,ke)|0,s=s+Math.imul(pe,je)|0,b=b+Math.imul(pe,ke)|0,h=h+Math.imul(_e,Ne)|0,s=s+Math.imul(_e,Be)|0,s=s+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,Be)|0,h=h+Math.imul(ie,$e)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(ue,$e)|0,b=b+Math.imul(ue,De)|0,h=h+Math.imul(T,qe)|0,s=s+Math.imul(T,Le)|0,s=s+Math.imul(O,qe)|0,b=b+Math.imul(O,Le)|0,h=h+Math.imul(re,ze)|0,s=s+Math.imul(re,Ge)|0,s=s+Math.imul(se,ze)|0,b=b+Math.imul(se,Ge)|0;var Vt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(me,Re),s=Math.imul(me,Se),s=s+Math.imul(ye,Re)|0,b=Math.imul(ye,Se),h=h+Math.imul(Me,je)|0,s=s+Math.imul(Me,ke)|0,s=s+Math.imul(Ee,je)|0,b=b+Math.imul(Ee,ke)|0,h=h+Math.imul(fe,Ne)|0,s=s+Math.imul(fe,Be)|0,s=s+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Be)|0,h=h+Math.imul(_e,$e)|0,s=s+Math.imul(_e,De)|0,s=s+Math.imul(Z,$e)|0,b=b+Math.imul(Z,De)|0,h=h+Math.imul(ie,qe)|0,s=s+Math.imul(ie,Le)|0,s=s+Math.imul(ue,qe)|0,b=b+Math.imul(ue,Le)|0,h=h+Math.imul(T,ze)|0,s=s+Math.imul(T,Ge)|0,s=s+Math.imul(O,ze)|0,b=b+Math.imul(O,Ge)|0;var Zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(me,je),s=Math.imul(me,ke),s=s+Math.imul(ye,je)|0,b=Math.imul(ye,ke),h=h+Math.imul(Me,Ne)|0,s=s+Math.imul(Me,Be)|0,s=s+Math.imul(Ee,Ne)|0,b=b+Math.imul(Ee,Be)|0,h=h+Math.imul(fe,$e)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(pe,$e)|0,b=b+Math.imul(pe,De)|0,h=h+Math.imul(_e,qe)|0,s=s+Math.imul(_e,Le)|0,s=s+Math.imul(Z,qe)|0,b=b+Math.imul(Z,Le)|0,h=h+Math.imul(ie,ze)|0,s=s+Math.imul(ie,Ge)|0,s=s+Math.imul(ue,ze)|0,b=b+Math.imul(ue,Ge)|0;var cr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863,h=Math.imul(me,Ne),s=Math.imul(me,Be),s=s+Math.imul(ye,Ne)|0,b=Math.imul(ye,Be),h=h+Math.imul(Me,$e)|0,s=s+Math.imul(Me,De)|0,s=s+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,De)|0,h=h+Math.imul(fe,qe)|0,s=s+Math.imul(fe,Le)|0,s=s+Math.imul(pe,qe)|0,b=b+Math.imul(pe,Le)|0,h=h+Math.imul(_e,ze)|0,s=s+Math.imul(_e,Ge)|0,s=s+Math.imul(Z,ze)|0,b=b+Math.imul(Z,Ge)|0;var hr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(me,$e),s=Math.imul(me,De),s=s+Math.imul(ye,$e)|0,b=Math.imul(ye,De),h=h+Math.imul(Me,qe)|0,s=s+Math.imul(Me,Le)|0,s=s+Math.imul(Ee,qe)|0,b=b+Math.imul(Ee,Le)|0,h=h+Math.imul(fe,ze)|0,s=s+Math.imul(fe,Ge)|0,s=s+Math.imul(pe,ze)|0,b=b+Math.imul(pe,Ge)|0;var dr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(dr>>>26)|0,dr&=67108863,h=Math.imul(me,qe),s=Math.imul(me,Le),s=s+Math.imul(ye,qe)|0,b=Math.imul(ye,Le),h=h+Math.imul(Me,ze)|0,s=s+Math.imul(Me,Ge)|0,s=s+Math.imul(Ee,ze)|0,b=b+Math.imul(Ee,Ge)|0;var Yr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,h=Math.imul(me,ze),s=Math.imul(me,Ge),s=s+Math.imul(ye,ze)|0,b=Math.imul(ye,Ge);var Jr=(v+h|0)+((s&8191)<<13)|0;return v=(b+(s>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w[0]=Et,w[1]=Ct,w[2]=Mt,w[3]=At,w[4]=Rt,w[5]=qt,w[6]=zt,w[7]=$t,w[8]=Ht,w[9]=Kt,w[10]=Gt,w[11]=Wt,w[12]=Vt,w[13]=Zt,w[14]=cr,w[15]=hr,w[16]=dr,w[17]=Yr,w[18]=Jr,v!==0&&(w[19]=v,p.length++),p};Math.imul||(A=R);function U(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,y=0,x=0;x>>26)|0,y+=w>>>26,w&=67108863}u.words[x]=v,p=w,w=y}return p!==0?u.words[x]=p:u.length--,u._strip()}function V(d,o,u){return U(d,o,u)}i.prototype.mulTo=function(o,u){var p,y=this.length+o.length;return this.length===10&&o.length===10?p=A(this,o,u):y<63?p=R(this,o,u):y<1024?p=U(this,o,u):p=V(this,o,u),p},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),V(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var p=0,y=0;y>=26,p+=x/67108864|0,p+=w>>>26,this.words[y]=w&67108863}return p!==0&&(this.words[y]=p,this.length++),u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=B(o);if(u.length===0)return new i(1);for(var p=this,y=0;y=0);var u=o%26,p=(o-u)/26,y=67108863>>>26-u<<26-u,x;if(u!==0){var w=0;for(x=0;x>>26-u}w&&(this.words[x]=w,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x=0);var y;u?y=(u-u%26)/26:y=0;var x=o%26,w=Math.min((o-x)/26,this.length),v=67108863^67108863>>>x<w)for(this.length-=w,s=0;s=0&&(b!==0||s>=y);s--){var D=this.words[s]|0;this.words[s]=b<<26-x|D>>>x,b=D&v}return h&&b!==0&&(h.words[h.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return n(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,y=1<=0);var u=o%26,p=(o-u)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var y=67108863^67108863>>>u<=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u>26)-(h/67108864|0),this.words[x+p]=w&67108863}for(;x>26,this.words[x+p]=w&67108863;if(v===0)return this._strip();for(n(v===-1),v=0,x=0;x>26,this.words[x]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,y=this.clone(),x=o,w=x.words[x.length-1]|0,v=this._countBits(w);p=26-v,p!==0&&(x=x.ushln(p),y.iushln(p),w=x.words[x.length-1]|0);var h=y.length-x.length,s;if(u!=="mod"){s=new i(null),s.length=h+1,s.words=new Array(s.length);for(var b=0;b=0;C--){var F=(y.words[x.length+C]|0)*67108864+(y.words[x.length+C-1]|0);for(F=Math.min(F/w|0,67108863),y._ishlnsubmul(x,F,C);y.negative!==0;)F--,y.negative=0,y._ishlnsubmul(x,1,C),y.isZero()||(y.negative^=1);s&&(s.words[C]=F)}return s&&s._strip(),y._strip(),u!=="div"&&p!==0&&y.iushrn(p),{div:s||null,mod:y}},i.prototype.divmod=function(o,u,p){if(n(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,x,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,u),u!=="mod"&&(y=w.div.neg()),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.iadd(o)),{div:y,mod:x}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),u),u!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),u),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.isub(o)),{div:w.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),x=o.andln(1),w=p.cmp(y);return w<0||x===1&&w===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=(1<<26)%o,y=0,x=this.length-1;x>=0;x--)y=(p*y+(this.words[x]|0))%o;return u?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var x=(this.words[y]|0)+p*67108864;this.words[y]=x/o|0,p=x%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=new i(0),v=new i(1),h=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++h;for(var s=p.clone(),b=u.clone();!u.isZero();){for(var D=0,C=1;!(u.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(u.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(s),x.isub(b)),y.iushrn(1),x.iushrn(1);for(var F=0,$=1;!(p.words[0]&$)&&F<26;++F,$<<=1);if(F>0)for(p.iushrn(F);F-- >0;)(w.isOdd()||v.isOdd())&&(w.iadd(s),v.isub(b)),w.iushrn(1),v.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(w),x.isub(v)):(p.isub(u),w.isub(y),v.isub(x))}return{a:w,b:v,gcd:p.iushln(h)}},i.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var v=0,h=1;!(u.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(u.iushrn(v);v-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var s=0,b=1;!(p.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(p.iushrn(s);s-- >0;)x.isOdd()&&x.iadd(w),x.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(x)):(p.isub(u),x.isub(y))}var D;return u.cmpn(1)===0?D=y:D=x,D.cmpn(0)<0&&D.iadd(o),D},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var y=0;u.isEven()&&p.isEven();y++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=u.cmp(p);if(x<0){var w=u;u=p,p=w}else if(x===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){n(typeof o=="number");var u=o%26,p=(o-u)/26,y=1<>>26,v&=67108863,this.words[w]=v}return x!==0&&(this.words[w]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;p=y===o?0:yo.length)return 1;if(this.length=0;p--){var y=this.words[p]|0,x=o.words[p]|0;if(y!==x){yx&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new G(o)},i.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function N(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},N.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var y=p0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},N.prototype.split=function(o,u){o.iushrn(this.n,0,u)},N.prototype.imulK=function(o){return o.imul(this.k)};function K(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(K,N),K.prototype.split=function(o,u){for(var p=4194303,y=Math.min(o.length,9),x=0;x>>22,w=v}w>>>=22,o.words[x-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},K.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p>>=26,o.words[p]=x,u=y}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(j[o])return j[o];var u;if(o==="k256")u=new K;else if(o==="p224")u=new J;else if(o==="p192")u=new te;else if(o==="p25519")u=new ee;else throw new Error("Unknown prime "+o);return j[o]=u,u};function G(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else n(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}G.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},G.prototype._verify2=function(o,u){n((o.negative|u.negative)===0,"red works only with positives"),n(o.red&&o.red===u.red,"red works only with red numbers")},G.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},G.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},G.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},G.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},G.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},G.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},G.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},G.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},G.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},G.prototype.isqr=function(o){return this.imul(o,o.clone())},G.prototype.sqr=function(o){return this.mul(o,o)},G.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(n(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);n(!y.isZero());var w=new i(1).toRed(this),v=w.redNeg(),h=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,h).cmp(v)!==0;)s.redIAdd(v);for(var b=this.pow(s,y),D=this.pow(o,y.addn(1).iushrn(1)),C=this.pow(o,y),F=x;C.cmp(w)!==0;){for(var $=C,H=0;$.cmp(w)!==0;H++)$=$.redSqr();n(H=0;x--){for(var b=u.words[x],D=s-1;D>=0;D--){var C=b>>D&1;if(w!==y[0]&&(w=this.sqr(w)),C===0&&v===0){h=0;continue}v<<=1,v|=C,h++,!(h!==p&&(x!==0||D!==0))&&(w=this.mul(w,y[v]),h=0,v=0)}s=26}return w},G.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},G.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new E(o)};function E(d){G.call(this,d),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)}a(E,G),E.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},E.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},E.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(e,Oe)})(F7);var kX=F7.exports;const at=Nr(kX);function m0(e,t,r){return r={path:t,exports:{},require:function(n,a){return IX(n,a??r.path)}},e(r,r.exports),r.exports}function IX(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var U7=aR;function aR(e,t){if(!e)throw new Error(t||"Assertion failed")}aR.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var Ri=m0(function(e,t){var r=t;function n(f,l){if(Array.isArray(f))return f.slice();if(!f)return[];var c=[];if(typeof f!="string"){for(var m=0;m>8,S=g&255;_?c.push(_,S):c.push(S)}return c}r.toArray=n;function a(f){return f.length===1?"0"+f:f}r.zero2=a;function i(f){for(var l="",c=0;c(S>>1)-1?I=(S>>1)-B:I=B,M.isubn(I)):I=0,_[P]=I,M.iushrn(1)}return _}r.getNAF=n;function a(c,m){var g=[[],[]];c=c.clone(),m=m.clone();for(var _=0,S=0,M;c.cmpn(-_)>0||m.cmpn(-S)>0;){var P=c.andln(3)+_&3,I=m.andln(3)+S&3;P===3&&(P=-1),I===3&&(I=-1);var B;P&1?(M=c.andln(7)+_&7,(M===3||M===5)&&I===2?B=-P:B=P):B=0,g[0].push(B);var R;I&1?(M=m.andln(7)+S&7,(M===3||M===5)&&P===2?R=-I:R=I):R=0,g[1].push(R),2*_===B+1&&(_=1-_),2*S===R+1&&(S=1-S),c.iushrn(1),m.iushrn(1)}return g}r.getJSF=a;function i(c,m,g){var _="_"+m;c.prototype[m]=function(){return this[_]!==void 0?this[_]:this[_]=g.call(this)}}r.cachedProperty=i;function f(c){return typeof c=="string"?r.toArray(c,"hex"):c}r.parseBytes=f;function l(c){return new at(c,"hex","le")}r.intFromLE=l}),rh=Dn.getNAF,BX=Dn.getJSF,nh=Dn.assert;function jo(e,t){this.type=e,this.p=new at(t.p,16),this.red=t.prime?at.red(t.prime):at.mont(this.p),this.zero=new at(0).toRed(this.red),this.one=new at(1).toRed(this.red),this.two=new at(2).toRed(this.red),this.n=t.n&&new at(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))}var Of=jo;jo.prototype.point=function(){throw new Error("Not implemented")};jo.prototype.validate=function(){throw new Error("Not implemented")};jo.prototype._fixedNafMul=function(t,r){nh(t.precomputed);var n=t._getDoubles(),a=rh(r,1,this._bitLength),i=(1<=l;m--)c=(c<<1)+a[m];f.push(c)}for(var g=this.jpoint(null,null,null),_=this.jpoint(null,null,null),S=i;S>0;S--){for(l=0;l=0;c--){for(var m=0;c>=0&&f[c]===0;c--)m++;if(c>=0&&m++,l=l.dblp(m),c<0)break;var g=f[c];nh(g!==0),t.type==="affine"?g>0?l=l.mixedAdd(i[g-1>>1]):l=l.mixedAdd(i[-g-1>>1].neg()):g>0?l=l.add(i[g-1>>1]):l=l.add(i[-g-1>>1].neg())}return t.type==="affine"?l.toP():l};jo.prototype._wnafMulAdd=function(t,r,n,a,i){var f=this._wnafT1,l=this._wnafT2,c=this._wnafT3,m=0,g,_,S;for(g=0;g=1;g-=2){var P=g-1,I=g;if(f[P]!==1||f[I]!==1){c[P]=rh(n[P],f[P],this._bitLength),c[I]=rh(n[I],f[I],this._bitLength),m=Math.max(c[P].length,m),m=Math.max(c[I].length,m);continue}var B=[r[P],null,null,r[I]];r[P].y.cmp(r[I].y)===0?(B[1]=r[P].add(r[I]),B[2]=r[P].toJ().mixedAdd(r[I].neg())):r[P].y.cmp(r[I].y.redNeg())===0?(B[1]=r[P].toJ().mixedAdd(r[I]),B[2]=r[P].add(r[I].neg())):(B[1]=r[P].toJ().mixedAdd(r[I]),B[2]=r[P].toJ().mixedAdd(r[I].neg()));var R=[-3,-1,-5,-7,0,7,5,1,3],A=BX(n[P],n[I]);for(m=Math.max(A[0].length,m),c[P]=new Array(m),c[I]=new Array(m),_=0;_=0;g--){for(var K=0;g>=0;){var J=!0;for(_=0;_=0&&K++,j=j.dblp(K),g<0)break;for(_=0;_0?S=l[_][te-1>>1]:te<0&&(S=l[_][-te-1>>1].neg()),S.type==="affine"?j=j.mixedAdd(S):j=j.add(S))}}for(g=0;g=Math.ceil((t.bitLength()+1)/r.step):!1};hi.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i=0&&(M=m,P=g),_.negative&&(_=_.neg(),S=S.neg()),M.negative&&(M=M.neg(),P=P.neg()),[{a:_,b:S},{a:M,b:P}]};di.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],a=r[1],i=a.b.mul(t).divRound(this.n),f=n.b.neg().mul(t).divRound(this.n),l=i.mul(n.a),c=f.mul(a.a),m=i.mul(n.b),g=f.mul(a.b),_=t.sub(l).sub(c),S=m.add(g).neg();return{k1:_,k2:S}};di.prototype.pointFromX=function(t,r){t=new at(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(r&&!i||!r&&i)&&(a=a.redNeg()),this.point(t,a)};di.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,a=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};di.prototype._endoWnafMulAdd=function(t,r,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,f=0;f":""};Tr.prototype.isInfinity=function(){return this.inf};Tr.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),a=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Tr.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(),a=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(a),f=i.redSqr().redISub(this.x.redAdd(this.x)),l=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,l)};Tr.prototype.getX=function(){return this.x.fromRed()};Tr.prototype.getY=function(){return this.y.fromRed()};Tr.prototype.mul=function(t){return t=new at(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)};Tr.prototype.mulAdd=function(t,r,n){var a=[this,r],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Tr.prototype.jmulAdd=function(t,r,n){var a=[this,r],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Tr.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)};Tr.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,a=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return r};Tr.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 jr(e,t,r,n){Of.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new at(0)):(this.x=new at(t,16),this.y=new at(r,16),this.z=new at(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}j7(jr,Of.BasePoint);di.prototype.jpoint=function(t,r,n){return new jr(this,t,r,n)};jr.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),a=this.y.redMul(r).redMul(t);return this.curve.point(n,a)};jr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};jr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(r),i=t.x.redMul(n),f=this.y.redMul(r.redMul(t.z)),l=t.y.redMul(n.redMul(this.z)),c=a.redSub(i),m=f.redSub(l);if(c.cmpn(0)===0)return m.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=c.redSqr(),_=g.redMul(c),S=a.redMul(g),M=m.redSqr().redIAdd(_).redISub(S).redISub(S),P=m.redMul(S.redISub(M)).redISub(f.redMul(_)),I=this.z.redMul(t.z).redMul(c);return this.curve.jpoint(M,P,I)};jr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,a=t.x.redMul(r),i=this.y,f=t.y.redMul(r).redMul(this.z),l=n.redSub(a),c=i.redSub(f);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=l.redSqr(),g=m.redMul(l),_=n.redMul(m),S=c.redSqr().redIAdd(g).redISub(_).redISub(_),M=c.redMul(_.redISub(S)).redISub(i.redMul(g)),P=this.z.redMul(l);return this.curve.jpoint(S,M,P)};jr.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=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};jr.prototype.inspect=function(){return this.isInfinity()?"":""};jr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var t1=m0(function(e,t){var r=t;r.base=Of,r.short=NX,r.mont=null,r.edwards=null}),r1=m0(function(e,t){var r=t,n=Dn.assert;function a(l){l.type==="short"?this.curve=new t1.short(l):l.type==="edwards"?this.curve=new t1.edwards(l):this.curve=new t1.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=a;function i(l,c){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){var m=new a(c);return Object.defineProperty(r,l,{configurable:!0,enumerable:!0,value:m}),m}})}i("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:Cn.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("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:Cn.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("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:Cn.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("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:Cn.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"]}),i("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:Cn.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"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Cn.sha256,gRed:!1,g:["9"]}),i("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:Cn.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var f;try{f=null.crash()}catch{f=void 0}i("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:Cn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",f]})});function Oo(e){if(!(this instanceof Oo))return new Oo(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=Ri.toArray(e.entropy,e.entropyEnc||"hex"),r=Ri.toArray(e.nonce,e.nonceEnc||"hex"),n=Ri.toArray(e.pers,e.persEnc||"hex");U7(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var oR=Oo;Oo.prototype._init=function(t,r,n){var a=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};Oo.prototype.generate=function(t,r,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(a=n,n=r,r=null),n&&(n=Ri.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length"};var DX=Dn.assert;function Rd(e,t){if(e instanceof Rd)return e;this._importDER(e,t)||(DX(e.r&&e.s,"Signature without r or s"),this.r=new at(e.r,16),this.s=new at(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var Td=Rd;function FX(){this.place=0}function Tp(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var a=0,i=0,f=t.place;i>>=0;return a<=127?!1:(t.place=f,a)}function Yb(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}Rd.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=Yb(r),n=Yb(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];Pp(a,r.length),a=a.concat(r),a.push(2),Pp(a,n.length);var i=a.concat(n),f=[48];return Pp(f,i.length),f=f.concat(i),Dn.encode(f,t)};var UX=function(){throw new Error("unsupported")},fR=Dn.assert;function ai(e){if(!(this instanceof ai))return new ai(e);typeof e=="string"&&(fR(Object.prototype.hasOwnProperty.call(r1,e),"Unknown curve "+e),e=r1[e]),e instanceof r1.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}var jX=ai;ai.prototype.keyPair=function(t){return new q7(this,t)};ai.prototype.keyFromPrivate=function(t,r){return q7.fromPrivate(this,t,r)};ai.prototype.keyFromPublic=function(t,r){return q7.fromPublic(this,t,r)};ai.prototype.genKeyPair=function(t){t||(t={});for(var r=new oR({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||UX(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new at(2));;){var i=new at(r.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};ai.prototype._truncateToN=function(t,r){var n=t.byteLength()*8-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};ai.prototype.sign=function(t,r,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),r=this.keyFromPrivate(r,n),t=this._truncateToN(new at(t,16));for(var i=this.n.byteLength(),f=r.getPrivate().toArray("be",i),l=t.toArray("be",i),c=new oR({hash:this.hash,entropy:f,nonce:l,pers:a.pers,persEnc:a.persEnc||"utf8"}),m=this.n.sub(new at(1)),g=0;;g++){var _=a.k?a.k(g):new at(c.generate(this.n.byteLength()));if(_=this._truncateToN(_,!0),!(_.cmpn(1)<=0||_.cmp(m)>=0)){var S=this.g.mul(_);if(!S.isInfinity()){var M=S.getX(),P=M.umod(this.n);if(P.cmpn(0)!==0){var I=_.invm(this.n).mul(P.mul(r.getPrivate()).iadd(t));if(I=I.umod(this.n),I.cmpn(0)!==0){var B=(S.getY().isOdd()?1:0)|(M.cmp(P)!==0?2:0);return a.canonical&&I.cmp(this.nh)>0&&(I=this.n.sub(I),B^=1),new Td({r:P,s:I,recoveryParam:B})}}}}}};ai.prototype.verify=function(t,r,n,a){t=this._truncateToN(new at(t,16)),n=this.keyFromPublic(n,a),r=new Td(r,"hex");var i=r.r,f=r.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||f.cmpn(1)<0||f.cmp(this.n)>=0)return!1;var l=f.invm(this.n),c=l.mul(t).umod(this.n),m=l.mul(i).umod(this.n),g;return this.curve._maxwellTrick?(g=this.g.jmulAdd(c,n.getPublic(),m),g.isInfinity()?!1:g.eqXToP(i)):(g=this.g.mulAdd(c,n.getPublic(),m),g.isInfinity()?!1:g.getX().umod(this.n).cmp(i)===0)};ai.prototype.recoverPubKey=function(e,t,r,n){fR((3&r)===r,"The recovery param is more than two bits"),t=new Td(t,n);var a=this.n,i=new at(e),f=t.r,l=t.s,c=r&1,m=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&m)throw new Error("Unable to find sencond key candinate");m?f=this.curve.pointFromX(f.add(this.curve.n),c):f=this.curve.pointFromX(f,c);var g=t.r.invm(a),_=a.sub(i).mul(g).umod(a),S=l.mul(g).umod(a);return this.g.mulAdd(_,f,S)};ai.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new Td(t,n),t.recoveryParam!==null)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch{continue}if(i.eq(r))return a}throw new Error("Unable to find valid recovery factor")};var qX=m0(function(e,t){var r=t;r.version="6.5.4",r.utils=Dn,r.rand=function(){throw new Error("unsupported")},r.curve=t1,r.curves=r1,r.ec=jX,r.eddsa=null}),zX=qX.ec;const $X="signing-key/5.7.0",F6=new tt($X);let Op=null;function Zi(){return Op||(Op=new zX("secp256k1")),Op}class Es{constructor(t){it(this,"curve","secp256k1"),it(this,"privateKey",nt(t)),JA(this.privateKey)!==32&&F6.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=Zi().keyFromPrivate(Ye(this.privateKey));it(this,"publicKey","0x"+r.getPublic(!1,"hex")),it(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),it(this,"_isSigningKey",!0)}_addPoint(t){const r=Zi().keyFromPublic(Ye(this.publicKey)),n=Zi().keyFromPublic(Ye(t));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(t){const r=Zi().keyFromPrivate(Ye(this.privateKey)),n=Ye(t);n.length!==32&&F6.throwArgumentError("bad digest length","digest",t);const a=r.sign(n,{canonical:!0});return y0({recoveryParam:a.recoveryParam,r:Qn("0x"+a.r.toString(16),32),s:Qn("0x"+a.s.toString(16),32)})}computeSharedSecret(t){const r=Zi().keyFromPrivate(Ye(this.privateKey)),n=Zi().keyFromPublic(Ye(uR(t)));return Qn("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function sR(e,t){const r=y0(t),n={r:Ye(r.r),s:Ye(r.s)};return"0x"+Zi().recoverPubKey(Ye(e),n,r.recoveryParam).encode("hex",!1)}function uR(e,t){const r=Ye(e);if(r.length===32){const n=new Es(r);return t?"0x"+Zi().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return t?nt(r):"0x"+Zi().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return t?"0x"+Zi().keyFromPublic(r).getPublic(!0,"hex"):nt(r)}return F6.throwArgumentError("invalid public or private key","key","[REDACTED]")}const HX="transactions/5.7.0",Ai=new tt(HX);var Jb;(function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"})(Jb||(Jb={}));const KX=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],GX={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function So(e){const t=uR(e);return Bi(Ju(rn(Ju(t,1)),12))}function lR(e,t){return So(sR(Ye(e),t))}function Mn(e,t){const r=_o(It.from(e).toHexString());return r.length>32&&Ai.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function kp(e,t){return{address:Bi(e),storageKeys:(t||[]).map((r,n)=>(JA(r)!==32&&Ai.throwArgumentError("invalid access list storageKey",`accessList[${e}:${n}]`,r),r.toLowerCase()))}}function WX(e){if(Array.isArray(e))return e.map((r,n)=>Array.isArray(r)?(r.length>2&&Ai.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),kp(r[0],r[1])):kp(r.address,r.storageKeys));const t=Object.keys(e).map(r=>{const n=e[r].reduce((a,i)=>(a[i]=!0,a),{});return kp(r,Object.keys(n).sort())});return t.sort((r,n)=>r.address.localeCompare(n.address)),t}function cR(e){return WX(e).map(t=>[t.address,t.storageKeys])}function VX(e,t){if(e.gasPrice!=null){const n=It.from(e.gasPrice),a=It.from(e.maxFeePerGas||0);n.eq(a)||Ai.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:a})}const r=[Mn(e.chainId||0,"chainId"),Mn(e.nonce||0,"nonce"),Mn(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Mn(e.maxFeePerGas||0,"maxFeePerGas"),Mn(e.gasLimit||0,"gasLimit"),e.to!=null?Bi(e.to):"0x",Mn(e.value||0,"value"),e.data||"0x",cR(e.accessList||[])];if(t){const n=y0(t);r.push(Mn(n.recoveryParam,"recoveryParam")),r.push(_o(n.r)),r.push(_o(n.s))}return Ss(["0x02",Q1(r)])}function ZX(e,t){const r=[Mn(e.chainId||0,"chainId"),Mn(e.nonce||0,"nonce"),Mn(e.gasPrice||0,"gasPrice"),Mn(e.gasLimit||0,"gasLimit"),e.to!=null?Bi(e.to):"0x",Mn(e.value||0,"value"),e.data||"0x",cR(e.accessList||[])];if(t){const n=y0(t);r.push(Mn(n.recoveryParam,"recoveryParam")),r.push(_o(n.r)),r.push(_o(n.s))}return Ss(["0x01",Q1(r)])}function XX(e,t){_X(e,GX);const r=[];KX.forEach(function(f){let l=e[f.name]||[];const c={};f.numeric&&(c.hexPad="left"),l=Ye(nt(l,c)),f.length&&l.length!==f.length&&l.length>0&&Ai.throwArgumentError("invalid length for "+f.name,"transaction:"+f.name,l),f.maxLength&&(l=_o(l),l.length>f.maxLength&&Ai.throwArgumentError("invalid length for "+f.name,"transaction:"+f.name,l)),r.push(nt(l))});let n=0;if(e.chainId!=null?(n=e.chainId,typeof n!="number"&&Ai.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!B7(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),n!==0&&(r.push(nt(n)),r.push("0x"),r.push("0x")),!t)return Q1(r);const a=y0(t);let i=27+a.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),i+=n*2+8,a.v>28&&a.v!==i&&Ai.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):a.v!==i&&Ai.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(nt(i)),r.push(_o(Ye(a.r))),r.push(_o(Ye(a.s))),Q1(r)}function Qb(e,t){if(e.type==null||e.type===0)return e.accessList!=null&&Ai.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),XX(e,t);switch(e.type){case 1:return ZX(e,t);case 2:return VX(e,t)}return Ai.throwError(`unsupported transaction type: ${e.type}`,tt.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}const YX="abstract-provider/5.7.0";var JX=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const QX=new tt(YX);class z7{constructor(){QX.checkAbstract(new.target,z7),it(this,"_isProvider",!0)}getFeeData(){return JX(this,void 0,void 0,function*(){const{block:t,gasPrice:r}=yield fs({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(f=>null)});let n=null,a=null,i=null;return t&&t.baseFeePerGas&&(n=t.baseFeePerGas,i=It.from("1500000000"),a=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:n,maxFeePerGas:a,maxPriorityFeePerGas:i,gasPrice:r}})}addListener(t,r){return this.on(t,r)}removeListener(t,r){return this.off(t,r)}static isProvider(t){return!!(t&&t._isProvider)}}const eY="abstract-signer/5.7.0";var mi=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const bi=new tt(eY),tY=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],rY=[tt.errors.INSUFFICIENT_FUNDS,tt.errors.NONCE_EXPIRED,tt.errors.REPLACEMENT_UNDERPRICED];class $7{constructor(){bi.checkAbstract(new.target,$7),it(this,"_isSigner",!0)}getBalance(t){return mi(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return mi(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return mi(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield fs(this.checkTransaction(t));return yield this.provider.estimateGas(r)})}call(t,r){return mi(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield fs(this.checkTransaction(t));return yield this.provider.call(n,r)})}sendTransaction(t){return mi(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(t),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return mi(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return mi(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return mi(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return mi(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(const n in t)tY.indexOf(n)===-1&&bi.throwArgumentError("invalid transaction key: "+n,"transaction",t);const r=N6(t);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&bi.throwArgumentError("from address mismatch","transaction",t),n[0])),r}populateTransaction(t){return mi(this,void 0,void 0,function*(){const r=yield fs(this.checkTransaction(t));r.to!=null&&(r.to=Promise.resolve(r.to).then(a=>mi(this,void 0,void 0,function*(){if(a==null)return null;const i=yield this.resolveName(a);return i==null&&bi.throwArgumentError("provided ENS name resolves to null","tx.to",a),i})),r.to.catch(a=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?bi.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(r.type===0||r.type===1)&&n&&bi.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const a=yield this.getFeeData();if(r.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const i=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=i,r.maxPriorityFeePerGas=i}else r.maxFeePerGas==null&&(r.maxFeePerGas=a.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(n&&bi.throwError("network does not support EIP-1559",tt.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=a.gasPrice),r.type=0):bi.throwError("failed to get consistent fee data",tt.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=a.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(a=>{if(rY.indexOf(a.code)>=0)throw a;return bi.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",tt.errors.UNPREDICTABLE_GAS_LIMIT,{error:a,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(a=>(a[1]!==0&&a[0]!==a[1]&&bi.throwArgumentError("chainId address mismatch","transaction",t),a[0])),yield fs(r)})}_checkProvider(t){this.provider||bi.throwError("missing provider",tt.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}class hR{constructor(t){it(this,"alphabet",t),it(this,"base",t.length),it(this,"_alphabetMap",{}),it(this,"_leader",t.charAt(0));for(let r=0;r0;)n.push(f%this.base),f=f/this.base|0}let a="";for(let i=0;r[i]===0&&i=0;--i)a+=this.alphabet[n[i]];return a}decode(t){if(typeof t!="string")throw new TypeError("Expected String");let r=[];if(t.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;i>0;)r.push(i&255),i>>=8}for(let n=0;t[n]===this._leader&&n>24&255,c[t.length+1]=_>>16&255,c[t.length+2]=_>>8&255,c[t.length+3]=_&255;let S=Ye(ih(a,e,c));i||(i=S.length,g=new Uint8Array(i),f=Math.ceil(n/i),m=n-(f-1)*i),g.set(S);for(let I=1;I>5,this.byteCount=this.blockCount<<2,this.outputBlocks=$>>5,this.extraBytes=($&31)>>3;for(var H=0;H<50;++H)this.s[H]=0}s.prototype.update=function(C){if(this.finalized)throw new Error(r);var U,$=typeof C;if($!=="string"){if($==="object"){if(C===null)throw new Error(t);if(c&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!Array.isArray(C)&&(!c||!ArrayBuffer.isView(C)))throw new Error(t)}else throw new Error(t);U=!0}for(var H=this.blocks,X=this.byteCount,z=C.length,k=this.blockCount,L=0,oe=this.s,re,se;L>2]|=C[L]<>2]|=se<>2]|=(192|se>>6)<>2]|=(128|se&63)<=57344?(H[re>>2]|=(224|se>>12)<>2]|=(128|se>>6&63)<>2]|=(128|se&63)<>2]|=(240|se>>18)<>2]|=(128|se>>12&63)<>2]|=(128|se>>6&63)<>2]|=(128|se&63)<=X){for(this.start=re-X,this.block=H[k],re=0;re>8,$=C&255;$>0;)X.unshift($),C=C>>8,$=C&255,++H;return U?X.push(H):X.unshift(H),this.update(X),X.length},s.prototype.encodeString=function(C){var U,$=typeof C;if($!=="string"){if($==="object"){if(C===null)throw new Error(t);if(c&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!Array.isArray(C)&&(!c||!ArrayBuffer.isView(C)))throw new Error(t)}else throw new Error(t);U=!0}var H=0,X=C.length;if(U)H=X;else for(var z=0;z=57344?H+=3:(k=65536+((k&1023)<<10|C.charCodeAt(++z)&1023),H+=4)}return H+=this.encode(H*8),this.update(C),H},s.prototype.bytepad=function(C,U){for(var $=this.encode(U),H=0;H>2]|=this.padding[U&3],this.lastByteIndex===this.byteCount)for(C[0]=C[$],U=1;U<$+1;++U)C[U]=0;for(C[$-1]|=2147483648,U=0;U<$;++U)H[U]^=C[U];D(H)}},s.prototype.toString=s.prototype.hex=function(){this.finalize();for(var C=this.blockCount,U=this.s,$=this.outputBlocks,H=this.extraBytes,X=0,z=0,k="",L;z<$;){for(X=0;X>4&15]+m[L&15]+m[L>>12&15]+m[L>>8&15]+m[L>>20&15]+m[L>>16&15]+m[L>>28&15]+m[L>>24&15];z%C===0&&(D(U),X=0)}return H&&(L=U[X],k+=m[L>>4&15]+m[L&15],H>1&&(k+=m[L>>12&15]+m[L>>8&15]),H>2&&(k+=m[L>>20&15]+m[L>>16&15])),k},s.prototype.arrayBuffer=function(){this.finalize();var C=this.blockCount,U=this.s,$=this.outputBlocks,H=this.extraBytes,X=0,z=0,k=this.outputBits>>3,L;H?L=new ArrayBuffer($+1<<2):L=new ArrayBuffer(k);for(var oe=new Uint32Array(L);z<$;){for(X=0;X>8&255,k[L+2]=oe>>16&255,k[L+3]=oe>>24&255;z%C===0&&D(U)}return H&&(L=z<<2,oe=U[X],k[L]=oe&255,H>1&&(k[L+1]=oe>>8&255),H>2&&(k[L+2]=oe>>16&255)),k};function b(C,U,$){s.call(this,C,U,$)}b.prototype=new s,b.prototype.finalize=function(){return this.encode(this.outputBits,!0),s.prototype.finalize.call(this)};var D=function(C){var U,$,H,X,z,k,L,oe,re,se,Y,T,O,W,ie,ue,we,_e,Z,le,fe,pe,Ce,Me,Ee,ne,me,ye,Ie,he,ve,Q,xe,Ae,q,be,de,ae,ce,ge,Ue,Re,Se,Ve,je,ke,Ze,Ne,Be,et,$e,De,Qe,qe,Le,rt,ze,Ge,Et,Ct,Mt,At,Rt;for(H=0;H<48;H+=2)X=C[0]^C[10]^C[20]^C[30]^C[40],z=C[1]^C[11]^C[21]^C[31]^C[41],k=C[2]^C[12]^C[22]^C[32]^C[42],L=C[3]^C[13]^C[23]^C[33]^C[43],oe=C[4]^C[14]^C[24]^C[34]^C[44],re=C[5]^C[15]^C[25]^C[35]^C[45],se=C[6]^C[16]^C[26]^C[36]^C[46],Y=C[7]^C[17]^C[27]^C[37]^C[47],T=C[8]^C[18]^C[28]^C[38]^C[48],O=C[9]^C[19]^C[29]^C[39]^C[49],U=T^(k<<1|L>>>31),$=O^(L<<1|k>>>31),C[0]^=U,C[1]^=$,C[10]^=U,C[11]^=$,C[20]^=U,C[21]^=$,C[30]^=U,C[31]^=$,C[40]^=U,C[41]^=$,U=X^(oe<<1|re>>>31),$=z^(re<<1|oe>>>31),C[2]^=U,C[3]^=$,C[12]^=U,C[13]^=$,C[22]^=U,C[23]^=$,C[32]^=U,C[33]^=$,C[42]^=U,C[43]^=$,U=k^(se<<1|Y>>>31),$=L^(Y<<1|se>>>31),C[4]^=U,C[5]^=$,C[14]^=U,C[15]^=$,C[24]^=U,C[25]^=$,C[34]^=U,C[35]^=$,C[44]^=U,C[45]^=$,U=oe^(T<<1|O>>>31),$=re^(O<<1|T>>>31),C[6]^=U,C[7]^=$,C[16]^=U,C[17]^=$,C[26]^=U,C[27]^=$,C[36]^=U,C[37]^=$,C[46]^=U,C[47]^=$,U=se^(X<<1|z>>>31),$=Y^(z<<1|X>>>31),C[8]^=U,C[9]^=$,C[18]^=U,C[19]^=$,C[28]^=U,C[29]^=$,C[38]^=U,C[39]^=$,C[48]^=U,C[49]^=$,W=C[0],ie=C[1],ke=C[11]<<4|C[10]>>>28,Ze=C[10]<<4|C[11]>>>28,ye=C[20]<<3|C[21]>>>29,Ie=C[21]<<3|C[20]>>>29,Ct=C[31]<<9|C[30]>>>23,Mt=C[30]<<9|C[31]>>>23,Re=C[40]<<18|C[41]>>>14,Se=C[41]<<18|C[40]>>>14,Ae=C[2]<<1|C[3]>>>31,q=C[3]<<1|C[2]>>>31,ue=C[13]<<12|C[12]>>>20,we=C[12]<<12|C[13]>>>20,Ne=C[22]<<10|C[23]>>>22,Be=C[23]<<10|C[22]>>>22,he=C[33]<<13|C[32]>>>19,ve=C[32]<<13|C[33]>>>19,At=C[42]<<2|C[43]>>>30,Rt=C[43]<<2|C[42]>>>30,qe=C[5]<<30|C[4]>>>2,Le=C[4]<<30|C[5]>>>2,be=C[14]<<6|C[15]>>>26,de=C[15]<<6|C[14]>>>26,_e=C[25]<<11|C[24]>>>21,Z=C[24]<<11|C[25]>>>21,et=C[34]<<15|C[35]>>>17,$e=C[35]<<15|C[34]>>>17,Q=C[45]<<29|C[44]>>>3,xe=C[44]<<29|C[45]>>>3,Me=C[6]<<28|C[7]>>>4,Ee=C[7]<<28|C[6]>>>4,rt=C[17]<<23|C[16]>>>9,ze=C[16]<<23|C[17]>>>9,ae=C[26]<<25|C[27]>>>7,ce=C[27]<<25|C[26]>>>7,le=C[36]<<21|C[37]>>>11,fe=C[37]<<21|C[36]>>>11,De=C[47]<<24|C[46]>>>8,Qe=C[46]<<24|C[47]>>>8,Ve=C[8]<<27|C[9]>>>5,je=C[9]<<27|C[8]>>>5,ne=C[18]<<20|C[19]>>>12,me=C[19]<<20|C[18]>>>12,Ge=C[29]<<7|C[28]>>>25,Et=C[28]<<7|C[29]>>>25,ge=C[38]<<8|C[39]>>>24,Ue=C[39]<<8|C[38]>>>24,pe=C[48]<<14|C[49]>>>18,Ce=C[49]<<14|C[48]>>>18,C[0]=W^~ue&_e,C[1]=ie^~we&Z,C[10]=Me^~ne&ye,C[11]=Ee^~me&Ie,C[20]=Ae^~be&ae,C[21]=q^~de&ce,C[30]=Ve^~ke&Ne,C[31]=je^~Ze&Be,C[40]=qe^~rt&Ge,C[41]=Le^~ze&Et,C[2]=ue^~_e&le,C[3]=we^~Z&fe,C[12]=ne^~ye&he,C[13]=me^~Ie&ve,C[22]=be^~ae&ge,C[23]=de^~ce&Ue,C[32]=ke^~Ne&et,C[33]=Ze^~Be&$e,C[42]=rt^~Ge&Ct,C[43]=ze^~Et&Mt,C[4]=_e^~le&pe,C[5]=Z^~fe&Ce,C[14]=ye^~he&Q,C[15]=Ie^~ve&xe,C[24]=ae^~ge&Re,C[25]=ce^~Ue&Se,C[34]=Ne^~et&De,C[35]=Be^~$e&Qe,C[44]=Ge^~Ct&At,C[45]=Et^~Mt&Rt,C[6]=le^~pe&W,C[7]=fe^~Ce&ie,C[16]=he^~Q&Me,C[17]=ve^~xe&Ee,C[26]=ge^~Re&Ae,C[27]=Ue^~Se&q,C[36]=et^~De&Ve,C[37]=$e^~Qe&je,C[46]=Ct^~At&qe,C[47]=Mt^~Rt&Le,C[8]=pe^~W&ue,C[9]=Ce^~ie&we,C[18]=Q^~Me&ne,C[19]=xe^~Ee&me,C[28]=Re^~Ae&be,C[29]=Se^~q&de,C[38]=De^~Ve&ke,C[39]=Qe^~je&Ze,C[48]=At^~qe&rt,C[49]=Rt^~Le&ze,C[0]^=I[H],C[1]^=I[H+1]};if(l)e.exports=o;else for(p=0;p{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch{e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(e){return e.message}return null}const Fb=nX();var L6;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(L6||(L6={}));var _i;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(_i||(_i={}));const Ub="0123456789abcdef";class tt{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){const n=t.toLowerCase();e1[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(Db>e1[n])&&console.log.apply(console,r)}debug(...t){this._log(tt.levels.DEBUG,t)}info(...t){this._log(tt.levels.INFO,t)}warn(...t){this._log(tt.levels.WARNING,t)}makeError(t,r,n){if(Nb)return this.makeError("censored error",r,{});r||(r=tt.errors.UNKNOWN_ERROR),n||(n={});const a=[];Object.keys(n).forEach(c=>{const m=n[c];try{if(m instanceof Uint8Array){let g="";for(let _=0;_>4],g+=Ub[m[_]&15];a.push(c+"=Uint8Array(0x"+g+")")}else a.push(c+"="+JSON.stringify(m))}catch{a.push(c+"="+JSON.stringify(n[c].toString()))}}),a.push(`code=${r}`),a.push(`version=${this.version}`);const i=t;let f="";switch(r){case _i.NUMERIC_FAULT:{f="NUMERIC_FAULT";const c=t;switch(c){case"overflow":case"underflow":case"division-by-zero":f+="-"+c;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result";break}break}case _i.CALL_EXCEPTION:case _i.INSUFFICIENT_FUNDS:case _i.MISSING_NEW:case _i.NONCE_EXPIRED:case _i.REPLACEMENT_UNDERPRICED:case _i.TRANSACTION_REPLACED:case _i.UNPREDICTABLE_GAS_LIMIT:f=r;break}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),a.length&&(t+=" ("+a.join(", ")+")");const l=new Error(t);return l.reason=i,l.code=r,Object.keys(n).forEach(function(c){l[c]=n[c]}),l}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,tt.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,a){t||this.throwError(r,n,a)}assertArgument(t,r,n,a){t||this.throwArgumentError(r,n,a)}checkNormalize(t){Fb&&this.throwError("platform missing String.prototype.normalize",tt.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Fb})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,tt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,tt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",tr&&this.throwError("too many arguments"+n,tt.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",tt.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",tt.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",tt.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return Ep||(Ep=new tt(rX)),Ep}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",tt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Lb){if(!t)return;this.globalLogger().throwError("error censorship permanent",tt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Nb=!!t,Lb=!!r}static setLogLevel(t){const r=e1[t.toLowerCase()];if(r==null){tt.globalLogger().warn("invalid log level - "+t);return}Db=r}static from(t){return new tt(t)}}tt.errors=_i;tt.levels=L6;const iX="bytes/5.7.0",ir=new tt(iX);function YA(e){return!!e.toHexString}function _s(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return _s(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function B7(e){return an(e)&&!(e.length%2)||Md(e)}function jb(e){return typeof e=="number"&&e==e&&e%1===0}function Md(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!jb(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function Ye(e,t){if(t||(t={}),typeof e=="number"){ir.checkSafeUint53(e,"invalid arrayify value");const r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),_s(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),YA(e)&&(e=e.toHexString()),an(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":ir.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let a=0;aYe(a)),r=t.reduce((a,i)=>a+i.length,0),n=new Uint8Array(r);return t.reduce((a,i)=>(n.set(i,a),a+i.length),0),_s(n)}function _o(e){let t=Ye(e);if(t.length===0)return t;let r=0;for(;rt&&ir.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),_s(r)}function an(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}const Cp="0123456789abcdef";function nt(e,t){if(t||(t={}),typeof e=="number"){ir.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=Cp[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),YA(e))return e.toHexString();if(an(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":ir.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Md(e)){let r="0x";for(let n=0;n>4]+Cp[a&15]}return r}return ir.throwArgumentError("invalid hexlify value","value",e)}function JA(e){if(typeof e!="string")e=nt(e);else if(!an(e)||e.length%2)return null;return(e.length-2)/2}function Ju(e,t,r){return typeof e!="string"?e=nt(e):(!an(e)||e.length%2)&&ir.throwArgumentError("invalid hexData","value",e),t=2+2*t,r!=null?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function Ss(e){let t="0x";return e.forEach(r=>{t+=nt(r).substring(2)}),t}function Qn(e,t){for(typeof e!="string"?e=nt(e):an(e)||ir.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&ir.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function y0(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(B7(e)){let r=Ye(e);r.length===64?(t.v=27+(r[32]>>7),r[32]&=127,t.r=nt(r.slice(0,32)),t.s=nt(r.slice(32,64))):r.length===65?(t.r=nt(r.slice(0,32)),t.s=nt(r.slice(32,64)),t.v=r[64]):ir.throwArgumentError("invalid signature string","signature",e),t.v<27&&(t.v===0||t.v===1?t.v+=27:ir.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=nt(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,t._vs!=null){const a=aX(Ye(t._vs),32);t._vs=nt(a);const i=a[0]>=128?1:0;t.recoveryParam==null?t.recoveryParam=i:t.recoveryParam!==i&&ir.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),a[0]&=127;const f=nt(a);t.s==null?t.s=f:t.s!==f&&ir.throwArgumentError("signature v mismatch _vs","signature",e)}if(t.recoveryParam==null)t.v==null?ir.throwArgumentError("signature missing v and recoveryParam","signature",e):t.v===0||t.v===1?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(t.v==null)t.v=27+t.recoveryParam;else{const a=t.v===0||t.v===1?t.v:1-t.v%2;t.recoveryParam!==a&&ir.throwArgumentError("signature recoveryParam mismatch v","signature",e)}t.r==null||!an(t.r)?ir.throwArgumentError("signature missing or invalid r","signature",e):t.r=Qn(t.r,32),t.s==null||!an(t.s)?ir.throwArgumentError("signature missing or invalid s","signature",e):t.s=Qn(t.s,32);const r=Ye(t.s);r[0]>=128&&ir.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=nt(r);t._vs&&(an(t._vs)||ir.throwArgumentError("signature invalid _vs","signature",e),t._vs=Qn(t._vs,32)),t._vs==null?t._vs=n:t._vs!==n&&ir.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function qb(e){return e=y0(e),nt(Po([e.r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}function rn(e){return"0x"+tX.keccak_256(Ye(e))}var L7={exports:{}};L7.exports;(function(e){(function(t,r){function n(d,o){if(!d)throw new Error(o||"Assertion failed")}function a(d,o){d.super_=o;var u=function(){};u.prototype=o.prototype,d.prototype=new u,d.prototype.constructor=d}function i(d,o,u){if(i.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(d||0,o||10,u||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=Te.Buffer}catch{}i.isBN=function(o){return o instanceof i?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===i.wordSize&&Array.isArray(o.words)},i.max=function(o,u){return o.cmp(u)>0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),n(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[x]|=w<>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);else if(p==="le")for(y=0,x=0;y>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);return this._strip()};function l(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;n(!1,"Invalid character in "+d)}function c(d,o,u){var p=l(d,u);return u-1>=o&&(p|=l(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y=u;y-=2)v=c(o,u,y)<=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8;else{var h=o.length-u;for(y=h%2===0?u+1:u;y=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8}this._strip()};function m(d,o,u,p){for(var y=0,x=0,w=Math.min(d.length,u),v=o;v=49?x=h-49+10:h>=17?x=h-17+10:x=h,n(h>=0&&x1&&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")]=_}catch{i.prototype.inspect=_}else i.prototype.inspect=_;function _(){return(this.red?""}var S=["","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"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var y=0,x=0,w=0;w>>24-y&16777215,y+=2,y>=26&&(y-=26,w--),x!==0||w!==this.length-1?p=S[6-h.length]+h+p:p=h+p}for(x!==0&&(p=x.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var s=M[o],b=P[o];p="";var D=this.clone();for(D.negative=0;!D.isZero();){var C=D.modrn(b).toString(o);D=D.idivn(b),D.isZero()?p=C+p:p=S[s-C.length]+C+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},f&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(f,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var I=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var y=this.byteLength(),x=p||Math.max(1,y);n(y<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var w=I(o,x),v=u==="le"?"LE":"BE";return this["_toArrayLike"+v](w,y),w},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,y=0,x=0,w=0;x>8&255),p>16&255),w===6?(p>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p=0&&(o[p--]=v>>8&255),p>=0&&(o[p--]=v>>16&255),w===6?(p>=0&&(o[p--]=v>>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p>=0)for(o[p--]=y;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return u&8191||(p+=13,u>>>=13),u&127||(p+=7,u>>>=7),u&15||(p+=4,u>>>=4),u&3||(p+=2,u>>>=2),u&1||p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function B(d){for(var o=new Array(d.bitLength()),u=0;u>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;uo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;po.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var y=0;yo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){n(typeof o=="number"&&o>=0);var p=o/26|0,y=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<o.length?(p=this,y=o):(p=o,y=this);for(var x=0,w=0;w>>26;for(;x!==0&&w>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;wo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,x;p>0?(y=this,x=o):(y=o,x=this);for(var w=0,v=0;v>26,this.words[v]=u&67108863;for(;w!==0&&v>26,this.words[v]=u&67108863;if(w===0&&v>>26,D=h&67108863,C=Math.min(s,o.length-1),U=Math.max(0,s-d.length+1);U<=C;U++){var $=s-U|0;y=d.words[$]|0,x=o.words[U]|0,w=y*x+D,b+=w/67108864|0,D=w&67108863}u.words[s]=D|0,h=b|0}return h!==0?u.words[s]=h|0:u.length--,u._strip()}var A=function(o,u,p){var y=o.words,x=u.words,w=p.words,v=0,h,s,b,D=y[0]|0,C=D&8191,U=D>>>13,$=y[1]|0,H=$&8191,X=$>>>13,z=y[2]|0,k=z&8191,L=z>>>13,oe=y[3]|0,re=oe&8191,se=oe>>>13,Y=y[4]|0,T=Y&8191,O=Y>>>13,W=y[5]|0,ie=W&8191,ue=W>>>13,we=y[6]|0,_e=we&8191,Z=we>>>13,le=y[7]|0,fe=le&8191,pe=le>>>13,Ce=y[8]|0,Me=Ce&8191,Ee=Ce>>>13,ne=y[9]|0,me=ne&8191,ye=ne>>>13,Ie=x[0]|0,he=Ie&8191,ve=Ie>>>13,Q=x[1]|0,xe=Q&8191,Ae=Q>>>13,q=x[2]|0,be=q&8191,de=q>>>13,ae=x[3]|0,ce=ae&8191,ge=ae>>>13,Ue=x[4]|0,Re=Ue&8191,Se=Ue>>>13,Ve=x[5]|0,je=Ve&8191,ke=Ve>>>13,Ze=x[6]|0,Ne=Ze&8191,Be=Ze>>>13,et=x[7]|0,$e=et&8191,De=et>>>13,Qe=x[8]|0,qe=Qe&8191,Le=Qe>>>13,rt=x[9]|0,ze=rt&8191,Ge=rt>>>13;p.negative=o.negative^u.negative,p.length=19,h=Math.imul(C,he),s=Math.imul(C,ve),s=s+Math.imul(U,he)|0,b=Math.imul(U,ve);var Et=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(H,he),s=Math.imul(H,ve),s=s+Math.imul(X,he)|0,b=Math.imul(X,ve),h=h+Math.imul(C,xe)|0,s=s+Math.imul(C,Ae)|0,s=s+Math.imul(U,xe)|0,b=b+Math.imul(U,Ae)|0;var Ct=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h=Math.imul(k,he),s=Math.imul(k,ve),s=s+Math.imul(L,he)|0,b=Math.imul(L,ve),h=h+Math.imul(H,xe)|0,s=s+Math.imul(H,Ae)|0,s=s+Math.imul(X,xe)|0,b=b+Math.imul(X,Ae)|0,h=h+Math.imul(C,be)|0,s=s+Math.imul(C,de)|0,s=s+Math.imul(U,be)|0,b=b+Math.imul(U,de)|0;var Mt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,h=Math.imul(re,he),s=Math.imul(re,ve),s=s+Math.imul(se,he)|0,b=Math.imul(se,ve),h=h+Math.imul(k,xe)|0,s=s+Math.imul(k,Ae)|0,s=s+Math.imul(L,xe)|0,b=b+Math.imul(L,Ae)|0,h=h+Math.imul(H,be)|0,s=s+Math.imul(H,de)|0,s=s+Math.imul(X,be)|0,b=b+Math.imul(X,de)|0,h=h+Math.imul(C,ce)|0,s=s+Math.imul(C,ge)|0,s=s+Math.imul(U,ce)|0,b=b+Math.imul(U,ge)|0;var At=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(At>>>26)|0,At&=67108863,h=Math.imul(T,he),s=Math.imul(T,ve),s=s+Math.imul(O,he)|0,b=Math.imul(O,ve),h=h+Math.imul(re,xe)|0,s=s+Math.imul(re,Ae)|0,s=s+Math.imul(se,xe)|0,b=b+Math.imul(se,Ae)|0,h=h+Math.imul(k,be)|0,s=s+Math.imul(k,de)|0,s=s+Math.imul(L,be)|0,b=b+Math.imul(L,de)|0,h=h+Math.imul(H,ce)|0,s=s+Math.imul(H,ge)|0,s=s+Math.imul(X,ce)|0,b=b+Math.imul(X,ge)|0,h=h+Math.imul(C,Re)|0,s=s+Math.imul(C,Se)|0,s=s+Math.imul(U,Re)|0,b=b+Math.imul(U,Se)|0;var Rt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,h=Math.imul(ie,he),s=Math.imul(ie,ve),s=s+Math.imul(ue,he)|0,b=Math.imul(ue,ve),h=h+Math.imul(T,xe)|0,s=s+Math.imul(T,Ae)|0,s=s+Math.imul(O,xe)|0,b=b+Math.imul(O,Ae)|0,h=h+Math.imul(re,be)|0,s=s+Math.imul(re,de)|0,s=s+Math.imul(se,be)|0,b=b+Math.imul(se,de)|0,h=h+Math.imul(k,ce)|0,s=s+Math.imul(k,ge)|0,s=s+Math.imul(L,ce)|0,b=b+Math.imul(L,ge)|0,h=h+Math.imul(H,Re)|0,s=s+Math.imul(H,Se)|0,s=s+Math.imul(X,Re)|0,b=b+Math.imul(X,Se)|0,h=h+Math.imul(C,je)|0,s=s+Math.imul(C,ke)|0,s=s+Math.imul(U,je)|0,b=b+Math.imul(U,ke)|0;var qt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(qt>>>26)|0,qt&=67108863,h=Math.imul(_e,he),s=Math.imul(_e,ve),s=s+Math.imul(Z,he)|0,b=Math.imul(Z,ve),h=h+Math.imul(ie,xe)|0,s=s+Math.imul(ie,Ae)|0,s=s+Math.imul(ue,xe)|0,b=b+Math.imul(ue,Ae)|0,h=h+Math.imul(T,be)|0,s=s+Math.imul(T,de)|0,s=s+Math.imul(O,be)|0,b=b+Math.imul(O,de)|0,h=h+Math.imul(re,ce)|0,s=s+Math.imul(re,ge)|0,s=s+Math.imul(se,ce)|0,b=b+Math.imul(se,ge)|0,h=h+Math.imul(k,Re)|0,s=s+Math.imul(k,Se)|0,s=s+Math.imul(L,Re)|0,b=b+Math.imul(L,Se)|0,h=h+Math.imul(H,je)|0,s=s+Math.imul(H,ke)|0,s=s+Math.imul(X,je)|0,b=b+Math.imul(X,ke)|0,h=h+Math.imul(C,Ne)|0,s=s+Math.imul(C,Be)|0,s=s+Math.imul(U,Ne)|0,b=b+Math.imul(U,Be)|0;var zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(fe,he),s=Math.imul(fe,ve),s=s+Math.imul(pe,he)|0,b=Math.imul(pe,ve),h=h+Math.imul(_e,xe)|0,s=s+Math.imul(_e,Ae)|0,s=s+Math.imul(Z,xe)|0,b=b+Math.imul(Z,Ae)|0,h=h+Math.imul(ie,be)|0,s=s+Math.imul(ie,de)|0,s=s+Math.imul(ue,be)|0,b=b+Math.imul(ue,de)|0,h=h+Math.imul(T,ce)|0,s=s+Math.imul(T,ge)|0,s=s+Math.imul(O,ce)|0,b=b+Math.imul(O,ge)|0,h=h+Math.imul(re,Re)|0,s=s+Math.imul(re,Se)|0,s=s+Math.imul(se,Re)|0,b=b+Math.imul(se,Se)|0,h=h+Math.imul(k,je)|0,s=s+Math.imul(k,ke)|0,s=s+Math.imul(L,je)|0,b=b+Math.imul(L,ke)|0,h=h+Math.imul(H,Ne)|0,s=s+Math.imul(H,Be)|0,s=s+Math.imul(X,Ne)|0,b=b+Math.imul(X,Be)|0,h=h+Math.imul(C,$e)|0,s=s+Math.imul(C,De)|0,s=s+Math.imul(U,$e)|0,b=b+Math.imul(U,De)|0;var $t=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+($t>>>26)|0,$t&=67108863,h=Math.imul(Me,he),s=Math.imul(Me,ve),s=s+Math.imul(Ee,he)|0,b=Math.imul(Ee,ve),h=h+Math.imul(fe,xe)|0,s=s+Math.imul(fe,Ae)|0,s=s+Math.imul(pe,xe)|0,b=b+Math.imul(pe,Ae)|0,h=h+Math.imul(_e,be)|0,s=s+Math.imul(_e,de)|0,s=s+Math.imul(Z,be)|0,b=b+Math.imul(Z,de)|0,h=h+Math.imul(ie,ce)|0,s=s+Math.imul(ie,ge)|0,s=s+Math.imul(ue,ce)|0,b=b+Math.imul(ue,ge)|0,h=h+Math.imul(T,Re)|0,s=s+Math.imul(T,Se)|0,s=s+Math.imul(O,Re)|0,b=b+Math.imul(O,Se)|0,h=h+Math.imul(re,je)|0,s=s+Math.imul(re,ke)|0,s=s+Math.imul(se,je)|0,b=b+Math.imul(se,ke)|0,h=h+Math.imul(k,Ne)|0,s=s+Math.imul(k,Be)|0,s=s+Math.imul(L,Ne)|0,b=b+Math.imul(L,Be)|0,h=h+Math.imul(H,$e)|0,s=s+Math.imul(H,De)|0,s=s+Math.imul(X,$e)|0,b=b+Math.imul(X,De)|0,h=h+Math.imul(C,qe)|0,s=s+Math.imul(C,Le)|0,s=s+Math.imul(U,qe)|0,b=b+Math.imul(U,Le)|0;var Ht=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,h=Math.imul(me,he),s=Math.imul(me,ve),s=s+Math.imul(ye,he)|0,b=Math.imul(ye,ve),h=h+Math.imul(Me,xe)|0,s=s+Math.imul(Me,Ae)|0,s=s+Math.imul(Ee,xe)|0,b=b+Math.imul(Ee,Ae)|0,h=h+Math.imul(fe,be)|0,s=s+Math.imul(fe,de)|0,s=s+Math.imul(pe,be)|0,b=b+Math.imul(pe,de)|0,h=h+Math.imul(_e,ce)|0,s=s+Math.imul(_e,ge)|0,s=s+Math.imul(Z,ce)|0,b=b+Math.imul(Z,ge)|0,h=h+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Se)|0,s=s+Math.imul(ue,Re)|0,b=b+Math.imul(ue,Se)|0,h=h+Math.imul(T,je)|0,s=s+Math.imul(T,ke)|0,s=s+Math.imul(O,je)|0,b=b+Math.imul(O,ke)|0,h=h+Math.imul(re,Ne)|0,s=s+Math.imul(re,Be)|0,s=s+Math.imul(se,Ne)|0,b=b+Math.imul(se,Be)|0,h=h+Math.imul(k,$e)|0,s=s+Math.imul(k,De)|0,s=s+Math.imul(L,$e)|0,b=b+Math.imul(L,De)|0,h=h+Math.imul(H,qe)|0,s=s+Math.imul(H,Le)|0,s=s+Math.imul(X,qe)|0,b=b+Math.imul(X,Le)|0,h=h+Math.imul(C,ze)|0,s=s+Math.imul(C,Ge)|0,s=s+Math.imul(U,ze)|0,b=b+Math.imul(U,Ge)|0;var Kt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(me,xe),s=Math.imul(me,Ae),s=s+Math.imul(ye,xe)|0,b=Math.imul(ye,Ae),h=h+Math.imul(Me,be)|0,s=s+Math.imul(Me,de)|0,s=s+Math.imul(Ee,be)|0,b=b+Math.imul(Ee,de)|0,h=h+Math.imul(fe,ce)|0,s=s+Math.imul(fe,ge)|0,s=s+Math.imul(pe,ce)|0,b=b+Math.imul(pe,ge)|0,h=h+Math.imul(_e,Re)|0,s=s+Math.imul(_e,Se)|0,s=s+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Se)|0,h=h+Math.imul(ie,je)|0,s=s+Math.imul(ie,ke)|0,s=s+Math.imul(ue,je)|0,b=b+Math.imul(ue,ke)|0,h=h+Math.imul(T,Ne)|0,s=s+Math.imul(T,Be)|0,s=s+Math.imul(O,Ne)|0,b=b+Math.imul(O,Be)|0,h=h+Math.imul(re,$e)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(se,$e)|0,b=b+Math.imul(se,De)|0,h=h+Math.imul(k,qe)|0,s=s+Math.imul(k,Le)|0,s=s+Math.imul(L,qe)|0,b=b+Math.imul(L,Le)|0,h=h+Math.imul(H,ze)|0,s=s+Math.imul(H,Ge)|0,s=s+Math.imul(X,ze)|0,b=b+Math.imul(X,Ge)|0;var Gt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(me,be),s=Math.imul(me,de),s=s+Math.imul(ye,be)|0,b=Math.imul(ye,de),h=h+Math.imul(Me,ce)|0,s=s+Math.imul(Me,ge)|0,s=s+Math.imul(Ee,ce)|0,b=b+Math.imul(Ee,ge)|0,h=h+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Se)|0,s=s+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Se)|0,h=h+Math.imul(_e,je)|0,s=s+Math.imul(_e,ke)|0,s=s+Math.imul(Z,je)|0,b=b+Math.imul(Z,ke)|0,h=h+Math.imul(ie,Ne)|0,s=s+Math.imul(ie,Be)|0,s=s+Math.imul(ue,Ne)|0,b=b+Math.imul(ue,Be)|0,h=h+Math.imul(T,$e)|0,s=s+Math.imul(T,De)|0,s=s+Math.imul(O,$e)|0,b=b+Math.imul(O,De)|0,h=h+Math.imul(re,qe)|0,s=s+Math.imul(re,Le)|0,s=s+Math.imul(se,qe)|0,b=b+Math.imul(se,Le)|0,h=h+Math.imul(k,ze)|0,s=s+Math.imul(k,Ge)|0,s=s+Math.imul(L,ze)|0,b=b+Math.imul(L,Ge)|0;var Wt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(me,ce),s=Math.imul(me,ge),s=s+Math.imul(ye,ce)|0,b=Math.imul(ye,ge),h=h+Math.imul(Me,Re)|0,s=s+Math.imul(Me,Se)|0,s=s+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Se)|0,h=h+Math.imul(fe,je)|0,s=s+Math.imul(fe,ke)|0,s=s+Math.imul(pe,je)|0,b=b+Math.imul(pe,ke)|0,h=h+Math.imul(_e,Ne)|0,s=s+Math.imul(_e,Be)|0,s=s+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,Be)|0,h=h+Math.imul(ie,$e)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(ue,$e)|0,b=b+Math.imul(ue,De)|0,h=h+Math.imul(T,qe)|0,s=s+Math.imul(T,Le)|0,s=s+Math.imul(O,qe)|0,b=b+Math.imul(O,Le)|0,h=h+Math.imul(re,ze)|0,s=s+Math.imul(re,Ge)|0,s=s+Math.imul(se,ze)|0,b=b+Math.imul(se,Ge)|0;var Vt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(me,Re),s=Math.imul(me,Se),s=s+Math.imul(ye,Re)|0,b=Math.imul(ye,Se),h=h+Math.imul(Me,je)|0,s=s+Math.imul(Me,ke)|0,s=s+Math.imul(Ee,je)|0,b=b+Math.imul(Ee,ke)|0,h=h+Math.imul(fe,Ne)|0,s=s+Math.imul(fe,Be)|0,s=s+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Be)|0,h=h+Math.imul(_e,$e)|0,s=s+Math.imul(_e,De)|0,s=s+Math.imul(Z,$e)|0,b=b+Math.imul(Z,De)|0,h=h+Math.imul(ie,qe)|0,s=s+Math.imul(ie,Le)|0,s=s+Math.imul(ue,qe)|0,b=b+Math.imul(ue,Le)|0,h=h+Math.imul(T,ze)|0,s=s+Math.imul(T,Ge)|0,s=s+Math.imul(O,ze)|0,b=b+Math.imul(O,Ge)|0;var Zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(me,je),s=Math.imul(me,ke),s=s+Math.imul(ye,je)|0,b=Math.imul(ye,ke),h=h+Math.imul(Me,Ne)|0,s=s+Math.imul(Me,Be)|0,s=s+Math.imul(Ee,Ne)|0,b=b+Math.imul(Ee,Be)|0,h=h+Math.imul(fe,$e)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(pe,$e)|0,b=b+Math.imul(pe,De)|0,h=h+Math.imul(_e,qe)|0,s=s+Math.imul(_e,Le)|0,s=s+Math.imul(Z,qe)|0,b=b+Math.imul(Z,Le)|0,h=h+Math.imul(ie,ze)|0,s=s+Math.imul(ie,Ge)|0,s=s+Math.imul(ue,ze)|0,b=b+Math.imul(ue,Ge)|0;var cr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863,h=Math.imul(me,Ne),s=Math.imul(me,Be),s=s+Math.imul(ye,Ne)|0,b=Math.imul(ye,Be),h=h+Math.imul(Me,$e)|0,s=s+Math.imul(Me,De)|0,s=s+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,De)|0,h=h+Math.imul(fe,qe)|0,s=s+Math.imul(fe,Le)|0,s=s+Math.imul(pe,qe)|0,b=b+Math.imul(pe,Le)|0,h=h+Math.imul(_e,ze)|0,s=s+Math.imul(_e,Ge)|0,s=s+Math.imul(Z,ze)|0,b=b+Math.imul(Z,Ge)|0;var hr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(me,$e),s=Math.imul(me,De),s=s+Math.imul(ye,$e)|0,b=Math.imul(ye,De),h=h+Math.imul(Me,qe)|0,s=s+Math.imul(Me,Le)|0,s=s+Math.imul(Ee,qe)|0,b=b+Math.imul(Ee,Le)|0,h=h+Math.imul(fe,ze)|0,s=s+Math.imul(fe,Ge)|0,s=s+Math.imul(pe,ze)|0,b=b+Math.imul(pe,Ge)|0;var dr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(dr>>>26)|0,dr&=67108863,h=Math.imul(me,qe),s=Math.imul(me,Le),s=s+Math.imul(ye,qe)|0,b=Math.imul(ye,Le),h=h+Math.imul(Me,ze)|0,s=s+Math.imul(Me,Ge)|0,s=s+Math.imul(Ee,ze)|0,b=b+Math.imul(Ee,Ge)|0;var Yr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,h=Math.imul(me,ze),s=Math.imul(me,Ge),s=s+Math.imul(ye,ze)|0,b=Math.imul(ye,Ge);var Jr=(v+h|0)+((s&8191)<<13)|0;return v=(b+(s>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w[0]=Et,w[1]=Ct,w[2]=Mt,w[3]=At,w[4]=Rt,w[5]=qt,w[6]=zt,w[7]=$t,w[8]=Ht,w[9]=Kt,w[10]=Gt,w[11]=Wt,w[12]=Vt,w[13]=Zt,w[14]=cr,w[15]=hr,w[16]=dr,w[17]=Yr,w[18]=Jr,v!==0&&(w[19]=v,p.length++),p};Math.imul||(A=R);function F(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,y=0,x=0;x>>26)|0,y+=w>>>26,w&=67108863}u.words[x]=v,p=w,w=y}return p!==0?u.words[x]=p:u.length--,u._strip()}function V(d,o,u){return F(d,o,u)}i.prototype.mulTo=function(o,u){var p,y=this.length+o.length;return this.length===10&&o.length===10?p=A(this,o,u):y<63?p=R(this,o,u):y<1024?p=F(this,o,u):p=V(this,o,u),p},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),V(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var p=0,y=0;y>=26,p+=x/67108864|0,p+=w>>>26,this.words[y]=w&67108863}return p!==0&&(this.words[y]=p,this.length++),u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=B(o);if(u.length===0)return new i(1);for(var p=this,y=0;y=0);var u=o%26,p=(o-u)/26,y=67108863>>>26-u<<26-u,x;if(u!==0){var w=0;for(x=0;x>>26-u}w&&(this.words[x]=w,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x=0);var y;u?y=(u-u%26)/26:y=0;var x=o%26,w=Math.min((o-x)/26,this.length),v=67108863^67108863>>>x<w)for(this.length-=w,s=0;s=0&&(b!==0||s>=y);s--){var D=this.words[s]|0;this.words[s]=b<<26-x|D>>>x,b=D&v}return h&&b!==0&&(h.words[h.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return n(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,y=1<=0);var u=o%26,p=(o-u)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var y=67108863^67108863>>>u<=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u>26)-(h/67108864|0),this.words[x+p]=w&67108863}for(;x>26,this.words[x+p]=w&67108863;if(v===0)return this._strip();for(n(v===-1),v=0,x=0;x>26,this.words[x]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,y=this.clone(),x=o,w=x.words[x.length-1]|0,v=this._countBits(w);p=26-v,p!==0&&(x=x.ushln(p),y.iushln(p),w=x.words[x.length-1]|0);var h=y.length-x.length,s;if(u!=="mod"){s=new i(null),s.length=h+1,s.words=new Array(s.length);for(var b=0;b=0;C--){var U=(y.words[x.length+C]|0)*67108864+(y.words[x.length+C-1]|0);for(U=Math.min(U/w|0,67108863),y._ishlnsubmul(x,U,C);y.negative!==0;)U--,y.negative=0,y._ishlnsubmul(x,1,C),y.isZero()||(y.negative^=1);s&&(s.words[C]=U)}return s&&s._strip(),y._strip(),u!=="div"&&p!==0&&y.iushrn(p),{div:s||null,mod:y}},i.prototype.divmod=function(o,u,p){if(n(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,x,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,u),u!=="mod"&&(y=w.div.neg()),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.iadd(o)),{div:y,mod:x}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),u),u!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),u),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.isub(o)),{div:w.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),x=o.andln(1),w=p.cmp(y);return w<0||x===1&&w===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=(1<<26)%o,y=0,x=this.length-1;x>=0;x--)y=(p*y+(this.words[x]|0))%o;return u?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var x=(this.words[y]|0)+p*67108864;this.words[y]=x/o|0,p=x%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=new i(0),v=new i(1),h=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++h;for(var s=p.clone(),b=u.clone();!u.isZero();){for(var D=0,C=1;!(u.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(u.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(s),x.isub(b)),y.iushrn(1),x.iushrn(1);for(var U=0,$=1;!(p.words[0]&$)&&U<26;++U,$<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(w.isOdd()||v.isOdd())&&(w.iadd(s),v.isub(b)),w.iushrn(1),v.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(w),x.isub(v)):(p.isub(u),w.isub(y),v.isub(x))}return{a:w,b:v,gcd:p.iushln(h)}},i.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var v=0,h=1;!(u.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(u.iushrn(v);v-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var s=0,b=1;!(p.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(p.iushrn(s);s-- >0;)x.isOdd()&&x.iadd(w),x.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(x)):(p.isub(u),x.isub(y))}var D;return u.cmpn(1)===0?D=y:D=x,D.cmpn(0)<0&&D.iadd(o),D},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var y=0;u.isEven()&&p.isEven();y++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=u.cmp(p);if(x<0){var w=u;u=p,p=w}else if(x===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){n(typeof o=="number");var u=o%26,p=(o-u)/26,y=1<>>26,v&=67108863,this.words[w]=v}return x!==0&&(this.words[w]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;p=y===o?0:yo.length)return 1;if(this.length=0;p--){var y=this.words[p]|0,x=o.words[p]|0;if(y!==x){yx&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new G(o)},i.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function N(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},N.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var y=p0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},N.prototype.split=function(o,u){o.iushrn(this.n,0,u)},N.prototype.imulK=function(o){return o.imul(this.k)};function K(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(K,N),K.prototype.split=function(o,u){for(var p=4194303,y=Math.min(o.length,9),x=0;x>>22,w=v}w>>>=22,o.words[x-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},K.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p>>=26,o.words[p]=x,u=y}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(j[o])return j[o];var u;if(o==="k256")u=new K;else if(o==="p224")u=new J;else if(o==="p192")u=new te;else if(o==="p25519")u=new ee;else throw new Error("Unknown prime "+o);return j[o]=u,u};function G(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else n(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}G.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},G.prototype._verify2=function(o,u){n((o.negative|u.negative)===0,"red works only with positives"),n(o.red&&o.red===u.red,"red works only with red numbers")},G.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},G.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},G.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},G.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},G.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},G.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},G.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},G.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},G.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},G.prototype.isqr=function(o){return this.imul(o,o.clone())},G.prototype.sqr=function(o){return this.mul(o,o)},G.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(n(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);n(!y.isZero());var w=new i(1).toRed(this),v=w.redNeg(),h=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,h).cmp(v)!==0;)s.redIAdd(v);for(var b=this.pow(s,y),D=this.pow(o,y.addn(1).iushrn(1)),C=this.pow(o,y),U=x;C.cmp(w)!==0;){for(var $=C,H=0;$.cmp(w)!==0;H++)$=$.redSqr();n(H=0;x--){for(var b=u.words[x],D=s-1;D>=0;D--){var C=b>>D&1;if(w!==y[0]&&(w=this.sqr(w)),C===0&&v===0){h=0;continue}v<<=1,v|=C,h++,!(h!==p&&(x!==0||D!==0))&&(w=this.mul(w,y[v]),h=0,v=0)}s=26}return w},G.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},G.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new E(o)};function E(d){G.call(this,d),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)}a(E,G),E.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},E.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},E.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(e,Oe)})(L7);var oX=L7.exports;const fX=Nr(oX),sX="bignumber/5.7.0";var J1=fX.BN;const va=new tt(sX),Mp={},zb=9007199254740991;let $b=!1;class It{constructor(t,r){t!==Mp&&va.throwError("cannot call constructor directly; use BigNumber.from",tt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return ln(ut(this).fromTwos(t))}toTwos(t){return ln(ut(this).toTwos(t))}abs(){return this._hex[0]==="-"?It.from(this._hex.substring(1)):this}add(t){return ln(ut(this).add(ut(t)))}sub(t){return ln(ut(this).sub(ut(t)))}div(t){return It.from(t).isZero()&&jn("division-by-zero","div"),ln(ut(this).div(ut(t)))}mul(t){return ln(ut(this).mul(ut(t)))}mod(t){const r=ut(t);return r.isNeg()&&jn("division-by-zero","mod"),ln(ut(this).umod(r))}pow(t){const r=ut(t);return r.isNeg()&&jn("negative-power","pow"),ln(ut(this).pow(r))}and(t){const r=ut(t);return(this.isNegative()||r.isNeg())&&jn("unbound-bitwise-result","and"),ln(ut(this).and(r))}or(t){const r=ut(t);return(this.isNegative()||r.isNeg())&&jn("unbound-bitwise-result","or"),ln(ut(this).or(r))}xor(t){const r=ut(t);return(this.isNegative()||r.isNeg())&&jn("unbound-bitwise-result","xor"),ln(ut(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&jn("negative-width","mask"),ln(ut(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&jn("negative-width","shl"),ln(ut(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&jn("negative-width","shr"),ln(ut(this).shrn(t))}eq(t){return ut(this).eq(ut(t))}lt(t){return ut(this).lt(ut(t))}lte(t){return ut(this).lte(ut(t))}gt(t){return ut(this).gt(ut(t))}gte(t){return ut(this).gte(ut(t))}isNegative(){return this._hex[0]==="-"}isZero(){return ut(this).isZero()}toNumber(){try{return ut(this).toNumber()}catch{jn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return va.throwError("this platform does not support BigInt",tt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?$b||($b=!0,va.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?va.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",tt.errors.UNEXPECTED_ARGUMENT,{}):va.throwError("BigNumber.toString does not accept parameters",tt.errors.UNEXPECTED_ARGUMENT,{})),ut(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof It)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new It(Mp,Qu(t)):t.match(/^-?[0-9]+$/)?new It(Mp,Qu(new J1(t))):va.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&jn("underflow","BigNumber.from",t),(t>=zb||t<=-zb)&&jn("overflow","BigNumber.from",t),It.from(String(t));const r=t;if(typeof r=="bigint")return It.from(r.toString());if(Md(r))return It.from(nt(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return It.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(an(n)||n[0]==="-"&&an(n.substring(1))))return It.from(n)}return va.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function Qu(e){if(typeof e!="string")return Qu(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&va.throwArgumentError("invalid hex","value",e),e=Qu(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function ln(e){return It.from(Qu(e))}function ut(e){const t=It.from(e).toHexString();return t[0]==="-"?new J1("-"+t.substring(3),16):new J1(t.substring(2),16)}function jn(e,t,r){const n={fault:e,operation:t};return r!=null&&(n.value=r),va.throwError(e,tt.errors.NUMERIC_FAULT,n)}function uX(e){return new J1(e,36).toString(16)}const lX="strings/5.7.0",cX=new tt(lX);var _f;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(_f||(_f={}));var Hb;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(Hb||(Hb={}));function Aa(e,t=_f.current){t!=_f.current&&(cX.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n>6|192),r.push(a&63|128);else if((a&64512)==55296){n++;const i=e.charCodeAt(n);if(n>=e.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");const f=65536+((a&1023)<<10)+(i&1023);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(f&63|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(a&63|128)}return Ye(r)}function N7(e){return rn(Aa(e))}const hX="hash/5.7.0",dX=`Ethereum Signed Message: +`;function Ad(e){return typeof e=="string"&&(e=Aa(e)),rn(Po([Aa(dX),Aa(String(e.length)),e]))}const pX="rlp/5.7.0",vX=new tt(pX);function Kb(e){const t=[];for(;e;)t.unshift(e&255),e>>=8;return t}function QA(e){if(Array.isArray(e)){let n=[];if(e.forEach(function(i){n=n.concat(QA(i))}),n.length<=55)return n.unshift(192+n.length),n;const a=Kb(n.length);return a.unshift(247+a.length),a.concat(n)}B7(e)||vX.throwArgumentError("RLP object must be BytesLike","object",e);const t=Array.prototype.slice.call(Ye(e));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=Kb(t.length);return r.unshift(183+r.length),r.concat(t)}function Q1(e){return nt(QA(e))}const gX="address/5.7.0",J0=new tt(gX);function Gb(e){an(e,20)||J0.throwArgumentError("invalid address","address",e),e=e.toLowerCase();const t=e.substring(2).split(""),r=new Uint8Array(40);for(let a=0;a<40;a++)r[a]=t[a].charCodeAt(0);const n=Ye(rn(r));for(let a=0;a<40;a+=2)n[a>>1]>>4>=8&&(t[a]=t[a].toUpperCase()),(n[a>>1]&15)>=8&&(t[a+1]=t[a+1].toUpperCase());return"0x"+t.join("")}const yX=9007199254740991;function mX(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}const D7={};for(let e=0;e<10;e++)D7[String(e)]=String(e);for(let e=0;e<26;e++)D7[String.fromCharCode(65+e)]=String(10+e);const Wb=Math.floor(mX(yX));function bX(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";let t=e.split("").map(n=>D7[n]).join("");for(;t.length>=Wb;){let n=t.substring(0,Wb);t=parseInt(n,10)%97+t.substring(n.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function Bi(e){let t=null;if(typeof e!="string"&&J0.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))e.substring(0,2)!=="0x"&&(e="0x"+e),t=Gb(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&J0.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==bX(e)&&J0.throwArgumentError("bad icap checksum","address",e),t=uX(e.substring(4));t.length<40;)t="0"+t;t=Gb("0x"+t)}else J0.throwArgumentError("invalid address","address",e);return t}const xX="properties/5.7.0";var wX=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const eh=new tt(xX);function it(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function fs(e){return wX(this,void 0,void 0,function*(){const t=Object.keys(e).map(n=>{const a=e[n];return Promise.resolve(a).then(i=>({key:n,value:i}))});return(yield Promise.all(t)).reduce((n,a)=>(n[a.key]=a.value,n),{})})}function _X(e,t){(!e||typeof e!="object")&&eh.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||eh.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function N6(e){const t={};for(const r in e)t[r]=e[r];return t}const SX={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function eR(e){if(e==null||SX[typeof e])return!0;if(Array.isArray(e)||typeof e=="object"){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let r=0;rth(t)));if(typeof e=="object"){const t={};for(const r in e){const n=e[r];n!==void 0&&it(t,r,th(n))}return t}return eh.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}function th(e){return EX(e)}class tR{constructor(t){for(const r in t)this[r]=th(t[r])}}var CX=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const Xt=new tt(hX),rR=new Uint8Array(32);rR.fill(0);const MX=It.from(-1),nR=It.from(0),iR=It.from(1),AX=It.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function RX(e){const t=Ye(e),r=t.length%32;return r?Ss([t,rR.slice(r)]):nt(t)}const TX=Qn(iR.toHexString(),32),PX=Qn(nR.toHexString(),32),Vb={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Ap=["name","version","chainId","verifyingContract","salt"];function Zb(e){return function(t){return typeof t!="string"&&Xt.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const OX={name:Zb("name"),version:Zb("version"),chainId:function(e){try{return It.from(e).toString()}catch{}return Xt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Bi(e).toLowerCase()}catch{}return Xt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=Ye(e);if(t.length!==32)throw new Error("bad length");return nt(t)}catch{}return Xt.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function Rp(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=t[1]==="",n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&Xt.throwArgumentError("invalid numeric width","type",e);const a=AX.mask(r?n-1:n),i=r?a.add(iR).mul(MX):nR;return function(f){const l=It.from(f);return(l.lt(i)||l.gt(a))&&Xt.throwArgumentError(`value out-of-bounds for ${e}`,"value",f),Qn(l.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(r===0||r>32||t[1]!==String(r))&&Xt.throwArgumentError("invalid bytes width","type",e),function(n){return Ye(n).length!==r&&Xt.throwArgumentError(`invalid length for ${e}`,"value",n),RX(n)}}}switch(e){case"address":return function(t){return Qn(Bi(t),32)};case"bool":return function(t){return t?TX:PX};case"bytes":return function(t){return rn(t)};case"string":return function(t){return N7(t)}}return null}function Xb(e,t){return`${e}(${t.map(({name:r,type:n})=>n+" "+r).join(",")})`}class hn{constructor(t){it(this,"types",Object.freeze(th(t))),it(this,"_encoderCache",{}),it(this,"_types",{});const r={},n={},a={};Object.keys(t).forEach(l=>{r[l]={},n[l]=[],a[l]={}});for(const l in t){const c={};t[l].forEach(m=>{c[m.name]&&Xt.throwArgumentError(`duplicate variable name ${JSON.stringify(m.name)} in ${JSON.stringify(l)}`,"types",t),c[m.name]=!0;const g=m.type.match(/^([^\x5b]*)(\x5b|$)/)[1];g===l&&Xt.throwArgumentError(`circular type reference to ${JSON.stringify(g)}`,"types",t),!Rp(g)&&(n[g]||Xt.throwArgumentError(`unknown type ${JSON.stringify(g)}`,"types",t),n[g].push(l),r[l][g]=!0)})}const i=Object.keys(n).filter(l=>n[l].length===0);i.length===0?Xt.throwArgumentError("missing primary type","types",t):i.length>1&&Xt.throwArgumentError(`ambiguous primary types or unused types: ${i.map(l=>JSON.stringify(l)).join(", ")}`,"types",t),it(this,"primaryType",i[0]);function f(l,c){c[l]&&Xt.throwArgumentError(`circular type reference to ${JSON.stringify(l)}`,"types",t),c[l]=!0,Object.keys(r[l]).forEach(m=>{n[m]&&(f(m,c),Object.keys(c).forEach(g=>{a[g][m]=!0}))}),delete c[l]}f(this.primaryType,{});for(const l in a){const c=Object.keys(a[l]);c.sort(),this._types[l]=Xb(l,t[l])+c.map(m=>Xb(m,t[m])).join("")}}getEncoder(t){let r=this._encoderCache[t];return r||(r=this._encoderCache[t]=this._getEncoder(t)),r}_getEncoder(t){{const a=Rp(t);if(a)return a}const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const a=r[1],i=this.getEncoder(a),f=parseInt(r[3]);return l=>{f>=0&&l.length!==f&&Xt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);let c=l.map(i);return this._types[a]&&(c=c.map(rn)),rn(Ss(c))}}const n=this.types[t];if(n){const a=N7(this._types[t]);return i=>{const f=n.map(({name:l,type:c})=>{const m=this.getEncoder(c)(i[l]);return this._types[c]?rn(m):m});return f.unshift(a),Ss(f)}}return Xt.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const r=this._types[t];return r||Xt.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),r}encodeData(t,r){return this.getEncoder(t)(r)}hashStruct(t,r){return rn(this.encodeData(t,r))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,r,n){if(Rp(t))return n(t,r);const a=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){const f=a[1],l=parseInt(a[3]);return l>=0&&r.length!==l&&Xt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(c=>this._visit(f,c,n))}const i=this.types[t];return i?i.reduce((f,{name:l,type:c})=>(f[l]=this._visit(c,r[l],n),f),{}):Xt.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,r){return this._visit(this.primaryType,t,r)}static from(t){return new hn(t)}static getPrimaryType(t){return hn.from(t).primaryType}static hashStruct(t,r,n){return hn.from(r).hashStruct(t,n)}static hashDomain(t){const r=[];for(const n in t){const a=Vb[n];a||Xt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",t),r.push({name:n,type:a})}return r.sort((n,a)=>Ap.indexOf(n.name)-Ap.indexOf(a.name)),hn.hashStruct("EIP712Domain",{EIP712Domain:r},t)}static encode(t,r,n){return Ss(["0x1901",hn.hashDomain(t),hn.from(r).hash(n)])}static hash(t,r,n){return rn(hn.encode(t,r,n))}static resolveNames(t,r,n,a){return CX(this,void 0,void 0,function*(){t=N6(t);const i={};t.verifyingContract&&!an(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const f=hn.from(r);f.visit(n,(l,c)=>(l==="address"&&!an(c,20)&&(i[c]="0x"),c));for(const l in i)i[l]=yield a(l);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),n=f.visit(n,(l,c)=>l==="address"&&i[c]?i[c]:c),{domain:t,value:n}})}static getPayload(t,r,n){hn.hashDomain(t);const a={},i=[];Ap.forEach(c=>{const m=t[c];m!=null&&(a[c]=OX[c](m),i.push({name:c,type:Vb[c]}))});const f=hn.from(r),l=N6(r);return l.EIP712Domain?Xt.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):l.EIP712Domain=i,f.encode(n),{types:l,domain:a,primaryType:f.primaryType,message:f.visit(n,(c,m)=>{if(c.match(/^bytes(\d*)/))return nt(Ye(m));if(c.match(/^u?int/))return It.from(m).toString();switch(c){case"address":return m.toLowerCase();case"bool":return!!m;case"string":return typeof m!="string"&&Xt.throwArgumentError("invalid string","value",m),m}return Xt.throwArgumentError("unsupported type","type",c)})}}}var F7={exports:{}};F7.exports;(function(e){(function(t,r){function n(d,o){if(!d)throw new Error(o||"Assertion failed")}function a(d,o){d.super_=o;var u=function(){};u.prototype=o.prototype,d.prototype=new u,d.prototype.constructor=d}function i(d,o,u){if(i.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(d||0,o||10,u||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=Te.Buffer}catch{}i.isBN=function(o){return o instanceof i?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===i.wordSize&&Array.isArray(o.words)},i.max=function(o,u){return o.cmp(u)>0?o:u},i.min=function(o,u){return o.cmp(u)<0?o:u},i.prototype._init=function(o,u,p){if(typeof o=="number")return this._initNumber(o,u,p);if(typeof o=="object")return this._initArray(o,u,p);u==="hex"&&(u=16),n(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[x]|=w<>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);else if(p==="le")for(y=0,x=0;y>>26-v&67108863,v+=24,v>=26&&(v-=26,x++);return this._strip()};function l(d,o){var u=d.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;n(!1,"Invalid character in "+d)}function c(d,o,u){var p=l(d,u);return u-1>=o&&(p|=l(d,u-1)<<4),p}i.prototype._parseHex=function(o,u,p){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y=u;y-=2)v=c(o,u,y)<=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8;else{var h=o.length-u;for(y=h%2===0?u+1:u;y=18?(x-=18,w+=1,this.words[w]|=v>>>26):x+=8}this._strip()};function m(d,o,u,p){for(var y=0,x=0,w=Math.min(d.length,u),v=o;v=49?x=h-49+10:h>=17?x=h-17+10:x=h,n(h>=0&&x1&&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")]=_}catch{i.prototype.inspect=_}else i.prototype.inspect=_;function _(){return(this.red?""}var S=["","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"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,u){o=o||10,u=u|0||1;var p;if(o===16||o==="hex"){p="";for(var y=0,x=0,w=0;w>>24-y&16777215,y+=2,y>=26&&(y-=26,w--),x!==0||w!==this.length-1?p=S[6-h.length]+h+p:p=h+p}for(x!==0&&(p=x.toString(16)+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(o===(o|0)&&o>=2&&o<=36){var s=M[o],b=P[o];p="";var D=this.clone();for(D.negative=0;!D.isZero();){var C=D.modrn(b).toString(o);D=D.idivn(b),D.isZero()?p=C+p:p=S[s-C.length]+C+p}for(this.isZero()&&(p="0"+p);p.length%u!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},f&&(i.prototype.toBuffer=function(o,u){return this.toArrayLike(f,o,u)}),i.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var I=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};i.prototype.toArrayLike=function(o,u,p){this._strip();var y=this.byteLength(),x=p||Math.max(1,y);n(y<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var w=I(o,x),v=u==="le"?"LE":"BE";return this["_toArrayLike"+v](w,y),w},i.prototype._toArrayLikeLE=function(o,u){for(var p=0,y=0,x=0,w=0;x>8&255),p>16&255),w===6?(p>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p=0&&(o[p--]=v>>8&255),p>=0&&(o[p--]=v>>16&255),w===6?(p>=0&&(o[p--]=v>>24&255),y=0,w=0):(y=v>>>24,w+=2)}if(p>=0)for(o[p--]=y;p>=0;)o[p--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var u=o,p=0;return u>=4096&&(p+=13,u>>>=13),u>=64&&(p+=7,u>>>=7),u>=8&&(p+=4,u>>>=4),u>=2&&(p+=2,u>>>=2),p+u},i.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,p=0;return u&8191||(p+=13,u>>>=13),u&127||(p+=7,u>>>=7),u&15||(p+=4,u>>>=4),u&3||(p+=2,u>>>=2),u&1||p++,p},i.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function B(d){for(var o=new Array(d.bitLength()),u=0;u>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;uo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var p=0;po.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var u,p;this.length>o.length?(u=this,p=o):(u=o,p=this);for(var y=0;yo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,p=o%26;this._expand(u),p>0&&u--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-p),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,u){n(typeof o=="number"&&o>=0);var p=o/26|0,y=o%26;return this._expand(p+1),u?this.words[p]=this.words[p]|1<o.length?(p=this,y=o):(p=o,y=this);for(var x=0,w=0;w>>26;for(;x!==0&&w>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;wo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var p=this.cmp(o);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,x;p>0?(y=this,x=o):(y=o,x=this);for(var w=0,v=0;v>26,this.words[v]=u&67108863;for(;w!==0&&v>26,this.words[v]=u&67108863;if(w===0&&v>>26,D=h&67108863,C=Math.min(s,o.length-1),U=Math.max(0,s-d.length+1);U<=C;U++){var $=s-U|0;y=d.words[$]|0,x=o.words[U]|0,w=y*x+D,b+=w/67108864|0,D=w&67108863}u.words[s]=D|0,h=b|0}return h!==0?u.words[s]=h|0:u.length--,u._strip()}var A=function(o,u,p){var y=o.words,x=u.words,w=p.words,v=0,h,s,b,D=y[0]|0,C=D&8191,U=D>>>13,$=y[1]|0,H=$&8191,X=$>>>13,z=y[2]|0,k=z&8191,L=z>>>13,oe=y[3]|0,re=oe&8191,se=oe>>>13,Y=y[4]|0,T=Y&8191,O=Y>>>13,W=y[5]|0,ie=W&8191,ue=W>>>13,we=y[6]|0,_e=we&8191,Z=we>>>13,le=y[7]|0,fe=le&8191,pe=le>>>13,Ce=y[8]|0,Me=Ce&8191,Ee=Ce>>>13,ne=y[9]|0,me=ne&8191,ye=ne>>>13,Ie=x[0]|0,he=Ie&8191,ve=Ie>>>13,Q=x[1]|0,xe=Q&8191,Ae=Q>>>13,q=x[2]|0,be=q&8191,de=q>>>13,ae=x[3]|0,ce=ae&8191,ge=ae>>>13,Ue=x[4]|0,Re=Ue&8191,Se=Ue>>>13,Ve=x[5]|0,je=Ve&8191,ke=Ve>>>13,Ze=x[6]|0,Ne=Ze&8191,Be=Ze>>>13,et=x[7]|0,$e=et&8191,De=et>>>13,Qe=x[8]|0,qe=Qe&8191,Le=Qe>>>13,rt=x[9]|0,ze=rt&8191,Ge=rt>>>13;p.negative=o.negative^u.negative,p.length=19,h=Math.imul(C,he),s=Math.imul(C,ve),s=s+Math.imul(U,he)|0,b=Math.imul(U,ve);var Et=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(H,he),s=Math.imul(H,ve),s=s+Math.imul(X,he)|0,b=Math.imul(X,ve),h=h+Math.imul(C,xe)|0,s=s+Math.imul(C,Ae)|0,s=s+Math.imul(U,xe)|0,b=b+Math.imul(U,Ae)|0;var Ct=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h=Math.imul(k,he),s=Math.imul(k,ve),s=s+Math.imul(L,he)|0,b=Math.imul(L,ve),h=h+Math.imul(H,xe)|0,s=s+Math.imul(H,Ae)|0,s=s+Math.imul(X,xe)|0,b=b+Math.imul(X,Ae)|0,h=h+Math.imul(C,be)|0,s=s+Math.imul(C,de)|0,s=s+Math.imul(U,be)|0,b=b+Math.imul(U,de)|0;var Mt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,h=Math.imul(re,he),s=Math.imul(re,ve),s=s+Math.imul(se,he)|0,b=Math.imul(se,ve),h=h+Math.imul(k,xe)|0,s=s+Math.imul(k,Ae)|0,s=s+Math.imul(L,xe)|0,b=b+Math.imul(L,Ae)|0,h=h+Math.imul(H,be)|0,s=s+Math.imul(H,de)|0,s=s+Math.imul(X,be)|0,b=b+Math.imul(X,de)|0,h=h+Math.imul(C,ce)|0,s=s+Math.imul(C,ge)|0,s=s+Math.imul(U,ce)|0,b=b+Math.imul(U,ge)|0;var At=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(At>>>26)|0,At&=67108863,h=Math.imul(T,he),s=Math.imul(T,ve),s=s+Math.imul(O,he)|0,b=Math.imul(O,ve),h=h+Math.imul(re,xe)|0,s=s+Math.imul(re,Ae)|0,s=s+Math.imul(se,xe)|0,b=b+Math.imul(se,Ae)|0,h=h+Math.imul(k,be)|0,s=s+Math.imul(k,de)|0,s=s+Math.imul(L,be)|0,b=b+Math.imul(L,de)|0,h=h+Math.imul(H,ce)|0,s=s+Math.imul(H,ge)|0,s=s+Math.imul(X,ce)|0,b=b+Math.imul(X,ge)|0,h=h+Math.imul(C,Re)|0,s=s+Math.imul(C,Se)|0,s=s+Math.imul(U,Re)|0,b=b+Math.imul(U,Se)|0;var Rt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,h=Math.imul(ie,he),s=Math.imul(ie,ve),s=s+Math.imul(ue,he)|0,b=Math.imul(ue,ve),h=h+Math.imul(T,xe)|0,s=s+Math.imul(T,Ae)|0,s=s+Math.imul(O,xe)|0,b=b+Math.imul(O,Ae)|0,h=h+Math.imul(re,be)|0,s=s+Math.imul(re,de)|0,s=s+Math.imul(se,be)|0,b=b+Math.imul(se,de)|0,h=h+Math.imul(k,ce)|0,s=s+Math.imul(k,ge)|0,s=s+Math.imul(L,ce)|0,b=b+Math.imul(L,ge)|0,h=h+Math.imul(H,Re)|0,s=s+Math.imul(H,Se)|0,s=s+Math.imul(X,Re)|0,b=b+Math.imul(X,Se)|0,h=h+Math.imul(C,je)|0,s=s+Math.imul(C,ke)|0,s=s+Math.imul(U,je)|0,b=b+Math.imul(U,ke)|0;var qt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(qt>>>26)|0,qt&=67108863,h=Math.imul(_e,he),s=Math.imul(_e,ve),s=s+Math.imul(Z,he)|0,b=Math.imul(Z,ve),h=h+Math.imul(ie,xe)|0,s=s+Math.imul(ie,Ae)|0,s=s+Math.imul(ue,xe)|0,b=b+Math.imul(ue,Ae)|0,h=h+Math.imul(T,be)|0,s=s+Math.imul(T,de)|0,s=s+Math.imul(O,be)|0,b=b+Math.imul(O,de)|0,h=h+Math.imul(re,ce)|0,s=s+Math.imul(re,ge)|0,s=s+Math.imul(se,ce)|0,b=b+Math.imul(se,ge)|0,h=h+Math.imul(k,Re)|0,s=s+Math.imul(k,Se)|0,s=s+Math.imul(L,Re)|0,b=b+Math.imul(L,Se)|0,h=h+Math.imul(H,je)|0,s=s+Math.imul(H,ke)|0,s=s+Math.imul(X,je)|0,b=b+Math.imul(X,ke)|0,h=h+Math.imul(C,Ne)|0,s=s+Math.imul(C,Be)|0,s=s+Math.imul(U,Ne)|0,b=b+Math.imul(U,Be)|0;var zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(fe,he),s=Math.imul(fe,ve),s=s+Math.imul(pe,he)|0,b=Math.imul(pe,ve),h=h+Math.imul(_e,xe)|0,s=s+Math.imul(_e,Ae)|0,s=s+Math.imul(Z,xe)|0,b=b+Math.imul(Z,Ae)|0,h=h+Math.imul(ie,be)|0,s=s+Math.imul(ie,de)|0,s=s+Math.imul(ue,be)|0,b=b+Math.imul(ue,de)|0,h=h+Math.imul(T,ce)|0,s=s+Math.imul(T,ge)|0,s=s+Math.imul(O,ce)|0,b=b+Math.imul(O,ge)|0,h=h+Math.imul(re,Re)|0,s=s+Math.imul(re,Se)|0,s=s+Math.imul(se,Re)|0,b=b+Math.imul(se,Se)|0,h=h+Math.imul(k,je)|0,s=s+Math.imul(k,ke)|0,s=s+Math.imul(L,je)|0,b=b+Math.imul(L,ke)|0,h=h+Math.imul(H,Ne)|0,s=s+Math.imul(H,Be)|0,s=s+Math.imul(X,Ne)|0,b=b+Math.imul(X,Be)|0,h=h+Math.imul(C,$e)|0,s=s+Math.imul(C,De)|0,s=s+Math.imul(U,$e)|0,b=b+Math.imul(U,De)|0;var $t=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+($t>>>26)|0,$t&=67108863,h=Math.imul(Me,he),s=Math.imul(Me,ve),s=s+Math.imul(Ee,he)|0,b=Math.imul(Ee,ve),h=h+Math.imul(fe,xe)|0,s=s+Math.imul(fe,Ae)|0,s=s+Math.imul(pe,xe)|0,b=b+Math.imul(pe,Ae)|0,h=h+Math.imul(_e,be)|0,s=s+Math.imul(_e,de)|0,s=s+Math.imul(Z,be)|0,b=b+Math.imul(Z,de)|0,h=h+Math.imul(ie,ce)|0,s=s+Math.imul(ie,ge)|0,s=s+Math.imul(ue,ce)|0,b=b+Math.imul(ue,ge)|0,h=h+Math.imul(T,Re)|0,s=s+Math.imul(T,Se)|0,s=s+Math.imul(O,Re)|0,b=b+Math.imul(O,Se)|0,h=h+Math.imul(re,je)|0,s=s+Math.imul(re,ke)|0,s=s+Math.imul(se,je)|0,b=b+Math.imul(se,ke)|0,h=h+Math.imul(k,Ne)|0,s=s+Math.imul(k,Be)|0,s=s+Math.imul(L,Ne)|0,b=b+Math.imul(L,Be)|0,h=h+Math.imul(H,$e)|0,s=s+Math.imul(H,De)|0,s=s+Math.imul(X,$e)|0,b=b+Math.imul(X,De)|0,h=h+Math.imul(C,qe)|0,s=s+Math.imul(C,Le)|0,s=s+Math.imul(U,qe)|0,b=b+Math.imul(U,Le)|0;var Ht=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,h=Math.imul(me,he),s=Math.imul(me,ve),s=s+Math.imul(ye,he)|0,b=Math.imul(ye,ve),h=h+Math.imul(Me,xe)|0,s=s+Math.imul(Me,Ae)|0,s=s+Math.imul(Ee,xe)|0,b=b+Math.imul(Ee,Ae)|0,h=h+Math.imul(fe,be)|0,s=s+Math.imul(fe,de)|0,s=s+Math.imul(pe,be)|0,b=b+Math.imul(pe,de)|0,h=h+Math.imul(_e,ce)|0,s=s+Math.imul(_e,ge)|0,s=s+Math.imul(Z,ce)|0,b=b+Math.imul(Z,ge)|0,h=h+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Se)|0,s=s+Math.imul(ue,Re)|0,b=b+Math.imul(ue,Se)|0,h=h+Math.imul(T,je)|0,s=s+Math.imul(T,ke)|0,s=s+Math.imul(O,je)|0,b=b+Math.imul(O,ke)|0,h=h+Math.imul(re,Ne)|0,s=s+Math.imul(re,Be)|0,s=s+Math.imul(se,Ne)|0,b=b+Math.imul(se,Be)|0,h=h+Math.imul(k,$e)|0,s=s+Math.imul(k,De)|0,s=s+Math.imul(L,$e)|0,b=b+Math.imul(L,De)|0,h=h+Math.imul(H,qe)|0,s=s+Math.imul(H,Le)|0,s=s+Math.imul(X,qe)|0,b=b+Math.imul(X,Le)|0,h=h+Math.imul(C,ze)|0,s=s+Math.imul(C,Ge)|0,s=s+Math.imul(U,ze)|0,b=b+Math.imul(U,Ge)|0;var Kt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(me,xe),s=Math.imul(me,Ae),s=s+Math.imul(ye,xe)|0,b=Math.imul(ye,Ae),h=h+Math.imul(Me,be)|0,s=s+Math.imul(Me,de)|0,s=s+Math.imul(Ee,be)|0,b=b+Math.imul(Ee,de)|0,h=h+Math.imul(fe,ce)|0,s=s+Math.imul(fe,ge)|0,s=s+Math.imul(pe,ce)|0,b=b+Math.imul(pe,ge)|0,h=h+Math.imul(_e,Re)|0,s=s+Math.imul(_e,Se)|0,s=s+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Se)|0,h=h+Math.imul(ie,je)|0,s=s+Math.imul(ie,ke)|0,s=s+Math.imul(ue,je)|0,b=b+Math.imul(ue,ke)|0,h=h+Math.imul(T,Ne)|0,s=s+Math.imul(T,Be)|0,s=s+Math.imul(O,Ne)|0,b=b+Math.imul(O,Be)|0,h=h+Math.imul(re,$e)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(se,$e)|0,b=b+Math.imul(se,De)|0,h=h+Math.imul(k,qe)|0,s=s+Math.imul(k,Le)|0,s=s+Math.imul(L,qe)|0,b=b+Math.imul(L,Le)|0,h=h+Math.imul(H,ze)|0,s=s+Math.imul(H,Ge)|0,s=s+Math.imul(X,ze)|0,b=b+Math.imul(X,Ge)|0;var Gt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(me,be),s=Math.imul(me,de),s=s+Math.imul(ye,be)|0,b=Math.imul(ye,de),h=h+Math.imul(Me,ce)|0,s=s+Math.imul(Me,ge)|0,s=s+Math.imul(Ee,ce)|0,b=b+Math.imul(Ee,ge)|0,h=h+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Se)|0,s=s+Math.imul(pe,Re)|0,b=b+Math.imul(pe,Se)|0,h=h+Math.imul(_e,je)|0,s=s+Math.imul(_e,ke)|0,s=s+Math.imul(Z,je)|0,b=b+Math.imul(Z,ke)|0,h=h+Math.imul(ie,Ne)|0,s=s+Math.imul(ie,Be)|0,s=s+Math.imul(ue,Ne)|0,b=b+Math.imul(ue,Be)|0,h=h+Math.imul(T,$e)|0,s=s+Math.imul(T,De)|0,s=s+Math.imul(O,$e)|0,b=b+Math.imul(O,De)|0,h=h+Math.imul(re,qe)|0,s=s+Math.imul(re,Le)|0,s=s+Math.imul(se,qe)|0,b=b+Math.imul(se,Le)|0,h=h+Math.imul(k,ze)|0,s=s+Math.imul(k,Ge)|0,s=s+Math.imul(L,ze)|0,b=b+Math.imul(L,Ge)|0;var Wt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(me,ce),s=Math.imul(me,ge),s=s+Math.imul(ye,ce)|0,b=Math.imul(ye,ge),h=h+Math.imul(Me,Re)|0,s=s+Math.imul(Me,Se)|0,s=s+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Se)|0,h=h+Math.imul(fe,je)|0,s=s+Math.imul(fe,ke)|0,s=s+Math.imul(pe,je)|0,b=b+Math.imul(pe,ke)|0,h=h+Math.imul(_e,Ne)|0,s=s+Math.imul(_e,Be)|0,s=s+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,Be)|0,h=h+Math.imul(ie,$e)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(ue,$e)|0,b=b+Math.imul(ue,De)|0,h=h+Math.imul(T,qe)|0,s=s+Math.imul(T,Le)|0,s=s+Math.imul(O,qe)|0,b=b+Math.imul(O,Le)|0,h=h+Math.imul(re,ze)|0,s=s+Math.imul(re,Ge)|0,s=s+Math.imul(se,ze)|0,b=b+Math.imul(se,Ge)|0;var Vt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(me,Re),s=Math.imul(me,Se),s=s+Math.imul(ye,Re)|0,b=Math.imul(ye,Se),h=h+Math.imul(Me,je)|0,s=s+Math.imul(Me,ke)|0,s=s+Math.imul(Ee,je)|0,b=b+Math.imul(Ee,ke)|0,h=h+Math.imul(fe,Ne)|0,s=s+Math.imul(fe,Be)|0,s=s+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Be)|0,h=h+Math.imul(_e,$e)|0,s=s+Math.imul(_e,De)|0,s=s+Math.imul(Z,$e)|0,b=b+Math.imul(Z,De)|0,h=h+Math.imul(ie,qe)|0,s=s+Math.imul(ie,Le)|0,s=s+Math.imul(ue,qe)|0,b=b+Math.imul(ue,Le)|0,h=h+Math.imul(T,ze)|0,s=s+Math.imul(T,Ge)|0,s=s+Math.imul(O,ze)|0,b=b+Math.imul(O,Ge)|0;var Zt=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(me,je),s=Math.imul(me,ke),s=s+Math.imul(ye,je)|0,b=Math.imul(ye,ke),h=h+Math.imul(Me,Ne)|0,s=s+Math.imul(Me,Be)|0,s=s+Math.imul(Ee,Ne)|0,b=b+Math.imul(Ee,Be)|0,h=h+Math.imul(fe,$e)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(pe,$e)|0,b=b+Math.imul(pe,De)|0,h=h+Math.imul(_e,qe)|0,s=s+Math.imul(_e,Le)|0,s=s+Math.imul(Z,qe)|0,b=b+Math.imul(Z,Le)|0,h=h+Math.imul(ie,ze)|0,s=s+Math.imul(ie,Ge)|0,s=s+Math.imul(ue,ze)|0,b=b+Math.imul(ue,Ge)|0;var cr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(cr>>>26)|0,cr&=67108863,h=Math.imul(me,Ne),s=Math.imul(me,Be),s=s+Math.imul(ye,Ne)|0,b=Math.imul(ye,Be),h=h+Math.imul(Me,$e)|0,s=s+Math.imul(Me,De)|0,s=s+Math.imul(Ee,$e)|0,b=b+Math.imul(Ee,De)|0,h=h+Math.imul(fe,qe)|0,s=s+Math.imul(fe,Le)|0,s=s+Math.imul(pe,qe)|0,b=b+Math.imul(pe,Le)|0,h=h+Math.imul(_e,ze)|0,s=s+Math.imul(_e,Ge)|0,s=s+Math.imul(Z,ze)|0,b=b+Math.imul(Z,Ge)|0;var hr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(me,$e),s=Math.imul(me,De),s=s+Math.imul(ye,$e)|0,b=Math.imul(ye,De),h=h+Math.imul(Me,qe)|0,s=s+Math.imul(Me,Le)|0,s=s+Math.imul(Ee,qe)|0,b=b+Math.imul(Ee,Le)|0,h=h+Math.imul(fe,ze)|0,s=s+Math.imul(fe,Ge)|0,s=s+Math.imul(pe,ze)|0,b=b+Math.imul(pe,Ge)|0;var dr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(dr>>>26)|0,dr&=67108863,h=Math.imul(me,qe),s=Math.imul(me,Le),s=s+Math.imul(ye,qe)|0,b=Math.imul(ye,Le),h=h+Math.imul(Me,ze)|0,s=s+Math.imul(Me,Ge)|0,s=s+Math.imul(Ee,ze)|0,b=b+Math.imul(Ee,Ge)|0;var Yr=(v+h|0)+((s&8191)<<13)|0;v=(b+(s>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,h=Math.imul(me,ze),s=Math.imul(me,Ge),s=s+Math.imul(ye,ze)|0,b=Math.imul(ye,Ge);var Jr=(v+h|0)+((s&8191)<<13)|0;return v=(b+(s>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w[0]=Et,w[1]=Ct,w[2]=Mt,w[3]=At,w[4]=Rt,w[5]=qt,w[6]=zt,w[7]=$t,w[8]=Ht,w[9]=Kt,w[10]=Gt,w[11]=Wt,w[12]=Vt,w[13]=Zt,w[14]=cr,w[15]=hr,w[16]=dr,w[17]=Yr,w[18]=Jr,v!==0&&(w[19]=v,p.length++),p};Math.imul||(A=R);function F(d,o,u){u.negative=o.negative^d.negative,u.length=d.length+o.length;for(var p=0,y=0,x=0;x>>26)|0,y+=w>>>26,w&=67108863}u.words[x]=v,p=w,w=y}return p!==0?u.words[x]=p:u.length--,u._strip()}function V(d,o,u){return F(d,o,u)}i.prototype.mulTo=function(o,u){var p,y=this.length+o.length;return this.length===10&&o.length===10?p=A(this,o,u):y<63?p=R(this,o,u):y<1024?p=F(this,o,u):p=V(this,o,u),p},i.prototype.mul=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},i.prototype.mulf=function(o){var u=new i(null);return u.words=new Array(this.length+o.length),V(this,o,u)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var u=o<0;u&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var p=0,y=0;y>=26,p+=x/67108864|0,p+=w>>>26,this.words[y]=w&67108863}return p!==0&&(this.words[y]=p,this.length++),u?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var u=B(o);if(u.length===0)return new i(1);for(var p=this,y=0;y=0);var u=o%26,p=(o-u)/26,y=67108863>>>26-u<<26-u,x;if(u!==0){var w=0;for(x=0;x>>26-u}w&&(this.words[x]=w,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x=0);var y;u?y=(u-u%26)/26:y=0;var x=o%26,w=Math.min((o-x)/26,this.length),v=67108863^67108863>>>x<w)for(this.length-=w,s=0;s=0&&(b!==0||s>=y);s--){var D=this.words[s]|0;this.words[s]=b<<26-x|D>>>x,b=D&v}return h&&b!==0&&(h.words[h.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,u,p){return n(this.negative===0),this.iushrn(o,u,p)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var u=o%26,p=(o-u)/26,y=1<=0);var u=o%26,p=(o-u)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(u!==0&&p++,this.length=Math.min(p,this.length),u!==0){var y=67108863^67108863>>>u<=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u>26)-(h/67108864|0),this.words[x+p]=w&67108863}for(;x>26,this.words[x+p]=w&67108863;if(v===0)return this._strip();for(n(v===-1),v=0,x=0;x>26,this.words[x]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,u){var p=this.length-o.length,y=this.clone(),x=o,w=x.words[x.length-1]|0,v=this._countBits(w);p=26-v,p!==0&&(x=x.ushln(p),y.iushln(p),w=x.words[x.length-1]|0);var h=y.length-x.length,s;if(u!=="mod"){s=new i(null),s.length=h+1,s.words=new Array(s.length);for(var b=0;b=0;C--){var U=(y.words[x.length+C]|0)*67108864+(y.words[x.length+C-1]|0);for(U=Math.min(U/w|0,67108863),y._ishlnsubmul(x,U,C);y.negative!==0;)U--,y.negative=0,y._ishlnsubmul(x,1,C),y.isZero()||(y.negative^=1);s&&(s.words[C]=U)}return s&&s._strip(),y._strip(),u!=="div"&&p!==0&&y.iushrn(p),{div:s||null,mod:y}},i.prototype.divmod=function(o,u,p){if(n(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,x,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,u),u!=="mod"&&(y=w.div.neg()),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.iadd(o)),{div:y,mod:x}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),u),u!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),u),u!=="div"&&(x=w.mod.neg(),p&&x.negative!==0&&x.isub(o)),{div:w.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,u)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var p=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),x=o.andln(1),w=p.cmp(y);return w<0||x===1&&w===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modrn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=(1<<26)%o,y=0,x=this.length-1;x>=0;x--)y=(p*y+(this.words[x]|0))%o;return u?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var u=o<0;u&&(o=-o),n(o<=67108863);for(var p=0,y=this.length-1;y>=0;y--){var x=(this.words[y]|0)+p*67108864;this.words[y]=x/o|0,p=x%o}return this._strip(),u?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=new i(0),v=new i(1),h=0;u.isEven()&&p.isEven();)u.iushrn(1),p.iushrn(1),++h;for(var s=p.clone(),b=u.clone();!u.isZero();){for(var D=0,C=1;!(u.words[0]&C)&&D<26;++D,C<<=1);if(D>0)for(u.iushrn(D);D-- >0;)(y.isOdd()||x.isOdd())&&(y.iadd(s),x.isub(b)),y.iushrn(1),x.iushrn(1);for(var U=0,$=1;!(p.words[0]&$)&&U<26;++U,$<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(w.isOdd()||v.isOdd())&&(w.iadd(s),v.isub(b)),w.iushrn(1),v.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(w),x.isub(v)):(p.isub(u),w.isub(y),v.isub(x))}return{a:w,b:v,gcd:p.iushln(h)}},i.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var u=this,p=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new i(1),x=new i(0),w=p.clone();u.cmpn(1)>0&&p.cmpn(1)>0;){for(var v=0,h=1;!(u.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(u.iushrn(v);v-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var s=0,b=1;!(p.words[0]&b)&&s<26;++s,b<<=1);if(s>0)for(p.iushrn(s);s-- >0;)x.isOdd()&&x.iadd(w),x.iushrn(1);u.cmp(p)>=0?(u.isub(p),y.isub(x)):(p.isub(u),x.isub(y))}var D;return u.cmpn(1)===0?D=y:D=x,D.cmpn(0)<0&&D.iadd(o),D},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),p=o.clone();u.negative=0,p.negative=0;for(var y=0;u.isEven()&&p.isEven();y++)u.iushrn(1),p.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=u.cmp(p);if(x<0){var w=u;u=p,p=w}else if(x===0||p.cmpn(1)===0)break;u.isub(p)}while(!0);return p.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){n(typeof o=="number");var u=o%26,p=(o-u)/26,y=1<>>26,v&=67108863,this.words[w]=v}return x!==0&&(this.words[w]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var p;if(this.length>1)p=1;else{u&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;p=y===o?0:yo.length)return 1;if(this.length=0;p--){var y=this.words[p]|0,x=o.words[p]|0;if(y!==x){yx&&(u=1);break}}return u},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new G(o)},i.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function N(d,o){this.name=d,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},N.prototype.ireduce=function(o){var u=o,p;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),p=u.bitLength();while(p>this.n);var y=p0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},N.prototype.split=function(o,u){o.iushrn(this.n,0,u)},N.prototype.imulK=function(o){return o.imul(this.k)};function K(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(K,N),K.prototype.split=function(o,u){for(var p=4194303,y=Math.min(o.length,9),x=0;x>>22,w=v}w>>>=22,o.words[x-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},K.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,p=0;p>>=26,o.words[p]=x,u=y}return u!==0&&(o.words[o.length++]=u),o},i._prime=function(o){if(j[o])return j[o];var u;if(o==="k256")u=new K;else if(o==="p224")u=new J;else if(o==="p192")u=new te;else if(o==="p25519")u=new ee;else throw new Error("Unknown prime "+o);return j[o]=u,u};function G(d){if(typeof d=="string"){var o=i._prime(d);this.m=o.p,this.prime=o}else n(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}G.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},G.prototype._verify2=function(o,u){n((o.negative|u.negative)===0,"red works only with positives"),n(o.red&&o.red===u.red,"red works only with red numbers")},G.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(g(o,o.umod(this.m)._forceRed(this)),o)},G.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},G.prototype.add=function(o,u){this._verify2(o,u);var p=o.add(u);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},G.prototype.iadd=function(o,u){this._verify2(o,u);var p=o.iadd(u);return p.cmp(this.m)>=0&&p.isub(this.m),p},G.prototype.sub=function(o,u){this._verify2(o,u);var p=o.sub(u);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},G.prototype.isub=function(o,u){this._verify2(o,u);var p=o.isub(u);return p.cmpn(0)<0&&p.iadd(this.m),p},G.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},G.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},G.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},G.prototype.isqr=function(o){return this.imul(o,o.clone())},G.prototype.sqr=function(o){return this.mul(o,o)},G.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(n(u%2===1),u===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(o,p)}for(var y=this.m.subn(1),x=0;!y.isZero()&&y.andln(1)===0;)x++,y.iushrn(1);n(!y.isZero());var w=new i(1).toRed(this),v=w.redNeg(),h=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,h).cmp(v)!==0;)s.redIAdd(v);for(var b=this.pow(s,y),D=this.pow(o,y.addn(1).iushrn(1)),C=this.pow(o,y),U=x;C.cmp(w)!==0;){for(var $=C,H=0;$.cmp(w)!==0;H++)$=$.redSqr();n(H=0;x--){for(var b=u.words[x],D=s-1;D>=0;D--){var C=b>>D&1;if(w!==y[0]&&(w=this.sqr(w)),C===0&&v===0){h=0;continue}v<<=1,v|=C,h++,!(h!==p&&(x!==0||D!==0))&&(w=this.mul(w,y[v]),h=0,v=0)}s=26}return w},G.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},G.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},i.mont=function(o){return new E(o)};function E(d){G.call(this,d),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)}a(E,G),E.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},E.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},E.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var p=o.imul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new i(0)._forceRed(this);var p=o.mul(u),y=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(y).iushrn(this.shift),w=x;return x.cmp(this.m)>=0?w=x.isub(this.m):x.cmpn(0)<0&&(w=x.iadd(this.m)),w._forceRed(this)},E.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(e,Oe)})(F7);var kX=F7.exports;const at=Nr(kX);function m0(e,t,r){return r={path:t,exports:{},require:function(n,a){return IX(n,a??r.path)}},e(r,r.exports),r.exports}function IX(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var U7=aR;function aR(e,t){if(!e)throw new Error(t||"Assertion failed")}aR.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var Ri=m0(function(e,t){var r=t;function n(f,l){if(Array.isArray(f))return f.slice();if(!f)return[];var c=[];if(typeof f!="string"){for(var m=0;m>8,S=g&255;_?c.push(_,S):c.push(S)}return c}r.toArray=n;function a(f){return f.length===1?"0"+f:f}r.zero2=a;function i(f){for(var l="",c=0;c(S>>1)-1?I=(S>>1)-B:I=B,M.isubn(I)):I=0,_[P]=I,M.iushrn(1)}return _}r.getNAF=n;function a(c,m){var g=[[],[]];c=c.clone(),m=m.clone();for(var _=0,S=0,M;c.cmpn(-_)>0||m.cmpn(-S)>0;){var P=c.andln(3)+_&3,I=m.andln(3)+S&3;P===3&&(P=-1),I===3&&(I=-1);var B;P&1?(M=c.andln(7)+_&7,(M===3||M===5)&&I===2?B=-P:B=P):B=0,g[0].push(B);var R;I&1?(M=m.andln(7)+S&7,(M===3||M===5)&&P===2?R=-I:R=I):R=0,g[1].push(R),2*_===B+1&&(_=1-_),2*S===R+1&&(S=1-S),c.iushrn(1),m.iushrn(1)}return g}r.getJSF=a;function i(c,m,g){var _="_"+m;c.prototype[m]=function(){return this[_]!==void 0?this[_]:this[_]=g.call(this)}}r.cachedProperty=i;function f(c){return typeof c=="string"?r.toArray(c,"hex"):c}r.parseBytes=f;function l(c){return new at(c,"hex","le")}r.intFromLE=l}),rh=Dn.getNAF,BX=Dn.getJSF,nh=Dn.assert;function jo(e,t){this.type=e,this.p=new at(t.p,16),this.red=t.prime?at.red(t.prime):at.mont(this.p),this.zero=new at(0).toRed(this.red),this.one=new at(1).toRed(this.red),this.two=new at(2).toRed(this.red),this.n=t.n&&new at(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))}var Of=jo;jo.prototype.point=function(){throw new Error("Not implemented")};jo.prototype.validate=function(){throw new Error("Not implemented")};jo.prototype._fixedNafMul=function(t,r){nh(t.precomputed);var n=t._getDoubles(),a=rh(r,1,this._bitLength),i=(1<=l;m--)c=(c<<1)+a[m];f.push(c)}for(var g=this.jpoint(null,null,null),_=this.jpoint(null,null,null),S=i;S>0;S--){for(l=0;l=0;c--){for(var m=0;c>=0&&f[c]===0;c--)m++;if(c>=0&&m++,l=l.dblp(m),c<0)break;var g=f[c];nh(g!==0),t.type==="affine"?g>0?l=l.mixedAdd(i[g-1>>1]):l=l.mixedAdd(i[-g-1>>1].neg()):g>0?l=l.add(i[g-1>>1]):l=l.add(i[-g-1>>1].neg())}return t.type==="affine"?l.toP():l};jo.prototype._wnafMulAdd=function(t,r,n,a,i){var f=this._wnafT1,l=this._wnafT2,c=this._wnafT3,m=0,g,_,S;for(g=0;g=1;g-=2){var P=g-1,I=g;if(f[P]!==1||f[I]!==1){c[P]=rh(n[P],f[P],this._bitLength),c[I]=rh(n[I],f[I],this._bitLength),m=Math.max(c[P].length,m),m=Math.max(c[I].length,m);continue}var B=[r[P],null,null,r[I]];r[P].y.cmp(r[I].y)===0?(B[1]=r[P].add(r[I]),B[2]=r[P].toJ().mixedAdd(r[I].neg())):r[P].y.cmp(r[I].y.redNeg())===0?(B[1]=r[P].toJ().mixedAdd(r[I]),B[2]=r[P].add(r[I].neg())):(B[1]=r[P].toJ().mixedAdd(r[I]),B[2]=r[P].toJ().mixedAdd(r[I].neg()));var R=[-3,-1,-5,-7,0,7,5,1,3],A=BX(n[P],n[I]);for(m=Math.max(A[0].length,m),c[P]=new Array(m),c[I]=new Array(m),_=0;_=0;g--){for(var K=0;g>=0;){var J=!0;for(_=0;_=0&&K++,j=j.dblp(K),g<0)break;for(_=0;_0?S=l[_][te-1>>1]:te<0&&(S=l[_][-te-1>>1].neg()),S.type==="affine"?j=j.mixedAdd(S):j=j.add(S))}}for(g=0;g=Math.ceil((t.bitLength()+1)/r.step):!1};hi.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i=0&&(M=m,P=g),_.negative&&(_=_.neg(),S=S.neg()),M.negative&&(M=M.neg(),P=P.neg()),[{a:_,b:S},{a:M,b:P}]};di.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],a=r[1],i=a.b.mul(t).divRound(this.n),f=n.b.neg().mul(t).divRound(this.n),l=i.mul(n.a),c=f.mul(a.a),m=i.mul(n.b),g=f.mul(a.b),_=t.sub(l).sub(c),S=m.add(g).neg();return{k1:_,k2:S}};di.prototype.pointFromX=function(t,r){t=new at(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(r&&!i||!r&&i)&&(a=a.redNeg()),this.point(t,a)};di.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,a=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};di.prototype._endoWnafMulAdd=function(t,r,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,f=0;f":""};Tr.prototype.isInfinity=function(){return this.inf};Tr.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),a=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Tr.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(),a=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(a),f=i.redSqr().redISub(this.x.redAdd(this.x)),l=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,l)};Tr.prototype.getX=function(){return this.x.fromRed()};Tr.prototype.getY=function(){return this.y.fromRed()};Tr.prototype.mul=function(t){return t=new at(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)};Tr.prototype.mulAdd=function(t,r,n){var a=[this,r],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Tr.prototype.jmulAdd=function(t,r,n){var a=[this,r],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Tr.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)};Tr.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,a=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return r};Tr.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 jr(e,t,r,n){Of.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new at(0)):(this.x=new at(t,16),this.y=new at(r,16),this.z=new at(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}j7(jr,Of.BasePoint);di.prototype.jpoint=function(t,r,n){return new jr(this,t,r,n)};jr.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),a=this.y.redMul(r).redMul(t);return this.curve.point(n,a)};jr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};jr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(r),i=t.x.redMul(n),f=this.y.redMul(r.redMul(t.z)),l=t.y.redMul(n.redMul(this.z)),c=a.redSub(i),m=f.redSub(l);if(c.cmpn(0)===0)return m.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=c.redSqr(),_=g.redMul(c),S=a.redMul(g),M=m.redSqr().redIAdd(_).redISub(S).redISub(S),P=m.redMul(S.redISub(M)).redISub(f.redMul(_)),I=this.z.redMul(t.z).redMul(c);return this.curve.jpoint(M,P,I)};jr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,a=t.x.redMul(r),i=this.y,f=t.y.redMul(r).redMul(this.z),l=n.redSub(a),c=i.redSub(f);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=l.redSqr(),g=m.redMul(l),_=n.redMul(m),S=c.redSqr().redIAdd(g).redISub(_).redISub(_),M=c.redMul(_.redISub(S)).redISub(i.redMul(g)),P=this.z.redMul(l);return this.curve.jpoint(S,M,P)};jr.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=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};jr.prototype.inspect=function(){return this.isInfinity()?"":""};jr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var t1=m0(function(e,t){var r=t;r.base=Of,r.short=NX,r.mont=null,r.edwards=null}),r1=m0(function(e,t){var r=t,n=Dn.assert;function a(l){l.type==="short"?this.curve=new t1.short(l):l.type==="edwards"?this.curve=new t1.edwards(l):this.curve=new t1.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=a;function i(l,c){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){var m=new a(c);return Object.defineProperty(r,l,{configurable:!0,enumerable:!0,value:m}),m}})}i("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:Cn.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("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:Cn.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("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:Cn.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("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:Cn.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"]}),i("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:Cn.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"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Cn.sha256,gRed:!1,g:["9"]}),i("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:Cn.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var f;try{f=null.crash()}catch{f=void 0}i("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:Cn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",f]})});function Oo(e){if(!(this instanceof Oo))return new Oo(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=Ri.toArray(e.entropy,e.entropyEnc||"hex"),r=Ri.toArray(e.nonce,e.nonceEnc||"hex"),n=Ri.toArray(e.pers,e.persEnc||"hex");U7(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var oR=Oo;Oo.prototype._init=function(t,r,n){var a=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};Oo.prototype.generate=function(t,r,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(a=n,n=r,r=null),n&&(n=Ri.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length"};var DX=Dn.assert;function Rd(e,t){if(e instanceof Rd)return e;this._importDER(e,t)||(DX(e.r&&e.s,"Signature without r or s"),this.r=new at(e.r,16),this.s=new at(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var Td=Rd;function FX(){this.place=0}function Tp(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var a=0,i=0,f=t.place;i>>=0;return a<=127?!1:(t.place=f,a)}function Yb(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}Rd.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=Yb(r),n=Yb(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];Pp(a,r.length),a=a.concat(r),a.push(2),Pp(a,n.length);var i=a.concat(n),f=[48];return Pp(f,i.length),f=f.concat(i),Dn.encode(f,t)};var UX=function(){throw new Error("unsupported")},fR=Dn.assert;function ai(e){if(!(this instanceof ai))return new ai(e);typeof e=="string"&&(fR(Object.prototype.hasOwnProperty.call(r1,e),"Unknown curve "+e),e=r1[e]),e instanceof r1.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}var jX=ai;ai.prototype.keyPair=function(t){return new q7(this,t)};ai.prototype.keyFromPrivate=function(t,r){return q7.fromPrivate(this,t,r)};ai.prototype.keyFromPublic=function(t,r){return q7.fromPublic(this,t,r)};ai.prototype.genKeyPair=function(t){t||(t={});for(var r=new oR({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||UX(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new at(2));;){var i=new at(r.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};ai.prototype._truncateToN=function(t,r){var n=t.byteLength()*8-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};ai.prototype.sign=function(t,r,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),r=this.keyFromPrivate(r,n),t=this._truncateToN(new at(t,16));for(var i=this.n.byteLength(),f=r.getPrivate().toArray("be",i),l=t.toArray("be",i),c=new oR({hash:this.hash,entropy:f,nonce:l,pers:a.pers,persEnc:a.persEnc||"utf8"}),m=this.n.sub(new at(1)),g=0;;g++){var _=a.k?a.k(g):new at(c.generate(this.n.byteLength()));if(_=this._truncateToN(_,!0),!(_.cmpn(1)<=0||_.cmp(m)>=0)){var S=this.g.mul(_);if(!S.isInfinity()){var M=S.getX(),P=M.umod(this.n);if(P.cmpn(0)!==0){var I=_.invm(this.n).mul(P.mul(r.getPrivate()).iadd(t));if(I=I.umod(this.n),I.cmpn(0)!==0){var B=(S.getY().isOdd()?1:0)|(M.cmp(P)!==0?2:0);return a.canonical&&I.cmp(this.nh)>0&&(I=this.n.sub(I),B^=1),new Td({r:P,s:I,recoveryParam:B})}}}}}};ai.prototype.verify=function(t,r,n,a){t=this._truncateToN(new at(t,16)),n=this.keyFromPublic(n,a),r=new Td(r,"hex");var i=r.r,f=r.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||f.cmpn(1)<0||f.cmp(this.n)>=0)return!1;var l=f.invm(this.n),c=l.mul(t).umod(this.n),m=l.mul(i).umod(this.n),g;return this.curve._maxwellTrick?(g=this.g.jmulAdd(c,n.getPublic(),m),g.isInfinity()?!1:g.eqXToP(i)):(g=this.g.mulAdd(c,n.getPublic(),m),g.isInfinity()?!1:g.getX().umod(this.n).cmp(i)===0)};ai.prototype.recoverPubKey=function(e,t,r,n){fR((3&r)===r,"The recovery param is more than two bits"),t=new Td(t,n);var a=this.n,i=new at(e),f=t.r,l=t.s,c=r&1,m=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&m)throw new Error("Unable to find sencond key candinate");m?f=this.curve.pointFromX(f.add(this.curve.n),c):f=this.curve.pointFromX(f,c);var g=t.r.invm(a),_=a.sub(i).mul(g).umod(a),S=l.mul(g).umod(a);return this.g.mulAdd(_,f,S)};ai.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new Td(t,n),t.recoveryParam!==null)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch{continue}if(i.eq(r))return a}throw new Error("Unable to find valid recovery factor")};var qX=m0(function(e,t){var r=t;r.version="6.5.4",r.utils=Dn,r.rand=function(){throw new Error("unsupported")},r.curve=t1,r.curves=r1,r.ec=jX,r.eddsa=null}),zX=qX.ec;const $X="signing-key/5.7.0",F6=new tt($X);let Op=null;function Zi(){return Op||(Op=new zX("secp256k1")),Op}class Es{constructor(t){it(this,"curve","secp256k1"),it(this,"privateKey",nt(t)),JA(this.privateKey)!==32&&F6.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=Zi().keyFromPrivate(Ye(this.privateKey));it(this,"publicKey","0x"+r.getPublic(!1,"hex")),it(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),it(this,"_isSigningKey",!0)}_addPoint(t){const r=Zi().keyFromPublic(Ye(this.publicKey)),n=Zi().keyFromPublic(Ye(t));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(t){const r=Zi().keyFromPrivate(Ye(this.privateKey)),n=Ye(t);n.length!==32&&F6.throwArgumentError("bad digest length","digest",t);const a=r.sign(n,{canonical:!0});return y0({recoveryParam:a.recoveryParam,r:Qn("0x"+a.r.toString(16),32),s:Qn("0x"+a.s.toString(16),32)})}computeSharedSecret(t){const r=Zi().keyFromPrivate(Ye(this.privateKey)),n=Zi().keyFromPublic(Ye(uR(t)));return Qn("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function sR(e,t){const r=y0(t),n={r:Ye(r.r),s:Ye(r.s)};return"0x"+Zi().recoverPubKey(Ye(e),n,r.recoveryParam).encode("hex",!1)}function uR(e,t){const r=Ye(e);if(r.length===32){const n=new Es(r);return t?"0x"+Zi().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return t?nt(r):"0x"+Zi().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return t?"0x"+Zi().keyFromPublic(r).getPublic(!0,"hex"):nt(r)}return F6.throwArgumentError("invalid public or private key","key","[REDACTED]")}const HX="transactions/5.7.0",Ai=new tt(HX);var Jb;(function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"})(Jb||(Jb={}));const KX=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],GX={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function So(e){const t=uR(e);return Bi(Ju(rn(Ju(t,1)),12))}function lR(e,t){return So(sR(Ye(e),t))}function Mn(e,t){const r=_o(It.from(e).toHexString());return r.length>32&&Ai.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function kp(e,t){return{address:Bi(e),storageKeys:(t||[]).map((r,n)=>(JA(r)!==32&&Ai.throwArgumentError("invalid access list storageKey",`accessList[${e}:${n}]`,r),r.toLowerCase()))}}function WX(e){if(Array.isArray(e))return e.map((r,n)=>Array.isArray(r)?(r.length>2&&Ai.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),kp(r[0],r[1])):kp(r.address,r.storageKeys));const t=Object.keys(e).map(r=>{const n=e[r].reduce((a,i)=>(a[i]=!0,a),{});return kp(r,Object.keys(n).sort())});return t.sort((r,n)=>r.address.localeCompare(n.address)),t}function cR(e){return WX(e).map(t=>[t.address,t.storageKeys])}function VX(e,t){if(e.gasPrice!=null){const n=It.from(e.gasPrice),a=It.from(e.maxFeePerGas||0);n.eq(a)||Ai.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:a})}const r=[Mn(e.chainId||0,"chainId"),Mn(e.nonce||0,"nonce"),Mn(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Mn(e.maxFeePerGas||0,"maxFeePerGas"),Mn(e.gasLimit||0,"gasLimit"),e.to!=null?Bi(e.to):"0x",Mn(e.value||0,"value"),e.data||"0x",cR(e.accessList||[])];if(t){const n=y0(t);r.push(Mn(n.recoveryParam,"recoveryParam")),r.push(_o(n.r)),r.push(_o(n.s))}return Ss(["0x02",Q1(r)])}function ZX(e,t){const r=[Mn(e.chainId||0,"chainId"),Mn(e.nonce||0,"nonce"),Mn(e.gasPrice||0,"gasPrice"),Mn(e.gasLimit||0,"gasLimit"),e.to!=null?Bi(e.to):"0x",Mn(e.value||0,"value"),e.data||"0x",cR(e.accessList||[])];if(t){const n=y0(t);r.push(Mn(n.recoveryParam,"recoveryParam")),r.push(_o(n.r)),r.push(_o(n.s))}return Ss(["0x01",Q1(r)])}function XX(e,t){_X(e,GX);const r=[];KX.forEach(function(f){let l=e[f.name]||[];const c={};f.numeric&&(c.hexPad="left"),l=Ye(nt(l,c)),f.length&&l.length!==f.length&&l.length>0&&Ai.throwArgumentError("invalid length for "+f.name,"transaction:"+f.name,l),f.maxLength&&(l=_o(l),l.length>f.maxLength&&Ai.throwArgumentError("invalid length for "+f.name,"transaction:"+f.name,l)),r.push(nt(l))});let n=0;if(e.chainId!=null?(n=e.chainId,typeof n!="number"&&Ai.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!B7(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),n!==0&&(r.push(nt(n)),r.push("0x"),r.push("0x")),!t)return Q1(r);const a=y0(t);let i=27+a.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),i+=n*2+8,a.v>28&&a.v!==i&&Ai.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):a.v!==i&&Ai.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(nt(i)),r.push(_o(Ye(a.r))),r.push(_o(Ye(a.s))),Q1(r)}function Qb(e,t){if(e.type==null||e.type===0)return e.accessList!=null&&Ai.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),XX(e,t);switch(e.type){case 1:return ZX(e,t);case 2:return VX(e,t)}return Ai.throwError(`unsupported transaction type: ${e.type}`,tt.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}const YX="abstract-provider/5.7.0";var JX=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const QX=new tt(YX);class z7{constructor(){QX.checkAbstract(new.target,z7),it(this,"_isProvider",!0)}getFeeData(){return JX(this,void 0,void 0,function*(){const{block:t,gasPrice:r}=yield fs({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(f=>null)});let n=null,a=null,i=null;return t&&t.baseFeePerGas&&(n=t.baseFeePerGas,i=It.from("1500000000"),a=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:n,maxFeePerGas:a,maxPriorityFeePerGas:i,gasPrice:r}})}addListener(t,r){return this.on(t,r)}removeListener(t,r){return this.off(t,r)}static isProvider(t){return!!(t&&t._isProvider)}}const eY="abstract-signer/5.7.0";var mi=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const bi=new tt(eY),tY=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],rY=[tt.errors.INSUFFICIENT_FUNDS,tt.errors.NONCE_EXPIRED,tt.errors.REPLACEMENT_UNDERPRICED];class $7{constructor(){bi.checkAbstract(new.target,$7),it(this,"_isSigner",!0)}getBalance(t){return mi(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return mi(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return mi(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield fs(this.checkTransaction(t));return yield this.provider.estimateGas(r)})}call(t,r){return mi(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield fs(this.checkTransaction(t));return yield this.provider.call(n,r)})}sendTransaction(t){return mi(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(t),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return mi(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return mi(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return mi(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return mi(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(const n in t)tY.indexOf(n)===-1&&bi.throwArgumentError("invalid transaction key: "+n,"transaction",t);const r=N6(t);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&bi.throwArgumentError("from address mismatch","transaction",t),n[0])),r}populateTransaction(t){return mi(this,void 0,void 0,function*(){const r=yield fs(this.checkTransaction(t));r.to!=null&&(r.to=Promise.resolve(r.to).then(a=>mi(this,void 0,void 0,function*(){if(a==null)return null;const i=yield this.resolveName(a);return i==null&&bi.throwArgumentError("provided ENS name resolves to null","tx.to",a),i})),r.to.catch(a=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?bi.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(r.type===0||r.type===1)&&n&&bi.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const a=yield this.getFeeData();if(r.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const i=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=i,r.maxPriorityFeePerGas=i}else r.maxFeePerGas==null&&(r.maxFeePerGas=a.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(n&&bi.throwError("network does not support EIP-1559",tt.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=a.gasPrice),r.type=0):bi.throwError("failed to get consistent fee data",tt.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=a.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(a=>{if(rY.indexOf(a.code)>=0)throw a;return bi.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",tt.errors.UNPREDICTABLE_GAS_LIMIT,{error:a,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(a=>(a[1]!==0&&a[0]!==a[1]&&bi.throwArgumentError("chainId address mismatch","transaction",t),a[0])),yield fs(r)})}_checkProvider(t){this.provider||bi.throwError("missing provider",tt.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}class hR{constructor(t){it(this,"alphabet",t),it(this,"base",t.length),it(this,"_alphabetMap",{}),it(this,"_leader",t.charAt(0));for(let r=0;r0;)n.push(f%this.base),f=f/this.base|0}let a="";for(let i=0;r[i]===0&&i=0;--i)a+=this.alphabet[n[i]];return a}decode(t){if(typeof t!="string")throw new TypeError("Expected String");let r=[];if(t.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;i>0;)r.push(i&255),i>>=8}for(let n=0;t[n]===this._leader&&n>24&255,c[t.length+1]=_>>16&255,c[t.length+2]=_>>8&255,c[t.length+3]=_&255;let S=Ye(ih(a,e,c));i||(i=S.length,g=new Uint8Array(i),f=Math.ceil(n/i),m=n-(f-1)*i),g.set(S);for(let I=1;I=256)throw new Error("Depth too large!");return rx(Po([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",nt(this.depth),this.parentFingerprint,Qn(nt(this.index),4),this.chainCode,this.privateKey!=null?Po(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new Hn(qf,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let r=this.path;r&&(r+="/"+(t&~U0));const n=new Uint8Array(37);if(t&U0){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(Ye(this.privateKey),1),r&&(r+="'")}else n.set(Ye(this.publicKey));for(let _=24;_>=0;_-=8)n[33+(_>>3)]=t>>24-_&255;const a=Ye(ih(el.sha512,this.chainCode,n)),i=a.slice(0,32),f=a.slice(32);let l=null,c=null;this.privateKey?l=bc(It.from(i).add(this.privateKey).mod(cY)):c=new Es(nt(i))._addPoint(this.publicKey);let m=r;const g=this.mnemonic;return g&&(m=Object.freeze({phrase:g.phrase,path:r,locale:g.locale||"en"})),new Hn(qf,l,c,this.fingerprint,bc(f),t,this.depth+1,m)}derivePath(t){const r=t.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+t);r[0]==="m"&&r.shift();let n=this;for(let a=0;a=U0)throw new Error("invalid path index - "+i);n=n._derive(U0+f)}else if(i.match(/^[0-9]+$/)){const f=parseInt(i);if(f>=U0)throw new Error("invalid path index - "+i);n=n._derive(f)}else throw new Error("invalid path component - "+i)}return n}static _fromSeed(t,r){const n=Ye(t);if(n.length<16||n.length>64)throw new Error("invalid seed");const a=Ye(ih(el.sha512,hY,n));return new Hn(qf,bc(a.slice(0,32)),null,"0x00000000",bc(a.slice(32)),0,0,r)}static fromMnemonic(t,r,n){return n=K7(n),t=G7(gR(t,n),n),Hn._fromSeed(pY(t,r),{phrase:t,path:"m",locale:n.locale})}static fromSeed(t){return Hn._fromSeed(t,null)}static fromExtendedKey(t){const r=dR.decode(t);(r.length!==82||rx(r.slice(0,78))!==t)&&ah.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],a=nt(r.slice(5,9)),i=parseInt(nt(r.slice(9,13)).substring(2),16),f=nt(r.slice(13,45)),l=r.slice(45,78);switch(nt(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new Hn(qf,null,nt(l),a,f,i,n,null);case"0x0488ade4":case"0x04358394 ":if(l[0]!==0)break;return new Hn(qf,nt(l.slice(1)),null,a,f,i,n,null)}return ah.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function pY(e,t){t||(t="");const r=Aa("mnemonic"+t,_f.NFKD);return H7(Aa(e,_f.NFKD),r,2048,64,"sha512")}function gR(e,t){t=K7(t),ah.checkNormalize();const r=t.split(e);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=Ye(new Uint8Array(Math.ceil(11*r.length/8)));let a=0;for(let m=0;m>3]|=1<<7-a%8),a++}const i=32*r.length/3,f=r.length/3,l=vR(f);if((Ye(tl(n.slice(0,i/8)))[0]&l)!==(n[n.length-1]&l))throw new Error("invalid checksum");return nt(n.slice(0,i/8))}function G7(e,t){if(t=K7(t),e=Ye(e),e.length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let f=0;f8?(r[r.length-1]<<=8,r[r.length-1]|=e[f],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[f]>>8-n,r.push(e[f]&dY(8-n)),n+=3);const a=e.length/4,i=Ye(tl(e))[0]&vR(a);return r[r.length-1]<<=a,r[r.length-1]|=i>>8-a,t.join(r.map(f=>t.getWord(f)))}const vY="random/5.7.0",U6=new tt(vY);function gY(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof P4<"u")return P4;throw new Error("unable to locate global object")}const nx=gY();let n1=nx.crypto||nx.msCrypto;(!n1||!n1.getRandomValues)&&(U6.warn("WARNING: Missing strong random number source"),n1={getRandomValues:function(e){return U6.throwError("no secure random source avaialble",tt.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function Q0(e){(e<=0||e>1024||e%1||e!=e)&&U6.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return n1.getRandomValues(t),Ye(t)}var yR={exports:{}};(function(e,t){(function(r){function n(h){return parseInt(h)===h}function a(h){if(!n(h.length))return!1;for(var s=0;s255)return!1;return!0}function i(h,s){if(h.buffer&&ArrayBuffer.isView(h)&&h.name==="Uint8Array")return s&&(h.slice?h=h.slice():h=Array.prototype.slice.call(h)),h;if(Array.isArray(h)){if(!a(h))throw new Error("Array contains invalid value: "+h);return new Uint8Array(h)}if(n(h.length)&&a(h))return new Uint8Array(h);throw new Error("unsupported array-like object")}function f(h){return new Uint8Array(h)}function l(h,s,b,D,C){(D!=null||C!=null)&&(h.slice?h=h.slice(D,C):h=Array.prototype.slice.call(h,D,C)),s.set(h,b)}var c=function(){function h(b){var D=[],C=0;for(b=encodeURI(b);C191&&F<224?(D.push(String.fromCharCode((F&31)<<6|b[C+1]&63)),C+=2):(D.push(String.fromCharCode((F&15)<<12|(b[C+1]&63)<<6|b[C+2]&63)),C+=3)}return D.join("")}return{toBytes:h,fromBytes:s}}(),m=function(){function h(D){for(var C=[],F=0;F>4]+s[$&15])}return C.join("")}return{toBytes:h,fromBytes:b}}(),g={16:10,24:12,32:14},_=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],S=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],M=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],P=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],I=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],B=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],R=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],A=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],U=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],V=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],j=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],N=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],K=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],J=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],te=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function ee(h){for(var s=[],b=0;b>2,this._Ke[F][s%4]=C[s],this._Kd[h-F][s%4]=C[s];for(var $=0,H=D,X;H>16&255]<<24^S[X>>8&255]<<16^S[X&255]<<8^S[X>>24&255]^_[$]<<24,$+=1,D!=8)for(var s=1;s>8&255]<<8^S[X>>16&255]<<16^S[X>>24&255]<<24;for(var s=D/2+1;s>2,k=H%4,this._Ke[z][k]=C[s],this._Kd[h-z][k]=C[s++],H++}for(var z=1;z>24&255]^K[X>>16&255]^J[X>>8&255]^te[X&255]},G.prototype.encrypt=function(h){if(h.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var s=this._Ke.length-1,b=[0,0,0,0],D=ee(h),C=0;C<4;C++)D[C]^=this._Ke[0][C];for(var F=1;F>24&255]^I[D[(C+1)%4]>>16&255]^B[D[(C+2)%4]>>8&255]^R[D[(C+3)%4]&255]^this._Ke[F][C];D=b.slice()}for(var $=f(16),H,C=0;C<4;C++)H=this._Ke[s][C],$[4*C]=(S[D[C]>>24&255]^H>>24)&255,$[4*C+1]=(S[D[(C+1)%4]>>16&255]^H>>16)&255,$[4*C+2]=(S[D[(C+2)%4]>>8&255]^H>>8)&255,$[4*C+3]=(S[D[(C+3)%4]&255]^H)&255;return $},G.prototype.decrypt=function(h){if(h.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var s=this._Kd.length-1,b=[0,0,0,0],D=ee(h),C=0;C<4;C++)D[C]^=this._Kd[0][C];for(var F=1;F>24&255]^U[D[(C+3)%4]>>16&255]^V[D[(C+2)%4]>>8&255]^j[D[(C+1)%4]&255]^this._Kd[F][C];D=b.slice()}for(var $=f(16),H,C=0;C<4;C++)H=this._Kd[s][C],$[4*C]=(M[D[C]>>24&255]^H>>24)&255,$[4*C+1]=(M[D[(C+3)%4]>>16&255]^H>>16)&255,$[4*C+2]=(M[D[(C+2)%4]>>8&255]^H>>8)&255,$[4*C+3]=(M[D[(C+1)%4]&255]^H)&255;return $};var E=function(h){if(!(this instanceof E))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new G(h)};E.prototype.encrypt=function(h){if(h=i(h),h.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var s=f(h.length),b=f(16),D=0;D=0;--s)this._counter[s]=h%256,h=h>>8},p.prototype.setBytes=function(h){if(h=i(h,!0),h.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=h},p.prototype.increment=function(){for(var h=15;h>=0;h--)if(this._counter[h]===255)this._counter[h]=0;else{this._counter[h]++;break}};var y=function(h,s){if(!(this instanceof y))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",s instanceof p||(s=new p(s)),this._counter=s,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new G(h)};y.prototype.encrypt=function(h){for(var s=i(h,!0),b=0;b16)throw new Error("PKCS#7 padding byte out of range");for(var b=h.length-s,D=0;D=64;){let v=R,h=A,s=U,b=V,D=j,C=N,F=K,$=J,H,X,z,k,L;for(X=0;X<16;X++)z=x+X*4,te[X]=(y[z]&255)<<24|(y[z+1]&255)<<16|(y[z+2]&255)<<8|y[z+3]&255;for(X=16;X<64;X++)H=te[X-2],k=(H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10,H=te[X-15],L=(H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3,te[X]=(k+te[X-7]|0)+(L+te[X-16]|0)|0;for(X=0;X<64;X++)k=(((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&C^~D&F)|0)+($+(B[X]+te[X]|0)|0)|0,L=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&h^v&s^h&s)|0,$=F,F=C,C=D,D=b+k|0,b=s,s=h,h=v,v=k+L|0;R=R+v|0,A=A+h|0,U=U+s|0,V=V+b|0,j=j+D|0,N=N+C|0,K=K+F|0,J=J+$|0,x+=64,w-=64}}ee(I);let G,E=I.length%64,d=I.length/536870912|0,o=I.length<<3,u=E<56?56:120,p=I.slice(I.length-E,I.length);for(p.push(128),G=E+1;G>>24&255),p.push(d>>>16&255),p.push(d>>>8&255),p.push(d>>>0&255),p.push(o>>>24&255),p.push(o>>>16&255),p.push(o>>>8&255),p.push(o>>>0&255),ee(p),[R>>>24&255,R>>>16&255,R>>>8&255,R>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,U>>>24&255,U>>>16&255,U>>>8&255,U>>>0&255,V>>>24&255,V>>>16&255,V>>>8&255,V>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255,N>>>24&255,N>>>16&255,N>>>8&255,N>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255,J>>>24&255,J>>>16&255,J>>>8&255,J>>>0&255]}function i(I,B,R){I=I.length<=64?I:a(I);const A=64+B.length+4,U=new Array(A),V=new Array(64);let j,N=[];for(j=0;j<64;j++)U[j]=54;for(j=0;j=A-4;J--){if(U[J]++,U[J]<=255)return;U[J]=0}}for(;R>=32;)K(),N=N.concat(a(V.concat(a(U)))),R-=32;return R>0&&(K(),N=N.concat(a(V.concat(a(U))).slice(0,R))),N}function f(I,B,R,A,U){let V;for(g(I,(2*R-1)*16,U,0,16),V=0;V<2*R;V++)m(I,V*16,U,16),c(U,A),g(U,0,I,B+V*16,16);for(V=0;V>>32-B}function c(I,B){g(I,0,B,0,16);for(let R=8;R>0;R-=2)B[4]^=l(B[0]+B[12],7),B[8]^=l(B[4]+B[0],9),B[12]^=l(B[8]+B[4],13),B[0]^=l(B[12]+B[8],18),B[9]^=l(B[5]+B[1],7),B[13]^=l(B[9]+B[5],9),B[1]^=l(B[13]+B[9],13),B[5]^=l(B[1]+B[13],18),B[14]^=l(B[10]+B[6],7),B[2]^=l(B[14]+B[10],9),B[6]^=l(B[2]+B[14],13),B[10]^=l(B[6]+B[2],18),B[3]^=l(B[15]+B[11],7),B[7]^=l(B[3]+B[15],9),B[11]^=l(B[7]+B[3],13),B[15]^=l(B[11]+B[7],18),B[1]^=l(B[0]+B[3],7),B[2]^=l(B[1]+B[0],9),B[3]^=l(B[2]+B[1],13),B[0]^=l(B[3]+B[2],18),B[6]^=l(B[5]+B[4],7),B[7]^=l(B[6]+B[5],9),B[4]^=l(B[7]+B[6],13),B[5]^=l(B[4]+B[7],18),B[11]^=l(B[10]+B[9],7),B[8]^=l(B[11]+B[10],9),B[9]^=l(B[8]+B[11],13),B[10]^=l(B[9]+B[8],18),B[12]^=l(B[15]+B[14],7),B[13]^=l(B[12]+B[15],9),B[14]^=l(B[13]+B[12],13),B[15]^=l(B[14]+B[13],18);for(let R=0;R<16;++R)I[R]+=B[R]}function m(I,B,R,A){for(let U=0;U=256)return!1}return!0}function S(I,B){if(typeof I!="number"||I%1)throw new Error("invalid "+B);return I}function M(I,B,R,A,U,V,j){if(R=S(R,"N"),A=S(A,"r"),U=S(U,"p"),V=S(V,"dkLen"),R===0||R&R-1)throw new Error("N must be power of 2");if(R>2147483647/128/A)throw new Error("N too large");if(A>2147483647/128/U)throw new Error("r too large");if(!_(I))throw new Error("password must be an array or buffer");if(I=Array.prototype.slice.call(I),!_(B))throw new Error("salt must be an array or buffer");B=Array.prototype.slice.call(B);let N=i(I,B,U*128*A);const K=new Uint32Array(U*32*A);for(let D=0;Dh&&(D=h);for(let F=0;Fh&&(D=h);for(let F=0;F>0&255),N.push(K[F]>>8&255),N.push(K[F]>>16&255),N.push(K[F]>>24&255);const C=i(I,N,V);return j&&j(null,1,C),C}j&&s(b)};if(!j)for(;;){const D=b();if(D!=null)return D}b()}const P={scrypt:function(I,B,R,A,U,V,j){return new Promise(function(N,K){let J=0;j&&j(0),M(I,B,R,A,U,V,function(te,ee,G){if(te)K(te);else if(G)j&&J!==1&&j(1),N(new Uint8Array(G));else if(j&&ee!==J)return J=ee,j(ee)})})},syncScrypt:function(I,B,R,A,U,V){return new Uint8Array(M(I,B,R,A,U,V))}};e.exports=P})()})(_R);var wY=_R.exports;const V7=Nr(wY);var _Y=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const j6=new tt(mR);function ix(e){return e!=null&&e.mnemonic&&e.mnemonic.phrase}class SY extends tR{isKeystoreAccount(t){return!!(t&&t._isKeystoreAccount)}}function EY(e,t,r){if(ar(e,"crypto/cipher")==="aes-128-ctr"){const a=lf(ar(e,"crypto/cipherparams/iv")),i=new Qi.Counter(a),f=new Qi.ModeOfOperation.ctr(t,i);return Ye(f.decrypt(r))}return null}function SR(e,t){const r=lf(ar(e,"crypto/ciphertext"));if(nt(rn(Po([t.slice(16,32),r]))).substring(2)!==ar(e,"crypto/mac").toLowerCase())throw new Error("invalid password");const a=EY(e,t.slice(0,16),r);a||j6.throwError("unsupported cipher",tt.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const i=t.slice(32,64),f=So(a);if(e.address){let c=e.address.toLowerCase();if(c.substring(0,2)!=="0x"&&(c="0x"+c),Bi(c)!==f)throw new Error("address mismatch")}const l={_isKeystoreAccount:!0,address:f,privateKey:nt(a)};if(ar(e,"x-ethers/version")==="0.1"){const c=lf(ar(e,"x-ethers/mnemonicCiphertext")),m=lf(ar(e,"x-ethers/mnemonicCounter")),g=new Qi.Counter(m),_=new Qi.ModeOfOperation.ctr(i,g),S=ar(e,"x-ethers/path")||rl,M=ar(e,"x-ethers/locale")||"en",P=Ye(_.decrypt(c));try{const I=G7(P,M),B=Hn.fromMnemonic(I,null,M).derivePath(S);if(B.privateKey!=l.privateKey)throw new Error("mnemonic mismatch");l.mnemonic=B.mnemonic}catch(I){if(I.code!==tt.errors.INVALID_ARGUMENT||I.argument!=="wordlist")throw I}}return new SY(l)}function ER(e,t,r,n,a){return Ye(H7(e,t,r,n,a))}function CY(e,t,r,n,a){return Promise.resolve(ER(e,t,r,n,a))}function CR(e,t,r,n,a){const i=W7(t),f=ar(e,"crypto/kdf");if(f&&typeof f=="string"){const l=function(c,m){return j6.throwArgumentError("invalid key-derivation function parameters",c,m)};if(f.toLowerCase()==="scrypt"){const c=lf(ar(e,"crypto/kdfparams/salt")),m=parseInt(ar(e,"crypto/kdfparams/n")),g=parseInt(ar(e,"crypto/kdfparams/r")),_=parseInt(ar(e,"crypto/kdfparams/p"));(!m||!g||!_)&&l("kdf",f),m&m-1&&l("N",m);const S=parseInt(ar(e,"crypto/kdfparams/dklen"));return S!==32&&l("dklen",S),n(i,c,m,g,_,64,a)}else if(f.toLowerCase()==="pbkdf2"){const c=lf(ar(e,"crypto/kdfparams/salt"));let m=null;const g=ar(e,"crypto/kdfparams/prf");g==="hmac-sha256"?m="sha256":g==="hmac-sha512"?m="sha512":l("prf",g);const _=parseInt(ar(e,"crypto/kdfparams/c")),S=parseInt(ar(e,"crypto/kdfparams/dklen"));return S!==32&&l("dklen",S),r(i,c,_,S,m)}}return j6.throwArgumentError("unsupported key-derivation function","kdf",f)}function MY(e,t){const r=JSON.parse(e),n=CR(r,t,ER,V7.syncScrypt);return SR(r,n)}function AY(e,t,r){return _Y(this,void 0,void 0,function*(){const n=JSON.parse(e),a=yield CR(n,t,CY,V7.scrypt,r);return SR(n,a)})}function RY(e,t,r,n){try{if(Bi(e.address)!==So(e.privateKey))throw new Error("address/privateKey mismatch");if(ix(e)){const B=e.mnemonic;if(Hn.fromMnemonic(B.phrase,null,B.locale).derivePath(B.path||rl).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(B){return Promise.reject(B)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const a=Ye(e.privateKey),i=W7(t);let f=null,l=null,c=null;if(ix(e)){const B=e.mnemonic;f=Ye(gR(B.phrase,B.locale||"en")),l=B.path||rl,c=B.locale||"en"}let m=r.client;m||(m="ethers.js");let g=null;r.salt?g=Ye(r.salt):g=Q0(32);let _=null;if(r.iv){if(_=Ye(r.iv),_.length!==16)throw new Error("invalid iv")}else _=Q0(16);let S=null;if(r.uuid){if(S=Ye(r.uuid),S.length!==16)throw new Error("invalid uuid")}else S=Q0(16);let M=1<<17,P=8,I=1;return r.scrypt&&(r.scrypt.N&&(M=r.scrypt.N),r.scrypt.r&&(P=r.scrypt.r),r.scrypt.p&&(I=r.scrypt.p)),V7.scrypt(i,g,M,P,I,64,n).then(B=>{B=Ye(B);const R=B.slice(0,16),A=B.slice(16,32),U=B.slice(32,64),V=new Qi.Counter(_),j=new Qi.ModeOfOperation.ctr(R,V),N=Ye(j.encrypt(a)),K=rn(Po([A,N])),J={address:e.address.substring(2).toLowerCase(),id:mY(S),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:nt(_).substring(2)},ciphertext:nt(N).substring(2),kdf:"scrypt",kdfparams:{salt:nt(g).substring(2),n:M,dklen:32,p:I,r:P},mac:K.substring(2)}};if(f){const te=Q0(16),ee=new Qi.Counter(te),G=new Qi.ModeOfOperation.ctr(U,ee),E=Ye(G.encrypt(f)),d=new Date,o=d.getUTCFullYear()+"-"+j0(d.getUTCMonth()+1,2)+"-"+j0(d.getUTCDate(),2)+"T"+j0(d.getUTCHours(),2)+"-"+j0(d.getUTCMinutes(),2)+"-"+j0(d.getUTCSeconds(),2)+".0Z";J["x-ethers"]={client:m,gethFilename:"UTC--"+o+"--"+J.address,mnemonicCounter:nt(te).substring(2),mnemonicCiphertext:nt(E).substring(2),path:l,locale:c,version:"0.1"}}return JSON.stringify(J)})}function TY(e,t,r){if(xR(e)){r&&r(0);const n=bR(e,t);return r&&r(1),Promise.resolve(n)}return wR(e)?AY(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}function PY(e,t){if(xR(e))return bR(e,t);if(wR(e))return MY(e,t);throw new Error("invalid JSON wallet")}const OY="wallet/5.7.0";var ax=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const zf=new tt(OY);function kY(e){return e!=null&&an(e.privateKey,32)&&e.address!=null}function IY(e){const t=e.mnemonic;return t&&t.phrase}class uo extends $7{constructor(t,r){if(super(),kY(t)){const n=new Es(t.privateKey);if(it(this,"_signingKey",()=>n),it(this,"address",So(this.publicKey)),this.address!==Bi(t.address)&&zf.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),IY(t)){const a=t.mnemonic;it(this,"_mnemonic",()=>({phrase:a.phrase,path:a.path||rl,locale:a.locale||"en"}));const i=this.mnemonic,f=Hn.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path);So(f.privateKey)!==this.address&&zf.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else it(this,"_mnemonic",()=>null)}else{if(Es.isSigningKey(t))t.curve!=="secp256k1"&&zf.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),it(this,"_signingKey",()=>t);else{typeof t=="string"&&t.match(/^[0-9a-f]*$/i)&&t.length===64&&(t="0x"+t);const n=new Es(t);it(this,"_signingKey",()=>n)}it(this,"_mnemonic",()=>null),it(this,"address",So(this.publicKey))}r&&!z7.isProvider(r)&&zf.throwArgumentError("invalid provider","provider",r),it(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(t){return new uo(this,t)}signTransaction(t){return fs(t).then(r=>{r.from!=null&&(Bi(r.from)!==this.address&&zf.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete r.from);const n=this._signingKey().signDigest(rn(Qb(r)));return Qb(r,n)})}signMessage(t){return ax(this,void 0,void 0,function*(){return qb(this._signingKey().signDigest(Ad(t)))})}_signTypedData(t,r,n){return ax(this,void 0,void 0,function*(){const a=yield hn.resolveNames(t,r,n,i=>(this.provider==null&&zf.throwError("cannot resolve ENS names without a provider",tt.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:i}),this.provider.resolveName(i)));return qb(this._signingKey().signDigest(hn.hash(a.domain,r,a.value)))})}encrypt(t,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),RY(this,t,r,n)}static createRandom(t){let r=Q0(16);t||(t={}),t.extraEntropy&&(r=Ye(Ju(rn(Po([r,t.extraEntropy])),0,16)));const n=G7(r,t.locale);return uo.fromMnemonic(n,t.path,t.locale)}static fromEncryptedJson(t,r,n){return TY(t,r,n).then(a=>new uo(a))}static fromEncryptedJsonSync(t,r){return new uo(PY(t,r))}static fromMnemonic(t,r,n){return r||(r=rl),new uo(Hn.fromMnemonic(t,null,n).derivePath(r))}}function BY(e,t){return lR(Ad(e),t)}function MR(e,t,r,n){return lR(hn.hash(e,t,r),n)}class AR{constructor(t){Pe(this,"signer");Pe(this,"publicKey");Pe(this,"ownerLength",Ut[pt.ETHEREUM].pubLength);Pe(this,"signatureLength",Ut[pt.ETHEREUM].sigLength);Pe(this,"signatureType",pt.ETHEREUM);this.signer=t.getSigner()}async setPublicKey(){const t="sign this message to connect to Bundlr.Network",r=await this.signer.signMessage(t),n=await Ad(t),a=sR(Ye(n),r);this.publicKey=Te.Buffer.from(Ye(a))}async sign(t){this.publicKey||await this.setPublicKey();const r=await this.signer.signMessage(t);return Te.Buffer.from(r.slice(2),"hex")}static verify(t,r,n){const a=So(t);return BY(r,n)===a}}var xc=st.Buffer;function LY(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,U=new Uint8Array(A);B!==R;){for(var V=M[B],j=0,N=A-1;(V!==0||j>>0,U[N]=V%f>>>0,V=V/f>>>0;if(V!==0)throw new Error("Non-zero carry");I=j,B++}for(var K=A-I;K!==A&&U[K]===0;)K++;for(var J=l.repeat(P);K>>0,A=new Uint8Array(R);M[P];){var U=t[M.charCodeAt(P)];if(U===255)return;for(var V=0,j=R-1;(U!==0||V>>0,A[j]=U%256>>>0,U=U/256>>>0;if(U!==0)throw new Error("Non-zero carry");B=V,P++}for(var N=R-B;N!==R&&A[N]===0;)N++;var K=xc.allocUnsafe(I+(R-N));K.fill(0,0,I);for(var J=I;N!==R;)K[J++]=A[N++];return K}function S(M){var P=_(M);if(P)return P;throw new Error("Non-base"+f+" character")}return{encode:g,decodeUnsafe:_,decode:S}}var NY=LY,DY=NY,FY="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",UY=DY(FY);const q0=Nr(UY);class Z7 extends kl{get publicKey(){return q0.decode(this.pk)}get key(){return q0.decode(this._key)}constructor(t){const r=q0.decode(t);super(q0.encode(r.subarray(0,32)),q0.encode(r.subarray(32,64)))}}const jY=vd().ec,Vi=new jY("secp256k1"),dt=Vi.curve,kt=dt.n.constructor;function qY(e,t){let r=new kt(t);if(r.cmp(dt.p)>=0)return null;r=r.toRed(dt.red);let n=r.redSqr().redIMul(r).redIAdd(dt.b).redSqrt();return e===3!==n.isOdd()&&(n=n.redNeg()),Vi.keyPair({pub:{x:r,y:n}})}function zY(e,t,r){let n=new kt(t),a=new kt(r);if(n.cmp(dt.p)>=0||a.cmp(dt.p)>=0||(n=n.toRed(dt.red),a=a.toRed(dt.red),(e===6||e===7)&&a.isOdd()!==(e===7)))return null;const i=n.redSqr().redIMul(n);return a.redSqr().redISub(i.redIAdd(dt.b)).isZero()?Vi.keyPair({pub:{x:n,y:a}}):null}function Za(e){const t=e[0];switch(t){case 2:case 3:return e.length!==33?null:qY(t,e.subarray(1,33));case 4:case 6:case 7:return e.length!==65?null:zY(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function Wo(e,t){const r=t.encode(null,e.length===33);for(let n=0;n=0||(r.iadd(new kt(e)),r.cmp(dt.n)>=0&&r.isub(dt.n),r.isZero()))return 1;const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new kt(t);if(r.cmp(dt.n)>=0||r.isZero())return 1;r.imul(new kt(e)),r.cmp(dt.n)>=0&&(r=r.umod(dt.n));const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify(e){return Za(e)===null?1:0},publicKeyCreate(e,t){const r=new kt(t);if(r.cmp(dt.n)>=0||r.isZero())return 1;const n=Vi.keyFromPrivate(t).getPublic();return Wo(e,n),0},publicKeyConvert(e,t){const r=Za(t);if(r===null)return 1;const n=r.getPublic();return Wo(e,n),0},publicKeyNegate(e,t){const r=Za(t);if(r===null)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),Wo(e,n),0},publicKeyCombine(e,t){const r=new Array(t.length);for(let a=0;a=0)return 2;const a=n.getPublic().add(dt.g.mul(r));return a.isInfinity()?2:(Wo(e,a),0)},publicKeyTweakMul(e,t,r){const n=Za(t);if(n===null)return 1;if(r=new kt(r),r.cmp(dt.n)>=0||r.isZero())return 2;const a=n.getPublic().mul(r);return Wo(e,a),0},signatureNormalize(e){const t=new kt(e.subarray(0,32)),r=new kt(e.subarray(32,64));return t.cmp(dt.n)>=0||r.cmp(dt.n)>=0?1:(r.cmp(Vi.nh)===1&&e.set(dt.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const r=t.subarray(0,32),n=t.subarray(32,64);if(new kt(r).cmp(dt.n)>=0||new kt(n).cmp(dt.n)>=0)return 1;const{output:a}=e;let i=a.subarray(4,37);i[0]=0,i.set(r,1);let f=33,l=0;for(;f>1&&i[l]===0&&!(i[l+1]&128);--f,++l);if(i=i.subarray(l),i[0]&128||f>1&&i[0]===0&&!(i[1]&128))return 1;let c=a.subarray(39,72);c[0]=0,c.set(n,1);let m=33,g=0;for(;m>1&&c[g]===0&&!(c[g+1]&128);--m,++g);return c=c.subarray(g),c[0]&128||m>1&&c[0]===0&&!(c[1]&128)?1:(e.outputlen=6+f+m,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=i.length,a.set(i,4),a[4+f]=2,a[5+f]=c.length,a.set(c,6+f),0)},signatureImport(e,t){if(t.length<8||t.length>72||t[0]!==48||t[1]!==t.length-2||t[2]!==2)return 1;const r=t[3];if(r===0||5+r>=t.length||t[4+r]!==2)return 1;const n=t[5+r];if(n===0||6+r+n!==t.length||t[4]&128||r>1&&t[4]===0&&!(t[5]&128)||t[r+6]&128||n>1&&t[r+6]===0&&!(t[r+7]&128))return 1;let a=t.subarray(4,4+r);if(a.length===33&&a[0]===0&&(a=a.subarray(1)),a.length>32)return 1;let i=t.subarray(6+r);if(i.length===33&&i[0]===0&&(i=i.slice(1)),i.length>32)throw new Error("S length is too long");let f=new kt(a);f.cmp(dt.n)>=0&&(f=new kt(0));let l=new kt(t.subarray(6+r));return l.cmp(dt.n)>=0&&(l=new kt(0)),e.set(f.toArrayLike(Uint8Array,"be",32),0),e.set(l.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,n,a){if(a){const l=a;a=c=>{const m=l(t,r,null,n,c);if(!(m instanceof Uint8Array&&m.length===32))throw new Error("This is the way");return new kt(m)}}const i=new kt(r);if(i.cmp(dt.n)>=0||i.isZero())return 1;let f;try{f=Vi.sign(t,r,{canonical:!0,k:a,pers:n})}catch{return 1}return e.signature.set(f.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(f.s.toArrayLike(Uint8Array,"be",32),32),e.recid=f.recoveryParam,0},ecdsaVerify(e,t,r){const n={r:e.subarray(0,32),s:e.subarray(32,64)},a=new kt(n.r),i=new kt(n.s);if(a.cmp(dt.n)>=0||i.cmp(dt.n)>=0)return 1;if(i.cmp(Vi.nh)===1||a.isZero()||i.isZero())return 3;const f=Za(r);if(f===null)return 2;const l=f.getPublic();return Vi.verify(t,n,l)?0:3},ecdsaRecover(e,t,r,n){const a={r:t.slice(0,32),s:t.slice(32,64)},i=new kt(a.r),f=new kt(a.s);if(i.cmp(dt.n)>=0||f.cmp(dt.n)>=0)return 1;if(i.isZero()||f.isZero())return 2;let l;try{l=Vi.recoverPubKey(n,a,r)}catch{return 2}return Wo(e,l),0},ecdh(e,t,r,n,a,i,f){const l=Za(t);if(l===null)return 1;const c=new kt(r);if(c.cmp(dt.n)>=0||c.isZero())return 2;const m=l.getPublic().mul(c);if(a===void 0){const g=m.encode(null,!0),_=Vi.hash().update(g).digest();for(let S=0;S<32;++S)e[S]=_[S]}else{i||(i=new Uint8Array(32));const g=m.getX().toArray("be",32);for(let P=0;P<32;++P)i[P]=g[P];f||(f=new Uint8Array(32));const _=m.getY().toArray("be",32);for(let P=0;P<32;++P)f[P]=_[P];const S=a(i,f,n);if(!(S instanceof Uint8Array&&S.length===e.length))return 2;e.set(S)}return 0}};const xt={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function $n(e,t){if(!e)throw new Error(t)}function vt(e,t,r){if($n(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),r!==void 0)if(Array.isArray(r)){const n=r.join(", "),a=`Expected ${e} to be an Uint8Array with length [${n}]`;$n(r.includes(t.length),a)}else{const n=`Expected ${e} to be an Uint8Array with length ${r}`;$n(t.length===r,n)}}function Vo(e){$n(Kf(e)==="Boolean","Expected compressed to be a Boolean")}function xi(e=r=>new Uint8Array(r),t){return typeof e=="function"&&(e=e(t)),vt("output",e,t),e}function Kf(e){return Object.prototype.toString.call(e).slice(8,-1)}var HY=e=>({contextRandomize(t){switch($n(t===null||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),t!==null&&vt("seed",t,32),e.contextRandomize(t)){case 1:throw new Error(xt.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(t){return vt("private key",t,32),e.privateKeyVerify(t)===0},privateKeyNegate(t){switch(vt("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(xt.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(t,r){switch(vt("private key",t,32),vt("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(xt.TWEAK_ADD)}},privateKeyTweakMul(t,r){switch(vt("private key",t,32),vt("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(xt.TWEAK_MUL)}},publicKeyVerify(t){return vt("public key",t,[33,65]),e.publicKeyVerify(t)===0},publicKeyCreate(t,r=!0,n){switch(vt("private key",t,32),Vo(r),n=xi(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(xt.SECKEY_INVALID);case 2:throw new Error(xt.PUBKEY_SERIALIZE)}},publicKeyConvert(t,r=!0,n){switch(vt("public key",t,[33,65]),Vo(r),n=xi(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.PUBKEY_SERIALIZE)}},publicKeyNegate(t,r=!0,n){switch(vt("public key",t,[33,65]),Vo(r),n=xi(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.IMPOSSIBLE_CASE);case 3:throw new Error(xt.PUBKEY_SERIALIZE)}},publicKeyCombine(t,r=!0,n){$n(Array.isArray(t),"Expected public keys to be an Array"),$n(t.length>0,"Expected public keys array will have more than zero items");for(const a of t)vt("public key",a,[33,65]);switch(Vo(r),n=xi(n,r?33:65),e.publicKeyCombine(n,t)){case 0:return n;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.PUBKEY_COMBINE);case 3:throw new Error(xt.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(t,r,n=!0,a){switch(vt("public key",t,[33,65]),vt("tweak",r,32),Vo(n),a=xi(a,n?33:65),e.publicKeyTweakAdd(a,t,r)){case 0:return a;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.TWEAK_ADD)}},publicKeyTweakMul(t,r,n=!0,a){switch(vt("public key",t,[33,65]),vt("tweak",r,32),Vo(n),a=xi(a,n?33:65),e.publicKeyTweakMul(a,t,r)){case 0:return a;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.TWEAK_MUL)}},signatureNormalize(t){switch(vt("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(xt.SIG_PARSE)}},signatureExport(t,r){vt("signature",t,64),r=xi(r,72);const n={output:r,outputlen:72};switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(xt.SIG_PARSE);case 2:throw new Error(xt.IMPOSSIBLE_CASE)}},signatureImport(t,r){switch(vt("signature",t),r=xi(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(xt.SIG_PARSE);case 2:throw new Error(xt.IMPOSSIBLE_CASE)}},ecdsaSign(t,r,n={},a){vt("message",t,32),vt("private key",r,32),$n(Kf(n)==="Object","Expected options to be an Object"),n.data!==void 0&&vt("options.data",n.data),n.noncefn!==void 0&&$n(Kf(n.noncefn)==="Function","Expected options.noncefn to be a Function"),a=xi(a,64);const i={signature:a,recid:null};switch(e.ecdsaSign(i,t,r,n.data,n.noncefn)){case 0:return i;case 1:throw new Error(xt.SIGN);case 2:throw new Error(xt.IMPOSSIBLE_CASE)}},ecdsaVerify(t,r,n){switch(vt("signature",t,64),vt("message",r,32),vt("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(xt.SIG_PARSE);case 2:throw new Error(xt.PUBKEY_PARSE)}},ecdsaRecover(t,r,n,a=!0,i){switch(vt("signature",t,64),$n(Kf(r)==="Number"&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),vt("message",n,32),Vo(a),i=xi(i,a?33:65),e.ecdsaRecover(i,t,r,n)){case 0:return i;case 1:throw new Error(xt.SIG_PARSE);case 2:throw new Error(xt.RECOVER);case 3:throw new Error(xt.IMPOSSIBLE_CASE)}},ecdh(t,r,n={},a){switch(vt("public key",t,[33,65]),vt("private key",r,32),$n(Kf(n)==="Object","Expected options to be an Object"),n.data!==void 0&&vt("options.data",n.data),n.hashfn!==void 0?($n(Kf(n.hashfn)==="Function","Expected options.hashfn to be a Function"),n.xbuf!==void 0&&vt("options.xbuf",n.xbuf,32),n.ybuf!==void 0&&vt("options.ybuf",n.ybuf,32),vt("output",a)):a=xi(a,32),e.ecdh(a,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return a;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.ECDH)}}}),KY=HY($Y);const oh=Nr(KY);var RR={};const ox=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];RR.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],i=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],m=e[7]^e[17]^e[27]^e[37]^e[47],g=e[8]^e[18]^e[28]^e[38]^e[48],_=e[9]^e[19]^e[29]^e[39]^e[49];let S=g^(a<<1|i>>>31),M=_^(i<<1|a>>>31);const P=e[0]^S,I=e[1]^M,B=e[10]^S,R=e[11]^M,A=e[20]^S,U=e[21]^M,V=e[30]^S,j=e[31]^M,N=e[40]^S,K=e[41]^M;S=r^(f<<1|l>>>31),M=n^(l<<1|f>>>31);const J=e[2]^S,te=e[3]^M,ee=e[12]^S,G=e[13]^M,E=e[22]^S,d=e[23]^M,o=e[32]^S,u=e[33]^M,p=e[42]^S,y=e[43]^M;S=a^(c<<1|m>>>31),M=i^(m<<1|c>>>31);const x=e[4]^S,w=e[5]^M,v=e[14]^S,h=e[15]^M,s=e[24]^S,b=e[25]^M,D=e[34]^S,C=e[35]^M,F=e[44]^S,$=e[45]^M;S=f^(g<<1|_>>>31),M=l^(_<<1|g>>>31);const H=e[6]^S,X=e[7]^M,z=e[16]^S,k=e[17]^M,L=e[26]^S,oe=e[27]^M,re=e[36]^S,se=e[37]^M,Y=e[46]^S,T=e[47]^M;S=c^(r<<1|n>>>31),M=m^(n<<1|r>>>31);const O=e[8]^S,W=e[9]^M,ie=e[18]^S,ue=e[19]^M,we=e[28]^S,_e=e[29]^M,Z=e[38]^S,le=e[39]^M,fe=e[48]^S,pe=e[49]^M,Ce=P,Me=I,Ee=R<<4|B>>>28,ne=B<<4|R>>>28,me=A<<3|U>>>29,ye=U<<3|A>>>29,Ie=j<<9|V>>>23,he=V<<9|j>>>23,ve=N<<18|K>>>14,Q=K<<18|N>>>14,xe=J<<1|te>>>31,Ae=te<<1|J>>>31,q=G<<12|ee>>>20,be=ee<<12|G>>>20,de=E<<10|d>>>22,ae=d<<10|E>>>22,ce=u<<13|o>>>19,ge=o<<13|u>>>19,Ue=p<<2|y>>>30,Re=y<<2|p>>>30,Se=w<<30|x>>>2,Ve=x<<30|w>>>2,je=v<<6|h>>>26,ke=h<<6|v>>>26,Ze=b<<11|s>>>21,Ne=s<<11|b>>>21,Be=D<<15|C>>>17,et=C<<15|D>>>17,$e=$<<29|F>>>3,De=F<<29|$>>>3,Qe=H<<28|X>>>4,qe=X<<28|H>>>4,Le=k<<23|z>>>9,rt=z<<23|k>>>9,ze=L<<25|oe>>>7,Ge=oe<<25|L>>>7,Et=re<<21|se>>>11,Ct=se<<21|re>>>11,Mt=T<<24|Y>>>8,At=Y<<24|T>>>8,Rt=O<<27|W>>>5,qt=W<<27|O>>>5,zt=ie<<20|ue>>>12,$t=ue<<20|ie>>>12,Ht=_e<<7|we>>>25,Kt=we<<7|_e>>>25,Gt=Z<<8|le>>>24,Wt=le<<8|Z>>>24,Vt=fe<<14|pe>>>18,Zt=pe<<14|fe>>>18;e[0]=Ce^~q&Ze,e[1]=Me^~be&Ne,e[10]=Qe^~zt&me,e[11]=qe^~$t&ye,e[20]=xe^~je&ze,e[21]=Ae^~ke&Ge,e[30]=Rt^~Ee&de,e[31]=qt^~ne&ae,e[40]=Se^~Le&Ht,e[41]=Ve^~rt&Kt,e[2]=q^~Ze&Et,e[3]=be^~Ne&Ct,e[12]=zt^~me&ce,e[13]=$t^~ye&ge,e[22]=je^~ze&Gt,e[23]=ke^~Ge&Wt,e[32]=Ee^~de&Be,e[33]=ne^~ae&et,e[42]=Le^~Ht&Ie,e[43]=rt^~Kt&he,e[4]=Ze^~Et&Vt,e[5]=Ne^~Ct&Zt,e[14]=me^~ce&$e,e[15]=ye^~ge&De,e[24]=ze^~Gt&ve,e[25]=Ge^~Wt&Q,e[34]=de^~Be&Mt,e[35]=ae^~et&At,e[44]=Ht^~Ie&Ue,e[45]=Kt^~he&Re,e[6]=Et^~Vt&Ce,e[7]=Ct^~Zt&Me,e[16]=ce^~$e&Qe,e[17]=ge^~De&qe,e[26]=Gt^~ve&xe,e[27]=Wt^~Q&Ae,e[36]=Be^~Mt&Rt,e[37]=et^~At&qt,e[46]=Ie^~Ue&Se,e[47]=he^~Re&Ve,e[8]=Vt^~Ce&q,e[9]=Zt^~Me&be,e[18]=$e^~Qe&zt,e[19]=De^~qe&$t,e[28]=ve^~xe&je,e[29]=Q^~Ae&ke,e[38]=Mt^~Rt&Ee,e[39]=At^~qt&ne,e[48]=Ue^~Se&Le,e[49]=Re^~Ve&rt,e[0]^=ox[t*2],e[1]^=ox[t*2+1]}};const fh=RR;function b0(){this.state=[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],this.blockSize=null,this.count=0,this.squeezing=!1}b0.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};b0.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(fh.p1600(this.state),this.count=0);return t};b0.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var GY=b0;const{Transform:WY}=Li;var VY=e=>class TR extends WY{constructor(r,n,a,i,f){super(f),this._rate=r,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=f,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,a){let i=null;try{this.update(r,n)}catch(f){i=f}a(i)}_flush(r){let n=null;try{this.push(this.digest())}catch(a){n=a}r(n)}update(r,n){if(!Te.Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Te.Buffer.isBuffer(r)||(r=Te.Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new TR(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const{Transform:ZY}=Li;var XY=e=>class PR extends ZY{constructor(r,n,a,i){super(i),this._rate=r,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,a){let i=null;try{this.update(r,n)}catch(f){i=f}a(i)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Te.Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Te.Buffer.isBuffer(r)||(r=Te.Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(r);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new PR(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const YY=VY,JY=XY;var QY=function(e){const t=YY(e),r=JY(e);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new t(1152,448,null,224,a);case"keccak256":return new t(1088,512,null,256,a);case"keccak384":return new t(832,768,null,384,a);case"keccak512":return new t(576,1024,null,512,a);case"sha3-224":return new t(1152,448,6,224,a);case"sha3-256":return new t(1088,512,6,256,a);case"sha3-384":return new t(832,768,6,384,a);case"sha3-512":return new t(576,1024,6,512,a);case"shake128":return new r(1344,256,31,a);case"shake256":return new r(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}},eJ=QY(GY);const tJ=Nr(eJ);function nl(e){return e=OR(e),tJ("keccak256").update(e).digest()}function OR(e){if(!Te.Buffer.isBuffer(e))if(Array.isArray(e))e=Te.Buffer.from(e);else if(typeof e=="string")kR(e)?e=Te.Buffer.from(X7(IR(e)),"hex"):e=Te.Buffer.from(e);else if(typeof e=="number")e=LR(e);else if(e==null)e=Te.Buffer.allocUnsafe(0);else if(Q$.isBN(e))e=e.toArrayLike(Te.Buffer);else if(e.toArray)e=Te.Buffer.from(e.toArray());else throw new Error("invalid type");return e}function kR(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function X7(e){if(typeof e!="string")throw new Error(`while padding to even, value must be string, is currently ${typeof e}, while padToEven.`);return e.length%2&&(e=`0${e}`),e}function IR(e){return typeof e!="string"?e:BR(e)?e.slice(2):e}function BR(e){if(typeof e!="string")throw new Error("value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return e.startsWith("0x")}function LR(e){const t=NR(e);return Te.Buffer.from(X7(t.slice(2)),"hex")}function NR(e){return`0x${e.toString(16)}`}typeof window<"u"&&(window.keccak256=nl);const rJ={intToBuffer:LR,intToHex:NR,isHexPrefixed:BR,stripHexPrefix:IR,padToEven:X7,isHexString:kR,toBuffer:OR};class DR{constructor(t,r){Pe(this,"_key");Pe(this,"ownerLength",Ut[pt.ETHEREUM].pubLength);Pe(this,"signatureLength",Ut[pt.ETHEREUM].sigLength);Pe(this,"signatureType",pt.ETHEREUM);Pe(this,"pk");this._key=t,this.pk=r.toString("hex")}get publicKey(){throw new Error("You must implement `publicKey`")}get key(){return Te.Buffer.from(this._key,"hex")}static async verify(t,r,n){let a=t;typeof t=="string"&&(a=Tt.toBuffer(t));let i=!1;try{i=oh.ecdsaVerify(n,nl(Te.Buffer.from(r)),a)}catch{}return i}async sign(t){return oh.ecdsaSign(nl(Te.Buffer.from(t)),Te.Buffer.from(this.key)).signature}}class Pd extends DR{get publicKey(){return Te.Buffer.from(this.pk,"hex")}constructor(t){t.startsWith("0x")&&(t=t.slice(2));const r=Te.Buffer.from(t,"hex"),n=oh.publicKeyCreate(r,!1);super(t,Te.Buffer.from(n))}async sign(t){return new uo(this._key).signMessage(t).then(n=>Te.Buffer.from(n.slice(2),"hex"))}static async verify(t,r,n){return oh.ecdsaVerify(n.length===65?n.slice(0,-1):n,Ye(Ad(r)),typeof t=="string"?Tt.toBuffer(t):t)}}class nJ extends Pd{}class iJ extends Z7{constructor(t){super(t.replace("ed25519:",""))}}class aJ extends kl{get publicKey(){return Te.Buffer.from(this.pk)}get key(){return Te.Buffer.from(this._key)}constructor(t,r){super(t.subarray(0,32),r)}}let FR=class extends ZA{constructor(r){super(r);Pe(this,"signatureType",4)}async sign(r){return super.sign(Te.Buffer.from(Te.Buffer.from(r).toString("hex")))}static async verify(r,n,a){return super.verify(r,Te.Buffer.from(Te.Buffer.from(n).toString("hex")),a)}};class oJ extends Z7{constructor(r){super(r);Pe(this,"signatureType",4)}async sign(r){return super.sign(Te.Buffer.from(Te.Buffer.from(r).toString("hex")))}static async verify(r,n,a){return super.verify(r,Te.Buffer.from(Te.Buffer.from(n).toString("hex")),a)}}class fJ extends kl{constructor(t,r){super(t,r)}get publicKey(){return Te.Buffer.from(this.pk.slice(2),"hex")}get key(){return Te.Buffer.from(this._key.slice(2),"hex")}}class UR{constructor(t,r){Pe(this,"_publicKey");Pe(this,"ownerLength",Ut[pt.INJECTEDAPTOS].pubLength);Pe(this,"signatureLength",Ut[pt.INJECTEDAPTOS].sigLength);Pe(this,"signatureType",pt.INJECTEDAPTOS);Pe(this,"pem");Pe(this,"provider");this.provider=t,this._publicKey=r}get publicKey(){return this._publicKey}async sign(t){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");const r=await this.provider.signMessage({message:Te.Buffer.from(t).toString("hex"),nonce:"bundlr"});return Te.Buffer.from(r.signature,"hex")}static async verify(t,r,n){const a=t;return wd(Te.Buffer.from(n),Te.Buffer.from(`APTOS +`)}static register(t,r){r||(r=t.locale)}}const sY="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo";let pu=null;function ex(e){if(pu==null&&(pu=sY.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Ll.check(e)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw pu=null,new Error("BIP39 Wordlist for en (English) FAILED")}class uY extends Ll{constructor(){super("en")}getWord(t){return ex(this),pu[t]}getWordIndex(t){return ex(this),pu.indexOf(t)}}const pR=new uY;Ll.register(pR);const tx={en:pR},lY="hdnode/5.7.0",ah=new tt(lY),cY=It.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),hY=Aa("Bitcoin seed"),U0=2147483648;function vR(e){return(1<=256)throw new Error("Depth too large!");return rx(Po([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",nt(this.depth),this.parentFingerprint,Qn(nt(this.index),4),this.chainCode,this.privateKey!=null?Po(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new Hn(qf,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let r=this.path;r&&(r+="/"+(t&~U0));const n=new Uint8Array(37);if(t&U0){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(Ye(this.privateKey),1),r&&(r+="'")}else n.set(Ye(this.publicKey));for(let _=24;_>=0;_-=8)n[33+(_>>3)]=t>>24-_&255;const a=Ye(ih(el.sha512,this.chainCode,n)),i=a.slice(0,32),f=a.slice(32);let l=null,c=null;this.privateKey?l=bc(It.from(i).add(this.privateKey).mod(cY)):c=new Es(nt(i))._addPoint(this.publicKey);let m=r;const g=this.mnemonic;return g&&(m=Object.freeze({phrase:g.phrase,path:r,locale:g.locale||"en"})),new Hn(qf,l,c,this.fingerprint,bc(f),t,this.depth+1,m)}derivePath(t){const r=t.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+t);r[0]==="m"&&r.shift();let n=this;for(let a=0;a=U0)throw new Error("invalid path index - "+i);n=n._derive(U0+f)}else if(i.match(/^[0-9]+$/)){const f=parseInt(i);if(f>=U0)throw new Error("invalid path index - "+i);n=n._derive(f)}else throw new Error("invalid path component - "+i)}return n}static _fromSeed(t,r){const n=Ye(t);if(n.length<16||n.length>64)throw new Error("invalid seed");const a=Ye(ih(el.sha512,hY,n));return new Hn(qf,bc(a.slice(0,32)),null,"0x00000000",bc(a.slice(32)),0,0,r)}static fromMnemonic(t,r,n){return n=K7(n),t=G7(gR(t,n),n),Hn._fromSeed(pY(t,r),{phrase:t,path:"m",locale:n.locale})}static fromSeed(t){return Hn._fromSeed(t,null)}static fromExtendedKey(t){const r=dR.decode(t);(r.length!==82||rx(r.slice(0,78))!==t)&&ah.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],a=nt(r.slice(5,9)),i=parseInt(nt(r.slice(9,13)).substring(2),16),f=nt(r.slice(13,45)),l=r.slice(45,78);switch(nt(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new Hn(qf,null,nt(l),a,f,i,n,null);case"0x0488ade4":case"0x04358394 ":if(l[0]!==0)break;return new Hn(qf,nt(l.slice(1)),null,a,f,i,n,null)}return ah.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function pY(e,t){t||(t="");const r=Aa("mnemonic"+t,_f.NFKD);return H7(Aa(e,_f.NFKD),r,2048,64,"sha512")}function gR(e,t){t=K7(t),ah.checkNormalize();const r=t.split(e);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=Ye(new Uint8Array(Math.ceil(11*r.length/8)));let a=0;for(let m=0;m>3]|=1<<7-a%8),a++}const i=32*r.length/3,f=r.length/3,l=vR(f);if((Ye(tl(n.slice(0,i/8)))[0]&l)!==(n[n.length-1]&l))throw new Error("invalid checksum");return nt(n.slice(0,i/8))}function G7(e,t){if(t=K7(t),e=Ye(e),e.length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let f=0;f8?(r[r.length-1]<<=8,r[r.length-1]|=e[f],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[f]>>8-n,r.push(e[f]&dY(8-n)),n+=3);const a=e.length/4,i=Ye(tl(e))[0]&vR(a);return r[r.length-1]<<=a,r[r.length-1]|=i>>8-a,t.join(r.map(f=>t.getWord(f)))}const vY="random/5.7.0",U6=new tt(vY);function gY(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof P4<"u")return P4;throw new Error("unable to locate global object")}const nx=gY();let n1=nx.crypto||nx.msCrypto;(!n1||!n1.getRandomValues)&&(U6.warn("WARNING: Missing strong random number source"),n1={getRandomValues:function(e){return U6.throwError("no secure random source avaialble",tt.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function Q0(e){(e<=0||e>1024||e%1||e!=e)&&U6.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return n1.getRandomValues(t),Ye(t)}var yR={exports:{}};(function(e,t){(function(r){function n(h){return parseInt(h)===h}function a(h){if(!n(h.length))return!1;for(var s=0;s255)return!1;return!0}function i(h,s){if(h.buffer&&ArrayBuffer.isView(h)&&h.name==="Uint8Array")return s&&(h.slice?h=h.slice():h=Array.prototype.slice.call(h)),h;if(Array.isArray(h)){if(!a(h))throw new Error("Array contains invalid value: "+h);return new Uint8Array(h)}if(n(h.length)&&a(h))return new Uint8Array(h);throw new Error("unsupported array-like object")}function f(h){return new Uint8Array(h)}function l(h,s,b,D,C){(D!=null||C!=null)&&(h.slice?h=h.slice(D,C):h=Array.prototype.slice.call(h,D,C)),s.set(h,b)}var c=function(){function h(b){var D=[],C=0;for(b=encodeURI(b);C191&&U<224?(D.push(String.fromCharCode((U&31)<<6|b[C+1]&63)),C+=2):(D.push(String.fromCharCode((U&15)<<12|(b[C+1]&63)<<6|b[C+2]&63)),C+=3)}return D.join("")}return{toBytes:h,fromBytes:s}}(),m=function(){function h(D){for(var C=[],U=0;U>4]+s[$&15])}return C.join("")}return{toBytes:h,fromBytes:b}}(),g={16:10,24:12,32:14},_=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],S=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],M=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],P=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],I=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],B=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],R=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],A=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],F=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],V=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],j=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],N=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],K=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],J=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],te=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function ee(h){for(var s=[],b=0;b>2,this._Ke[U][s%4]=C[s],this._Kd[h-U][s%4]=C[s];for(var $=0,H=D,X;H>16&255]<<24^S[X>>8&255]<<16^S[X&255]<<8^S[X>>24&255]^_[$]<<24,$+=1,D!=8)for(var s=1;s>8&255]<<8^S[X>>16&255]<<16^S[X>>24&255]<<24;for(var s=D/2+1;s>2,k=H%4,this._Ke[z][k]=C[s],this._Kd[h-z][k]=C[s++],H++}for(var z=1;z>24&255]^K[X>>16&255]^J[X>>8&255]^te[X&255]},G.prototype.encrypt=function(h){if(h.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var s=this._Ke.length-1,b=[0,0,0,0],D=ee(h),C=0;C<4;C++)D[C]^=this._Ke[0][C];for(var U=1;U>24&255]^I[D[(C+1)%4]>>16&255]^B[D[(C+2)%4]>>8&255]^R[D[(C+3)%4]&255]^this._Ke[U][C];D=b.slice()}for(var $=f(16),H,C=0;C<4;C++)H=this._Ke[s][C],$[4*C]=(S[D[C]>>24&255]^H>>24)&255,$[4*C+1]=(S[D[(C+1)%4]>>16&255]^H>>16)&255,$[4*C+2]=(S[D[(C+2)%4]>>8&255]^H>>8)&255,$[4*C+3]=(S[D[(C+3)%4]&255]^H)&255;return $},G.prototype.decrypt=function(h){if(h.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var s=this._Kd.length-1,b=[0,0,0,0],D=ee(h),C=0;C<4;C++)D[C]^=this._Kd[0][C];for(var U=1;U>24&255]^F[D[(C+3)%4]>>16&255]^V[D[(C+2)%4]>>8&255]^j[D[(C+1)%4]&255]^this._Kd[U][C];D=b.slice()}for(var $=f(16),H,C=0;C<4;C++)H=this._Kd[s][C],$[4*C]=(M[D[C]>>24&255]^H>>24)&255,$[4*C+1]=(M[D[(C+3)%4]>>16&255]^H>>16)&255,$[4*C+2]=(M[D[(C+2)%4]>>8&255]^H>>8)&255,$[4*C+3]=(M[D[(C+1)%4]&255]^H)&255;return $};var E=function(h){if(!(this instanceof E))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new G(h)};E.prototype.encrypt=function(h){if(h=i(h),h.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var s=f(h.length),b=f(16),D=0;D=0;--s)this._counter[s]=h%256,h=h>>8},p.prototype.setBytes=function(h){if(h=i(h,!0),h.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=h},p.prototype.increment=function(){for(var h=15;h>=0;h--)if(this._counter[h]===255)this._counter[h]=0;else{this._counter[h]++;break}};var y=function(h,s){if(!(this instanceof y))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",s instanceof p||(s=new p(s)),this._counter=s,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new G(h)};y.prototype.encrypt=function(h){for(var s=i(h,!0),b=0;b16)throw new Error("PKCS#7 padding byte out of range");for(var b=h.length-s,D=0;D=64;){let v=R,h=A,s=F,b=V,D=j,C=N,U=K,$=J,H,X,z,k,L;for(X=0;X<16;X++)z=x+X*4,te[X]=(y[z]&255)<<24|(y[z+1]&255)<<16|(y[z+2]&255)<<8|y[z+3]&255;for(X=16;X<64;X++)H=te[X-2],k=(H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10,H=te[X-15],L=(H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3,te[X]=(k+te[X-7]|0)+(L+te[X-16]|0)|0;for(X=0;X<64;X++)k=(((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&C^~D&U)|0)+($+(B[X]+te[X]|0)|0)|0,L=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&h^v&s^h&s)|0,$=U,U=C,C=D,D=b+k|0,b=s,s=h,h=v,v=k+L|0;R=R+v|0,A=A+h|0,F=F+s|0,V=V+b|0,j=j+D|0,N=N+C|0,K=K+U|0,J=J+$|0,x+=64,w-=64}}ee(I);let G,E=I.length%64,d=I.length/536870912|0,o=I.length<<3,u=E<56?56:120,p=I.slice(I.length-E,I.length);for(p.push(128),G=E+1;G>>24&255),p.push(d>>>16&255),p.push(d>>>8&255),p.push(d>>>0&255),p.push(o>>>24&255),p.push(o>>>16&255),p.push(o>>>8&255),p.push(o>>>0&255),ee(p),[R>>>24&255,R>>>16&255,R>>>8&255,R>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255,V>>>24&255,V>>>16&255,V>>>8&255,V>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255,N>>>24&255,N>>>16&255,N>>>8&255,N>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255,J>>>24&255,J>>>16&255,J>>>8&255,J>>>0&255]}function i(I,B,R){I=I.length<=64?I:a(I);const A=64+B.length+4,F=new Array(A),V=new Array(64);let j,N=[];for(j=0;j<64;j++)F[j]=54;for(j=0;j=A-4;J--){if(F[J]++,F[J]<=255)return;F[J]=0}}for(;R>=32;)K(),N=N.concat(a(V.concat(a(F)))),R-=32;return R>0&&(K(),N=N.concat(a(V.concat(a(F))).slice(0,R))),N}function f(I,B,R,A,F){let V;for(g(I,(2*R-1)*16,F,0,16),V=0;V<2*R;V++)m(I,V*16,F,16),c(F,A),g(F,0,I,B+V*16,16);for(V=0;V>>32-B}function c(I,B){g(I,0,B,0,16);for(let R=8;R>0;R-=2)B[4]^=l(B[0]+B[12],7),B[8]^=l(B[4]+B[0],9),B[12]^=l(B[8]+B[4],13),B[0]^=l(B[12]+B[8],18),B[9]^=l(B[5]+B[1],7),B[13]^=l(B[9]+B[5],9),B[1]^=l(B[13]+B[9],13),B[5]^=l(B[1]+B[13],18),B[14]^=l(B[10]+B[6],7),B[2]^=l(B[14]+B[10],9),B[6]^=l(B[2]+B[14],13),B[10]^=l(B[6]+B[2],18),B[3]^=l(B[15]+B[11],7),B[7]^=l(B[3]+B[15],9),B[11]^=l(B[7]+B[3],13),B[15]^=l(B[11]+B[7],18),B[1]^=l(B[0]+B[3],7),B[2]^=l(B[1]+B[0],9),B[3]^=l(B[2]+B[1],13),B[0]^=l(B[3]+B[2],18),B[6]^=l(B[5]+B[4],7),B[7]^=l(B[6]+B[5],9),B[4]^=l(B[7]+B[6],13),B[5]^=l(B[4]+B[7],18),B[11]^=l(B[10]+B[9],7),B[8]^=l(B[11]+B[10],9),B[9]^=l(B[8]+B[11],13),B[10]^=l(B[9]+B[8],18),B[12]^=l(B[15]+B[14],7),B[13]^=l(B[12]+B[15],9),B[14]^=l(B[13]+B[12],13),B[15]^=l(B[14]+B[13],18);for(let R=0;R<16;++R)I[R]+=B[R]}function m(I,B,R,A){for(let F=0;F=256)return!1}return!0}function S(I,B){if(typeof I!="number"||I%1)throw new Error("invalid "+B);return I}function M(I,B,R,A,F,V,j){if(R=S(R,"N"),A=S(A,"r"),F=S(F,"p"),V=S(V,"dkLen"),R===0||R&R-1)throw new Error("N must be power of 2");if(R>2147483647/128/A)throw new Error("N too large");if(A>2147483647/128/F)throw new Error("r too large");if(!_(I))throw new Error("password must be an array or buffer");if(I=Array.prototype.slice.call(I),!_(B))throw new Error("salt must be an array or buffer");B=Array.prototype.slice.call(B);let N=i(I,B,F*128*A);const K=new Uint32Array(F*32*A);for(let D=0;Dh&&(D=h);for(let U=0;Uh&&(D=h);for(let U=0;U>0&255),N.push(K[U]>>8&255),N.push(K[U]>>16&255),N.push(K[U]>>24&255);const C=i(I,N,V);return j&&j(null,1,C),C}j&&s(b)};if(!j)for(;;){const D=b();if(D!=null)return D}b()}const P={scrypt:function(I,B,R,A,F,V,j){return new Promise(function(N,K){let J=0;j&&j(0),M(I,B,R,A,F,V,function(te,ee,G){if(te)K(te);else if(G)j&&J!==1&&j(1),N(new Uint8Array(G));else if(j&&ee!==J)return J=ee,j(ee)})})},syncScrypt:function(I,B,R,A,F,V){return new Uint8Array(M(I,B,R,A,F,V))}};e.exports=P})()})(_R);var wY=_R.exports;const V7=Nr(wY);var _Y=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const j6=new tt(mR);function ix(e){return e!=null&&e.mnemonic&&e.mnemonic.phrase}class SY extends tR{isKeystoreAccount(t){return!!(t&&t._isKeystoreAccount)}}function EY(e,t,r){if(ar(e,"crypto/cipher")==="aes-128-ctr"){const a=lf(ar(e,"crypto/cipherparams/iv")),i=new Qi.Counter(a),f=new Qi.ModeOfOperation.ctr(t,i);return Ye(f.decrypt(r))}return null}function SR(e,t){const r=lf(ar(e,"crypto/ciphertext"));if(nt(rn(Po([t.slice(16,32),r]))).substring(2)!==ar(e,"crypto/mac").toLowerCase())throw new Error("invalid password");const a=EY(e,t.slice(0,16),r);a||j6.throwError("unsupported cipher",tt.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const i=t.slice(32,64),f=So(a);if(e.address){let c=e.address.toLowerCase();if(c.substring(0,2)!=="0x"&&(c="0x"+c),Bi(c)!==f)throw new Error("address mismatch")}const l={_isKeystoreAccount:!0,address:f,privateKey:nt(a)};if(ar(e,"x-ethers/version")==="0.1"){const c=lf(ar(e,"x-ethers/mnemonicCiphertext")),m=lf(ar(e,"x-ethers/mnemonicCounter")),g=new Qi.Counter(m),_=new Qi.ModeOfOperation.ctr(i,g),S=ar(e,"x-ethers/path")||rl,M=ar(e,"x-ethers/locale")||"en",P=Ye(_.decrypt(c));try{const I=G7(P,M),B=Hn.fromMnemonic(I,null,M).derivePath(S);if(B.privateKey!=l.privateKey)throw new Error("mnemonic mismatch");l.mnemonic=B.mnemonic}catch(I){if(I.code!==tt.errors.INVALID_ARGUMENT||I.argument!=="wordlist")throw I}}return new SY(l)}function ER(e,t,r,n,a){return Ye(H7(e,t,r,n,a))}function CY(e,t,r,n,a){return Promise.resolve(ER(e,t,r,n,a))}function CR(e,t,r,n,a){const i=W7(t),f=ar(e,"crypto/kdf");if(f&&typeof f=="string"){const l=function(c,m){return j6.throwArgumentError("invalid key-derivation function parameters",c,m)};if(f.toLowerCase()==="scrypt"){const c=lf(ar(e,"crypto/kdfparams/salt")),m=parseInt(ar(e,"crypto/kdfparams/n")),g=parseInt(ar(e,"crypto/kdfparams/r")),_=parseInt(ar(e,"crypto/kdfparams/p"));(!m||!g||!_)&&l("kdf",f),m&m-1&&l("N",m);const S=parseInt(ar(e,"crypto/kdfparams/dklen"));return S!==32&&l("dklen",S),n(i,c,m,g,_,64,a)}else if(f.toLowerCase()==="pbkdf2"){const c=lf(ar(e,"crypto/kdfparams/salt"));let m=null;const g=ar(e,"crypto/kdfparams/prf");g==="hmac-sha256"?m="sha256":g==="hmac-sha512"?m="sha512":l("prf",g);const _=parseInt(ar(e,"crypto/kdfparams/c")),S=parseInt(ar(e,"crypto/kdfparams/dklen"));return S!==32&&l("dklen",S),r(i,c,_,S,m)}}return j6.throwArgumentError("unsupported key-derivation function","kdf",f)}function MY(e,t){const r=JSON.parse(e),n=CR(r,t,ER,V7.syncScrypt);return SR(r,n)}function AY(e,t,r){return _Y(this,void 0,void 0,function*(){const n=JSON.parse(e),a=yield CR(n,t,CY,V7.scrypt,r);return SR(n,a)})}function RY(e,t,r,n){try{if(Bi(e.address)!==So(e.privateKey))throw new Error("address/privateKey mismatch");if(ix(e)){const B=e.mnemonic;if(Hn.fromMnemonic(B.phrase,null,B.locale).derivePath(B.path||rl).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(B){return Promise.reject(B)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const a=Ye(e.privateKey),i=W7(t);let f=null,l=null,c=null;if(ix(e)){const B=e.mnemonic;f=Ye(gR(B.phrase,B.locale||"en")),l=B.path||rl,c=B.locale||"en"}let m=r.client;m||(m="ethers.js");let g=null;r.salt?g=Ye(r.salt):g=Q0(32);let _=null;if(r.iv){if(_=Ye(r.iv),_.length!==16)throw new Error("invalid iv")}else _=Q0(16);let S=null;if(r.uuid){if(S=Ye(r.uuid),S.length!==16)throw new Error("invalid uuid")}else S=Q0(16);let M=1<<17,P=8,I=1;return r.scrypt&&(r.scrypt.N&&(M=r.scrypt.N),r.scrypt.r&&(P=r.scrypt.r),r.scrypt.p&&(I=r.scrypt.p)),V7.scrypt(i,g,M,P,I,64,n).then(B=>{B=Ye(B);const R=B.slice(0,16),A=B.slice(16,32),F=B.slice(32,64),V=new Qi.Counter(_),j=new Qi.ModeOfOperation.ctr(R,V),N=Ye(j.encrypt(a)),K=rn(Po([A,N])),J={address:e.address.substring(2).toLowerCase(),id:mY(S),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:nt(_).substring(2)},ciphertext:nt(N).substring(2),kdf:"scrypt",kdfparams:{salt:nt(g).substring(2),n:M,dklen:32,p:I,r:P},mac:K.substring(2)}};if(f){const te=Q0(16),ee=new Qi.Counter(te),G=new Qi.ModeOfOperation.ctr(F,ee),E=Ye(G.encrypt(f)),d=new Date,o=d.getUTCFullYear()+"-"+j0(d.getUTCMonth()+1,2)+"-"+j0(d.getUTCDate(),2)+"T"+j0(d.getUTCHours(),2)+"-"+j0(d.getUTCMinutes(),2)+"-"+j0(d.getUTCSeconds(),2)+".0Z";J["x-ethers"]={client:m,gethFilename:"UTC--"+o+"--"+J.address,mnemonicCounter:nt(te).substring(2),mnemonicCiphertext:nt(E).substring(2),path:l,locale:c,version:"0.1"}}return JSON.stringify(J)})}function TY(e,t,r){if(xR(e)){r&&r(0);const n=bR(e,t);return r&&r(1),Promise.resolve(n)}return wR(e)?AY(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}function PY(e,t){if(xR(e))return bR(e,t);if(wR(e))return MY(e,t);throw new Error("invalid JSON wallet")}const OY="wallet/5.7.0";var ax=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(f){f(i)})}return new(r||(r=Promise))(function(i,f){function l(g){try{m(n.next(g))}catch(_){f(_)}}function c(g){try{m(n.throw(g))}catch(_){f(_)}}function m(g){g.done?i(g.value):a(g.value).then(l,c)}m((n=n.apply(e,t||[])).next())})};const zf=new tt(OY);function kY(e){return e!=null&&an(e.privateKey,32)&&e.address!=null}function IY(e){const t=e.mnemonic;return t&&t.phrase}class uo extends $7{constructor(t,r){if(super(),kY(t)){const n=new Es(t.privateKey);if(it(this,"_signingKey",()=>n),it(this,"address",So(this.publicKey)),this.address!==Bi(t.address)&&zf.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),IY(t)){const a=t.mnemonic;it(this,"_mnemonic",()=>({phrase:a.phrase,path:a.path||rl,locale:a.locale||"en"}));const i=this.mnemonic,f=Hn.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path);So(f.privateKey)!==this.address&&zf.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else it(this,"_mnemonic",()=>null)}else{if(Es.isSigningKey(t))t.curve!=="secp256k1"&&zf.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),it(this,"_signingKey",()=>t);else{typeof t=="string"&&t.match(/^[0-9a-f]*$/i)&&t.length===64&&(t="0x"+t);const n=new Es(t);it(this,"_signingKey",()=>n)}it(this,"_mnemonic",()=>null),it(this,"address",So(this.publicKey))}r&&!z7.isProvider(r)&&zf.throwArgumentError("invalid provider","provider",r),it(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(t){return new uo(this,t)}signTransaction(t){return fs(t).then(r=>{r.from!=null&&(Bi(r.from)!==this.address&&zf.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete r.from);const n=this._signingKey().signDigest(rn(Qb(r)));return Qb(r,n)})}signMessage(t){return ax(this,void 0,void 0,function*(){return qb(this._signingKey().signDigest(Ad(t)))})}_signTypedData(t,r,n){return ax(this,void 0,void 0,function*(){const a=yield hn.resolveNames(t,r,n,i=>(this.provider==null&&zf.throwError("cannot resolve ENS names without a provider",tt.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:i}),this.provider.resolveName(i)));return qb(this._signingKey().signDigest(hn.hash(a.domain,r,a.value)))})}encrypt(t,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),RY(this,t,r,n)}static createRandom(t){let r=Q0(16);t||(t={}),t.extraEntropy&&(r=Ye(Ju(rn(Po([r,t.extraEntropy])),0,16)));const n=G7(r,t.locale);return uo.fromMnemonic(n,t.path,t.locale)}static fromEncryptedJson(t,r,n){return TY(t,r,n).then(a=>new uo(a))}static fromEncryptedJsonSync(t,r){return new uo(PY(t,r))}static fromMnemonic(t,r,n){return r||(r=rl),new uo(Hn.fromMnemonic(t,null,n).derivePath(r))}}function BY(e,t){return lR(Ad(e),t)}function MR(e,t,r,n){return lR(hn.hash(e,t,r),n)}class AR{constructor(t){Pe(this,"signer");Pe(this,"publicKey");Pe(this,"ownerLength",Ut[pt.ETHEREUM].pubLength);Pe(this,"signatureLength",Ut[pt.ETHEREUM].sigLength);Pe(this,"signatureType",pt.ETHEREUM);this.signer=t.getSigner()}async setPublicKey(){const t="sign this message to connect to Bundlr.Network",r=await this.signer.signMessage(t),n=await Ad(t),a=sR(Ye(n),r);this.publicKey=Te.Buffer.from(Ye(a))}async sign(t){this.publicKey||await this.setPublicKey();const r=await this.signer.signMessage(t);return Te.Buffer.from(r.slice(2),"hex")}static verify(t,r,n){const a=So(t);return BY(r,n)===a}}var xc=st.Buffer;function LY(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,F=new Uint8Array(A);B!==R;){for(var V=M[B],j=0,N=A-1;(V!==0||j>>0,F[N]=V%f>>>0,V=V/f>>>0;if(V!==0)throw new Error("Non-zero carry");I=j,B++}for(var K=A-I;K!==A&&F[K]===0;)K++;for(var J=l.repeat(P);K>>0,A=new Uint8Array(R);M[P];){var F=t[M.charCodeAt(P)];if(F===255)return;for(var V=0,j=R-1;(F!==0||V>>0,A[j]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");B=V,P++}for(var N=R-B;N!==R&&A[N]===0;)N++;var K=xc.allocUnsafe(I+(R-N));K.fill(0,0,I);for(var J=I;N!==R;)K[J++]=A[N++];return K}function S(M){var P=_(M);if(P)return P;throw new Error("Non-base"+f+" character")}return{encode:g,decodeUnsafe:_,decode:S}}var NY=LY,DY=NY,FY="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",UY=DY(FY);const q0=Nr(UY);class Z7 extends kl{get publicKey(){return q0.decode(this.pk)}get key(){return q0.decode(this._key)}constructor(t){const r=q0.decode(t);super(q0.encode(r.subarray(0,32)),q0.encode(r.subarray(32,64)))}}const jY=vd().ec,Vi=new jY("secp256k1"),dt=Vi.curve,kt=dt.n.constructor;function qY(e,t){let r=new kt(t);if(r.cmp(dt.p)>=0)return null;r=r.toRed(dt.red);let n=r.redSqr().redIMul(r).redIAdd(dt.b).redSqrt();return e===3!==n.isOdd()&&(n=n.redNeg()),Vi.keyPair({pub:{x:r,y:n}})}function zY(e,t,r){let n=new kt(t),a=new kt(r);if(n.cmp(dt.p)>=0||a.cmp(dt.p)>=0||(n=n.toRed(dt.red),a=a.toRed(dt.red),(e===6||e===7)&&a.isOdd()!==(e===7)))return null;const i=n.redSqr().redIMul(n);return a.redSqr().redISub(i.redIAdd(dt.b)).isZero()?Vi.keyPair({pub:{x:n,y:a}}):null}function Za(e){const t=e[0];switch(t){case 2:case 3:return e.length!==33?null:qY(t,e.subarray(1,33));case 4:case 6:case 7:return e.length!==65?null:zY(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function Wo(e,t){const r=t.encode(null,e.length===33);for(let n=0;n=0||(r.iadd(new kt(e)),r.cmp(dt.n)>=0&&r.isub(dt.n),r.isZero()))return 1;const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new kt(t);if(r.cmp(dt.n)>=0||r.isZero())return 1;r.imul(new kt(e)),r.cmp(dt.n)>=0&&(r=r.umod(dt.n));const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify(e){return Za(e)===null?1:0},publicKeyCreate(e,t){const r=new kt(t);if(r.cmp(dt.n)>=0||r.isZero())return 1;const n=Vi.keyFromPrivate(t).getPublic();return Wo(e,n),0},publicKeyConvert(e,t){const r=Za(t);if(r===null)return 1;const n=r.getPublic();return Wo(e,n),0},publicKeyNegate(e,t){const r=Za(t);if(r===null)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),Wo(e,n),0},publicKeyCombine(e,t){const r=new Array(t.length);for(let a=0;a=0)return 2;const a=n.getPublic().add(dt.g.mul(r));return a.isInfinity()?2:(Wo(e,a),0)},publicKeyTweakMul(e,t,r){const n=Za(t);if(n===null)return 1;if(r=new kt(r),r.cmp(dt.n)>=0||r.isZero())return 2;const a=n.getPublic().mul(r);return Wo(e,a),0},signatureNormalize(e){const t=new kt(e.subarray(0,32)),r=new kt(e.subarray(32,64));return t.cmp(dt.n)>=0||r.cmp(dt.n)>=0?1:(r.cmp(Vi.nh)===1&&e.set(dt.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const r=t.subarray(0,32),n=t.subarray(32,64);if(new kt(r).cmp(dt.n)>=0||new kt(n).cmp(dt.n)>=0)return 1;const{output:a}=e;let i=a.subarray(4,37);i[0]=0,i.set(r,1);let f=33,l=0;for(;f>1&&i[l]===0&&!(i[l+1]&128);--f,++l);if(i=i.subarray(l),i[0]&128||f>1&&i[0]===0&&!(i[1]&128))return 1;let c=a.subarray(39,72);c[0]=0,c.set(n,1);let m=33,g=0;for(;m>1&&c[g]===0&&!(c[g+1]&128);--m,++g);return c=c.subarray(g),c[0]&128||m>1&&c[0]===0&&!(c[1]&128)?1:(e.outputlen=6+f+m,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=i.length,a.set(i,4),a[4+f]=2,a[5+f]=c.length,a.set(c,6+f),0)},signatureImport(e,t){if(t.length<8||t.length>72||t[0]!==48||t[1]!==t.length-2||t[2]!==2)return 1;const r=t[3];if(r===0||5+r>=t.length||t[4+r]!==2)return 1;const n=t[5+r];if(n===0||6+r+n!==t.length||t[4]&128||r>1&&t[4]===0&&!(t[5]&128)||t[r+6]&128||n>1&&t[r+6]===0&&!(t[r+7]&128))return 1;let a=t.subarray(4,4+r);if(a.length===33&&a[0]===0&&(a=a.subarray(1)),a.length>32)return 1;let i=t.subarray(6+r);if(i.length===33&&i[0]===0&&(i=i.slice(1)),i.length>32)throw new Error("S length is too long");let f=new kt(a);f.cmp(dt.n)>=0&&(f=new kt(0));let l=new kt(t.subarray(6+r));return l.cmp(dt.n)>=0&&(l=new kt(0)),e.set(f.toArrayLike(Uint8Array,"be",32),0),e.set(l.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,n,a){if(a){const l=a;a=c=>{const m=l(t,r,null,n,c);if(!(m instanceof Uint8Array&&m.length===32))throw new Error("This is the way");return new kt(m)}}const i=new kt(r);if(i.cmp(dt.n)>=0||i.isZero())return 1;let f;try{f=Vi.sign(t,r,{canonical:!0,k:a,pers:n})}catch{return 1}return e.signature.set(f.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(f.s.toArrayLike(Uint8Array,"be",32),32),e.recid=f.recoveryParam,0},ecdsaVerify(e,t,r){const n={r:e.subarray(0,32),s:e.subarray(32,64)},a=new kt(n.r),i=new kt(n.s);if(a.cmp(dt.n)>=0||i.cmp(dt.n)>=0)return 1;if(i.cmp(Vi.nh)===1||a.isZero()||i.isZero())return 3;const f=Za(r);if(f===null)return 2;const l=f.getPublic();return Vi.verify(t,n,l)?0:3},ecdsaRecover(e,t,r,n){const a={r:t.slice(0,32),s:t.slice(32,64)},i=new kt(a.r),f=new kt(a.s);if(i.cmp(dt.n)>=0||f.cmp(dt.n)>=0)return 1;if(i.isZero()||f.isZero())return 2;let l;try{l=Vi.recoverPubKey(n,a,r)}catch{return 2}return Wo(e,l),0},ecdh(e,t,r,n,a,i,f){const l=Za(t);if(l===null)return 1;const c=new kt(r);if(c.cmp(dt.n)>=0||c.isZero())return 2;const m=l.getPublic().mul(c);if(a===void 0){const g=m.encode(null,!0),_=Vi.hash().update(g).digest();for(let S=0;S<32;++S)e[S]=_[S]}else{i||(i=new Uint8Array(32));const g=m.getX().toArray("be",32);for(let P=0;P<32;++P)i[P]=g[P];f||(f=new Uint8Array(32));const _=m.getY().toArray("be",32);for(let P=0;P<32;++P)f[P]=_[P];const S=a(i,f,n);if(!(S instanceof Uint8Array&&S.length===e.length))return 2;e.set(S)}return 0}};const xt={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function $n(e,t){if(!e)throw new Error(t)}function vt(e,t,r){if($n(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),r!==void 0)if(Array.isArray(r)){const n=r.join(", "),a=`Expected ${e} to be an Uint8Array with length [${n}]`;$n(r.includes(t.length),a)}else{const n=`Expected ${e} to be an Uint8Array with length ${r}`;$n(t.length===r,n)}}function Vo(e){$n(Kf(e)==="Boolean","Expected compressed to be a Boolean")}function xi(e=r=>new Uint8Array(r),t){return typeof e=="function"&&(e=e(t)),vt("output",e,t),e}function Kf(e){return Object.prototype.toString.call(e).slice(8,-1)}var HY=e=>({contextRandomize(t){switch($n(t===null||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),t!==null&&vt("seed",t,32),e.contextRandomize(t)){case 1:throw new Error(xt.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(t){return vt("private key",t,32),e.privateKeyVerify(t)===0},privateKeyNegate(t){switch(vt("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(xt.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(t,r){switch(vt("private key",t,32),vt("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(xt.TWEAK_ADD)}},privateKeyTweakMul(t,r){switch(vt("private key",t,32),vt("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(xt.TWEAK_MUL)}},publicKeyVerify(t){return vt("public key",t,[33,65]),e.publicKeyVerify(t)===0},publicKeyCreate(t,r=!0,n){switch(vt("private key",t,32),Vo(r),n=xi(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(xt.SECKEY_INVALID);case 2:throw new Error(xt.PUBKEY_SERIALIZE)}},publicKeyConvert(t,r=!0,n){switch(vt("public key",t,[33,65]),Vo(r),n=xi(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.PUBKEY_SERIALIZE)}},publicKeyNegate(t,r=!0,n){switch(vt("public key",t,[33,65]),Vo(r),n=xi(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.IMPOSSIBLE_CASE);case 3:throw new Error(xt.PUBKEY_SERIALIZE)}},publicKeyCombine(t,r=!0,n){$n(Array.isArray(t),"Expected public keys to be an Array"),$n(t.length>0,"Expected public keys array will have more than zero items");for(const a of t)vt("public key",a,[33,65]);switch(Vo(r),n=xi(n,r?33:65),e.publicKeyCombine(n,t)){case 0:return n;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.PUBKEY_COMBINE);case 3:throw new Error(xt.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(t,r,n=!0,a){switch(vt("public key",t,[33,65]),vt("tweak",r,32),Vo(n),a=xi(a,n?33:65),e.publicKeyTweakAdd(a,t,r)){case 0:return a;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.TWEAK_ADD)}},publicKeyTweakMul(t,r,n=!0,a){switch(vt("public key",t,[33,65]),vt("tweak",r,32),Vo(n),a=xi(a,n?33:65),e.publicKeyTweakMul(a,t,r)){case 0:return a;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.TWEAK_MUL)}},signatureNormalize(t){switch(vt("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(xt.SIG_PARSE)}},signatureExport(t,r){vt("signature",t,64),r=xi(r,72);const n={output:r,outputlen:72};switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(xt.SIG_PARSE);case 2:throw new Error(xt.IMPOSSIBLE_CASE)}},signatureImport(t,r){switch(vt("signature",t),r=xi(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(xt.SIG_PARSE);case 2:throw new Error(xt.IMPOSSIBLE_CASE)}},ecdsaSign(t,r,n={},a){vt("message",t,32),vt("private key",r,32),$n(Kf(n)==="Object","Expected options to be an Object"),n.data!==void 0&&vt("options.data",n.data),n.noncefn!==void 0&&$n(Kf(n.noncefn)==="Function","Expected options.noncefn to be a Function"),a=xi(a,64);const i={signature:a,recid:null};switch(e.ecdsaSign(i,t,r,n.data,n.noncefn)){case 0:return i;case 1:throw new Error(xt.SIGN);case 2:throw new Error(xt.IMPOSSIBLE_CASE)}},ecdsaVerify(t,r,n){switch(vt("signature",t,64),vt("message",r,32),vt("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(xt.SIG_PARSE);case 2:throw new Error(xt.PUBKEY_PARSE)}},ecdsaRecover(t,r,n,a=!0,i){switch(vt("signature",t,64),$n(Kf(r)==="Number"&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),vt("message",n,32),Vo(a),i=xi(i,a?33:65),e.ecdsaRecover(i,t,r,n)){case 0:return i;case 1:throw new Error(xt.SIG_PARSE);case 2:throw new Error(xt.RECOVER);case 3:throw new Error(xt.IMPOSSIBLE_CASE)}},ecdh(t,r,n={},a){switch(vt("public key",t,[33,65]),vt("private key",r,32),$n(Kf(n)==="Object","Expected options to be an Object"),n.data!==void 0&&vt("options.data",n.data),n.hashfn!==void 0?($n(Kf(n.hashfn)==="Function","Expected options.hashfn to be a Function"),n.xbuf!==void 0&&vt("options.xbuf",n.xbuf,32),n.ybuf!==void 0&&vt("options.ybuf",n.ybuf,32),vt("output",a)):a=xi(a,32),e.ecdh(a,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return a;case 1:throw new Error(xt.PUBKEY_PARSE);case 2:throw new Error(xt.ECDH)}}}),KY=HY($Y);const oh=Nr(KY);var RR={};const ox=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];RR.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],i=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],m=e[7]^e[17]^e[27]^e[37]^e[47],g=e[8]^e[18]^e[28]^e[38]^e[48],_=e[9]^e[19]^e[29]^e[39]^e[49];let S=g^(a<<1|i>>>31),M=_^(i<<1|a>>>31);const P=e[0]^S,I=e[1]^M,B=e[10]^S,R=e[11]^M,A=e[20]^S,F=e[21]^M,V=e[30]^S,j=e[31]^M,N=e[40]^S,K=e[41]^M;S=r^(f<<1|l>>>31),M=n^(l<<1|f>>>31);const J=e[2]^S,te=e[3]^M,ee=e[12]^S,G=e[13]^M,E=e[22]^S,d=e[23]^M,o=e[32]^S,u=e[33]^M,p=e[42]^S,y=e[43]^M;S=a^(c<<1|m>>>31),M=i^(m<<1|c>>>31);const x=e[4]^S,w=e[5]^M,v=e[14]^S,h=e[15]^M,s=e[24]^S,b=e[25]^M,D=e[34]^S,C=e[35]^M,U=e[44]^S,$=e[45]^M;S=f^(g<<1|_>>>31),M=l^(_<<1|g>>>31);const H=e[6]^S,X=e[7]^M,z=e[16]^S,k=e[17]^M,L=e[26]^S,oe=e[27]^M,re=e[36]^S,se=e[37]^M,Y=e[46]^S,T=e[47]^M;S=c^(r<<1|n>>>31),M=m^(n<<1|r>>>31);const O=e[8]^S,W=e[9]^M,ie=e[18]^S,ue=e[19]^M,we=e[28]^S,_e=e[29]^M,Z=e[38]^S,le=e[39]^M,fe=e[48]^S,pe=e[49]^M,Ce=P,Me=I,Ee=R<<4|B>>>28,ne=B<<4|R>>>28,me=A<<3|F>>>29,ye=F<<3|A>>>29,Ie=j<<9|V>>>23,he=V<<9|j>>>23,ve=N<<18|K>>>14,Q=K<<18|N>>>14,xe=J<<1|te>>>31,Ae=te<<1|J>>>31,q=G<<12|ee>>>20,be=ee<<12|G>>>20,de=E<<10|d>>>22,ae=d<<10|E>>>22,ce=u<<13|o>>>19,ge=o<<13|u>>>19,Ue=p<<2|y>>>30,Re=y<<2|p>>>30,Se=w<<30|x>>>2,Ve=x<<30|w>>>2,je=v<<6|h>>>26,ke=h<<6|v>>>26,Ze=b<<11|s>>>21,Ne=s<<11|b>>>21,Be=D<<15|C>>>17,et=C<<15|D>>>17,$e=$<<29|U>>>3,De=U<<29|$>>>3,Qe=H<<28|X>>>4,qe=X<<28|H>>>4,Le=k<<23|z>>>9,rt=z<<23|k>>>9,ze=L<<25|oe>>>7,Ge=oe<<25|L>>>7,Et=re<<21|se>>>11,Ct=se<<21|re>>>11,Mt=T<<24|Y>>>8,At=Y<<24|T>>>8,Rt=O<<27|W>>>5,qt=W<<27|O>>>5,zt=ie<<20|ue>>>12,$t=ue<<20|ie>>>12,Ht=_e<<7|we>>>25,Kt=we<<7|_e>>>25,Gt=Z<<8|le>>>24,Wt=le<<8|Z>>>24,Vt=fe<<14|pe>>>18,Zt=pe<<14|fe>>>18;e[0]=Ce^~q&Ze,e[1]=Me^~be&Ne,e[10]=Qe^~zt&me,e[11]=qe^~$t&ye,e[20]=xe^~je&ze,e[21]=Ae^~ke&Ge,e[30]=Rt^~Ee&de,e[31]=qt^~ne&ae,e[40]=Se^~Le&Ht,e[41]=Ve^~rt&Kt,e[2]=q^~Ze&Et,e[3]=be^~Ne&Ct,e[12]=zt^~me&ce,e[13]=$t^~ye&ge,e[22]=je^~ze&Gt,e[23]=ke^~Ge&Wt,e[32]=Ee^~de&Be,e[33]=ne^~ae&et,e[42]=Le^~Ht&Ie,e[43]=rt^~Kt&he,e[4]=Ze^~Et&Vt,e[5]=Ne^~Ct&Zt,e[14]=me^~ce&$e,e[15]=ye^~ge&De,e[24]=ze^~Gt&ve,e[25]=Ge^~Wt&Q,e[34]=de^~Be&Mt,e[35]=ae^~et&At,e[44]=Ht^~Ie&Ue,e[45]=Kt^~he&Re,e[6]=Et^~Vt&Ce,e[7]=Ct^~Zt&Me,e[16]=ce^~$e&Qe,e[17]=ge^~De&qe,e[26]=Gt^~ve&xe,e[27]=Wt^~Q&Ae,e[36]=Be^~Mt&Rt,e[37]=et^~At&qt,e[46]=Ie^~Ue&Se,e[47]=he^~Re&Ve,e[8]=Vt^~Ce&q,e[9]=Zt^~Me&be,e[18]=$e^~Qe&zt,e[19]=De^~qe&$t,e[28]=ve^~xe&je,e[29]=Q^~Ae&ke,e[38]=Mt^~Rt&Ee,e[39]=At^~qt&ne,e[48]=Ue^~Se&Le,e[49]=Re^~Ve&rt,e[0]^=ox[t*2],e[1]^=ox[t*2+1]}};const fh=RR;function b0(){this.state=[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],this.blockSize=null,this.count=0,this.squeezing=!1}b0.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};b0.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(fh.p1600(this.state),this.count=0);return t};b0.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var GY=b0;const{Transform:WY}=Li;var VY=e=>class TR extends WY{constructor(r,n,a,i,f){super(f),this._rate=r,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=f,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,a){let i=null;try{this.update(r,n)}catch(f){i=f}a(i)}_flush(r){let n=null;try{this.push(this.digest())}catch(a){n=a}r(n)}update(r,n){if(!Te.Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Te.Buffer.isBuffer(r)||(r=Te.Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new TR(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const{Transform:ZY}=Li;var XY=e=>class PR extends ZY{constructor(r,n,a,i){super(i),this._rate=r,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,a){let i=null;try{this.update(r,n)}catch(f){i=f}a(i)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Te.Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Te.Buffer.isBuffer(r)||(r=Te.Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(r);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new PR(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const YY=VY,JY=XY;var QY=function(e){const t=YY(e),r=JY(e);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new t(1152,448,null,224,a);case"keccak256":return new t(1088,512,null,256,a);case"keccak384":return new t(832,768,null,384,a);case"keccak512":return new t(576,1024,null,512,a);case"sha3-224":return new t(1152,448,6,224,a);case"sha3-256":return new t(1088,512,6,256,a);case"sha3-384":return new t(832,768,6,384,a);case"sha3-512":return new t(576,1024,6,512,a);case"shake128":return new r(1344,256,31,a);case"shake256":return new r(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}},eJ=QY(GY);const tJ=Nr(eJ);function nl(e){return e=OR(e),tJ("keccak256").update(e).digest()}function OR(e){if(!Te.Buffer.isBuffer(e))if(Array.isArray(e))e=Te.Buffer.from(e);else if(typeof e=="string")kR(e)?e=Te.Buffer.from(X7(IR(e)),"hex"):e=Te.Buffer.from(e);else if(typeof e=="number")e=LR(e);else if(e==null)e=Te.Buffer.allocUnsafe(0);else if(Q$.isBN(e))e=e.toArrayLike(Te.Buffer);else if(e.toArray)e=Te.Buffer.from(e.toArray());else throw new Error("invalid type");return e}function kR(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function X7(e){if(typeof e!="string")throw new Error(`while padding to even, value must be string, is currently ${typeof e}, while padToEven.`);return e.length%2&&(e=`0${e}`),e}function IR(e){return typeof e!="string"?e:BR(e)?e.slice(2):e}function BR(e){if(typeof e!="string")throw new Error("value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return e.startsWith("0x")}function LR(e){const t=NR(e);return Te.Buffer.from(X7(t.slice(2)),"hex")}function NR(e){return`0x${e.toString(16)}`}typeof window<"u"&&(window.keccak256=nl);const rJ={intToBuffer:LR,intToHex:NR,isHexPrefixed:BR,stripHexPrefix:IR,padToEven:X7,isHexString:kR,toBuffer:OR};class DR{constructor(t,r){Pe(this,"_key");Pe(this,"ownerLength",Ut[pt.ETHEREUM].pubLength);Pe(this,"signatureLength",Ut[pt.ETHEREUM].sigLength);Pe(this,"signatureType",pt.ETHEREUM);Pe(this,"pk");this._key=t,this.pk=r.toString("hex")}get publicKey(){throw new Error("You must implement `publicKey`")}get key(){return Te.Buffer.from(this._key,"hex")}static async verify(t,r,n){let a=t;typeof t=="string"&&(a=Tt.toBuffer(t));let i=!1;try{i=oh.ecdsaVerify(n,nl(Te.Buffer.from(r)),a)}catch{}return i}async sign(t){return oh.ecdsaSign(nl(Te.Buffer.from(t)),Te.Buffer.from(this.key)).signature}}class Pd extends DR{get publicKey(){return Te.Buffer.from(this.pk,"hex")}constructor(t){t.startsWith("0x")&&(t=t.slice(2));const r=Te.Buffer.from(t,"hex"),n=oh.publicKeyCreate(r,!1);super(t,Te.Buffer.from(n))}async sign(t){return new uo(this._key).signMessage(t).then(n=>Te.Buffer.from(n.slice(2),"hex"))}static async verify(t,r,n){return oh.ecdsaVerify(n.length===65?n.slice(0,-1):n,Ye(Ad(r)),typeof t=="string"?Tt.toBuffer(t):t)}}class nJ extends Pd{}class iJ extends Z7{constructor(t){super(t.replace("ed25519:",""))}}class aJ extends kl{get publicKey(){return Te.Buffer.from(this.pk)}get key(){return Te.Buffer.from(this._key)}constructor(t,r){super(t.subarray(0,32),r)}}let FR=class extends ZA{constructor(r){super(r);Pe(this,"signatureType",4)}async sign(r){return super.sign(Te.Buffer.from(Te.Buffer.from(r).toString("hex")))}static async verify(r,n,a){return super.verify(r,Te.Buffer.from(Te.Buffer.from(n).toString("hex")),a)}};class oJ extends Z7{constructor(r){super(r);Pe(this,"signatureType",4)}async sign(r){return super.sign(Te.Buffer.from(Te.Buffer.from(r).toString("hex")))}static async verify(r,n,a){return super.verify(r,Te.Buffer.from(Te.Buffer.from(n).toString("hex")),a)}}class fJ extends kl{constructor(t,r){super(t,r)}get publicKey(){return Te.Buffer.from(this.pk.slice(2),"hex")}get key(){return Te.Buffer.from(this._key.slice(2),"hex")}}class UR{constructor(t,r){Pe(this,"_publicKey");Pe(this,"ownerLength",Ut[pt.INJECTEDAPTOS].pubLength);Pe(this,"signatureLength",Ut[pt.INJECTEDAPTOS].sigLength);Pe(this,"signatureType",pt.INJECTEDAPTOS);Pe(this,"pem");Pe(this,"provider");this.provider=t,this._publicKey=r}get publicKey(){return this._publicKey}async sign(t){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");const r=await this.provider.signMessage({message:Te.Buffer.from(t).toString("hex"),nonce:"bundlr"});return Te.Buffer.from(r.signature,"hex")}static async verify(t,r,n){const a=t;return wd(Te.Buffer.from(n),Te.Buffer.from(`APTOS message: ${Te.Buffer.from(r).toString("hex")} -nonce: bundlr`),Te.Buffer.from(a))}}class jR{constructor(t,r){Pe(this,"_publicKey");Pe(this,"ownerLength",Ut[pt.MULTIAPTOS].pubLength);Pe(this,"signatureLength",Ut[pt.MULTIAPTOS].sigLength);Pe(this,"signatureType",pt.MULTIAPTOS);Pe(this,"collectSignatures");Pe(this,"provider");this._publicKey=t,this.collectSignatures=r}get publicKey(){return this._publicKey}async sign(t){const{signatures:r,bitmap:n}=await this.collectSignatures(t),a=128,i=new Uint8Array([0,0,0,0]),f=new Set;n.forEach(m=>{if(m>=32)throw new Error(`Invalid bit value ${m}.`);if(f.has(m))throw new Error("Duplicated bits detected.");f.add(m);const g=Math.floor(m/8);let _=i[g];_|=a>>m%8,i[g]=_});const l=Te.Buffer.alloc(this.signatureLength);let c=0;for(let m=0;m<32;m++)i.includes(m)&&l.set(r[c++],m*64);return l.set(i,this.signatureLength-4),l}static async verify(t,r,n){const i=Ut[pt.MULTIAPTOS].sigLength-4,f=n.slice(0,i),l=n.slice(i);let c=!1;for(let m=0;m<32;m++){const g=Math.floor(m/8),_=m-g*8;if((l[g]&128>>_)!==0){const M=f.slice(m*64,(m+1)*64),P=t.slice(m*32,(m+1)*32);await wd(Te.Buffer.from(M),Te.Buffer.from(r),Te.Buffer.from(P))||(c=!0)}}return!c}}class qR extends Pd{constructor(r){super(r);Pe(this,"ownerLength",Ut[pt.TYPEDETHEREUM].pubLength);Pe(this,"signatureLength",Ut[pt.TYPEDETHEREUM].sigLength);Pe(this,"signatureType",pt.TYPEDETHEREUM);Pe(this,"address");Pe(this,"signer");this.address="0x"+nl(super.publicKey.slice(1)).slice(-20).toString("hex"),this.signer=new uo(r)}get publicKey(){return Te.Buffer.from(this.address)}async sign(r){const n=await this.signer._signTypedData(sh,uh,{address:this.address,"Transaction hash":r});return Te.Buffer.from(n.slice(2),"hex")}static async verify(r,n,a){const i=r.toString(),f=MR(sh,uh,{address:i,"Transaction hash":n},a);return i.toLowerCase()===f.toLowerCase()}}const sh={name:"Bundlr",version:"1"},uh={Bundlr:[{name:"Transaction hash",type:"bytes"},{name:"address",type:"address"}]};class sJ extends AR{constructor(){super(...arguments);Pe(this,"ownerLength",Ut[pt.TYPEDETHEREUM].pubLength);Pe(this,"signatureLength",Ut[pt.TYPEDETHEREUM].sigLength);Pe(this,"signatureType",pt.TYPEDETHEREUM);Pe(this,"address")}async ready(){this.address=(await this.signer.getAddress()).toString().toLowerCase(),this.publicKey=Te.Buffer.from(this.address)}async sign(r){const n=await this.signer._signTypedData(sh,uh,{address:this.address,"Transaction hash":r});return Te.Buffer.from(n.slice(2),"hex")}static verify(r,n,a){const i=r.toString(),f=MR(sh,uh,{address:i,"Transaction hash":n},a);return i.toLowerCase()===f.toLowerCase()}}class uJ{constructor(t){Pe(this,"signer");Pe(this,"publicKey");Pe(this,"ownerLength",Ut[pt.ARWEAVE].pubLength);Pe(this,"signatureLength",Ut[pt.ARWEAVE].sigLength);Pe(this,"signatureType",pt.ARWEAVE);this.signer=t}async setPublicKey(){const t=await this.signer.getActivePublicKey();this.publicKey=Tt.toBuffer(t)}async sign(t){this.publicKey||await this.setPublicKey();const r={name:"RSA-PSS",saltLength:32},n=await this.signer.signature(t,r);return new Uint8Array(Object.values(n))}static async verify(t,r,n){return await FA.crypto.verify(t,r,n)}}const Y7={1:I7,2:kl,3:Pd,4:FR,5:UR,6:jR,7:qR};async function q6(e){return Il([kr("dataitem"),kr("1"),kr(e.signatureType.toString()),e.rawOwner,e.rawTarget,e.rawAnchor,e.rawTags,e.rawData])}function Nl(e,t){const r=new Uint8Array(e);if(t<0)throw new Error("Array is unsigned, cannot represent -ve numbers");if(t>2**(e*8)-1)throw new Error(`Number ${t} is too large for an array of ${e} bytes`);for(let n=0;n=0;r--)t=t*256+e[r];return t}class J7{constructor(t=Te.Buffer.alloc(ev),r=0){Pe(this,"buf");Pe(this,"pos");this.buf=t,this.pos=r}writeTags(t){if(!Array.isArray(t))throw new Error("input must be array");const r=t.length;let n;if(r)for(this.writeLong(r),n=0;nthis.buf.length)throw new Error(`Too many tag bytes (${this.pos} > ${this.buf.length})`);return this.buf.copy(t,0,0,this.pos),t}writeLong(t){const r=this.buf;let n,a;if(t>=-1073741824&&t<1073741824){a=t>=0?t<<1:~t<<1|1;do r[this.pos]=a&127,a>>=7;while(a&&(r[this.pos++]|=128))}else{n=t>=0?t*2:-t*2-1;do r[this.pos]=n&127,n/=128;while(n>=1&&(r[this.pos++]|=128))}this.pos++,this.buf=r}writeString(t){const r=Te.Buffer.byteLength(t),n=this.buf;this.writeLong(r);let a=this.pos;if(this.pos+=r,!(this.pos>n.length)){if(r>64)this.buf.write(t,this.pos-r,r,"utf8");else{let i,f,l,c;for(i=0,f=r;i>6|192,n[a++]=l&63|128):(l&64512)===55296&&((c=t.charCodeAt(i+1))&64512)===56320?(l=65536+((l&1023)<<10)+(c&1023),i++,n[a++]=l>>18|240,n[a++]=l>>12&63|128,n[a++]=l>>6&63|128,n[a++]=l&63|128):(n[a++]=l>>12|224,n[a++]=l>>6&63|128,n[a++]=l&63|128)}this.buf=n}}readLong(){let t=0,r=0;const n=this.buf;let a,i,f,l;do a=n[this.pos++],i=a&128,t|=(a&127)<>1^-(t&1)}skipLong(){const t=this.buf;for(;t[this.pos++]&128;);}readTags(){const t=[];let r;for(;r=this.readLong();)for(r<0&&(r=-r,this.skipLong());r--;){const n=this.readString(),a=this.readString();t.push({name:n,value:a})}return t}readString(){const t=this.readLong(),r=this.pos,n=this.buf;if(this.pos+=t,this.pos>n.length)throw new Error("TAP Position out of range");return this.buf.slice(r,r+t).toString()}}function $R(e){if((e==null?void 0:e.length)===0)return Te.Buffer.allocUnsafe(0);const t=new J7;return t.writeTags(e),t.toBuffer()}function lh(e){return new J7(e).readTags()}const Q7=80,ev=4096;class Eo{constructor(t){Pe(this,"binary");Pe(this,"_id");this.binary=t}static isDataItem(t){return t.binary!==void 0}get signatureType(){const t=vr(this.binary.subarray(0,2));if((pt==null?void 0:pt[t])!==void 0)return t;throw new Error("Unknown signature type: "+t)}async isValid(){return Eo.verify(this.binary)}get id(){return Tt.encode(this.rawId)}set id(t){this._id=Tt.toBuffer(t)}get rawId(){return Na.createHash("sha256").update(this.rawSignature).digest()}set rawId(t){this._id=t}get rawSignature(){return this.binary.subarray(2,2+this.signatureLength)}get signature(){return Tt.encode(this.rawSignature)}set rawOwner(t){if(t.byteLength!=this.ownerLength)throw new Error(`Expected raw owner (pubkey) to be ${this.ownerLength} bytes, got ${t.byteLength} bytes.`);this.binary.set(t,2+this.signatureLength)}get rawOwner(){return this.binary.subarray(2+this.signatureLength,2+this.signatureLength+this.ownerLength)}get signatureLength(){return Ut[this.signatureType].sigLength}get owner(){return Tt.encode(this.rawOwner)}get ownerLength(){return Ut[this.signatureType].pubLength}get rawTarget(){const t=this.getTargetStart();return this.binary[t]==1?this.binary.subarray(t+1,t+33):Te.Buffer.alloc(0)}get target(){return Tt.encode(this.rawTarget)}get rawAnchor(){const t=this.getAnchorStart();return this.binary[t]==1?this.binary.subarray(t+1,t+33):Te.Buffer.alloc(0)}get anchor(){return this.rawAnchor.toString()}get rawTags(){const t=this.getTagsStart(),r=vr(this.binary.subarray(t+8,t+16));return this.binary.subarray(t+16,t+16+r)}get tags(){const t=this.getTagsStart();if(vr(this.binary.subarray(t,t+8))==0)return[];const n=vr(this.binary.subarray(t+8,t+16));return lh(Te.Buffer.from(this.binary.subarray(t+16,t+16+n)))}get tagsB64Url(){return this.tags.map(r=>({name:Tt.encode(r.name),value:Tt.encode(r.value)}))}getStartOfData(){const t=this.getTagsStart(),r=this.binary.subarray(t+8,t+16),n=vr(r);return t+16+n}get rawData(){const t=this.getTagsStart(),r=this.binary.subarray(t+8,t+16),n=vr(r),a=t+16+n;return this.binary.subarray(a,this.binary.length)}get data(){return Tt.encode(this.rawData)}getRaw(){return this.binary}async sign(t){return this._id=await rv(this,t),this.rawId}async setSignature(t){this.binary.set(t,2),this._id=Te.Buffer.from(await vn().hash(t))}isSigned(){var t;return(((t=this._id)==null?void 0:t.length)??0)>0}toJSON(){return{signature:this.signature,owner:this.owner,target:this.target,tags:this.tags.map(t=>({name:Tt.encode(t.name),value:Tt.encode(t.value)})),data:this.data}}static async verify(t){if(t.byteLengthev)return!1;if(i>0)try{if(lh(Te.Buffer.from(t.subarray(a+16,a+16+l))).length!==i)return!1}catch{return!1}const c=Y7[n],m=await q6(r);return await c.verify(r.rawOwner,m,r.rawSignature)}async getSignatureData(){return q6(this)}getTagsStart(){const t=this.getTargetStart(),r=this.binary[t]==1;let n=t+(r?33:1);const a=this.binary[n]==1;return n+=a?33:1,n}getTargetStart(){return 2+this.signatureLength+this.ownerLength}getAnchorStart(){let t=this.getTargetStart()+1;const r=this.binary[this.getTargetStart()]==1;return t+=r?32:0,t}}const Hi=32;class tv{constructor(t){Pe(this,"length");Pe(this,"items");Pe(this,"binary");this.binary=t,this.length=this.getDataItemCount(),this.items=this.getItems()}getRaw(){return this.binary}get(t){if(typeof t=="number"){if(t>=this.length)throw new RangeError("Index out of range");return this.getByIndex(t)}else return this.getById(t)}getSizes(){const t=[];for(let r=Hi;rthis.length-1)throw new RangeError("Index of bundle out of range");const r=64+64*t;return Tt.encode(this.binary.subarray(r,r+32))}async toTransaction(t,r,n){const a=await r.createTransaction({data:this.binary,...t},n);return a.addTag("Bundle-Format","binary"),a.addTag("Bundle-Version","2.0.0"),a}async verify(){for(const t of this.items){const r=await t.isValid(),n=Tt(Na.createHash("sha256").update(t.rawSignature).digest());if(!(r&&t.id===n))return!1}return!0}getOffset(t){let r=0;for(let n=Hi;n{const l=i.isSigned()?i.rawId:await rv(i,t),c=new Uint8Array(64);return c.set($6(i.getRaw().byteLength),0),c.set(l,32),r.set(c,64*f),i.getRaw()})).then(i=>Te.Buffer.concat(i)),a=Te.Buffer.concat([Te.Buffer.from($6(e.length)),Te.Buffer.from(r),n]);return new tv(a)}async function HR(e,t){const r=await q6(e),n=await t.sign(r),a=await vn().hash(n);return{signature:Te.Buffer.from(n),id:Te.Buffer.from(a)}}async function rv(e,t){const{signature:r,id:n}=await HR(e,t);return e.getRaw().set(r,2),n}function KR(e,t,r){var U,V;const n=t.publicKey,a=r!=null&&r.target?Tt.toBuffer(r.target):null,i=1+((a==null?void 0:a.byteLength)??0),f=r!=null&&r.anchor?Te.Buffer.from(r.anchor):null,l=1+((f==null?void 0:f.byteLength)??0),c=(((U=r==null?void 0:r.tags)==null?void 0:U.length)??0)>0?$R(r==null?void 0:r.tags):null,m=16+(c?c.byteLength:0),g=Te.Buffer.from(e),_=g.byteLength,S=2+t.signatureLength+t.ownerLength+i+l+m+_,M=Te.Buffer.alloc(S);if(M.set(zR(t.signatureType),0),M.set(new Uint8Array(t.signatureLength).fill(0),2),n.byteLength!==t.ownerLength)throw new Error(`Owner must be ${t.ownerLength} bytes, but was incorrectly ${n.byteLength}`);M.set(n,2+t.signatureLength);const P=2+t.signatureLength+t.ownerLength;if(M[P]=a?1:0,a){if(a.byteLength!==32)throw new Error(`Target must be 32 bytes but was incorrectly ${a.byteLength}`);M.set(a,P+1)}const I=P+i;let B=I+1;if(M[I]=f?1:0,f){if(B+=f.byteLength,f.byteLength!==32)throw new Error("Anchor must be 32 bytes");M.set(f,I+1)}M.set(z6(((V=r==null?void 0:r.tags)==null?void 0:V.length)??0),B);const R=z6((c==null?void 0:c.byteLength)??0);M.set(R,B+8),c&&M.set(c,B+16);const A=B+m;return M.set(g,A),new Eo(M)}class dJ{constructor(){Pe(this,"signatureType");Pe(this,"rawSignature");Pe(this,"signature");Pe(this,"signatureLength");Pe(this,"rawOwner");Pe(this,"owner");Pe(this,"ownerLength");Pe(this,"rawTarget");Pe(this,"target");Pe(this,"rawAnchor");Pe(this,"anchor");Pe(this,"rawTags");Pe(this,"tags");Pe(this,"rawData");Pe(this,"data")}static async verify(...t){throw new Error("You must implement `verify`")}}const pJ=Object.freeze(Object.defineProperty({__proto__:null,AVSCTap:J7,AlgorandSigner:aJ,AptosSigner:fJ,ArconnectSigner:uJ,Arweave:FA,ArweaveSigner:I7,Bundle:tv,BundleItem:dJ,CryptoDriver:UA,Curve25519:kl,DataItem:Eo,EthereumSigner:Pd,HexInjectedSolanaSigner:FR,HexSolanaSigner:oJ,InjectedAptosSigner:UR,InjectedEthereumSigner:AR,InjectedSolanaSigner:ZA,InjectedTypedEthereumSigner:sJ,MAX_TAG_BYTES:ev,MIN_BINARY_SIZE:Q7,MultiSignatureAptosSigner:jR,NearSigner:iJ,PolygonSigner:nJ,Rsa4096:jA,SIG_CONFIG:Ut,get SignatureConfig(){return pt},Signer:Yj,SolanaSigner:Z7,TypedEthereumSigner:qR,bundleAndSignData:hJ,byteArrayToLong:vr,get concatBuffers(){return so},createData:KR,deepHash:Il,deserializeTags:lh,exportForTesting:rJ,getCryptoDriver:vn,getSignatureAndId:HR,indexToType:Y7,keccak256:nl,longTo16ByteArray:lJ,longTo32ByteArray:$6,longTo8ByteArray:z6,longToNByteArray:Nl,secp256k1:DR,serializeTags:$R,shortTo2ByteArray:zR,sign:rv,get stringToBuffer(){return kr},unbundleData:cJ},Symbol.toStringTag,{value:"Module"}));async function fx(e){const t=WR(e);let r=(await t.next()).value;r=await Qr(t,r,32);const n=vr(r.subarray(0,32));r=r.subarray(32);const a=64*n;r=await Qr(t,r,a);const i=new Array(n);for(let c=0;cG)J.write(r.subarray(0,G)),r=r.subarray(G);else{let d=r.byteLength;for(J.write(r);G>d;){if(r=(await t.next()).value,!r)throw new Error(`Not enough data bytes expected: ${G} received: ${d}`);d+=r.byteLength,d>G?J.write(r.subarray(0,r.byteLength-(d-G))):J.write(r)}r=r.subarray(r.byteLength-(d-G))}if(J.end(),m!==Tt(Na.createHash("sha256").update(P).digest()))throw new Error("ID doesn't match signature");if(!await Y7[g].verify(I,await te,P))throw new Error("Invalid signature");l.push({id:m,sigName:M,signature:Tt(Te.Buffer.from(P)),target:Tt(Te.Buffer.from(R)),anchor:Tt(Te.Buffer.from(U)),owner:Tt(Te.Buffer.from(I)),tags:K,dataOffset:f+ee,dataSize:G}),f+=ee+G}return l}async function GR(e,t,r,n){const a=KR("",r,n),i=new Nh.PassThrough,f=[kr("dataitem"),kr("1"),kr(a.signatureType.toString()),a.rawOwner,a.rawTarget,a.rawAnchor,a.rawTags,e],l=await Il(f),c=Te.Buffer.from(await r.sign(l));return a.setSignature(c),i.write(a.getRaw()),t.pipe(i)}async function Qr(e,t,r){if(t.byteLength>=r)return t;const{done:n,value:a}=await e.next();if(n&&!a)throw new Error("Invalid buffer");return Qr(e,Te.Buffer.concat([Te.Buffer.from(t),Te.Buffer.from(a)]),r)}async function*WR(e){for await(const t of e)yield t}const vJ={readBytes:Qr,getReader:WR},gJ=Object.freeze(Object.defineProperty({__proto__:null,default:fx,processStream:fx,streamExportForTesting:vJ,streamSigner:GR},Symbol.toStringTag,{value:"Module"})),yJ={...pJ,stream:gJ};globalThis.arbundles??(globalThis.arbundles=yJ);var wc={},nv={};Object.defineProperty(nv,"__esModule",{value:!0});const mJ=yA;class bJ{constructor(){Pe(this,"BigNum");this.BigNum=(t,r)=>{let n=mJ.BigNumber.clone({DECIMAL_PLACES:r});return new n(t)}}winstonToAr(t,{formatted:r=!1,decimals:n=12,trim:a=!0}={}){let i=this.stringToBigNum(t,n).shiftedBy(-12);return r?i.toFormat(n):i.toFixed(n)}arToWinston(t,{formatted:r=!1}={}){let n=this.stringToBigNum(t).shiftedBy(12);return r?n.toFormat():n.toFixed(0)}compare(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.comparedTo(a)}isEqual(t,r){return this.compare(t,r)===0}isLessThan(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.isLessThan(a)}isGreaterThan(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.isGreaterThan(a)}add(t,r){let n=this.stringToBigNum(t);return this.stringToBigNum(r),n.plus(r).toFixed(0)}sub(t,r){let n=this.stringToBigNum(t);return this.stringToBigNum(r),n.minus(r).toFixed(0)}stringToBigNum(t,r=12){return this.BigNum(t,r)}}nv.default=bJ;var iv={};Object.defineProperty(iv,"__esModule",{value:!0});class xJ{constructor(t){Pe(this,"METHOD_GET","GET");Pe(this,"METHOD_POST","POST");Pe(this,"config");this.applyConfig(t)}applyConfig(t){this.config=this.mergeDefaults(t)}getConfig(){return this.config}mergeDefaults(t){const r=t.protocol||"http",n=t.port||(r==="https"?443:80);return{host:t.host||"127.0.0.1",protocol:r,port:n,timeout:t.timeout||2e4,logging:t.logging||!1,logger:t.logger||console.log,network:t.network}}async get(t,r){return await this.request(t,{...r,method:this.METHOD_GET})}async post(t,r,n){var i;const a=new Headers((n==null?void 0:n.headers)||{});return(i=a.get("content-type"))!=null&&i.includes("application/json")||a.append("content-type","application/json"),a.append("accept","application/json, text/plain, */*"),await this.request(t,{...n,method:this.METHOD_POST,body:typeof r!="string"?JSON.stringify(r):r,headers:a})}async request(t,r){var _;const n=new Headers((r==null?void 0:r.headers)||{}),a=`${this.config.protocol}://${this.config.host}:${this.config.port}`,i=r==null?void 0:r.responseType;r==null||delete r.responseType,t.startsWith("/")&&(t=t.slice(1)),this.config.network&&n.append("x-network",this.config.network),this.config.logging&&this.config.logger(`Requesting: ${a}/${t}`);let f=await fetch(`${a}/${t}`,{...r||{},headers:n});this.config.logging&&this.config.logger(`Response: ${f.url} - ${f.status}`);const l=f.headers.get("content-type"),c=(_=l==null?void 0:l.match(/charset=([^()<>@,;:\"/[\]?.=\s]*)/i))==null?void 0:_[1],m=f,g=async()=>{if(c)try{m.data=new TextDecoder(c).decode(await f.arrayBuffer())}catch{m.data=await f.text()}else m.data=await f.text()};if(i==="arraybuffer")m.data=await f.arrayBuffer();else if(i==="text")await g();else if(i==="webstream")m.data=wJ(f.body);else try{let S=await f.clone().json();typeof S!="object"?await g():m.data=await f.json(),S=null}catch{await g()}return m}}iv.default=xJ;const wJ=e=>{const t=e;return typeof t[Symbol.asyncIterator]>"u"?(t[Symbol.asyncIterator]=_J(e),t):e},_J=function(e){return async function*(){const r=e.getReader();try{for(;;){const{done:n,value:a}=await r.read();if(n)return;yield a}}finally{r.releaseLock()}}};var av={},Js={},SJ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),EJ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),CJ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&SJ(t,e,r);return EJ(t,e),t};Object.defineProperty(Js,"__esModule",{value:!0});Js.jwkTopem=Js.pemTojwk=void 0;const qa=CJ(Tl);function MJ(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ov(e){return MJ(Te.Buffer.from(e,"hex").toString("base64"))}var VR=qa.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),ZR=qa.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),AJ=qa.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(ZR),this.key("publicKey").bitstr())}),XR=qa.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),RJ=qa.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),YR=qa.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(XR),this.key("n").int(),this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(RJ))}),TJ=qa.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(XR),this.key("algorithm").use(ZR),this.key("privateKey").bitstr())});function JR(e,t){return t=t||{},Object.keys(t).forEach(function(r){e[r]=t[r]}),e}function fv(e){return e.length%2===1?"0"+e:e}function QR(e,t){var r=VR.decode(e,"der"),n=fv(r.e.toString(16)),a={kty:"RSA",n:eo(r.n),e:ov(n)};return JR(a,t)}function eT(e,t){var r=YR.decode(e,"der"),n=fv(r.e.toString(16)),a={kty:"RSA",n:eo(r.n),e:ov(n),d:eo(r.d),p:eo(r.p),q:eo(r.q),dp:eo(r.dp),dq:eo(r.dq),qi:eo(r.qi)};return JR(a,t)}function PJ(e,t){var r=AJ.decode(e,"der");return QR(r.publicKey.data,t)}function OJ(e,t){var r=TJ.decode(e,"der");return eT(r.privateKey.data,t)}function kJ(e){var t=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(e);if(!t)return null;var r=!!t[1],n=t[2]==="PRIVATE";return n?r?eT:OJ:r?QR:PJ}function IJ(e){return{n:Xa(e.n),e:Xa(e.e),d:e.d&&Xa(e.d),p:e.p&&Xa(e.p),q:e.q&&Xa(e.q),dp:e.dp&&Xa(e.dp),dq:e.dq&&Xa(e.dq),qi:e.qi&&Xa(e.qi)}}function eo(e){return ov(fv(e.toString(16)))}function BJ(e){return new qa.bignum(Te.Buffer.from(e,"base64"))}function Xa(e){return/^[0-9]+$/.test(e)?new qa.bignum(e,10):BJ(e)}function LJ(e,t){var r=e.toString().split(/(\r\n|\r|\n)+/g);r=r.filter(function(a){return a.trim().length!==0});var n=kJ(r[0]);return r=r.slice(1,-1).join(""),n(Te.Buffer.from(r.replace(/[^\w\d\+\/=]+/g,""),"base64"),t)}Js.pemTojwk=LJ;function NJ(e){var t=IJ(e),r=!!t.d,n=r?"PRIVATE":"PUBLIC",a="-----BEGIN RSA "+n+` KEY----- +nonce: bundlr`),Te.Buffer.from(a))}}class jR{constructor(t,r){Pe(this,"_publicKey");Pe(this,"ownerLength",Ut[pt.MULTIAPTOS].pubLength);Pe(this,"signatureLength",Ut[pt.MULTIAPTOS].sigLength);Pe(this,"signatureType",pt.MULTIAPTOS);Pe(this,"collectSignatures");Pe(this,"provider");this._publicKey=t,this.collectSignatures=r}get publicKey(){return this._publicKey}async sign(t){const{signatures:r,bitmap:n}=await this.collectSignatures(t),a=128,i=new Uint8Array([0,0,0,0]),f=new Set;n.forEach(m=>{if(m>=32)throw new Error(`Invalid bit value ${m}.`);if(f.has(m))throw new Error("Duplicated bits detected.");f.add(m);const g=Math.floor(m/8);let _=i[g];_|=a>>m%8,i[g]=_});const l=Te.Buffer.alloc(this.signatureLength);let c=0;for(let m=0;m<32;m++)i.includes(m)&&l.set(r[c++],m*64);return l.set(i,this.signatureLength-4),l}static async verify(t,r,n){const i=Ut[pt.MULTIAPTOS].sigLength-4,f=n.slice(0,i),l=n.slice(i);let c=!1;for(let m=0;m<32;m++){const g=Math.floor(m/8),_=m-g*8;if((l[g]&128>>_)!==0){const M=f.slice(m*64,(m+1)*64),P=t.slice(m*32,(m+1)*32);await wd(Te.Buffer.from(M),Te.Buffer.from(r),Te.Buffer.from(P))||(c=!0)}}return!c}}class qR extends Pd{constructor(r){super(r);Pe(this,"ownerLength",Ut[pt.TYPEDETHEREUM].pubLength);Pe(this,"signatureLength",Ut[pt.TYPEDETHEREUM].sigLength);Pe(this,"signatureType",pt.TYPEDETHEREUM);Pe(this,"address");Pe(this,"signer");this.address="0x"+nl(super.publicKey.slice(1)).slice(-20).toString("hex"),this.signer=new uo(r)}get publicKey(){return Te.Buffer.from(this.address)}async sign(r){const n=await this.signer._signTypedData(sh,uh,{address:this.address,"Transaction hash":r});return Te.Buffer.from(n.slice(2),"hex")}static async verify(r,n,a){const i=r.toString(),f=MR(sh,uh,{address:i,"Transaction hash":n},a);return i.toLowerCase()===f.toLowerCase()}}const sh={name:"Bundlr",version:"1"},uh={Bundlr:[{name:"Transaction hash",type:"bytes"},{name:"address",type:"address"}]};class sJ extends AR{constructor(){super(...arguments);Pe(this,"ownerLength",Ut[pt.TYPEDETHEREUM].pubLength);Pe(this,"signatureLength",Ut[pt.TYPEDETHEREUM].sigLength);Pe(this,"signatureType",pt.TYPEDETHEREUM);Pe(this,"address")}async ready(){this.address=(await this.signer.getAddress()).toString().toLowerCase(),this.publicKey=Te.Buffer.from(this.address)}async sign(r){const n=await this.signer._signTypedData(sh,uh,{address:this.address,"Transaction hash":r});return Te.Buffer.from(n.slice(2),"hex")}static verify(r,n,a){const i=r.toString(),f=MR(sh,uh,{address:i,"Transaction hash":n},a);return i.toLowerCase()===f.toLowerCase()}}class uJ{constructor(t){Pe(this,"signer");Pe(this,"publicKey");Pe(this,"ownerLength",Ut[pt.ARWEAVE].pubLength);Pe(this,"signatureLength",Ut[pt.ARWEAVE].sigLength);Pe(this,"signatureType",pt.ARWEAVE);this.signer=t}async setPublicKey(){const t=await this.signer.getActivePublicKey();this.publicKey=Tt.toBuffer(t)}async sign(t){this.publicKey||await this.setPublicKey();const r={name:"RSA-PSS",saltLength:32},n=await this.signer.signature(t,r);return new Uint8Array(Object.values(n))}static async verify(t,r,n){return await FA.crypto.verify(t,r,n)}}const Y7={1:I7,2:kl,3:Pd,4:FR,5:UR,6:jR,7:qR};async function q6(e){return Il([kr("dataitem"),kr("1"),kr(e.signatureType.toString()),e.rawOwner,e.rawTarget,e.rawAnchor,e.rawTags,e.rawData])}function Nl(e,t){const r=new Uint8Array(e);if(t<0)throw new Error("Array is unsigned, cannot represent -ve numbers");if(t>2**(e*8)-1)throw new Error(`Number ${t} is too large for an array of ${e} bytes`);for(let n=0;n=0;r--)t=t*256+e[r];return t}class J7{constructor(t=Te.Buffer.alloc(ev),r=0){Pe(this,"buf");Pe(this,"pos");this.buf=t,this.pos=r}writeTags(t){if(!Array.isArray(t))throw new Error("input must be array");const r=t.length;let n;if(r)for(this.writeLong(r),n=0;nthis.buf.length)throw new Error(`Too many tag bytes (${this.pos} > ${this.buf.length})`);return this.buf.copy(t,0,0,this.pos),t}writeLong(t){const r=this.buf;let n,a;if(t>=-1073741824&&t<1073741824){a=t>=0?t<<1:~t<<1|1;do r[this.pos]=a&127,a>>=7;while(a&&(r[this.pos++]|=128))}else{n=t>=0?t*2:-t*2-1;do r[this.pos]=n&127,n/=128;while(n>=1&&(r[this.pos++]|=128))}this.pos++,this.buf=r}writeString(t){const r=Te.Buffer.byteLength(t),n=this.buf;this.writeLong(r);let a=this.pos;if(this.pos+=r,!(this.pos>n.length)){if(r>64)this.buf.write(t,this.pos-r,r,"utf8");else{let i,f,l,c;for(i=0,f=r;i>6|192,n[a++]=l&63|128):(l&64512)===55296&&((c=t.charCodeAt(i+1))&64512)===56320?(l=65536+((l&1023)<<10)+(c&1023),i++,n[a++]=l>>18|240,n[a++]=l>>12&63|128,n[a++]=l>>6&63|128,n[a++]=l&63|128):(n[a++]=l>>12|224,n[a++]=l>>6&63|128,n[a++]=l&63|128)}this.buf=n}}readLong(){let t=0,r=0;const n=this.buf;let a,i,f,l;do a=n[this.pos++],i=a&128,t|=(a&127)<>1^-(t&1)}skipLong(){const t=this.buf;for(;t[this.pos++]&128;);}readTags(){const t=[];let r;for(;r=this.readLong();)for(r<0&&(r=-r,this.skipLong());r--;){const n=this.readString(),a=this.readString();t.push({name:n,value:a})}return t}readString(){const t=this.readLong(),r=this.pos,n=this.buf;if(this.pos+=t,this.pos>n.length)throw new Error("TAP Position out of range");return this.buf.slice(r,r+t).toString()}}function $R(e){if((e==null?void 0:e.length)===0)return Te.Buffer.allocUnsafe(0);const t=new J7;return t.writeTags(e),t.toBuffer()}function lh(e){return new J7(e).readTags()}const Q7=80,ev=4096;class Eo{constructor(t){Pe(this,"binary");Pe(this,"_id");this.binary=t}static isDataItem(t){return t.binary!==void 0}get signatureType(){const t=vr(this.binary.subarray(0,2));if((pt==null?void 0:pt[t])!==void 0)return t;throw new Error("Unknown signature type: "+t)}async isValid(){return Eo.verify(this.binary)}get id(){return Tt.encode(this.rawId)}set id(t){this._id=Tt.toBuffer(t)}get rawId(){return Na.createHash("sha256").update(this.rawSignature).digest()}set rawId(t){this._id=t}get rawSignature(){return this.binary.subarray(2,2+this.signatureLength)}get signature(){return Tt.encode(this.rawSignature)}set rawOwner(t){if(t.byteLength!=this.ownerLength)throw new Error(`Expected raw owner (pubkey) to be ${this.ownerLength} bytes, got ${t.byteLength} bytes.`);this.binary.set(t,2+this.signatureLength)}get rawOwner(){return this.binary.subarray(2+this.signatureLength,2+this.signatureLength+this.ownerLength)}get signatureLength(){return Ut[this.signatureType].sigLength}get owner(){return Tt.encode(this.rawOwner)}get ownerLength(){return Ut[this.signatureType].pubLength}get rawTarget(){const t=this.getTargetStart();return this.binary[t]==1?this.binary.subarray(t+1,t+33):Te.Buffer.alloc(0)}get target(){return Tt.encode(this.rawTarget)}get rawAnchor(){const t=this.getAnchorStart();return this.binary[t]==1?this.binary.subarray(t+1,t+33):Te.Buffer.alloc(0)}get anchor(){return this.rawAnchor.toString()}get rawTags(){const t=this.getTagsStart(),r=vr(this.binary.subarray(t+8,t+16));return this.binary.subarray(t+16,t+16+r)}get tags(){const t=this.getTagsStart();if(vr(this.binary.subarray(t,t+8))==0)return[];const n=vr(this.binary.subarray(t+8,t+16));return lh(Te.Buffer.from(this.binary.subarray(t+16,t+16+n)))}get tagsB64Url(){return this.tags.map(r=>({name:Tt.encode(r.name),value:Tt.encode(r.value)}))}getStartOfData(){const t=this.getTagsStart(),r=this.binary.subarray(t+8,t+16),n=vr(r);return t+16+n}get rawData(){const t=this.getTagsStart(),r=this.binary.subarray(t+8,t+16),n=vr(r),a=t+16+n;return this.binary.subarray(a,this.binary.length)}get data(){return Tt.encode(this.rawData)}getRaw(){return this.binary}async sign(t){return this._id=await rv(this,t),this.rawId}async setSignature(t){this.binary.set(t,2),this._id=Te.Buffer.from(await vn().hash(t))}isSigned(){var t;return(((t=this._id)==null?void 0:t.length)??0)>0}toJSON(){return{signature:this.signature,owner:this.owner,target:this.target,tags:this.tags.map(t=>({name:Tt.encode(t.name),value:Tt.encode(t.value)})),data:this.data}}static async verify(t){if(t.byteLengthev)return!1;if(i>0)try{if(lh(Te.Buffer.from(t.subarray(a+16,a+16+l))).length!==i)return!1}catch{return!1}const c=Y7[n],m=await q6(r);return await c.verify(r.rawOwner,m,r.rawSignature)}async getSignatureData(){return q6(this)}getTagsStart(){const t=this.getTargetStart(),r=this.binary[t]==1;let n=t+(r?33:1);const a=this.binary[n]==1;return n+=a?33:1,n}getTargetStart(){return 2+this.signatureLength+this.ownerLength}getAnchorStart(){let t=this.getTargetStart()+1;const r=this.binary[this.getTargetStart()]==1;return t+=r?32:0,t}}const Hi=32;class tv{constructor(t){Pe(this,"length");Pe(this,"items");Pe(this,"binary");this.binary=t,this.length=this.getDataItemCount(),this.items=this.getItems()}getRaw(){return this.binary}get(t){if(typeof t=="number"){if(t>=this.length)throw new RangeError("Index out of range");return this.getByIndex(t)}else return this.getById(t)}getSizes(){const t=[];for(let r=Hi;rthis.length-1)throw new RangeError("Index of bundle out of range");const r=64+64*t;return Tt.encode(this.binary.subarray(r,r+32))}async toTransaction(t,r,n){const a=await r.createTransaction({data:this.binary,...t},n);return a.addTag("Bundle-Format","binary"),a.addTag("Bundle-Version","2.0.0"),a}async verify(){for(const t of this.items){const r=await t.isValid(),n=Tt(Na.createHash("sha256").update(t.rawSignature).digest());if(!(r&&t.id===n))return!1}return!0}getOffset(t){let r=0;for(let n=Hi;n{const l=i.isSigned()?i.rawId:await rv(i,t),c=new Uint8Array(64);return c.set($6(i.getRaw().byteLength),0),c.set(l,32),r.set(c,64*f),i.getRaw()})).then(i=>Te.Buffer.concat(i)),a=Te.Buffer.concat([Te.Buffer.from($6(e.length)),Te.Buffer.from(r),n]);return new tv(a)}async function HR(e,t){const r=await q6(e),n=await t.sign(r),a=await vn().hash(n);return{signature:Te.Buffer.from(n),id:Te.Buffer.from(a)}}async function rv(e,t){const{signature:r,id:n}=await HR(e,t);return e.getRaw().set(r,2),n}function KR(e,t,r){var F,V;const n=t.publicKey,a=r!=null&&r.target?Tt.toBuffer(r.target):null,i=1+((a==null?void 0:a.byteLength)??0),f=r!=null&&r.anchor?Te.Buffer.from(r.anchor):null,l=1+((f==null?void 0:f.byteLength)??0),c=(((F=r==null?void 0:r.tags)==null?void 0:F.length)??0)>0?$R(r==null?void 0:r.tags):null,m=16+(c?c.byteLength:0),g=Te.Buffer.from(e),_=g.byteLength,S=2+t.signatureLength+t.ownerLength+i+l+m+_,M=Te.Buffer.alloc(S);if(M.set(zR(t.signatureType),0),M.set(new Uint8Array(t.signatureLength).fill(0),2),n.byteLength!==t.ownerLength)throw new Error(`Owner must be ${t.ownerLength} bytes, but was incorrectly ${n.byteLength}`);M.set(n,2+t.signatureLength);const P=2+t.signatureLength+t.ownerLength;if(M[P]=a?1:0,a){if(a.byteLength!==32)throw new Error(`Target must be 32 bytes but was incorrectly ${a.byteLength}`);M.set(a,P+1)}const I=P+i;let B=I+1;if(M[I]=f?1:0,f){if(B+=f.byteLength,f.byteLength!==32)throw new Error("Anchor must be 32 bytes");M.set(f,I+1)}M.set(z6(((V=r==null?void 0:r.tags)==null?void 0:V.length)??0),B);const R=z6((c==null?void 0:c.byteLength)??0);M.set(R,B+8),c&&M.set(c,B+16);const A=B+m;return M.set(g,A),new Eo(M)}class dJ{constructor(){Pe(this,"signatureType");Pe(this,"rawSignature");Pe(this,"signature");Pe(this,"signatureLength");Pe(this,"rawOwner");Pe(this,"owner");Pe(this,"ownerLength");Pe(this,"rawTarget");Pe(this,"target");Pe(this,"rawAnchor");Pe(this,"anchor");Pe(this,"rawTags");Pe(this,"tags");Pe(this,"rawData");Pe(this,"data")}static async verify(...t){throw new Error("You must implement `verify`")}}const pJ=Object.freeze(Object.defineProperty({__proto__:null,AVSCTap:J7,AlgorandSigner:aJ,AptosSigner:fJ,ArconnectSigner:uJ,Arweave:FA,ArweaveSigner:I7,Bundle:tv,BundleItem:dJ,CryptoDriver:UA,Curve25519:kl,DataItem:Eo,EthereumSigner:Pd,HexInjectedSolanaSigner:FR,HexSolanaSigner:oJ,InjectedAptosSigner:UR,InjectedEthereumSigner:AR,InjectedSolanaSigner:ZA,InjectedTypedEthereumSigner:sJ,MAX_TAG_BYTES:ev,MIN_BINARY_SIZE:Q7,MultiSignatureAptosSigner:jR,NearSigner:iJ,PolygonSigner:nJ,Rsa4096:jA,SIG_CONFIG:Ut,get SignatureConfig(){return pt},Signer:Yj,SolanaSigner:Z7,TypedEthereumSigner:qR,bundleAndSignData:hJ,byteArrayToLong:vr,get concatBuffers(){return so},createData:KR,deepHash:Il,deserializeTags:lh,exportForTesting:rJ,getCryptoDriver:vn,getSignatureAndId:HR,indexToType:Y7,keccak256:nl,longTo16ByteArray:lJ,longTo32ByteArray:$6,longTo8ByteArray:z6,longToNByteArray:Nl,secp256k1:DR,serializeTags:$R,shortTo2ByteArray:zR,sign:rv,get stringToBuffer(){return kr},unbundleData:cJ},Symbol.toStringTag,{value:"Module"}));async function fx(e){const t=WR(e);let r=(await t.next()).value;r=await Qr(t,r,32);const n=vr(r.subarray(0,32));r=r.subarray(32);const a=64*n;r=await Qr(t,r,a);const i=new Array(n);for(let c=0;cG)J.write(r.subarray(0,G)),r=r.subarray(G);else{let d=r.byteLength;for(J.write(r);G>d;){if(r=(await t.next()).value,!r)throw new Error(`Not enough data bytes expected: ${G} received: ${d}`);d+=r.byteLength,d>G?J.write(r.subarray(0,r.byteLength-(d-G))):J.write(r)}r=r.subarray(r.byteLength-(d-G))}if(J.end(),m!==Tt(Na.createHash("sha256").update(P).digest()))throw new Error("ID doesn't match signature");if(!await Y7[g].verify(I,await te,P))throw new Error("Invalid signature");l.push({id:m,sigName:M,signature:Tt(Te.Buffer.from(P)),target:Tt(Te.Buffer.from(R)),anchor:Tt(Te.Buffer.from(F)),owner:Tt(Te.Buffer.from(I)),tags:K,dataOffset:f+ee,dataSize:G}),f+=ee+G}return l}async function GR(e,t,r,n){const a=KR("",r,n),i=new Nh.PassThrough,f=[kr("dataitem"),kr("1"),kr(a.signatureType.toString()),a.rawOwner,a.rawTarget,a.rawAnchor,a.rawTags,e],l=await Il(f),c=Te.Buffer.from(await r.sign(l));return a.setSignature(c),i.write(a.getRaw()),t.pipe(i)}async function Qr(e,t,r){if(t.byteLength>=r)return t;const{done:n,value:a}=await e.next();if(n&&!a)throw new Error("Invalid buffer");return Qr(e,Te.Buffer.concat([Te.Buffer.from(t),Te.Buffer.from(a)]),r)}async function*WR(e){for await(const t of e)yield t}const vJ={readBytes:Qr,getReader:WR},gJ=Object.freeze(Object.defineProperty({__proto__:null,default:fx,processStream:fx,streamExportForTesting:vJ,streamSigner:GR},Symbol.toStringTag,{value:"Module"})),yJ={...pJ,stream:gJ};globalThis.arbundles??(globalThis.arbundles=yJ);var wc={},nv={};Object.defineProperty(nv,"__esModule",{value:!0});const mJ=yA;class bJ{constructor(){Pe(this,"BigNum");this.BigNum=(t,r)=>{let n=mJ.BigNumber.clone({DECIMAL_PLACES:r});return new n(t)}}winstonToAr(t,{formatted:r=!1,decimals:n=12,trim:a=!0}={}){let i=this.stringToBigNum(t,n).shiftedBy(-12);return r?i.toFormat(n):i.toFixed(n)}arToWinston(t,{formatted:r=!1}={}){let n=this.stringToBigNum(t).shiftedBy(12);return r?n.toFormat():n.toFixed(0)}compare(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.comparedTo(a)}isEqual(t,r){return this.compare(t,r)===0}isLessThan(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.isLessThan(a)}isGreaterThan(t,r){let n=this.stringToBigNum(t),a=this.stringToBigNum(r);return n.isGreaterThan(a)}add(t,r){let n=this.stringToBigNum(t);return this.stringToBigNum(r),n.plus(r).toFixed(0)}sub(t,r){let n=this.stringToBigNum(t);return this.stringToBigNum(r),n.minus(r).toFixed(0)}stringToBigNum(t,r=12){return this.BigNum(t,r)}}nv.default=bJ;var iv={};Object.defineProperty(iv,"__esModule",{value:!0});class xJ{constructor(t){Pe(this,"METHOD_GET","GET");Pe(this,"METHOD_POST","POST");Pe(this,"config");this.applyConfig(t)}applyConfig(t){this.config=this.mergeDefaults(t)}getConfig(){return this.config}mergeDefaults(t){const r=t.protocol||"http",n=t.port||(r==="https"?443:80);return{host:t.host||"127.0.0.1",protocol:r,port:n,timeout:t.timeout||2e4,logging:t.logging||!1,logger:t.logger||console.log,network:t.network}}async get(t,r){return await this.request(t,{...r,method:this.METHOD_GET})}async post(t,r,n){var i;const a=new Headers((n==null?void 0:n.headers)||{});return(i=a.get("content-type"))!=null&&i.includes("application/json")||a.append("content-type","application/json"),a.append("accept","application/json, text/plain, */*"),await this.request(t,{...n,method:this.METHOD_POST,body:typeof r!="string"?JSON.stringify(r):r,headers:a})}async request(t,r){var _;const n=new Headers((r==null?void 0:r.headers)||{}),a=`${this.config.protocol}://${this.config.host}:${this.config.port}`,i=r==null?void 0:r.responseType;r==null||delete r.responseType,t.startsWith("/")&&(t=t.slice(1)),this.config.network&&n.append("x-network",this.config.network),this.config.logging&&this.config.logger(`Requesting: ${a}/${t}`);let f=await fetch(`${a}/${t}`,{...r||{},headers:n});this.config.logging&&this.config.logger(`Response: ${f.url} - ${f.status}`);const l=f.headers.get("content-type"),c=(_=l==null?void 0:l.match(/charset=([^()<>@,;:\"/[\]?.=\s]*)/i))==null?void 0:_[1],m=f,g=async()=>{if(c)try{m.data=new TextDecoder(c).decode(await f.arrayBuffer())}catch{m.data=await f.text()}else m.data=await f.text()};if(i==="arraybuffer")m.data=await f.arrayBuffer();else if(i==="text")await g();else if(i==="webstream")m.data=wJ(f.body);else try{let S=await f.clone().json();typeof S!="object"?await g():m.data=await f.json(),S=null}catch{await g()}return m}}iv.default=xJ;const wJ=e=>{const t=e;return typeof t[Symbol.asyncIterator]>"u"?(t[Symbol.asyncIterator]=_J(e),t):e},_J=function(e){return async function*(){const r=e.getReader();try{for(;;){const{done:n,value:a}=await r.read();if(n)return;yield a}}finally{r.releaseLock()}}};var av={},Js={},SJ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),EJ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),CJ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&SJ(t,e,r);return EJ(t,e),t};Object.defineProperty(Js,"__esModule",{value:!0});Js.jwkTopem=Js.pemTojwk=void 0;const qa=CJ(Tl);function MJ(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ov(e){return MJ(Te.Buffer.from(e,"hex").toString("base64"))}var VR=qa.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),ZR=qa.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),AJ=qa.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(ZR),this.key("publicKey").bitstr())}),XR=qa.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),RJ=qa.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),YR=qa.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(XR),this.key("n").int(),this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(RJ))}),TJ=qa.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(XR),this.key("algorithm").use(ZR),this.key("privateKey").bitstr())});function JR(e,t){return t=t||{},Object.keys(t).forEach(function(r){e[r]=t[r]}),e}function fv(e){return e.length%2===1?"0"+e:e}function QR(e,t){var r=VR.decode(e,"der"),n=fv(r.e.toString(16)),a={kty:"RSA",n:eo(r.n),e:ov(n)};return JR(a,t)}function eT(e,t){var r=YR.decode(e,"der"),n=fv(r.e.toString(16)),a={kty:"RSA",n:eo(r.n),e:ov(n),d:eo(r.d),p:eo(r.p),q:eo(r.q),dp:eo(r.dp),dq:eo(r.dq),qi:eo(r.qi)};return JR(a,t)}function PJ(e,t){var r=AJ.decode(e,"der");return QR(r.publicKey.data,t)}function OJ(e,t){var r=TJ.decode(e,"der");return eT(r.privateKey.data,t)}function kJ(e){var t=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(e);if(!t)return null;var r=!!t[1],n=t[2]==="PRIVATE";return n?r?eT:OJ:r?QR:PJ}function IJ(e){return{n:Xa(e.n),e:Xa(e.e),d:e.d&&Xa(e.d),p:e.p&&Xa(e.p),q:e.q&&Xa(e.q),dp:e.dp&&Xa(e.dp),dq:e.dq&&Xa(e.dq),qi:e.qi&&Xa(e.qi)}}function eo(e){return ov(fv(e.toString(16)))}function BJ(e){return new qa.bignum(Te.Buffer.from(e,"base64"))}function Xa(e){return/^[0-9]+$/.test(e)?new qa.bignum(e,10):BJ(e)}function LJ(e,t){var r=e.toString().split(/(\r\n|\r|\n)+/g);r=r.filter(function(a){return a.trim().length!==0});var n=kJ(r[0]);return r=r.slice(1,-1).join(""),n(Te.Buffer.from(r.replace(/[^\w\d\+\/=]+/g,""),"base64"),t)}Js.pemTojwk=LJ;function NJ(e){var t=IJ(e),r=!!t.d,n=r?"PRIVATE":"PUBLIC",a="-----BEGIN RSA "+n+` KEY----- `,i=` -----END RSA `+n+` KEY----- `,f=Te.Buffer.alloc(0);r?(t.version="two-prime",f=YR.encode(t,"der")):f=VR.encode(t,"der");var l=f.toString("base64").match(/.{1,64}/g).join(` -`);return a+l+i}Js.jwkTopem=NJ;var DJ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),FJ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),UJ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&DJ(t,e,r);return FJ(t,e),t};Object.defineProperty(av,"__esModule",{value:!0});const sx=Js,qn=UJ(c7());class jJ{constructor(){Pe(this,"keyLength",4096);Pe(this,"publicExponent",65537);Pe(this,"hashAlgorithm","sha256");Pe(this,"encryptionAlgorithm","aes-256-cbc")}generateJWK(){if(typeof qn.generateKeyPair!="function")throw new Error("Keypair generation not supported in this version of Node, only supported in versions 10+");return new Promise((t,r)=>{qn.generateKeyPair("rsa",{modulusLength:this.keyLength,publicExponent:this.publicExponent,privateKeyEncoding:{type:"pkcs1",format:"pem"},publicKeyEncoding:{type:"pkcs1",format:"pem"}},(n,a,i)=>{n&&r(n),t(this.pemToJWK(i))})})}sign(t,r,{saltLength:n}={}){return new Promise((a,i)=>{a(qn.createSign(this.hashAlgorithm).update(r).sign({key:this.jwkToPem(t),padding:qn.constants.RSA_PKCS1_PSS_PADDING,saltLength:n}))})}verify(t,r,n){return new Promise((a,i)=>{const f={kty:"RSA",e:"AQAB",n:t},l=this.jwkToPem(f);a(qn.createVerify(this.hashAlgorithm).update(r).verify({key:l,padding:qn.constants.RSA_PKCS1_PSS_PADDING},n))})}hash(t,r="SHA-256"){if(typeof t=="string")throw new TypeError("Data must be a Uint8Array");return new Promise((n,a)=>{n(qn.createHash(this.parseHashAlgorithm(r)).update(t).digest())})}async encrypt(t,r,n){const a=qn.pbkdf2Sync(r,n=n||"salt",1e5,32,this.hashAlgorithm),i=qn.randomBytes(16),f=qn.createCipheriv(this.encryptionAlgorithm,a,i);return Te.Buffer.concat([i,f.update(t),f.final()])}async decrypt(t,r,n){try{const a=qn.pbkdf2Sync(r,n=n||"salt",1e5,32,this.hashAlgorithm),i=t.slice(0,16),f=t.slice(16),l=qn.createDecipheriv(this.encryptionAlgorithm,a,i);return Te.Buffer.concat([l.update(f),l.final()])}catch{throw new Error("Failed to decrypt")}}jwkToPem(t){return(0,sx.jwkTopem)(t)}pemToJWK(t){return(0,sx.pemTojwk)(t)}parseHashAlgorithm(t){switch(t){case"SHA-256":return"sha256";case"SHA-384":return"sha384";default:throw new Error(`Algorithm not supported: ${t}`)}}}av.default=jJ;var sv={};Object.defineProperty(sv,"__esModule",{value:!0});class qJ{constructor(t){Pe(this,"api");this.api=t}getInfo(){return this.api.get("info").then(t=>t.data)}getPeers(){return this.api.get("peers").then(t=>t.data)}}sv.default=qJ;var _c={},qo={};Object.defineProperty(qo,"__esModule",{value:!0});qo.getError=void 0;class zJ extends Error{constructor(r,n={}){var t=(...args)=>{super(...args);Pe(this,"type");Pe(this,"response")};n.message?t(n.message):t(),this.type=r,this.response=n.response}getType(){return this.type}}qo.default=zJ;function $J(e){let t=e.data;if(typeof e.data=="string")try{t=JSON.parse(e.data)}catch{}if(e.data instanceof ArrayBuffer||e.data instanceof Uint8Array)try{t=JSON.parse(t.toString())}catch{}return t?t.error||t:e.statusText||"unknown"}qo.getError=$J;var $f={},_t={},HJ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),KJ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),GJ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&HJ(t,e,r);return KJ(t,e),t};Object.defineProperty(_t,"__esModule",{value:!0});_t.b64UrlDecode=_t.b64UrlEncode=fT=_t.bufferTob64Url=_t.bufferTob64=_t.b64UrlToBuffer=_t.stringToB64Url=_t.stringToBuffer=_t.bufferToString=_t.b64UrlToString=_t.concatBuffers=void 0;const tT=GJ(r0);function WJ(e){let t=0;for(let a=0;a=e.MAX_CHUNK_SIZE;){let ee=e.MAX_CHUNK_SIZE,G=J.byteLength-e.MAX_CHUNK_SIZE;G>0&&G({type:"leaf",id:await B(await Promise.all([B(K),B(R(te))])),dataHash:K,minByteRange:J,maxByteRange:te})))}e.generateLeaves=l;async function c(N){return(await m(N)).id}e.computeRootHash=c;async function m(N){return await _(await l(await f(N)))}e.generateTree=m;async function g(N){const K=await f(N),J=await l(K),te=await _(J),ee=await S(te),G=K.slice(-1)[0];return G.maxByteRange-G.minByteRange===0&&(K.splice(K.length-1,1),ee.splice(ee.length-1,1)),{data_root:te.id,chunks:K,proofs:ee}}e.generateTransactionChunks=g;async function _(N,K=0){if(N.length<2)return N[0];const J=[];for(let te=0;te{Array.isArray(J)?K.push(...P(J)):K.push(J)}),K}e.arrayFlatten=P;async function I(N,K){return K?{type:"branch",id:await B([await B(N.id),await B(K.id),await B(R(N.maxByteRange))]),byteRange:N.maxByteRange,maxByteRange:K.maxByteRange,leftChild:N,rightChild:K}:N}async function B(N){return Array.isArray(N)&&(N=r.default.utils.concatBuffers(N)),new Uint8Array(await r.default.crypto.hash(N))}function R(N){const K=new Uint8Array(a);for(var J=K.length-1;J>=0;J--){var te=N%256;K[J]=te,N=(N-te)/256}return K}e.intToBuffer=R;function A(N){let K=0;for(var J=0;JN.every((J,te)=>K[te]===J);e.arrayCompare=U;async function V(N,K,J,te,ee){if(te<=0)return!1;if(K>=te)return V(N,0,te-1,te,ee);if(K<0)return V(N,0,0,te,ee);if(ee.length==i+a){const y=ee.slice(0,i),x=ee.slice(y.length,y.length+a),w=await B([await B(y),await B(x)]);return(0,e.arrayCompare)(N,w)?{offset:te-1,leftBound:J,rightBound:te,chunkSize:te-J}:!1}const G=ee.slice(0,i),E=ee.slice(G.length,G.length+i),d=ee.slice(G.length+E.length,G.length+E.length+a),o=A(d),u=ee.slice(G.length+E.length+d.length),p=await B([await B(G),await B(E),await B(d)]);return(0,e.arrayCompare)(N,p)?K ${JSON.stringify(d)}`;return j(E,o)}e.debug=j}(Ip)),Ip}var cx;function uv(){if(cx)return $f;cx=1;var e=Oe&&Oe.__createBinding||(Object.create?function(g,_,S,M){M===void 0&&(M=S);var P=Object.getOwnPropertyDescriptor(_,S);(!P||("get"in P?!_.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return _[S]}}),Object.defineProperty(g,M,P)}:function(g,_,S,M){M===void 0&&(M=S),g[M]=_[S]}),t=Oe&&Oe.__setModuleDefault||(Object.create?function(g,_){Object.defineProperty(g,"default",{enumerable:!0,value:_})}:function(g,_){g.default=_}),r=Oe&&Oe.__importStar||function(g){if(g&&g.__esModule)return g;var _={};if(g!=null)for(var S in g)S!=="default"&&Object.prototype.hasOwnProperty.call(g,S)&&e(_,g,S);return t(_,g),_},n=Oe&&Oe.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty($f,"__esModule",{value:!0}),$f.Tag=void 0;const a=r(_t),i=n(XJ()),f=lT();class l{get(_,S){if(!Object.getOwnPropertyNames(this).includes(_))throw new Error(`Field "${_}" is not a property of the Arweave Transaction class.`);if(this[_]instanceof Uint8Array)return S&&S.decode&&S.string?a.bufferToString(this[_]):S&&S.decode&&!S.string?this[_]:a.bufferTob64Url(this[_]);if(this[_]instanceof Array){if((S==null?void 0:S.decode)!==void 0||(S==null?void 0:S.string)!==void 0)throw _==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[_]}return S&&S.decode==!0?S&&S.string?a.b64UrlToString(this[_]):a.b64UrlToBuffer(this[_]):this[_]}}class c extends l{constructor(S,M,P=!1){super();Pe(this,"name");Pe(this,"value");this.name=S,this.value=M}}$f.Tag=c;class m extends l{constructor(S={}){super();Pe(this,"format",2);Pe(this,"id","");Pe(this,"last_tx","");Pe(this,"owner","");Pe(this,"tags",[]);Pe(this,"target","");Pe(this,"quantity","0");Pe(this,"data_size","0");Pe(this,"data",new Uint8Array);Pe(this,"data_root","");Pe(this,"reward","0");Pe(this,"signature","");Pe(this,"chunks");Object.assign(this,S),typeof this.data=="string"&&(this.data=a.b64UrlToBuffer(this.data)),S.tags&&(this.tags=S.tags.map(M=>new c(M.name,M.value)))}addTag(S,M){this.tags.push(new c(a.stringToB64Url(S),a.stringToB64Url(M)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:a.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(S){this.owner=S}setSignature({id:S,owner:M,reward:P,tags:I,signature:B}){this.id=S,this.owner=M,P&&(this.reward=P),I&&(this.tags=I),this.signature=B}async prepareChunks(S){!this.chunks&&S.byteLength>0&&(this.chunks=await(0,f.generateTransactionChunks)(S),this.data_root=a.bufferTob64Url(this.chunks.data_root)),!this.chunks&&S.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(S,M){if(!this.chunks)throw new Error("Chunks have not been prepared");const P=this.chunks.proofs[S],I=this.chunks.chunks[S];return{data_root:this.data_root,data_size:this.data_size,data_path:a.bufferTob64Url(P.proof),offset:P.offset.toString(),chunk:a.bufferTob64Url(M.slice(I.minByteRange,I.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let S=this.tags.reduce((P,I)=>a.concatBuffers([P,I.get("name",{decode:!0,string:!1}),I.get("value",{decode:!0,string:!1})]),new Uint8Array);return a.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),a.stringToBuffer(this.quantity),a.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),S]);case 2:this.data_root||await this.prepareChunks(this.data);const M=this.tags.map(P=>[P.get("name",{decode:!0,string:!1}),P.get("value",{decode:!0,string:!1})]);return await(0,i.default)([a.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),a.stringToBuffer(this.quantity),a.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),M,a.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}}return $f.default=m,$f}var z0={},hx;function YJ(){if(hx)return z0;hx=1;var e=Oe&&Oe.__createBinding||(Object.create?function(S,M,P,I){I===void 0&&(I=P);var B=Object.getOwnPropertyDescriptor(M,P);(!B||("get"in B?!M.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return M[P]}}),Object.defineProperty(S,I,B)}:function(S,M,P,I){I===void 0&&(I=P),S[I]=M[P]}),t=Oe&&Oe.__setModuleDefault||(Object.create?function(S,M){Object.defineProperty(S,"default",{enumerable:!0,value:M})}:function(S,M){S.default=M}),r=Oe&&Oe.__importStar||function(S){if(S&&S.__esModule)return S;var M={};if(S!=null)for(var P in S)P!=="default"&&Object.prototype.hasOwnProperty.call(S,P)&&e(M,S,P);return t(M,S),M},n=Oe&&Oe.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(z0,"__esModule",{value:!0}),z0.TransactionUploader=void 0;const a=n(uv()),i=r(_t),f=qo,l=lT(),c=1,m=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],g=1e3*40;class _{constructor(M,P){Pe(this,"api");Pe(this,"chunkIndex",0);Pe(this,"txPosted",!1);Pe(this,"transaction");Pe(this,"lastRequestTimeEnd",0);Pe(this,"totalErrors",0);Pe(this,"data");Pe(this,"lastResponseStatus",0);Pe(this,"lastResponseError","");if(this.api=M,!P.id)throw new Error("Transaction is not signed");if(!P.chunks)throw new Error("Transaction chunks not prepared");this.data=P.data,this.transaction=new a.default(Object.assign({},P,{data:new Uint8Array(0)}))}get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}async uploadChunk(M){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let P=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+g-Date.now(),g);if(P>0&&(P=P-P*Math.random()*.3,await new Promise(A=>setTimeout(A,P))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}M&&(this.chunkIndex=M);const I=this.transaction.getChunk(M||this.chunkIndex,this.data);if(!await(0,l.validatePath)(this.transaction.chunks.data_root,parseInt(I.offset),0,parseInt(I.data_size),i.b64UrlToBuffer(I.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);const R=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(A=>(console.error(A.message),{status:-1,data:{error:A.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=R.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,f.getError)(R),m.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(M,P,I){if(!P||typeof P.chunkIndex!="number"||typeof P.transaction!="object")throw new Error("Serialized object does not match expected format.");var B=new a.default(P.transaction);B.chunks||await B.prepareChunks(I);const R=new _(M,B);if(R.chunkIndex=P.chunkIndex,R.lastRequestTimeEnd=P.lastRequestTimeEnd,R.lastResponseError=P.lastResponseError,R.lastResponseStatus=P.lastResponseStatus,R.txPosted=P.txPosted,R.data=I,R.transaction.data_root!==P.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return R}static async fromTransactionId(M,P){const I=await M.get(`tx/${P}`);if(I.status!==200)throw new Error(`Tx ${P} not found: ${I.status}`);const B=I.data;return B.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:B}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=c){this.transaction.data=this.data;const I=await this.api.post("tx",this.transaction).catch(B=>(console.error(B),{status:-1,data:{error:B.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=I.status,this.transaction.data=new Uint8Array(0),I.status>=200&&I.status<300){this.txPosted=!0,this.chunkIndex=c;return}throw this.lastResponseError=(0,f.getError)(I),new Error(`Unable to upload transaction: ${I.status}, ${this.lastResponseError}`)}const P=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=P.status,!(P.status>=200&&P.status<300))throw this.lastResponseError=(0,f.getError)(P),new Error(`Unable to upload transaction: ${P.status}, ${this.lastResponseError}`);this.txPosted=!0}}return z0.TransactionUploader=_,z0}var dx;function JJ(){if(dx)return _c;dx=1;var e=Oe&&Oe.__createBinding||(Object.create?function(m,g,_,S){S===void 0&&(S=_);var M=Object.getOwnPropertyDescriptor(g,_);(!M||("get"in M?!g.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return g[_]}}),Object.defineProperty(m,S,M)}:function(m,g,_,S){S===void 0&&(S=_),m[S]=g[_]}),t=Oe&&Oe.__setModuleDefault||(Object.create?function(m,g){Object.defineProperty(m,"default",{enumerable:!0,value:g})}:function(m,g){m.default=g}),r=Oe&&Oe.__importStar||function(m){if(m&&m.__esModule)return m;var g={};if(m!=null)for(var _ in m)_!=="default"&&Object.prototype.hasOwnProperty.call(m,_)&&e(g,m,_);return t(g,m),g},n=Oe&&Oe.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(_c,"__esModule",{value:!0});const a=n(qo),i=n(uv()),f=r(_t),l=YJ();class c{constructor(g,_,S){Pe(this,"api");Pe(this,"crypto");Pe(this,"chunks");this.api=g,this.crypto=_,this.chunks=S}async getTransactionAnchor(){const g=await this.api.get("tx_anchor");if(!g.data.match(/^[a-z0-9_-]{43,}/i)||!g.ok)throw new Error(`Could not getTransactionAnchor. Received: ${g.data}. Status: ${g.status}, ${g.statusText}`);return g.data}async getPrice(g,_){let S=_?`price/${g}/${_}`:`price/${g}`;const M=await this.api.get(S);if(!/^\d+$/.test(M.data)||!M.ok)throw new Error(`Could not getPrice. Received: ${M.data}. Status: ${M.status}, ${M.statusText}`);return M.data}async get(g){const _=await this.api.get(`tx/${g}`);if(_.status==200){const S=parseInt(_.data.data_size);if(_.data.format>=2&&S>0&&S<=1024*1024*12){const M=await this.getData(g);return new i.default({..._.data,data:M})}return new i.default({..._.data,format:_.data.format||1})}throw _.status==404?new a.default("TX_NOT_FOUND"):_.status==410?new a.default("TX_FAILED"):new a.default("TX_INVALID")}fromRaw(g){return new i.default(g)}async search(g,_){return this.api.post("arql",{op:"equals",expr1:g,expr2:_}).then(S=>S.data?S.data:[])}getStatus(g){return this.api.get(`tx/${g}/status`).then(_=>_.status==200?{status:200,confirmed:_.data}:{status:_.status,confirmed:null})}async getData(g,_){let S;try{S=await this.chunks.downloadChunkedData(g)}catch(M){console.error(`Error while trying to download chunked data for ${g}`),console.error(M)}if(!S){console.warn(`Falling back to gateway cache for ${g}`);try{const{data:M,ok:P,status:I,statusText:B}=await this.api.get(`/${g}`,{responseType:"arraybuffer"});if(!P)throw new Error("Bad http status code",{cause:{status:I,statusText:B}});S=M}catch(M){console.error(`Error while trying to download contiguous data from gateway cache for ${g}`),console.error(M)}}if(!S)throw new Error(`${g} data was not found!`);return _&&_.decode&&!_.string?S:_&&_.decode&&_.string?f.bufferToString(S):f.bufferTob64Url(S)}async sign(g,_,S){const P=typeof _=="object"&&(B=>{let R=!0;return["n","e","d","p","q","dp","dq","qi"].map(A=>!(A in B)&&(R=!1)),R})(_),I=typeof arweaveWallet=="object";if(!P&&!I)throw new Error("No valid JWK or external wallet found to sign transaction.");if(P){g.setOwner(_.n);let B=await g.getSignatureData(),R=await this.crypto.sign(_,B,S),A=await this.crypto.hash(R);g.setSignature({id:f.bufferTob64Url(A),owner:_.n,signature:f.bufferTob64Url(R)})}else if(I){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}const B=await arweaveWallet.sign(g,S);g.setSignature({id:B.id,owner:B.owner,reward:B.reward,tags:B.tags,signature:B.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(g){const _=await g.getSignatureData(),S=g.get("signature",{decode:!0,string:!1}),M=f.bufferTob64Url(await this.crypto.hash(S));if(g.id!==M)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(g.owner,_,S)}async post(g){if(typeof g=="string"?g=new i.default(JSON.parse(g)):typeof g.readInt32BE=="function"?g=new i.default(JSON.parse(g.toString())):typeof g=="object"&&!(g instanceof i.default)&&(g=new i.default(g)),!(g instanceof i.default))throw new Error("Must be Transaction object");g.chunks||await g.prepareChunks(g.data);const _=await this.getUploader(g,g.data);try{for(;!_.isComplete;)await _.uploadChunk()}catch(S){if(_.lastResponseStatus>0)return{status:_.lastResponseStatus,statusText:_.lastResponseError,data:{error:_.lastResponseError}};throw S}return{status:200,statusText:"OK",data:{}}}async getUploader(g,_){let S;if(_ instanceof ArrayBuffer&&(_=new Uint8Array(_)),g instanceof i.default){if(_||(_=g.data),!(_ instanceof Uint8Array))throw new Error("Data format is invalid");g.chunks||await g.prepareChunks(_),S=new l.TransactionUploader(this.api,g),(!S.data||S.data.length===0)&&(S.data=_)}else{if(typeof g=="string"&&(g=await l.TransactionUploader.fromTransactionId(this.api,g)),!_||!(_ instanceof Uint8Array))throw new Error("Must provide data when resuming upload");S=await l.TransactionUploader.fromSerialized(this.api,g,_)}return S}async*upload(g,_){const S=await this.getUploader(g,_);for(;!S.isComplete;)await S.uploadChunk(),yield S;return S}}return _c.default=c,_c}var lv={},QJ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),eQ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),tQ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&QJ(t,e,r);return eQ(t,e),t};Object.defineProperty(lv,"__esModule",{value:!0});const px=tQ(_t);class rQ{constructor(t,r){Pe(this,"api");Pe(this,"crypto");this.api=t,this.crypto=r}getBalance(t){return this.api.get(`wallet/${t}/balance`).then(r=>r.data)}getLastTransactionID(t){return this.api.get(`wallet/${t}/last_tx`).then(r=>r.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(t){return!t||t==="use_wallet"?this.getAddress():this.getAddress(t)}async getAddress(t){if(!t||t==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(t.n)}async ownerToAddress(t){return px.bufferTob64Url(await this.crypto.hash(px.b64UrlToBuffer(t)))}}lv.default=rQ;var Dl={},nQ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),iQ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),aQ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&nQ(t,e,r);return iQ(t,e),t};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.SiloResource=void 0;const vx=aQ(_t);class oQ{constructor(t,r,n){Pe(this,"api");Pe(this,"crypto");Pe(this,"transactions");this.api=t,this.crypto=r,this.transactions=n}async get(t){if(!t)throw new Error("No Silo URI specified");const r=await this.parseUri(t),n=await this.transactions.search("Silo-Name",r.getAccessKey());if(n.length==0)throw new Error(`No data could be found for the Silo URI: ${t}`);const a=await this.transactions.get(n[0]);if(!a)throw new Error(`No data could be found for the Silo URI: ${t}`);const i=a.get("data",{decode:!0,string:!1});return this.crypto.decrypt(i,r.getEncryptionKey())}async readTransactionData(t,r){if(!r)throw new Error("No Silo URI specified");const n=await this.parseUri(r),a=t.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,n.getEncryptionKey())}async parseUri(t){const r=t.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!r)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");const n=r[1],a=Math.pow(2,parseInt(r[2])),i=await this.hash(vx.stringToBuffer(n),a),f=vx.bufferTob64(i.slice(0,15)),l=await this.hash(i.slice(16,31),1);return new cT(t,f,l)}async hash(t,r){let n=await this.crypto.hash(t);for(let a=0;aU.data||[])}};Pe(B,"init"),Pe(B,"crypto",new f.default),Pe(B,"utils",_);let I=B;return wc.default=I,wc}var dQ=Oe&&Oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const K6=dQ(dv());K6.default.init=function(e={}){return new K6.default(e)};var pQ=K6.default;const vQ=Nr(pQ);function gQ(e){return fT(e)}class yQ{constructor({privateKey:t,logger:r}){this.privateKey=t,this.logger=r,this.signer=new I7(this.privateKey)}async signDataItem({fileStreamFactory:t,fileSizeFactory:r}){this.logger.debug("Signing data item...");const[n,a]=[t(),t()],i=await GR(n,a,this.signer);this.logger.debug("Successfully signed data item...");const f=this.calculateSignedDataHeadersSize({dataSize:r()});return{dataItemStreamFactory:()=>i,dataItemSizeFactory:()=>f}}async generateSignedRequestHeaders(){const t=Na.randomBytes(16).toString("hex"),r=Te.Buffer.from(t),n=await vQ.crypto.sign(this.privateKey,r);return{"x-public-key":this.privateKey.n,"x-nonce":t,"x-signature":gQ(Te.Buffer.from(n))}}calculateSignedDataHeadersSize({dataSize:t}){return[1,1,0,512,512,2,8,8,t].reduce((g,_)=>g+=_)}}class bx extends VE{static authenticated({privateKey:t,paymentServiceConfig:r={},uploadServiceConfig:n={}}){const a=new yQ({privateKey:t,logger:this.logger}),i=new Gj({...r,signer:a,logger:this.logger}),f=new Wj({...n,signer:a,logger:this.logger});return new Vj({uploadService:f,paymentService:i})}}const G6="https://payment.ardrive.io",mQ="https://ardrive.io/tos-and-privacy/",bQ=10;function xQ(e,t){const[r,n]=Or.useState(e);return Or.useEffect(()=>{const a=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(a)}},[e,t]),r}async function wQ(e,t){const n=await(await fetch(`${G6}/v1/top-up/checkout-session/${t}/usd/${e*100}?destinationAddressType=email`)).json();return console.log("data",n),n}function _Q({errorCallback:e}){var R;const[t,r]=Or.useState(""),[n,a]=Or.useState(!1),i=Or.useRef(null),[f,l]=Or.useState(bQ),c=xQ(f,500),m=A=>{l(Number(Number(A.target.value).toFixed(2)))},[g,_]=Or.useState(void 0),S=Or.useRef(void 0),[M,P]=Or.useState(void 0);Or.useEffect(()=>{bx.unauthenticated({paymentServiceConfig:{url:G6}}).getFiatRates().then(({winc:U})=>{P(U)})},[]),Or.useEffect(()=>{(async U=>{const V=bx.unauthenticated({paymentServiceConfig:{url:G6}}),{winc:j}=await V.getWincForFiat({amount:Xj(U),promoCodes:[]});return j})(c).then(U=>{_(U)}).catch(U=>{console.error(U),e(`Error getting credits for USD amount: ${U.message}`)}),S.current=c},[c,e]);const I=!!g&&!!t&&!!n&&((R=i.current)==null?void 0:R.checkValidity()),B=A=>{A.preventDefault(),I&&wQ(f,t).then(U=>{const V=U.paymentSession.url;window.location.href=V})};return Xe.jsxs("form",{className:"gift-form",children:[Xe.jsx("h1",{children:"Gift Credits to a friend."}),Xe.jsxs("div",{className:"form-section",children:[Xe.jsx("label",{className:"form-label",children:"USD amount*"}),Xe.jsxs("div",{id:"usd-form-input",children:[Xe.jsx("span",{id:"dollar-sign",children:"$"}),Xe.jsx("input",{type:"number",id:"usd-input",value:f,onChange:m,required:!0})]})]}),g&&Xe.jsx("div",{children:M&&Xe.jsxs("div",{id:"conversions",children:["$",Xe.jsx("span",{className:"conversion-amount",children:S.current})," ","≈"," ",Xe.jsx("span",{className:"conversion-amount",children:(Number(g)/1e12).toFixed(4)}),"Credits ≈"," ",Xe.jsx("span",{className:"conversion-amount",children:(Number(g)/Number(M)).toFixed(2)}),"GiB"]})}),Xe.jsxs("div",{className:"form-section",children:[Xe.jsx("label",{className:"form-label",children:"Recipient email address*"}),Xe.jsx("input",{type:"email",className:"form-input",id:"recipient-email",placeholder:"Enter the recipient's email address here",value:t,ref:i,required:!0,onChange:A=>{r(A.target.value)}})]}),Xe.jsxs("div",{className:"form-section",children:[Xe.jsx("label",{className:"form-label",children:"Gift message (optional up to 250 characters)"}),Xe.jsx("textarea",{className:"form-input",id:"gift-message",placeholder:"Enter a message to the recipient of the Turbo Credits here",maxLength:250,required:!1})]}),Xe.jsxs("div",{className:"terms-and-conditions",children:[Xe.jsx("input",{type:"checkbox",id:"terms-and-conditions-checkbox",name:"terms-and-conditions-checkbox",value:"terms-and-conditions-checkbox",required:!0,onChange:A=>{a(A.target.checked)}}),Xe.jsxs("span",{children:["I Agree to the",Xe.jsx("a",{href:mQ,children:"Terms of Service and Privacy Policy"}),"."]})]}),Xe.jsx("button",{type:"submit",id:"gift-form-submit-button",onClick:A=>B(A),disabled:!I,children:"Proceed to Checkout"})]})}function SQ(){const[e,t]=Or.useState(void 0);return Xe.jsxs(Xe.Fragment,{children:[Xe.jsx($O,{}),e&&Xe.jsx("div",{className:"alert alert-danger",role:"alert",children:e}),Xe.jsx(_Q,{errorCallback:t})]})}Bp.createRoot(document.getElementById("root")).render(Xe.jsx(kT.StrictMode,{children:Xe.jsx(SQ,{})}))});export default EQ(); +`);return a+l+i}Js.jwkTopem=NJ;var DJ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),FJ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),UJ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&DJ(t,e,r);return FJ(t,e),t};Object.defineProperty(av,"__esModule",{value:!0});const sx=Js,qn=UJ(c7());class jJ{constructor(){Pe(this,"keyLength",4096);Pe(this,"publicExponent",65537);Pe(this,"hashAlgorithm","sha256");Pe(this,"encryptionAlgorithm","aes-256-cbc")}generateJWK(){if(typeof qn.generateKeyPair!="function")throw new Error("Keypair generation not supported in this version of Node, only supported in versions 10+");return new Promise((t,r)=>{qn.generateKeyPair("rsa",{modulusLength:this.keyLength,publicExponent:this.publicExponent,privateKeyEncoding:{type:"pkcs1",format:"pem"},publicKeyEncoding:{type:"pkcs1",format:"pem"}},(n,a,i)=>{n&&r(n),t(this.pemToJWK(i))})})}sign(t,r,{saltLength:n}={}){return new Promise((a,i)=>{a(qn.createSign(this.hashAlgorithm).update(r).sign({key:this.jwkToPem(t),padding:qn.constants.RSA_PKCS1_PSS_PADDING,saltLength:n}))})}verify(t,r,n){return new Promise((a,i)=>{const f={kty:"RSA",e:"AQAB",n:t},l=this.jwkToPem(f);a(qn.createVerify(this.hashAlgorithm).update(r).verify({key:l,padding:qn.constants.RSA_PKCS1_PSS_PADDING},n))})}hash(t,r="SHA-256"){if(typeof t=="string")throw new TypeError("Data must be a Uint8Array");return new Promise((n,a)=>{n(qn.createHash(this.parseHashAlgorithm(r)).update(t).digest())})}async encrypt(t,r,n){const a=qn.pbkdf2Sync(r,n=n||"salt",1e5,32,this.hashAlgorithm),i=qn.randomBytes(16),f=qn.createCipheriv(this.encryptionAlgorithm,a,i);return Te.Buffer.concat([i,f.update(t),f.final()])}async decrypt(t,r,n){try{const a=qn.pbkdf2Sync(r,n=n||"salt",1e5,32,this.hashAlgorithm),i=t.slice(0,16),f=t.slice(16),l=qn.createDecipheriv(this.encryptionAlgorithm,a,i);return Te.Buffer.concat([l.update(f),l.final()])}catch{throw new Error("Failed to decrypt")}}jwkToPem(t){return(0,sx.jwkTopem)(t)}pemToJWK(t){return(0,sx.pemTojwk)(t)}parseHashAlgorithm(t){switch(t){case"SHA-256":return"sha256";case"SHA-384":return"sha384";default:throw new Error(`Algorithm not supported: ${t}`)}}}av.default=jJ;var sv={};Object.defineProperty(sv,"__esModule",{value:!0});class qJ{constructor(t){Pe(this,"api");this.api=t}getInfo(){return this.api.get("info").then(t=>t.data)}getPeers(){return this.api.get("peers").then(t=>t.data)}}sv.default=qJ;var _c={},qo={};Object.defineProperty(qo,"__esModule",{value:!0});qo.getError=void 0;class zJ extends Error{constructor(r,n={}){var t=(...args)=>{super(...args);Pe(this,"type");Pe(this,"response")};n.message?t(n.message):t(),this.type=r,this.response=n.response}getType(){return this.type}}qo.default=zJ;function $J(e){let t=e.data;if(typeof e.data=="string")try{t=JSON.parse(e.data)}catch{}if(e.data instanceof ArrayBuffer||e.data instanceof Uint8Array)try{t=JSON.parse(t.toString())}catch{}return t?t.error||t:e.statusText||"unknown"}qo.getError=$J;var $f={},_t={},HJ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),KJ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),GJ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&HJ(t,e,r);return KJ(t,e),t};Object.defineProperty(_t,"__esModule",{value:!0});_t.b64UrlDecode=_t.b64UrlEncode=fT=_t.bufferTob64Url=_t.bufferTob64=_t.b64UrlToBuffer=_t.stringToB64Url=_t.stringToBuffer=_t.bufferToString=_t.b64UrlToString=_t.concatBuffers=void 0;const tT=GJ(r0);function WJ(e){let t=0;for(let a=0;a=e.MAX_CHUNK_SIZE;){let ee=e.MAX_CHUNK_SIZE,G=J.byteLength-e.MAX_CHUNK_SIZE;G>0&&G({type:"leaf",id:await B(await Promise.all([B(K),B(R(te))])),dataHash:K,minByteRange:J,maxByteRange:te})))}e.generateLeaves=l;async function c(N){return(await m(N)).id}e.computeRootHash=c;async function m(N){return await _(await l(await f(N)))}e.generateTree=m;async function g(N){const K=await f(N),J=await l(K),te=await _(J),ee=await S(te),G=K.slice(-1)[0];return G.maxByteRange-G.minByteRange===0&&(K.splice(K.length-1,1),ee.splice(ee.length-1,1)),{data_root:te.id,chunks:K,proofs:ee}}e.generateTransactionChunks=g;async function _(N,K=0){if(N.length<2)return N[0];const J=[];for(let te=0;te{Array.isArray(J)?K.push(...P(J)):K.push(J)}),K}e.arrayFlatten=P;async function I(N,K){return K?{type:"branch",id:await B([await B(N.id),await B(K.id),await B(R(N.maxByteRange))]),byteRange:N.maxByteRange,maxByteRange:K.maxByteRange,leftChild:N,rightChild:K}:N}async function B(N){return Array.isArray(N)&&(N=r.default.utils.concatBuffers(N)),new Uint8Array(await r.default.crypto.hash(N))}function R(N){const K=new Uint8Array(a);for(var J=K.length-1;J>=0;J--){var te=N%256;K[J]=te,N=(N-te)/256}return K}e.intToBuffer=R;function A(N){let K=0;for(var J=0;JN.every((J,te)=>K[te]===J);e.arrayCompare=F;async function V(N,K,J,te,ee){if(te<=0)return!1;if(K>=te)return V(N,0,te-1,te,ee);if(K<0)return V(N,0,0,te,ee);if(ee.length==i+a){const y=ee.slice(0,i),x=ee.slice(y.length,y.length+a),w=await B([await B(y),await B(x)]);return(0,e.arrayCompare)(N,w)?{offset:te-1,leftBound:J,rightBound:te,chunkSize:te-J}:!1}const G=ee.slice(0,i),E=ee.slice(G.length,G.length+i),d=ee.slice(G.length+E.length,G.length+E.length+a),o=A(d),u=ee.slice(G.length+E.length+d.length),p=await B([await B(G),await B(E),await B(d)]);return(0,e.arrayCompare)(N,p)?K ${JSON.stringify(d)}`;return j(E,o)}e.debug=j}(Ip)),Ip}var cx;function uv(){if(cx)return $f;cx=1;var e=Oe&&Oe.__createBinding||(Object.create?function(g,_,S,M){M===void 0&&(M=S);var P=Object.getOwnPropertyDescriptor(_,S);(!P||("get"in P?!_.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return _[S]}}),Object.defineProperty(g,M,P)}:function(g,_,S,M){M===void 0&&(M=S),g[M]=_[S]}),t=Oe&&Oe.__setModuleDefault||(Object.create?function(g,_){Object.defineProperty(g,"default",{enumerable:!0,value:_})}:function(g,_){g.default=_}),r=Oe&&Oe.__importStar||function(g){if(g&&g.__esModule)return g;var _={};if(g!=null)for(var S in g)S!=="default"&&Object.prototype.hasOwnProperty.call(g,S)&&e(_,g,S);return t(_,g),_},n=Oe&&Oe.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty($f,"__esModule",{value:!0}),$f.Tag=void 0;const a=r(_t),i=n(XJ()),f=lT();class l{get(_,S){if(!Object.getOwnPropertyNames(this).includes(_))throw new Error(`Field "${_}" is not a property of the Arweave Transaction class.`);if(this[_]instanceof Uint8Array)return S&&S.decode&&S.string?a.bufferToString(this[_]):S&&S.decode&&!S.string?this[_]:a.bufferTob64Url(this[_]);if(this[_]instanceof Array){if((S==null?void 0:S.decode)!==void 0||(S==null?void 0:S.string)!==void 0)throw _==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[_]}return S&&S.decode==!0?S&&S.string?a.b64UrlToString(this[_]):a.b64UrlToBuffer(this[_]):this[_]}}class c extends l{constructor(S,M,P=!1){super();Pe(this,"name");Pe(this,"value");this.name=S,this.value=M}}$f.Tag=c;class m extends l{constructor(S={}){super();Pe(this,"format",2);Pe(this,"id","");Pe(this,"last_tx","");Pe(this,"owner","");Pe(this,"tags",[]);Pe(this,"target","");Pe(this,"quantity","0");Pe(this,"data_size","0");Pe(this,"data",new Uint8Array);Pe(this,"data_root","");Pe(this,"reward","0");Pe(this,"signature","");Pe(this,"chunks");Object.assign(this,S),typeof this.data=="string"&&(this.data=a.b64UrlToBuffer(this.data)),S.tags&&(this.tags=S.tags.map(M=>new c(M.name,M.value)))}addTag(S,M){this.tags.push(new c(a.stringToB64Url(S),a.stringToB64Url(M)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:a.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(S){this.owner=S}setSignature({id:S,owner:M,reward:P,tags:I,signature:B}){this.id=S,this.owner=M,P&&(this.reward=P),I&&(this.tags=I),this.signature=B}async prepareChunks(S){!this.chunks&&S.byteLength>0&&(this.chunks=await(0,f.generateTransactionChunks)(S),this.data_root=a.bufferTob64Url(this.chunks.data_root)),!this.chunks&&S.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(S,M){if(!this.chunks)throw new Error("Chunks have not been prepared");const P=this.chunks.proofs[S],I=this.chunks.chunks[S];return{data_root:this.data_root,data_size:this.data_size,data_path:a.bufferTob64Url(P.proof),offset:P.offset.toString(),chunk:a.bufferTob64Url(M.slice(I.minByteRange,I.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let S=this.tags.reduce((P,I)=>a.concatBuffers([P,I.get("name",{decode:!0,string:!1}),I.get("value",{decode:!0,string:!1})]),new Uint8Array);return a.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),a.stringToBuffer(this.quantity),a.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),S]);case 2:this.data_root||await this.prepareChunks(this.data);const M=this.tags.map(P=>[P.get("name",{decode:!0,string:!1}),P.get("value",{decode:!0,string:!1})]);return await(0,i.default)([a.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),a.stringToBuffer(this.quantity),a.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),M,a.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}}return $f.default=m,$f}var z0={},hx;function YJ(){if(hx)return z0;hx=1;var e=Oe&&Oe.__createBinding||(Object.create?function(S,M,P,I){I===void 0&&(I=P);var B=Object.getOwnPropertyDescriptor(M,P);(!B||("get"in B?!M.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return M[P]}}),Object.defineProperty(S,I,B)}:function(S,M,P,I){I===void 0&&(I=P),S[I]=M[P]}),t=Oe&&Oe.__setModuleDefault||(Object.create?function(S,M){Object.defineProperty(S,"default",{enumerable:!0,value:M})}:function(S,M){S.default=M}),r=Oe&&Oe.__importStar||function(S){if(S&&S.__esModule)return S;var M={};if(S!=null)for(var P in S)P!=="default"&&Object.prototype.hasOwnProperty.call(S,P)&&e(M,S,P);return t(M,S),M},n=Oe&&Oe.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(z0,"__esModule",{value:!0}),z0.TransactionUploader=void 0;const a=n(uv()),i=r(_t),f=qo,l=lT(),c=1,m=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],g=1e3*40;class _{constructor(M,P){Pe(this,"api");Pe(this,"chunkIndex",0);Pe(this,"txPosted",!1);Pe(this,"transaction");Pe(this,"lastRequestTimeEnd",0);Pe(this,"totalErrors",0);Pe(this,"data");Pe(this,"lastResponseStatus",0);Pe(this,"lastResponseError","");if(this.api=M,!P.id)throw new Error("Transaction is not signed");if(!P.chunks)throw new Error("Transaction chunks not prepared");this.data=P.data,this.transaction=new a.default(Object.assign({},P,{data:new Uint8Array(0)}))}get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}async uploadChunk(M){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let P=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+g-Date.now(),g);if(P>0&&(P=P-P*Math.random()*.3,await new Promise(A=>setTimeout(A,P))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}M&&(this.chunkIndex=M);const I=this.transaction.getChunk(M||this.chunkIndex,this.data);if(!await(0,l.validatePath)(this.transaction.chunks.data_root,parseInt(I.offset),0,parseInt(I.data_size),i.b64UrlToBuffer(I.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);const R=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(A=>(console.error(A.message),{status:-1,data:{error:A.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=R.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,f.getError)(R),m.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(M,P,I){if(!P||typeof P.chunkIndex!="number"||typeof P.transaction!="object")throw new Error("Serialized object does not match expected format.");var B=new a.default(P.transaction);B.chunks||await B.prepareChunks(I);const R=new _(M,B);if(R.chunkIndex=P.chunkIndex,R.lastRequestTimeEnd=P.lastRequestTimeEnd,R.lastResponseError=P.lastResponseError,R.lastResponseStatus=P.lastResponseStatus,R.txPosted=P.txPosted,R.data=I,R.transaction.data_root!==P.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return R}static async fromTransactionId(M,P){const I=await M.get(`tx/${P}`);if(I.status!==200)throw new Error(`Tx ${P} not found: ${I.status}`);const B=I.data;return B.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:B}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=c){this.transaction.data=this.data;const I=await this.api.post("tx",this.transaction).catch(B=>(console.error(B),{status:-1,data:{error:B.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=I.status,this.transaction.data=new Uint8Array(0),I.status>=200&&I.status<300){this.txPosted=!0,this.chunkIndex=c;return}throw this.lastResponseError=(0,f.getError)(I),new Error(`Unable to upload transaction: ${I.status}, ${this.lastResponseError}`)}const P=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=P.status,!(P.status>=200&&P.status<300))throw this.lastResponseError=(0,f.getError)(P),new Error(`Unable to upload transaction: ${P.status}, ${this.lastResponseError}`);this.txPosted=!0}}return z0.TransactionUploader=_,z0}var dx;function JJ(){if(dx)return _c;dx=1;var e=Oe&&Oe.__createBinding||(Object.create?function(m,g,_,S){S===void 0&&(S=_);var M=Object.getOwnPropertyDescriptor(g,_);(!M||("get"in M?!g.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return g[_]}}),Object.defineProperty(m,S,M)}:function(m,g,_,S){S===void 0&&(S=_),m[S]=g[_]}),t=Oe&&Oe.__setModuleDefault||(Object.create?function(m,g){Object.defineProperty(m,"default",{enumerable:!0,value:g})}:function(m,g){m.default=g}),r=Oe&&Oe.__importStar||function(m){if(m&&m.__esModule)return m;var g={};if(m!=null)for(var _ in m)_!=="default"&&Object.prototype.hasOwnProperty.call(m,_)&&e(g,m,_);return t(g,m),g},n=Oe&&Oe.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(_c,"__esModule",{value:!0});const a=n(qo),i=n(uv()),f=r(_t),l=YJ();class c{constructor(g,_,S){Pe(this,"api");Pe(this,"crypto");Pe(this,"chunks");this.api=g,this.crypto=_,this.chunks=S}async getTransactionAnchor(){const g=await this.api.get("tx_anchor");if(!g.data.match(/^[a-z0-9_-]{43,}/i)||!g.ok)throw new Error(`Could not getTransactionAnchor. Received: ${g.data}. Status: ${g.status}, ${g.statusText}`);return g.data}async getPrice(g,_){let S=_?`price/${g}/${_}`:`price/${g}`;const M=await this.api.get(S);if(!/^\d+$/.test(M.data)||!M.ok)throw new Error(`Could not getPrice. Received: ${M.data}. Status: ${M.status}, ${M.statusText}`);return M.data}async get(g){const _=await this.api.get(`tx/${g}`);if(_.status==200){const S=parseInt(_.data.data_size);if(_.data.format>=2&&S>0&&S<=1024*1024*12){const M=await this.getData(g);return new i.default({..._.data,data:M})}return new i.default({..._.data,format:_.data.format||1})}throw _.status==404?new a.default("TX_NOT_FOUND"):_.status==410?new a.default("TX_FAILED"):new a.default("TX_INVALID")}fromRaw(g){return new i.default(g)}async search(g,_){return this.api.post("arql",{op:"equals",expr1:g,expr2:_}).then(S=>S.data?S.data:[])}getStatus(g){return this.api.get(`tx/${g}/status`).then(_=>_.status==200?{status:200,confirmed:_.data}:{status:_.status,confirmed:null})}async getData(g,_){let S;try{S=await this.chunks.downloadChunkedData(g)}catch(M){console.error(`Error while trying to download chunked data for ${g}`),console.error(M)}if(!S){console.warn(`Falling back to gateway cache for ${g}`);try{const{data:M,ok:P,status:I,statusText:B}=await this.api.get(`/${g}`,{responseType:"arraybuffer"});if(!P)throw new Error("Bad http status code",{cause:{status:I,statusText:B}});S=M}catch(M){console.error(`Error while trying to download contiguous data from gateway cache for ${g}`),console.error(M)}}if(!S)throw new Error(`${g} data was not found!`);return _&&_.decode&&!_.string?S:_&&_.decode&&_.string?f.bufferToString(S):f.bufferTob64Url(S)}async sign(g,_,S){const P=typeof _=="object"&&(B=>{let R=!0;return["n","e","d","p","q","dp","dq","qi"].map(A=>!(A in B)&&(R=!1)),R})(_),I=typeof arweaveWallet=="object";if(!P&&!I)throw new Error("No valid JWK or external wallet found to sign transaction.");if(P){g.setOwner(_.n);let B=await g.getSignatureData(),R=await this.crypto.sign(_,B,S),A=await this.crypto.hash(R);g.setSignature({id:f.bufferTob64Url(A),owner:_.n,signature:f.bufferTob64Url(R)})}else if(I){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}const B=await arweaveWallet.sign(g,S);g.setSignature({id:B.id,owner:B.owner,reward:B.reward,tags:B.tags,signature:B.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(g){const _=await g.getSignatureData(),S=g.get("signature",{decode:!0,string:!1}),M=f.bufferTob64Url(await this.crypto.hash(S));if(g.id!==M)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(g.owner,_,S)}async post(g){if(typeof g=="string"?g=new i.default(JSON.parse(g)):typeof g.readInt32BE=="function"?g=new i.default(JSON.parse(g.toString())):typeof g=="object"&&!(g instanceof i.default)&&(g=new i.default(g)),!(g instanceof i.default))throw new Error("Must be Transaction object");g.chunks||await g.prepareChunks(g.data);const _=await this.getUploader(g,g.data);try{for(;!_.isComplete;)await _.uploadChunk()}catch(S){if(_.lastResponseStatus>0)return{status:_.lastResponseStatus,statusText:_.lastResponseError,data:{error:_.lastResponseError}};throw S}return{status:200,statusText:"OK",data:{}}}async getUploader(g,_){let S;if(_ instanceof ArrayBuffer&&(_=new Uint8Array(_)),g instanceof i.default){if(_||(_=g.data),!(_ instanceof Uint8Array))throw new Error("Data format is invalid");g.chunks||await g.prepareChunks(_),S=new l.TransactionUploader(this.api,g),(!S.data||S.data.length===0)&&(S.data=_)}else{if(typeof g=="string"&&(g=await l.TransactionUploader.fromTransactionId(this.api,g)),!_||!(_ instanceof Uint8Array))throw new Error("Must provide data when resuming upload");S=await l.TransactionUploader.fromSerialized(this.api,g,_)}return S}async*upload(g,_){const S=await this.getUploader(g,_);for(;!S.isComplete;)await S.uploadChunk(),yield S;return S}}return _c.default=c,_c}var lv={},QJ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),eQ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),tQ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&QJ(t,e,r);return eQ(t,e),t};Object.defineProperty(lv,"__esModule",{value:!0});const px=tQ(_t);class rQ{constructor(t,r){Pe(this,"api");Pe(this,"crypto");this.api=t,this.crypto=r}getBalance(t){return this.api.get(`wallet/${t}/balance`).then(r=>r.data)}getLastTransactionID(t){return this.api.get(`wallet/${t}/last_tx`).then(r=>r.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(t){return!t||t==="use_wallet"?this.getAddress():this.getAddress(t)}async getAddress(t){if(!t||t==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(t.n)}async ownerToAddress(t){return px.bufferTob64Url(await this.crypto.hash(px.b64UrlToBuffer(t)))}}lv.default=rQ;var Dl={},nQ=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),iQ=Oe&&Oe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),aQ=Oe&&Oe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&nQ(t,e,r);return iQ(t,e),t};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.SiloResource=void 0;const vx=aQ(_t);class oQ{constructor(t,r,n){Pe(this,"api");Pe(this,"crypto");Pe(this,"transactions");this.api=t,this.crypto=r,this.transactions=n}async get(t){if(!t)throw new Error("No Silo URI specified");const r=await this.parseUri(t),n=await this.transactions.search("Silo-Name",r.getAccessKey());if(n.length==0)throw new Error(`No data could be found for the Silo URI: ${t}`);const a=await this.transactions.get(n[0]);if(!a)throw new Error(`No data could be found for the Silo URI: ${t}`);const i=a.get("data",{decode:!0,string:!1});return this.crypto.decrypt(i,r.getEncryptionKey())}async readTransactionData(t,r){if(!r)throw new Error("No Silo URI specified");const n=await this.parseUri(r),a=t.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,n.getEncryptionKey())}async parseUri(t){const r=t.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!r)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");const n=r[1],a=Math.pow(2,parseInt(r[2])),i=await this.hash(vx.stringToBuffer(n),a),f=vx.bufferTob64(i.slice(0,15)),l=await this.hash(i.slice(16,31),1);return new cT(t,f,l)}async hash(t,r){let n=await this.crypto.hash(t);for(let a=0;aF.data||[])}};Pe(B,"init"),Pe(B,"crypto",new f.default),Pe(B,"utils",_);let I=B;return wc.default=I,wc}var dQ=Oe&&Oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const K6=dQ(dv());K6.default.init=function(e={}){return new K6.default(e)};var pQ=K6.default;const vQ=Nr(pQ);function gQ(e){return fT(e)}class yQ{constructor({privateKey:t,logger:r}){this.privateKey=t,this.logger=r,this.signer=new I7(this.privateKey)}async signDataItem({fileStreamFactory:t,fileSizeFactory:r}){this.logger.debug("Signing data item...");const[n,a]=[t(),t()],i=await GR(n,a,this.signer);this.logger.debug("Successfully signed data item...");const f=this.calculateSignedDataHeadersSize({dataSize:r()});return{dataItemStreamFactory:()=>i,dataItemSizeFactory:()=>f}}async generateSignedRequestHeaders(){const t=Na.randomBytes(16).toString("hex"),r=Te.Buffer.from(t),n=await vQ.crypto.sign(this.privateKey,r);return{"x-public-key":this.privateKey.n,"x-nonce":t,"x-signature":gQ(Te.Buffer.from(n))}}calculateSignedDataHeadersSize({dataSize:t}){return[1,1,0,512,512,2,8,8,t].reduce((g,_)=>g+=_)}}class bx extends VE{static authenticated({privateKey:t,paymentServiceConfig:r={},uploadServiceConfig:n={}}){const a=new yQ({privateKey:t,logger:this.logger}),i=new Gj({...r,signer:a,logger:this.logger}),f=new Wj({...n,signer:a,logger:this.logger});return new Vj({uploadService:f,paymentService:i})}}const G6="https://payment.ardrive.io",mQ="https://ardrive.io/tos-and-privacy/",bQ=10;function xQ(e,t){const[r,n]=Or.useState(e);return Or.useEffect(()=>{const a=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(a)}},[e,t]),r}async function wQ(e,t){const n=await(await fetch(`${G6}/v1/top-up/checkout-session/${t}/usd/${e*100}?destinationAddressType=email`)).json();return console.log("data",n),n}function _Q({errorCallback:e}){var R;const[t,r]=Or.useState(""),[n,a]=Or.useState(!1),i=Or.useRef(null),[f,l]=Or.useState(bQ),c=xQ(f,500),m=A=>{const F=Number(A.target.value);if(F>1e4){l(1e4);return}if(F<0){l(0);return}l(Number(Number(A.target.value).toFixed(2)))},[g,_]=Or.useState(void 0),S=Or.useRef(void 0),[M,P]=Or.useState(void 0);Or.useEffect(()=>{bx.unauthenticated({paymentServiceConfig:{url:G6}}).getFiatRates().then(({winc:F})=>{P(F)})},[]),Or.useEffect(()=>{(async F=>{const V=bx.unauthenticated({paymentServiceConfig:{url:G6}}),{winc:j}=await V.getWincForFiat({amount:Xj(F),promoCodes:[]});return j})(c).then(F=>{_(F)}).catch(F=>{console.error(F),e(`Error getting credits for USD amount: ${F.message}`)}),S.current=c},[c,e]);const I=!!g&&!!t&&!!n&&((R=i.current)==null?void 0:R.checkValidity()),B=A=>{A.preventDefault(),I&&wQ(f,t).then(F=>{const V=F.paymentSession.url;window.location.href=V})};return Xe.jsxs("form",{className:"gift-form",children:[Xe.jsx("h1",{children:"Gift Credits to a friend."}),Xe.jsxs("div",{className:"form-section",children:[Xe.jsx("label",{className:"form-label",children:"USD amount*"}),Xe.jsxs("div",{id:"usd-form-input",children:[Xe.jsx("span",{id:"dollar-sign",children:"$".toLocaleUpperCase()}),Xe.jsx("input",{type:"number",id:"usd-input",value:f,onChange:m,required:!0,min:0,max:1e4})]})]}),g&&Xe.jsx("div",{children:M&&Xe.jsxs("div",{id:"conversions",children:["$".toLocaleUpperCase(),Xe.jsx("span",{className:"conversion-amount",children:S.current})," ","≈"," ",Xe.jsx("span",{className:"conversion-amount",children:(Number(g)/1e12).toFixed(4)}),"Credits ≈"," ",Xe.jsx("span",{className:"conversion-amount",children:(Number(g)/Number(M)).toFixed(2)}),"GiB"]})}),Xe.jsxs("div",{className:"form-section",children:[Xe.jsx("label",{className:"form-label",children:"Recipient email address*"}),Xe.jsx("input",{type:"email",className:"form-input",id:"recipient-email",placeholder:"Enter the recipient's email address here",value:t,ref:i,required:!0,onChange:A=>{r(A.target.value)}})]}),Xe.jsxs("div",{className:"form-section",children:[Xe.jsx("label",{className:"form-label",children:"Gift message (optional up to 250 characters)"}),Xe.jsx("textarea",{className:"form-input",id:"gift-message",placeholder:"Enter a message to the recipient of the Turbo Credits here",maxLength:250,required:!1})]}),Xe.jsxs("div",{className:"terms-and-conditions",children:[Xe.jsx("input",{type:"checkbox",id:"terms-and-conditions-checkbox",name:"terms-and-conditions-checkbox",value:"terms-and-conditions-checkbox",required:!0,onChange:A=>{a(A.target.checked)}}),Xe.jsxs("span",{children:["I Agree to the",Xe.jsx("a",{href:mQ,children:"Terms of Service and Privacy Policy"}),"."]})]}),Xe.jsx("button",{type:"submit",id:"gift-form-submit-button",onClick:A=>B(A),disabled:!I,children:"Proceed to Checkout"})]})}function SQ(){const[e,t]=Or.useState(void 0);return Xe.jsxs(Xe.Fragment,{children:[Xe.jsx($O,{}),e&&Xe.jsx("div",{className:"alert alert-danger",role:"alert",children:e}),Xe.jsx(_Q,{errorCallback:t})]})}Bp.createRoot(document.getElementById("root")).render(Xe.jsx(kT.StrictMode,{children:Xe.jsx(SQ,{})}))});export default EQ(); diff --git a/index.html b/index.html index 23d07a3..06a9a73 100644 --- a/index.html +++ b/index.html @@ -35,8 +35,8 @@ crossorigin /> ArDrive Turbo App - - + +