-
Notifications
You must be signed in to change notification settings - Fork 2
/
5782.b11d5e699ef85a91bd4f.js
1 lines (1 loc) · 71.8 KB
/
5782.b11d5e699ef85a91bd4f.js
1
"use strict";(self.webpackChunktimeless_frontend=self.webpackChunktimeless_frontend||[]).push([[5782],{96971:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseConnectSettings=e.getEnv=void 0;const a=n(52936);e.getEnv=()=>{var c;if("undefined"!=typeof chrome&&void 0!==(null===(c=chrome.runtime)||void 0===c?void 0:c.onConnect))return"webextension";if("undefined"!=typeof navigator){if("string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return"react-native";if(navigator.userAgent.toLowerCase().indexOf(" electron/")>-1)return"electron"}return"web"},e.parseConnectSettings=(c={})=>{var d;const o=Object.assign({popup:!0},c);let m;if("undefined"!=typeof window?m=window.__TREZOR_CONNECT_SRC:"undefined"!=typeof global&&(m=global.__TREZOR_CONNECT_SRC),"string"==typeof m&&(o.connectSrc=m,o.debug=!0),"undefined"!=typeof window&&"string"==typeof(null===(d=window.location)||void 0===d?void 0:d.search)){const E=window.location.search.split("&").find(v=>v.indexOf("trezor-connect-src")>=0);if(E){const[,v]=E.split("=");o.connectSrc=decodeURIComponent(v),o.debug=!0}}return"string"!=typeof c.env&&(o.env=(0,e.getEnv)()),(0,a.parseConnectSettings)(o)}},13058:(f,e,n)=>{var a=n(31325).default;Object.defineProperty(e,"__esModule",{value:!0}),e.clearTimeout=e.postMessage=e.init=e.dispose=e.messagePromises=e.error=e.timeout=e.initPromise=e.origin=e.instance=void 0;const s=n(97582),r=n(16260),c=n(52936),d=n(82050),o=s.__importDefault(n(93528));e.initPromise=(0,r.createDeferred)(),e.timeout=0;let m=0;e.messagePromises={},e.dispose=()=>{if(e.instance&&e.instance.parentNode)try{e.instance.parentNode.removeChild(e.instance)}catch{}e.instance=null,e.timeout=0};const h=function(){var l=a(function*(i){e.initPromise=(0,r.createDeferred)();const g=document.getElementById("trezorconnect");let O;if(g?e.instance=g:(e.instance=document.createElement("iframe"),e.instance.frameBorder="0",e.instance.width="0px",e.instance.height="0px",e.instance.style.position="absolute",e.instance.style.display="none",e.instance.style.border="0px",e.instance.style.width="0px",e.instance.style.height="0px",e.instance.id="trezorconnect"),"web"===i.env){const N=i.manifest?JSON.stringify(i.manifest):"undefined",p=`version=${i.version}&manifest=${encodeURIComponent(btoa(JSON.stringify(N)))}`;O=`${i.iframeSrc}?${p}`}else O=i.iframeSrc;e.instance.setAttribute("src",O),i.webusb&&console.warn('webusb option is deprecated. use `transports: ["WebUsbTransport"] instead`'),navigator.usb&&e.instance.setAttribute("allow","usb"),e.origin=(0,d.getOrigin)(e.instance.src),e.timeout=window.setTimeout(()=>{e.initPromise.reject(c.ERRORS.TypedError("Init_IframeTimeout"))},1e4);const A=()=>{var N,p;if(!e.instance)return void e.initPromise.reject(c.ERRORS.TypedError("Init_IframeBlocked"));try{const T=null===(N=e.instance.contentWindow)||void 0===N?void 0:N.location.origin;if(!T||"null"===T)return window.clearTimeout(e.timeout),e.error=c.ERRORS.TypedError("Init_IframeBlocked"),(0,e.dispose)(),void e.initPromise.reject(e.error)}catch{}let P;"undefined"!=typeof chrome&&chrome.runtime&&void 0!==chrome.runtime.onConnect&&(chrome.runtime.onConnect.addListener(()=>{}),P=chrome.runtime.id),null===(p=e.instance.contentWindow)||void 0===p||p.postMessage({type:c.IFRAME.INIT,payload:{settings:i,extension:P}},e.origin),e.instance.onload=null};e.instance.attachEvent?e.instance.attachEvent("onload",A):e.instance.onload=A,document.body&&(document.body.appendChild(e.instance),(()=>{if(!e.instance)throw c.ERRORS.TypedError("Init_IframeBlocked");const l=e.instance.ownerDocument,i=l.head||l.getElementsByTagName("head")[0],g=document.createElement("style");g.setAttribute("type","text/css"),g.setAttribute("id","TrezorConnectStylesheet"),g.styleSheet?(g.styleSheet.cssText=o.default,i.appendChild(g)):(g.appendChild(document.createTextNode(o.default)),i.append(g))})());try{yield e.initPromise.promise}catch(N){throw e.instance&&(e.instance.parentNode&&e.instance.parentNode.removeChild(e.instance),e.instance=null),N}finally{window.clearTimeout(e.timeout),e.timeout=0}});return function(g){return l.apply(this,arguments)}}();e.init=h,e.postMessage=(l,i=!0)=>{var g,O;if(!e.instance)throw c.ERRORS.TypedError("Init_IframeBlocked");if(i){m++,l.id=m,e.messagePromises[m]=(0,r.createDeferred)();const{promise:A}=e.messagePromises[m];return null===(g=e.instance.contentWindow)||void 0===g||g.postMessage(l,e.origin),A}return null===(O=e.instance.contentWindow)||void 0===O||O.postMessage(l,e.origin),null},e.clearTimeout=()=>{window.clearTimeout(e.timeout)}},93528:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default='.trezorconnect-container{position:fixed!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;-ms-flex-direction:column!important;flex-direction:column!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important;z-index:10000!important;width:100%!important;height:100%!important;top:0!important;left:0!important;background:rgba(0,0,0,.35)!important;overflow:auto!important;padding:20px!important;margin:0!important}.trezorconnect-container .trezorconnect-window{position:relative!important;display:block!important;width:370px!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;margin:auto!important;border-radius:3px!important;background-color:#fff!important;text-align:center!important;overflow:hidden!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head{text-align:left;padding:12px 24px!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-logo{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close{cursor:pointer!important;height:24px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close svg{fill:#757575;-webkit-transition:fill .3s ease-in-out!important;transition:fill .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close:hover svg{fill:#494949}.trezorconnect-container .trezorconnect-window .trezorconnect-body{padding:24px 24px 32px!important;background:#FBFBFB!important;border-top:1px solid #EBEBEB}.trezorconnect-container .trezorconnect-window .trezorconnect-body h3{color:#505050!important;font-size:16px!important;font-weight:500!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body p{margin:8px 0 24px!important;font-weight:400!important;color:#A9A9A9!important;font-size:12px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button{width:100%!important;padding:12px 24px!important;margin:0!important;border-radius:3px!important;font-size:14px!important;font-weight:300!important;cursor:pointer!important;background:#01B757!important;color:#fff!important;border:0!important;-webkit-transition:background-color .3s ease-in-out!important;transition:background-color .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:hover{background-color:#00AB51!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:active{background-color:#009546!important}/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0IiwiJHN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNBLHlCQUNJLFNBQUEsZ0JBQ0EsUUFBQSxzQkFDQSxRQUFBLHVCQUNBLFFBQUEsc0JBRUEsUUFBQSxlQUNBLG1CQUFBLG1CQUNBLHNCQUFBLGlCQUNBLHVCQUFBLGlCQUNBLG1CQUFBLGlCQUNBLGVBQUEsaUJBRUEsa0JBQUEsaUJBQ0Esb0JBQUEsaUJBQ0EsZUFBQSxpQkNmTSxZQUFhLGlCREFyQixRQUFTLGdCQWtCSCxNQUFBLGVBQ0EsT0FBQSxlQUNBLElBQUEsWUFDQSxLQUFBLFlBQ0EsV0FBQSwwQkFDQSxTQUFBLGVBQ0EsUUFBQSxlQUNBLE9BQUEsWUNkUiwrQ0RYRSxTQUFVLG1CQTZCQSxRQUFBLGdCQUNBLE1BQUEsZ0JBQ0EsWUFBQSxjQUFBLG1CQUFBLFdBQUEsT0FBQSxpQkFBQSxNQUFBLHFCQUNBLE9BQUEsZUNmVixjQUFlLGNEakJmLGlCQWlCRSxlQWtCWSxXQUFBLGlCQ2ZkLFNBQVUsaUJEbUJJLG1FQUNBLFdBQUEsS0NoQmQsUUFBUyxLQUFLLGVEeEJkLFFBQVMsc0JBMENTLFFBQUEsdUJBQ0EsUUFBQSxzQkNmbEIsUUFBUyxlRGlCSyxrQkE1QlosaUJBOEJvQixvQkFBQSxpQkNoQmxCLGVBQWdCLGlCRC9CWixZQWlCTixpQkFzQ1EsdUZBQ0EsaUJBQUEsRUNwQlYsYUFBYyxFRHBDVixTQUFVLEVBMkRBLEtBQUEsRUFFQSx3RkNwQmQsT0FBUSxrQkR6Q1IsT0FBUSxlQWlFTSw0RkFDQSxLQUFBLFFBQ0EsbUJBQUEsS0FBQSxJQUFBLHNCQ3BCZCxXQUFZLEtBQUssSUFBSyxzQkR3QlIsa0dBQ0EsS0FBQSxRQUVBLG1FQUNBLFFBQUEsS0FBQSxLQUFBLGVBQ0EsV0FBQSxrQkFDQSxXQUFBLElBQUEsTUFBQSxRQUVBLHNFQUNBLE1BQUEsa0JBQ0EsVUFBQSxlQ3JCZCxZQUFhLGNEd0JLLHFFQ3JCbEIsT0FBUSxJQUFJLEVBQUksZUR3QkYsWUFBQSxjQUNJLE1BQUEsa0JDdEJsQixVQUFXLGVBRWIsMEVBQ0UsTUFBTyxlQUNQLFFBQVMsS0FBSyxlQUNkLE9BQVEsWUFDUixjQUFlLGNBQ2YsVUFBVyxlQUNYLFlBQWEsY0FDYixPQUFRLGtCQUNSLFdBQVksa0JBQ1osTUFBTyxlQUNQLE9BQVEsWUFDUixtQkFBb0IsaUJBQWlCLElBQUssc0JBQzFDLFdBQVksaUJBQWlCLElBQUssc0JBRXBDLGdGQUNFLGlCQUFrQixrQkFFcEIsaUZBQ0UsaUJBQWtCIn0= */'},75782:(f,e,n)=>{var a=n(31325).default;Object.defineProperty(e,"__esModule",{value:!0});const s=n(97582),r=s.__importDefault(n(93105)),c=n(52936),d=n(72846),o=n(59309),m=n(71998),u=s.__importStar(n(13058)),E=s.__importStar(n(62450)),v=s.__importDefault(n(46321)),h=n(96971),b=new r.default,_=(0,o.initLog)("@trezor/connect");let i,l=(0,h.parseConnectSettings)();const g=()=>{const R=new E.PopupManager(l);return R.on(c.POPUP.CLOSED,S=>{u.postMessage({type:c.POPUP.CLOSED,payload:S?{error:S}:null},!1)}),R},A=()=>(b.removeAllListeners(),u.dispose(),l=(0,h.parseConnectSettings)(),i&&i.close(),Promise.resolve(void 0)),p=R=>{if(R.origin!==u.origin)return;const S=(0,c.parseMessage)(R.data),I=S.id||0;switch(_.log("handleMessage",S),S.event){case c.RESPONSE_EVENT:u.messagePromises[I]?(u.messagePromises[I].resolve({id:I,success:S.success,payload:S.payload}),delete u.messagePromises[I]):_.warn(`Unknown message id ${I}`);break;case c.DEVICE_EVENT:case c.TRANSPORT_EVENT:case c.BLOCKCHAIN_EVENT:b.emit(S.event,S),b.emit(S.type,S.payload);break;case c.UI_EVENT:if(S.type===c.IFRAME.BOOTSTRAP){u.clearTimeout();break}S.type===c.IFRAME.LOADED&&u.initPromise.resolve(),S.type===c.IFRAME.ERROR&&u.initPromise.reject(S.payload.error),b.emit(S.event,S),b.emit(S.type,S.payload);break;default:_.log("Undefined message",S.event,R)}},P=function(){var R=a(function*(S={}){var I;if(u.instance)throw c.ERRORS.TypedError("Init_AlreadyInitialized");if(l=(0,h.parseConnectSettings)(Object.assign(Object.assign({},l),S)),!l.manifest)throw c.ERRORS.TypedError("Init_ManifestMissing");(null===(I=l.transports)||void 0===I?void 0:I.length)||(l.transports=["BridgeTransport","WebUsbTransport"]),l.lazyLoad?l.lazyLoad=!1:(i||(i=g()),_.enabled=!!l.debug,window.addEventListener("message",p),window.addEventListener("unload",A),yield u.init(l))});return function(){return R.apply(this,arguments)}}(),T=function(){var R=a(function*(S){if(!u.instance&&!u.timeout){if(l=(0,h.parseConnectSettings)(l),!l.manifest)return(0,c.createErrorMessage)(c.ERRORS.TypedError("Init_ManifestMissing"));i||(i=g()),i.request();try{yield P(l)}catch(I){return i&&(["Init_IframeBlocked","Init_IframeTimeout"].includes(I.code)?i.postMessage((0,c.createUiMessage)(c.UI.IFRAME_FAILURE)):i.clear()),(0,c.createErrorMessage)(I)}}if(u.timeout)return(0,c.createErrorMessage)(c.ERRORS.TypedError("Init_ManifestMissing"));if(u.error)return(0,c.createErrorMessage)(u.error);l.popup&&i&&i.request();try{const I=yield u.postMessage({type:c.IFRAME.CALL,payload:S});return I?(!I.success&&"Device_CallInProgress"!==I.payload.code&&i&&i.unlock(),I):(i&&i.unlock(),(0,c.createErrorMessage)(c.ERRORS.TypedError("Method_NoResponse")))}catch(I){return _.error("__call error",I),i&&i.clear(),(0,c.createErrorMessage)(I)}});return function(I){return R.apply(this,arguments)}}(),U=function(){var R=a(function*(S){if("function"==typeof S.callback){const{callback:I}=S,L=function(){var z=a(function*(D){const{data:M}=D;if(M&&M.type===c.UI.LOGIN_CHALLENGE_REQUEST)try{const C=yield I();u.postMessage({event:c.UI_EVENT,type:c.UI.LOGIN_CHALLENGE_RESPONSE,payload:C})}catch(C){u.postMessage({event:c.UI_EVENT,type:c.UI.LOGIN_CHALLENGE_RESPONSE,payload:C.message})}});return function(M){return z.apply(this,arguments)}}();window.addEventListener("message",L,!1);const j=yield T(Object.assign(Object.assign({method:"requestLogin"},S),{asyncChallenge:!0,callback:null}));return window.removeEventListener("message",L),j}return T(Object.assign({method:"requestLogin"},S))});return function(I){return R.apply(this,arguments)}}(),Q=(0,d.factory)({eventEmitter:b,manifest:R=>{l=(0,h.parseConnectSettings)(Object.assign(Object.assign({},l),{manifest:R}))},init:P,call:T,requestLogin:U,uiResponse:R=>{if(!u.instance)throw c.ERRORS.TypedError("Init_NotInitialized");const{type:S,payload:I}=R;u.postMessage({event:c.UI_EVENT,type:S,payload:I})},renderWebUSBButton:R=>{(0,v.default)(R,l.webusbSrc)},disableWebUSB:()=>{if(!u.instance)throw c.ERRORS.TypedError("Init_NotInitialized");u.postMessage({event:c.UI_EVENT,type:c.TRANSPORT.DISABLE_WEBUSB})},requestWebUSBDevice:function(){var R=a(function*(){try{yield window.navigator.usb.requestDevice({filters:m.config.webusb}),u.postMessage({event:c.UI_EVENT,type:c.TRANSPORT.REQUEST_DEVICE})}catch{}});return function(){return R.apply(this,arguments)}}(),cancel:R=>{i&&i.emit(c.POPUP.CLOSED,R)},dispose:A});e.default=Q,s.__exportStar(n(52936),e)},62450:(f,e,n)=>{var a=n(31325).default;Object.defineProperty(e,"__esModule",{value:!0}),e.PopupManager=void 0;const r=n(97582).__importDefault(n(93105)),c=n(16260),d=n(52936),o=n(82050),m=n(18491);e.PopupManager=class extends r.default{constructor(_){super(),this.locked=!1,this.requestTimeout=0,this.closeInterval=0,this.extensionTabId=0,this.settings=_,this.origin=(0,o.getOrigin)(_.popupSrc),this.handleMessage=this.handleMessage.bind(this),this.iframeHandshake=(0,c.createDeferred)(d.IFRAME.LOADED),"webextension"===this.settings.env&&(this.handleExtensionConnect=this.handleExtensionConnect.bind(this),this.handleExtensionMessage=this.handleExtensionMessage.bind(this),chrome.runtime.onConnect.addListener(this.handleExtensionConnect)),window.addEventListener("message",this.handleMessage,!1)}request(){if(this.locked)return void(this.popupWindow&&("webextension"===this.settings.env?chrome.tabs.update(this.popupWindow.id,{active:!0}):this.popupWindow.focus()));this.popupWindow&&!this.locked&&this.close();const _=this.open.bind(this);this.locked=!0,this.requestTimeout=window.setTimeout(()=>{this.requestTimeout=0,_()},"webextension"===this.settings.env?1:850)}unlock(){this.locked=!1}open(){const _=this.settings.popupSrc;this.popupPromise=(0,c.createDeferred)(d.POPUP.LOADED),this.openWrapper(_),this.closeInterval=window.setInterval(()=>{!this.popupWindow||("webextension"===this.settings.env?chrome.tabs.get(this.popupWindow.id,l=>{l||(this.emit(d.POPUP.CLOSED),this.clear())}):this.popupWindow.closed&&(this.clear(),this.emit(d.POPUP.CLOSED)))},500),this.openTimeout=setTimeout(()=>{this.clear(),(0,m.showPopupRequest)(this.open.bind(this),()=>{this.emit(d.POPUP.CLOSED)})},3e3)}openWrapper(_){"webextension"===this.settings.env?chrome.windows.getCurrent(l=>{"normal"!==l.type?chrome.windows.create({url:_},i=>{chrome.tabs.query({windowId:null==i?void 0:i.id,active:!0},g=>{this.popupWindow=g[0]})}):chrome.tabs.query({currentWindow:!0,active:!0},i=>{this.extensionTabId=i[0].id,chrome.tabs.create({url:_,index:i[0].index+1},g=>{this.popupWindow=g})})}):"electron"===this.settings.env?this.popupWindow=window.open(_,"modal"):(this.popupWindow=window.open("","_blank"),this.popupWindow&&(this.popupWindow.location.href=_))}handleExtensionConnect(_){var l,i;"trezor-connect"===_.name&&(!this.popupWindow||this.popupWindow&&this.popupWindow.id!==(null===(i=null===(l=_.sender)||void 0===l?void 0:l.tab)||void 0===i?void 0:i.id)||(this.openTimeout&&clearTimeout(this.openTimeout),this.extensionPort=_,this.extensionPort.onMessage.addListener(this.handleExtensionMessage)))}handleExtensionMessage(_){if(!this.extensionPort)return;const l=this.extensionPort,{data:i}=_;if(i&&"object"==typeof i)if(i.type===d.POPUP.ERROR){const g=i.payload&&"string"==typeof i.payload.error?i.payload.error:null;this.emit(d.POPUP.CLOSED,g?`Popup error: ${g}`:null),this.clear()}else i.type===d.POPUP.LOADED?(this.popupPromise&&this.popupPromise.resolve(),this.iframeHandshake.promise.then(g=>{l.postMessage({type:d.POPUP.INIT,payload:Object.assign(Object.assign({},g),{settings:this.settings})})})):i.type===d.POPUP.EXTENSION_USB_PERMISSIONS?chrome.tabs.query({currentWindow:!0,active:!0},g=>{chrome.tabs.create({url:"trezor-usb-permissions.html",index:g[0].index+1},O=>{})}):i.type===d.POPUP.CLOSE_WINDOW&&this.clear()}handleMessage(_){const{data:l}=_;if((0,o.getOrigin)(_.origin)===this.origin&&l&&"object"==typeof l)if(l.type===d.IFRAME.LOADED)this.iframeHandshake.resolve(l.payload);else if(l.type===d.POPUP.BOOTSTRAP)this.openTimeout&&clearTimeout(this.openTimeout);else if(l.type===d.POPUP.ERROR&&this.popupWindow){const i=l.payload&&"string"==typeof l.payload.error?l.payload.error:null;this.emit(d.POPUP.CLOSED,i?`Popup error: ${i}`:null),this.clear()}else l.type===d.POPUP.LOADED?(this.popupPromise&&this.popupPromise.resolve(),this.iframeHandshake.promise.then(i=>{this.popupWindow.postMessage({type:d.POPUP.INIT,payload:Object.assign(Object.assign({},i),{settings:this.settings})},this.origin)})):(l.type===d.POPUP.CANCEL_POPUP_REQUEST||l.type===d.UI.CLOSE_UI_WINDOW)&&this.clear(!1)}clear(_=!0){this.locked=!1,this.popupPromise=void 0,this.requestTimeout&&(window.clearTimeout(this.requestTimeout),this.requestTimeout=0),this.openTimeout&&(clearTimeout(this.openTimeout),this.openTimeout=void 0),this.closeInterval&&(window.clearInterval(this.closeInterval),this.closeInterval=0),this.extensionPort&&(this.extensionPort.disconnect(),this.extensionPort=void 0),_&&this.extensionTabId&&(chrome.tabs.update(this.extensionTabId,{active:!0}),this.extensionTabId=0)}close(){if(this.popupWindow){if("webextension"===this.settings.env){let _=chrome.runtime.lastError;return void chrome.tabs.remove(this.popupWindow.id,()=>{_=chrome.runtime.lastError})}this.popupWindow.close(),this.popupWindow=null}}postMessage(_){var l=this;return a(function*(){if(!l.popupWindow&&_.type!==d.UI.REQUEST_UI_WINDOW&&l.openTimeout)return l.clear(),void(0,m.showPopupRequest)(l.open.bind(l),()=>{l.emit(d.POPUP.CLOSED)});l.popupPromise&&(yield l.popupPromise.promise),l.popupWindow&&l.popupWindow.postMessage(_,l.origin)})()}}},18491:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.showPopupRequest=void 0;const n="TrezorConnectInteractionLayer",a=`\n <div class="trezorconnect-container" id="${n}">\n <div class="trezorconnect-window">\n <div class="trezorconnect-head">\n <svg class="trezorconnect-logo" x="0px" y="0px" viewBox="0 0 163.7 41.9" width="78px" height="20px" preserveAspectRatio="xMinYMin meet">\n <polygon points="101.1,12.8 118.2,12.8 118.2,17.3 108.9,29.9 118.2,29.9 118.2,35.2 101.1,35.2 101.1,30.7 110.4,18.1 101.1,18.1"/>\n <path d="M158.8,26.9c2.1-0.8,4.3-2.9,4.3-6.6c0-4.5-3.1-7.4-7.7-7.4h-10.5v22.3h5.8v-7.5h2.2l4.1,7.5h6.7L158.8,26.9z M154.7,22.5 h-4V18h4c1.5,0,2.5,0.9,2.5,2.2C157.2,21.6,156.2,22.5,154.7,22.5z"/>\n <path d="M130.8,12.5c-6.8,0-11.6,4.9-11.6,11.5s4.9,11.5,11.6,11.5s11.7-4.9,11.7-11.5S137.6,12.5,130.8,12.5z M130.8,30.3 c-3.4,0-5.7-2.6-5.7-6.3c0-3.8,2.3-6.3,5.7-6.3c3.4,0,5.8,2.6,5.8,6.3C136.6,27.7,134.2,30.3,130.8,30.3z"/>\n <polygon points="82.1,12.8 98.3,12.8 98.3,18 87.9,18 87.9,21.3 98,21.3 98,26.4 87.9,26.4 87.9,30 98.3,30 98.3,35.2 82.1,35.2 "/>\n <path d="M24.6,9.7C24.6,4.4,20,0,14.4,0S4.2,4.4,4.2,9.7v3.1H0v22.3h0l14.4,6.7l14.4-6.7h0V12.9h-4.2V9.7z M9.4,9.7 c0-2.5,2.2-4.5,5-4.5s5,2,5,4.5v3.1H9.4V9.7z M23,31.5l-8.6,4l-8.6-4V18.1H23V31.5z"/>\n <path d="M79.4,20.3c0-4.5-3.1-7.4-7.7-7.4H61.2v22.3H67v-7.5h2.2l4.1,7.5H80l-4.9-8.3C77.2,26.1,79.4,24,79.4,20.3z M71,22.5h-4V18 h4c1.5,0,2.5,0.9,2.5,2.2C73.5,21.6,72.5,22.5,71,22.5z"/>\n <polygon points="40.5,12.8 58.6,12.8 58.6,18.1 52.4,18.1 52.4,35.2 46.6,35.2 46.6,18.1 40.5,18.1 "/>\n </svg>\n <div class="trezorconnect-close">\n <svg x="0px" y="0px" viewBox="24 24 60 60" width="24px" height="24px" preserveAspectRatio="xMinYMin meet">\n <polygon class="st0" points="40,67.9 42.1,70 55,57.1 67.9,70 70,67.9 57.1,55 70,42.1 67.9,40 55,52.9 42.1,40 40,42.1 52.9,55 "/>\n </svg>\n </div>\n </div>\n <div class="trezorconnect-body">\n <h3>Popup was blocked</h3>\n <p>Please click to "Continue" to open popup manually</p>\n <button class="trezorconnect-open">Continue</button>\n </div>\n </div>\n </div>\n`;e.showPopupRequest=(r,c)=>{if(document.getElementById(n))return;const d=document.createElement("div");d.id=n,d.className="trezorconnect-container",d.innerHTML=a,document.body&&document.body.appendChild(d),d.getElementsByClassName("trezorconnect-open")[0].onclick=()=>{r(),document.body&&document.body.removeChild(d)},d.getElementsByClassName("trezorconnect-close")[0].onclick=()=>{c(),document.body&&document.body.removeChild(d)}}},46321:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=(a="",s)=>{const c=document.querySelectorAll(a||".trezor-webusb-button"),d=`${s}?${Date.now()}`;c.forEach(o=>{if(o.getElementsByTagName("iframe").length<1){const m=o.getBoundingClientRect(),u=document.createElement("iframe");u.frameBorder="0",u.width=`${Math.round(m.width)}px`,u.height=`${Math.round(m.height)}px`,u.style.position="absolute",u.style.top="0px",u.style.left="0px",u.style.zIndex="1",u.setAttribute("allow","usb"),u.setAttribute("scrolling","no"),u.src=d,o.append(u)}})}},63141:(f,e)=>{var s;Object.defineProperty(e,"__esModule",{value:!0}),e.NETWORK_IDS=e.PROTOCOL_MAGICS=void 0,(s=e.PROTOCOL_MAGICS||(e.PROTOCOL_MAGICS={}))[s.mainnet=764824073]="mainnet",s[s.testnet_preprod=1]="testnet_preprod",s[s.testnet_preview=2]="testnet_preview",s[s.testnet_legacy=1097911063]="testnet_legacy",function(s){s[s.mainnet=1]="mainnet",s[s.testnet=0]="testnet"}(e.NETWORK_IDS||(e.NETWORK_IDS={}))},22244:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LIBUSB_ERROR_MESSAGE=e.serializeError=e.TypedError=e.TrezorError=e.ERROR_CODES=void 0,e.ERROR_CODES={Init_NotInitialized:"TrezorConnect not initialized",Init_AlreadyInitialized:"TrezorConnect has been already initialized",Init_IframeBlocked:"Iframe blocked",Init_IframeTimeout:"Iframe timeout",Init_ManifestMissing:"Manifest not set. Read more at https://github.com/trezor/trezor-suite/blob/develop/docs/packages/connect/index.md",Popup_ConnectionMissing:"Unable to establish connection with iframe",Transport_Missing:"Transport is missing",Transport_InvalidProtobuf:"",Method_InvalidPackage:"This package is not suitable to work with browser. Use @trezor/connect-web package instead",Method_InvalidParameter:"",Method_NotAllowed:"Method not allowed for this configuration",Method_PermissionsNotGranted:"Permissions not granted",Method_Cancel:"Cancelled",Method_Interrupted:"Popup closed",Method_UnknownCoin:"Coin not found",Method_AddressNotMatch:"Addresses do not match",Method_FirmwareUpdate_DownloadFailed:"Failed to download firmware binary",Method_Discovery_BundleException:"",Method_Override:"override",Method_NoResponse:"Call resolved without response",Backend_NotSupported:"BlockchainLink settings not found in coins.json",Backend_WorkerMissing:"",Backend_Disconnected:"Backend disconnected",Backend_Invalid:"Invalid backend",Backend_Error:"",Runtime:"",Device_NotFound:"Device not found",Device_InitializeFailed:"",Device_FwException:"",Device_ModeException:"",Device_Disconnected:"Device disconnected",Device_UsedElsewhere:"Device is used in another window",Device_InvalidState:"Passphrase is incorrect",Device_CallInProgress:"Device call in progress"};class n extends Error{constructor(c,d){super(d),this.code=c,this.message=d}}e.TrezorError=n,e.TypedError=(r,c)=>new n(r,c||e.ERROR_CODES[r]),e.serializeError=r=>r&&r.error instanceof Error?{error:r.error.message,code:r.error.code}:r,e.LIBUSB_ERROR_MESSAGE="LIBUSB_ERROR"},35082:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PROTO=e.NEM=e.CARDANO=e.NETWORK=e.ERRORS=void 0;const a=n(97582);e.ERRORS=a.__importStar(n(22244)),e.NETWORK=a.__importStar(n(69531)),e.CARDANO=a.__importStar(n(63141)),e.NEM=a.__importStar(n(65043)),e.PROTO=a.__importStar(n(23263))},65043:(f,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.TxVersion=e.TxType=e.Networks=void 0,(r=e.Networks||(e.Networks={}))[r.mainnet=104]="mainnet",r[r.testnet=152]="testnet",r[r.mijin=96]="mijin",function(r){r[r.TRANSFER=257]="TRANSFER",r[r.COSIGNING=258]="COSIGNING",r[r.IMPORTANCE_TRANSFER=2049]="IMPORTANCE_TRANSFER",r[r.AGGREGATE_MODIFICATION=4097]="AGGREGATE_MODIFICATION",r[r.MULTISIG_SIGNATURE=4098]="MULTISIG_SIGNATURE",r[r.MULTISIG=4100]="MULTISIG",r[r.PROVISION_NAMESPACE=8193]="PROVISION_NAMESPACE",r[r.MOSAIC_CREATION=16385]="MOSAIC_CREATION",r[r.SUPPLY_CHANGE=16386]="SUPPLY_CHANGE"}(e.TxType||(e.TxType={})),function(r){r[r.mainnet=1744830464]="mainnet",r[r.testnet=-1744830464]="testnet",r[r.mijin=1610612736]="mijin"}(e.TxVersion||(e.TxVersion={}))},69531:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TYPES=void 0,e.TYPES={bitcoin:"Bitcoin",ethereum:"Ethereum",eos:"Eos",nem:"NEM",stellar:"Stellar",cardano:"Cardano",ripple:"Ripple",tezos:"Tezos",binance:"Binance"}},71998:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.config=void 0;const a=n(12942);e.config={webusb:a.TREZOR_USB_DESCRIPTORS,whitelist:[{origin:"chrome-extension://imloifkgjagghnncjkhggdhalmcnfklk",priority:1},{origin:"chrome-extension://niebkpllfhmpfbffbfifagfgoamhpflf",priority:1},{origin:"file://",priority:2},{origin:"trezor.io",priority:0},{origin:"sldev.cz",priority:0},{origin:"localhost",priority:0},{origin:"trezoriovpjcahpzkrewelclulmszwbqpzmzgub37gbcjlvluxtruqad.onion",priority:0}],management:[{origin:"trezor.io"},{origin:"sldev.cz"},{origin:"localhost"}],knownHosts:[{origin:"imloifkgjagghnncjkhggdhalmcnfklk",label:"Trezor Password Manager (Develop)",icon:""},{origin:"niebkpllfhmpfbffbfifagfgoamhpflf",label:"Trezor Password Manager",icon:""},{origin:"[email protected]",label:"Trezor Connect FF Extension",icon:""},{origin:"efbfhenfhihgdcmnfdkhaphjdnopihlf",label:"Trezor Connect Chrome Extension",icon:""},{origin:"mnpfhpndmjholfdlhpkjfmjkgppmodaf",label:"MetaMask",icon:""},{origin:"[email protected]",label:"MetaMask",icon:""},{origin:"file://",label:" ",icon:""}],onionDomains:{"trezor.io":"trezoriovpjcahpzkrewelclulmszwbqpzmzgub37gbcjlvluxtruqad.onion"},assets:[{name:"coins",url:"./data/coins.json"},{name:"coinsEth",url:"./data/coins-eth.json"},{name:"bridge",url:"./data/bridge/releases.json"},{name:"firmware-t1",url:"./data/firmware/1/releases.json"},{name:"firmware-t2",url:"./data/firmware/2/releases.json"}],messages:"./data/messages/messages.json",supportedBrowsers:{chrome:{version:59,download:"https://www.google.com/chrome/",update:"https://support.google.com/chrome/answer/95414"},chromium:{version:59,download:"https://www.chromium.org/",update:"https://www.chromium.org/"},electron:{version:0,download:"https://www.electronjs.org/",update:"https://www.electronjs.org/"},firefox:{version:54,download:"https://www.mozilla.org/en-US/firefox/new/",update:"https://support.mozilla.org/en-US/kb/update-firefox-latest-version"}},supportedFirmware:[{coin:["xrp","txrp"],methods:["getAccountInfo"],min:["0","2.1.0"],max:void 0,comment:["Since firmware 2.1.0 there is a new protobuf field 'destination_tag' in RippleSignTx"]},{coin:["bnb"],min:["1.9.0","2.3.0"],comment:["There were protobuf backwards incompatible changes with introduction of 1.9.0/2.3.0 firmwares"]},{coin:["eth","tsep","tgor"],min:["1.8.0","2.1.0"],comment:["There were protobuf backwards incompatible changes."]},{methods:["rippleGetAddress","rippleSignTransaction"],min:["0","2.1.0"],comment:["Since firmware 2.1.0 there is a new protobuf field 'destination_tag' in RippleSignTx"]},{methods:["cardanoGetAddress","cardanoGetPublicKey"],min:["0","2.3.2"],comment:["Shelley fork support since firmware 2.3.2"]},{methods:["cardanoSignTransaction"],min:["0","2.4.2"],comment:["Non-streamed signing no longer supported"]},{methods:["cardanoGetNativeScriptHash"],min:["0","2.4.3"],comment:["Cardano GetNativeScriptHash call added in 2.4.3"]},{methods:["tezosSignTransaction"],min:["0","2.1.8"],comment:["Since 2.1.8 there are new protobuf fields in tezos transaction (Babylon fork)"]},{methods:["stellarSignTransaction"],min:["1.9.0","2.3.0"],comment:["There were protobuf backwards incompatible changes with introduction of 1.9.0/2.3.0 firmwares"]},{capabilities:["replaceTransaction","amountUnit"],min:["1.9.4","2.3.5"],comment:["new sign tx process since 1.9.4/2.3.5"]},{capabilities:["decreaseOutput"],min:["1.10.0","2.4.0"],comment:["allow reduce output in RBF transaction since 1.10.0/2.4.0"]},{capabilities:["eip1559"],min:["1.10.4","2.4.2"],comment:["new eth transaction pricing mechanism (EIP1559) since 1.10.4/2.4.2"]},{capabilities:["taproot","signMessageNoScriptType"],min:["1.10.4","2.4.3"],comment:["new btc accounts taproot since 1.10.4/2.4.3 (BTC + TEST only)","SignMessage with no_script_type support"]},{coin:["dcr","tdcr"],methods:["signTransaction"],min:["1.10.1","2.4.0"],comment:[""]},{methods:["ethereumSignTypedData"],min:["1.10.5","2.4.3"],comment:["EIP-712 typed signing support added in 1.10.5/2.4.3"]},{capabilities:["eip712-domain-only"],min:["1.10.6","2.4.4"],comment:["EIP-712 domain-only signing, when primaryType=EIP712Domain"]},{capabilities:["coinjoin"],methods:["authorizeCoinjoin","cancelCoinjoinAuthorization","getOwnershipId","getOwnershipProof","setBusy","unlockPath"],min:["1.12.1","2.5.3"]},{methods:["showDeviceTutorial"],min:["0","2.6.1"],comment:["Only on T2B1"]}]}},11116:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseConnectSettings=e.corsValidator=e.DEFAULT_PRIORITY=void 0;const a=n(24350);e.DEFAULT_PRIORITY=2;const s={configSrc:"./data/config.json",version:a.VERSION,debug:!1,priority:e.DEFAULT_PRIORITY,trustedHost:!0,connectSrc:a.DEFAULT_DOMAIN,iframeSrc:`${a.DEFAULT_DOMAIN}iframe.html`,popup:!1,popupSrc:`${a.DEFAULT_DOMAIN}popup.html`,webusbSrc:`${a.DEFAULT_DOMAIN}webusb.html`,transports:void 0,pendingTransportEvent:!0,env:"node",lazyLoad:!1,timestamp:(new Date).getTime(),interactionTimeout:600};e.corsValidator=o=>{if("string"==typeof o&&(o.match(/^https:\/\/([A-Za-z0-9\-_]+\.)*trezor\.io\//)||o.match(/^https?:\/\/localhost:[58][0-9]{3}\//)||o.match(/^https:\/\/([A-Za-z0-9\-_]+\.)*sldev\.cz\//)||o.match(/^https?:\/\/([A-Za-z0-9\-_]+\.)*trezoriovpjcahpzkrewelclulmszwbqpzmzgub37gbcjlvluxtruqad\.onion\//)))return o},e.parseConnectSettings=(o={})=>{var m;const u={...s};"debug"in o&&("boolean"==typeof o.debug?u.debug=o.debug:"string"==typeof o.debug&&(u.debug="true"===o.debug)),"string"==typeof o.connectSrc&&(null===(m=o.connectSrc)||void 0===m?void 0:m.startsWith("http"))?u.connectSrc=(0,e.corsValidator)(o.connectSrc):u.trustedHost&&(u.connectSrc=o.connectSrc);const E=u.connectSrc||a.DEFAULT_DOMAIN;return u.iframeSrc=`${E}iframe.html`,u.popupSrc=`${E}popup.html`,u.webusbSrc=`${E}webusb.html`,"boolean"==typeof o.transportReconnect&&(u.transportReconnect=o.transportReconnect),"boolean"==typeof o.webusb&&(u.webusb=o.webusb),Array.isArray(o.transports)&&(u.transports=o.transports),"boolean"==typeof o.popup&&(u.popup=o.popup),"boolean"==typeof o.lazyLoad&&(u.lazyLoad=o.lazyLoad),"boolean"==typeof o.pendingTransportEvent&&(u.pendingTransportEvent=o.pendingTransportEvent),"string"==typeof o.extension&&(u.extension=o.extension),"string"==typeof o.env&&(u.env=o.env),"number"==typeof o.timestamp&&(u.timestamp=o.timestamp),"number"==typeof o.interactionTimeout&&(u.interactionTimeout=o.interactionTimeout),"object"==typeof o.manifest&&(u.manifest=(o=>{if(o&&"string"==typeof o.email&&"string"==typeof o.appUrl)return{email:o.email,appUrl:o.appUrl}})(o.manifest)),u}},24350:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_DOMAIN=e.VERSION=void 0,e.VERSION="9.1.3";const n=e.VERSION.split(".").map(a=>parseInt(a,10));e.DEFAULT_DOMAIN=`https://connect.trezor.io/${n[0]}/`},68433:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createBlockchainMessage=e.BLOCKCHAIN=e.BLOCKCHAIN_EVENT=void 0,e.BLOCKCHAIN_EVENT="BLOCKCHAIN_EVENT",e.BLOCKCHAIN={CONNECT:"blockchain-connect",ERROR:"blockchain-error",BLOCK:"blockchain-block",NOTIFICATION:"blockchain-notification",FIAT_RATES_UPDATE:"fiat-rates-update"},e.createBlockchainMessage=(a,s)=>({event:e.BLOCKCHAIN_EVENT,type:a,payload:s})},1540:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createResponseMessage=e.RESPONSE_EVENT=void 0;const a=n(22244);e.RESPONSE_EVENT="RESPONSE_EVENT",e.createResponseMessage=(r,c,d)=>({event:e.RESPONSE_EVENT,type:e.RESPONSE_EVENT,id:r,success:c,payload:c?d:(0,a.serializeError)(d)})},39658:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorMessage=e.parseMessage=e.CORE_EVENT=void 0,e.CORE_EVENT="CORE_EVENT",e.parseMessage=s=>{const r={event:s.event,type:s.type,payload:s.payload};return"number"==typeof s.id&&(r.id=s.id),"boolean"==typeof s.success&&(r.success=s.success),r},e.createErrorMessage=s=>({success:!1,payload:{error:s.message,code:s.code}})},99397:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createDeviceMessage=e.DEVICE=e.DEVICE_EVENT=void 0,e.DEVICE_EVENT="DEVICE_EVENT",e.DEVICE={CONNECT:"device-connect",CONNECT_UNACQUIRED:"device-connect_unacquired",DISCONNECT:"device-disconnect",CHANGED:"device-changed",ACQUIRE:"device-acquire",RELEASE:"device-release",ACQUIRED:"device-acquired",RELEASED:"device-released",USED_ELSEWHERE:"device-used_elsewhere",LOADING:"device-loading",BUTTON:"button",PIN:"pin",PASSPHRASE:"passphrase",PASSPHRASE_ON_DEVICE:"passphrase_on_device",WORD:"word"},e.createDeviceMessage=(a,s)=>({event:e.DEVICE_EVENT,type:a,payload:s})},60580:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createIFrameMessage=e.IFRAME=void 0;const a=n(93020);e.IFRAME={BOOTSTRAP:"iframe-bootstrap",LOADED:"iframe-loaded",INIT:"iframe-init",ERROR:"iframe-error",CALL:"iframe-call"},e.createIFrameMessage=(r,c)=>({event:a.UI_EVENT,type:r,payload:c})},90956:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UI=void 0;const a=n(97582),s=n(93020),r=n(85220);a.__exportStar(n(68433),e),a.__exportStar(n(1540),e),a.__exportStar(n(39658),e),a.__exportStar(n(99397),e),a.__exportStar(n(60580),e),a.__exportStar(n(92507),e),a.__exportStar(n(55047),e),a.__exportStar(n(52883),e),a.__exportStar(n(93020),e),a.__exportStar(n(85220),e),e.UI={...s.UI_REQUEST,...r.UI_RESPONSE}},92507:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createPopupMessage=e.POPUP=void 0;const a=n(93020);e.POPUP={BOOTSTRAP:"popup-bootstrap",LOADED:"popup-loaded",INIT:"popup-init",ERROR:"popup-error",EXTENSION_USB_PERMISSIONS:"open-usb-permissions",HANDSHAKE:"popup-handshake",CLOSED:"popup-closed",CANCEL_POPUP_REQUEST:"ui-cancel-popup-request",CLOSE_WINDOW:"window.close",ANALYTICS_RESPONSE:"popup-analytics-response"},e.createPopupMessage=(r,c)=>({event:a.UI_EVENT,type:r,payload:c})},55047:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createTransportMessage=e.TRANSPORT_EVENT=e.TRANSPORT=void 0;const a=n(22244);var s=n(12942);Object.defineProperty(e,"TRANSPORT",{enumerable:!0,get:function(){return s.TRANSPORT}}),e.TRANSPORT_EVENT="TRANSPORT_EVENT",e.createTransportMessage=(c,d)=>({event:e.TRANSPORT_EVENT,type:c,payload:"error"in d?(0,a.serializeError)(d):d})},52883:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},93020:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createUiMessage=e.UI_REQUEST=e.UI_EVENT=void 0,e.UI_EVENT="UI_EVENT",e.UI_REQUEST={TRANSPORT:"ui-no_transport",BOOTLOADER:"ui-device_bootloader_mode",NOT_IN_BOOTLOADER:"ui-device_not_in_bootloader_mode",REQUIRE_MODE:"ui-device_require_mode",INITIALIZE:"ui-device_not_initialized",SEEDLESS:"ui-device_seedless",FIRMWARE_OLD:"ui-device_firmware_old",FIRMWARE_OUTDATED:"ui-device_firmware_outdated",FIRMWARE_NOT_SUPPORTED:"ui-device_firmware_unsupported",FIRMWARE_NOT_COMPATIBLE:"ui-device_firmware_not_compatible",FIRMWARE_NOT_INSTALLED:"ui-device_firmware_not_installed",FIRMWARE_PROGRESS:"ui-firmware-progress",DEVICE_NEEDS_BACKUP:"ui-device_needs_backup",REQUEST_UI_WINDOW:"ui-request_window",CLOSE_UI_WINDOW:"ui-close_window",REQUEST_PERMISSION:"ui-request_permission",REQUEST_CONFIRMATION:"ui-request_confirmation",REQUEST_PIN:"ui-request_pin",INVALID_PIN:"ui-invalid_pin",REQUEST_PASSPHRASE:"ui-request_passphrase",REQUEST_PASSPHRASE_ON_DEVICE:"ui-request_passphrase_on_device",INVALID_PASSPHRASE:"ui-invalid_passphrase",CONNECT:"ui-connect",LOADING:"ui-loading",SET_OPERATION:"ui-set_operation",SELECT_DEVICE:"ui-select_device",SELECT_ACCOUNT:"ui-select_account",SELECT_FEE:"ui-select_fee",UPDATE_CUSTOM_FEE:"ui-update_custom_fee",INSUFFICIENT_FUNDS:"ui-insufficient_funds",REQUEST_BUTTON:"ui-button",REQUEST_WORD:"ui-request_word",LOGIN_CHALLENGE_REQUEST:"ui-login_challenge_request",BUNDLE_PROGRESS:"ui-bundle_progress",ADDRESS_VALIDATION:"ui-address_validation",IFRAME_FAILURE:"ui-iframe_failure"},e.createUiMessage=(a,s)=>({event:e.UI_EVENT,type:a,payload:s})},85220:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createUiResponse=e.UI_RESPONSE=void 0;const a=n(93020);e.UI_RESPONSE={RECEIVE_PERMISSION:"ui-receive_permission",RECEIVE_CONFIRMATION:"ui-receive_confirmation",RECEIVE_PIN:"ui-receive_pin",RECEIVE_PASSPHRASE:"ui-receive_passphrase",RECEIVE_DEVICE:"ui-receive_device",RECEIVE_ACCOUNT:"ui-receive_account",RECEIVE_FEE:"ui-receive_fee",RECEIVE_WORD:"ui-receive_word",INVALID_PASSPHRASE_ACTION:"ui-invalid_passphrase_action",CHANGE_SETTINGS:"ui-change_settings",LOGIN_CHALLENGE_RESPONSE:"ui-login_challenge_response"},e.createUiResponse=(r,c)=>({event:a.UI_EVENT,type:r,payload:c})},52936:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseConnectSettings=void 0;const a=n(97582);a.__exportStar(n(35082),e),a.__exportStar(n(90956),e),a.__exportStar(n(56826),e);var s=n(11116);Object.defineProperty(e,"parseConnectSettings",{enumerable:!0,get:function(){return s.parseConnectSettings}})},72846:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.factory=void 0;const a=n(90956);e.factory=({eventEmitter:r,manifest:c,init:d,call:o,requestLogin:m,uiResponse:u,renderWebUSBButton:E,disableWebUSB:v,requestWebUSBDevice:h,cancel:b,dispose:_})=>({manifest:c,init:d,getSettings:()=>o({method:"getSettings"}),on:(i,g)=>{r.on(i,g)},off:(i,g)=>{r.removeListener(i,g)},removeAllListeners:i=>{"string"==typeof i?r.removeAllListeners(i):r.removeAllListeners()},uiResponse:u,blockchainGetAccountBalanceHistory:i=>o({...i,method:"blockchainGetAccountBalanceHistory"}),blockchainGetCurrentFiatRates:i=>o({...i,method:"blockchainGetCurrentFiatRates"}),blockchainGetFiatRatesForTimestamps:i=>o({...i,method:"blockchainGetFiatRatesForTimestamps"}),blockchainDisconnect:i=>o({...i,method:"blockchainDisconnect"}),blockchainEstimateFee:i=>o({...i,method:"blockchainEstimateFee"}),blockchainGetTransactions:i=>o({...i,method:"blockchainGetTransactions"}),blockchainSetCustomBackend:i=>o({...i,method:"blockchainSetCustomBackend"}),blockchainSubscribe:i=>o({...i,method:"blockchainSubscribe"}),blockchainSubscribeFiatRates:i=>o({...i,method:"blockchainSubscribeFiatRates"}),blockchainUnsubscribe:i=>o({...i,method:"blockchainUnsubscribe"}),blockchainUnsubscribeFiatRates:i=>o({...i,method:"blockchainUnsubscribeFiatRates"}),requestLogin:i=>m(i),cardanoGetAddress:i=>o({...i,method:"cardanoGetAddress",useEventListener:r.listenerCount(a.UI.ADDRESS_VALIDATION)>0}),cardanoGetNativeScriptHash:i=>o({...i,method:"cardanoGetNativeScriptHash"}),cardanoGetPublicKey:i=>o({...i,method:"cardanoGetPublicKey"}),cardanoSignTransaction:i=>o({...i,method:"cardanoSignTransaction"}),cipherKeyValue:i=>o({...i,method:"cipherKeyValue"}),composeTransaction:i=>o({...i,method:"composeTransaction"}),ethereumGetAddress:i=>o({...i,method:"ethereumGetAddress",useEventListener:r.listenerCount(a.UI.ADDRESS_VALIDATION)>0}),ethereumGetPublicKey:i=>o({...i,method:"ethereumGetPublicKey"}),ethereumSignMessage:i=>o({...i,method:"ethereumSignMessage"}),ethereumSignTransaction:i=>o({...i,method:"ethereumSignTransaction"}),ethereumSignTypedData:i=>o({...i,method:"ethereumSignTypedData"}),ethereumVerifyMessage:i=>o({...i,method:"ethereumVerifyMessage"}),getAccountInfo:i=>o({...i,method:"getAccountInfo"}),getAddress:i=>o({...i,method:"getAddress",useEventListener:r.listenerCount(a.UI.ADDRESS_VALIDATION)>0}),getDeviceState:i=>o({...i,method:"getDeviceState"}),getFeatures:i=>o({...i,method:"getFeatures"}),getFirmwareHash:i=>o({...i,method:"getFirmwareHash"}),getOwnershipId:i=>o({...i,method:"getOwnershipId"}),getOwnershipProof:i=>o({...i,method:"getOwnershipProof"}),getPublicKey:i=>o({...i,method:"getPublicKey"}),nemGetAddress:i=>o({...i,method:"nemGetAddress",useEventListener:r.listenerCount(a.UI.ADDRESS_VALIDATION)>0}),nemSignTransaction:i=>o({...i,method:"nemSignTransaction"}),pushTransaction:i=>o({...i,method:"pushTransaction"}),rippleGetAddress:i=>o({...i,method:"rippleGetAddress",useEventListener:r.listenerCount(a.UI.ADDRESS_VALIDATION)>0}),rippleSignTransaction:i=>o({...i,method:"rippleSignTransaction"}),signMessage:i=>o({...i,method:"signMessage"}),signTransaction:i=>o({...i,method:"signTransaction"}),stellarGetAddress:i=>o({...i,method:"stellarGetAddress",useEventListener:r.listenerCount(a.UI.ADDRESS_VALIDATION)>0}),stellarSignTransaction:i=>o({...i,method:"stellarSignTransaction"}),tezosGetAddress:i=>o({...i,method:"tezosGetAddress",useEventListener:r.listenerCount(a.UI.ADDRESS_VALIDATION)>0}),tezosGetPublicKey:i=>o({...i,method:"tezosGetPublicKey"}),tezosSignTransaction:i=>o({...i,method:"tezosSignTransaction"}),unlockPath:i=>o({...i,method:"unlockPath"}),eosGetPublicKey:i=>o({...i,method:"eosGetPublicKey"}),eosSignTransaction:i=>o({...i,method:"eosSignTransaction"}),binanceGetAddress:i=>o({...i,method:"binanceGetAddress",useEventListener:r.listenerCount(a.UI.ADDRESS_VALIDATION)>0}),binanceGetPublicKey:i=>o({...i,method:"binanceGetPublicKey"}),binanceSignTransaction:i=>o({...i,method:"binanceSignTransaction"}),verifyMessage:i=>o({...i,method:"verifyMessage"}),resetDevice:i=>o({...i,method:"resetDevice"}),wipeDevice:i=>o({...i,method:"wipeDevice"}),checkFirmwareAuthenticity:i=>o({...i,method:"checkFirmwareAuthenticity"}),applyFlags:i=>o({...i,method:"applyFlags"}),applySettings:i=>o({...i,method:"applySettings"}),authorizeCoinjoin:i=>o({...i,method:"authorizeCoinjoin"}),cancelCoinjoinAuthorization:i=>o({...i,method:"cancelCoinjoinAuthorization"}),showDeviceTutorial:i=>o({...i,method:"showDeviceTutorial"}),backupDevice:i=>o({...i,method:"backupDevice"}),changePin:i=>o({...i,method:"changePin"}),firmwareUpdate:i=>o({...i,method:"firmwareUpdate"}),recoveryDevice:i=>o({...i,method:"recoveryDevice"}),getCoinInfo:i=>o({...i,method:"getCoinInfo"}),rebootToBootloader:i=>o({...i,method:"rebootToBootloader"}),setBusy:i=>o({...i,method:"setBusy"}),setProxy:i=>o({...i,method:"setProxy"}),dispose:_,cancel:b,renderWebUSBButton:E,disableWebUSB:v,requestWebUSBDevice:h})},17316:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},66415:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},81331:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},12709:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},50148:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},13350:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},85597:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},52700:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},10353:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},59044:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},53054:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},45292:(f,e,n)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceModelInternal=e.FirmwareType=void 0,(r=e.FirmwareType||(e.FirmwareType={})).BitcoinOnly="bitcoin-only",r.Regular="regular";var s=n(23263);Object.defineProperty(e,"DeviceModelInternal",{enumerable:!0,get:function(){return s.DeviceModelInternal}})},3956:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},45866:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},56826:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});const a=n(97582);a.__exportStar(n(85597),e),a.__exportStar(n(17316),e),a.__exportStar(n(53054),e),a.__exportStar(n(45292),e),a.__exportStar(n(3956),e),a.__exportStar(n(45866),e),a.__exportStar(n(5543),e),a.__exportStar(n(98198),e),a.__exportStar(n(12709),e),a.__exportStar(n(66415),e),a.__exportStar(n(81331),e),a.__exportStar(n(50148),e),a.__exportStar(n(52700),e),a.__exportStar(n(13350),e),a.__exportStar(n(10353),e),a.__exportStar(n(59044),e)},5543:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},98198:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},59309:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getLog=e.enableLogByPrefix=e.enableLog=e.initLog=void 0;const n={"@trezor/connect":"color: #f4a742; background: #000;",IFrame:"color: #f4a742; background: #000;",Core:"color: #f4a742; background: #000;",DescriptorStream:"color: #77ab59; background: #000;",DeviceList:"color: #77ab59; background: #000;",Device:"color: #bada55; background: #000;",DeviceCommands:"color: #bada55; background: #000;","@trezor/transport":"color: #bada55; background: #000;"};class s{constructor(E,v){this.prefix=E,this.enabled=v,this.messages=[],this.css="undefined"!=typeof window&&n[E]?n[E]:""}addMessage(E,v,...h){this.messages.push({level:E,prefix:v,message:h,timestamp:Date.now()}),this.messages.length>100&&this.messages.shift()}log(...E){this.addMessage("log",this.prefix,...E),this.enabled&&console.log(this.prefix,...E)}error(...E){this.addMessage("error",this.prefix,...E),this.enabled&&console.error(this.prefix,...E)}warn(...E){this.addMessage("warn",this.prefix,...E),this.enabled&&console.warn(this.prefix,...E)}debug(...E){this.addMessage("debug",this.prefix,...E),this.enabled&&(this.css?console.log(`%c${this.prefix}`,this.css,...E):console.log(this.prefix,...E))}}const r={};e.initLog=(u,E)=>{const v=new s(u,!!E);return r[u]=v,v},e.enableLog=u=>{Object.keys(r).forEach(E=>{r[E].enabled=!!u})},e.enableLogByPrefix=(u,E)=>{r[u]&&(r[u].enabled=E)},e.getLog=()=>{let u=[];return Object.keys(r).forEach(E=>{u=u.concat(r[E].messages)}),u.sort((E,v)=>E.timestamp-v.timestamp),u}},82050:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getOnionDomain=e.getHost=e.getOrigin=void 0;const a=n(16260);e.getOrigin=d=>{var o;if("string"!=typeof d)return"unknown";if(0===d.indexOf("file://"))return"file://";const[m]=null!==(o=d.match(/^https?:\/\/[^/]+/))&&void 0!==o?o:[];return m??"unknown"},e.getHost=d=>{var o;if("string"!=typeof d)return;const[,,m]=null!==(o=d.match(/^(https?):\/\/([^:/]+)?/i))&&void 0!==o?o:[];if(m){const u=m.split(".");return u.length>2?u.slice(u.length-2,u.length).join("."):m}},e.getOnionDomain=(d,o)=>{var m;return Array.isArray(d)?d.map(u=>{var E;return null!==(E=(0,a.urlToOnion)(u,o))&&void 0!==E?E:u}):"string"==typeof d&&null!==(m=(0,a.urlToOnion)(d,o))&&void 0!==m?m:d}},23263:(f,e)=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TezosBallotType=e.TezosContractType=e.StellarSignerType=e.StellarMemoType=e.StellarAssetType=e.NEMImportanceTransferMode=e.NEMModificationType=e.NEMSupplyChangeType=e.NEMMosaicLevy=e.MoneroNetworkType=e.Enum_WordRequestType=e.RecoveryDeviceType=e.SdProtectOperationType=e.Enum_Capability=e.Enum_HomescreenFormat=e.Enum_SafetyCheckLevel=e.Enum_BackupType=e.EthereumDataType=e.EthereumDefinitionType=e.DebugPhysicalButton=e.DebugButton=e.Enum_PinMatrixRequestType=e.Enum_ButtonRequestType=e.FailureType=e.CardanoTxWitnessType=e.CardanoTxSigningMode=e.CardanoCVoteRegistrationFormat=e.CardanoTxAuxiliaryDataSupplementType=e.CardanoPoolRelayType=e.CardanoCertificateType=e.CardanoTxOutputSerializationFormat=e.CardanoNativeScriptHashDisplayFormat=e.CardanoNativeScriptType=e.CardanoAddressType=e.CardanoDerivationType=e.Enum_RequestType=e.AmountUnit=e.DecredStakingSpendType=e.Enum_OutputScriptType=e.Enum_InputScriptType=e.BinanceTimeInForce=e.BinanceOrderSide=e.BinanceOrderType=e.DeviceModelInternal=void 0,(t=e.DeviceModelInternal||(e.DeviceModelInternal={})).T1B1="T1B1",t.T2T1="T2T1",t.T2B1="T2B1",function(t){t[t.OT_UNKNOWN=0]="OT_UNKNOWN",t[t.MARKET=1]="MARKET",t[t.LIMIT=2]="LIMIT",t[t.OT_RESERVED=3]="OT_RESERVED"}(e.BinanceOrderType||(e.BinanceOrderType={})),function(t){t[t.SIDE_UNKNOWN=0]="SIDE_UNKNOWN",t[t.BUY=1]="BUY",t[t.SELL=2]="SELL"}(e.BinanceOrderSide||(e.BinanceOrderSide={})),function(t){t[t.TIF_UNKNOWN=0]="TIF_UNKNOWN",t[t.GTE=1]="GTE",t[t.TIF_RESERVED=2]="TIF_RESERVED",t[t.IOC=3]="IOC"}(e.BinanceTimeInForce||(e.BinanceTimeInForce={})),function(t){t[t.SPENDADDRESS=0]="SPENDADDRESS",t[t.SPENDMULTISIG=1]="SPENDMULTISIG",t[t.EXTERNAL=2]="EXTERNAL",t[t.SPENDWITNESS=3]="SPENDWITNESS",t[t.SPENDP2SHWITNESS=4]="SPENDP2SHWITNESS",t[t.SPENDTAPROOT=5]="SPENDTAPROOT"}(e.Enum_InputScriptType||(e.Enum_InputScriptType={})),function(t){t[t.PAYTOADDRESS=0]="PAYTOADDRESS",t[t.PAYTOSCRIPTHASH=1]="PAYTOSCRIPTHASH",t[t.PAYTOMULTISIG=2]="PAYTOMULTISIG",t[t.PAYTOOPRETURN=3]="PAYTOOPRETURN",t[t.PAYTOWITNESS=4]="PAYTOWITNESS",t[t.PAYTOP2SHWITNESS=5]="PAYTOP2SHWITNESS",t[t.PAYTOTAPROOT=6]="PAYTOTAPROOT"}(e.Enum_OutputScriptType||(e.Enum_OutputScriptType={})),function(t){t[t.SSGen=0]="SSGen",t[t.SSRTX=1]="SSRTX"}(e.DecredStakingSpendType||(e.DecredStakingSpendType={})),function(t){t[t.BITCOIN=0]="BITCOIN",t[t.MILLIBITCOIN=1]="MILLIBITCOIN",t[t.MICROBITCOIN=2]="MICROBITCOIN",t[t.SATOSHI=3]="SATOSHI"}(e.AmountUnit||(e.AmountUnit={})),function(t){t[t.TXINPUT=0]="TXINPUT",t[t.TXOUTPUT=1]="TXOUTPUT",t[t.TXMETA=2]="TXMETA",t[t.TXFINISHED=3]="TXFINISHED",t[t.TXEXTRADATA=4]="TXEXTRADATA",t[t.TXORIGINPUT=5]="TXORIGINPUT",t[t.TXORIGOUTPUT=6]="TXORIGOUTPUT",t[t.TXPAYMENTREQ=7]="TXPAYMENTREQ"}(e.Enum_RequestType||(e.Enum_RequestType={})),function(t){t[t.LEDGER=0]="LEDGER",t[t.ICARUS=1]="ICARUS",t[t.ICARUS_TREZOR=2]="ICARUS_TREZOR"}(e.CardanoDerivationType||(e.CardanoDerivationType={})),function(t){t[t.BASE=0]="BASE",t[t.BASE_SCRIPT_KEY=1]="BASE_SCRIPT_KEY",t[t.BASE_KEY_SCRIPT=2]="BASE_KEY_SCRIPT",t[t.BASE_SCRIPT_SCRIPT=3]="BASE_SCRIPT_SCRIPT",t[t.POINTER=4]="POINTER",t[t.POINTER_SCRIPT=5]="POINTER_SCRIPT",t[t.ENTERPRISE=6]="ENTERPRISE",t[t.ENTERPRISE_SCRIPT=7]="ENTERPRISE_SCRIPT",t[t.BYRON=8]="BYRON",t[t.REWARD=14]="REWARD",t[t.REWARD_SCRIPT=15]="REWARD_SCRIPT"}(e.CardanoAddressType||(e.CardanoAddressType={})),function(t){t[t.PUB_KEY=0]="PUB_KEY",t[t.ALL=1]="ALL",t[t.ANY=2]="ANY",t[t.N_OF_K=3]="N_OF_K",t[t.INVALID_BEFORE=4]="INVALID_BEFORE",t[t.INVALID_HEREAFTER=5]="INVALID_HEREAFTER"}(e.CardanoNativeScriptType||(e.CardanoNativeScriptType={})),function(t){t[t.HIDE=0]="HIDE",t[t.BECH32=1]="BECH32",t[t.POLICY_ID=2]="POLICY_ID"}(e.CardanoNativeScriptHashDisplayFormat||(e.CardanoNativeScriptHashDisplayFormat={})),function(t){t[t.ARRAY_LEGACY=0]="ARRAY_LEGACY",t[t.MAP_BABBAGE=1]="MAP_BABBAGE"}(e.CardanoTxOutputSerializationFormat||(e.CardanoTxOutputSerializationFormat={})),function(t){t[t.STAKE_REGISTRATION=0]="STAKE_REGISTRATION",t[t.STAKE_DEREGISTRATION=1]="STAKE_DEREGISTRATION",t[t.STAKE_DELEGATION=2]="STAKE_DELEGATION",t[t.STAKE_POOL_REGISTRATION=3]="STAKE_POOL_REGISTRATION"}(e.CardanoCertificateType||(e.CardanoCertificateType={})),function(t){t[t.SINGLE_HOST_IP=0]="SINGLE_HOST_IP",t[t.SINGLE_HOST_NAME=1]="SINGLE_HOST_NAME",t[t.MULTIPLE_HOST_NAME=2]="MULTIPLE_HOST_NAME"}(e.CardanoPoolRelayType||(e.CardanoPoolRelayType={})),function(t){t[t.NONE=0]="NONE",t[t.CVOTE_REGISTRATION_SIGNATURE=1]="CVOTE_REGISTRATION_SIGNATURE"}(e.CardanoTxAuxiliaryDataSupplementType||(e.CardanoTxAuxiliaryDataSupplementType={})),function(t){t[t.CIP15=0]="CIP15",t[t.CIP36=1]="CIP36"}(e.CardanoCVoteRegistrationFormat||(e.CardanoCVoteRegistrationFormat={})),function(t){t[t.ORDINARY_TRANSACTION=0]="ORDINARY_TRANSACTION",t[t.POOL_REGISTRATION_AS_OWNER=1]="POOL_REGISTRATION_AS_OWNER",t[t.MULTISIG_TRANSACTION=2]="MULTISIG_TRANSACTION",t[t.PLUTUS_TRANSACTION=3]="PLUTUS_TRANSACTION"}(e.CardanoTxSigningMode||(e.CardanoTxSigningMode={})),function(t){t[t.BYRON_WITNESS=0]="BYRON_WITNESS",t[t.SHELLEY_WITNESS=1]="SHELLEY_WITNESS"}(e.CardanoTxWitnessType||(e.CardanoTxWitnessType={})),function(t){t[t.Failure_UnexpectedMessage=1]="Failure_UnexpectedMessage",t[t.Failure_ButtonExpected=2]="Failure_ButtonExpected",t[t.Failure_DataError=3]="Failure_DataError",t[t.Failure_ActionCancelled=4]="Failure_ActionCancelled",t[t.Failure_PinExpected=5]="Failure_PinExpected",t[t.Failure_PinCancelled=6]="Failure_PinCancelled",t[t.Failure_PinInvalid=7]="Failure_PinInvalid",t[t.Failure_InvalidSignature=8]="Failure_InvalidSignature",t[t.Failure_ProcessError=9]="Failure_ProcessError",t[t.Failure_NotEnoughFunds=10]="Failure_NotEnoughFunds",t[t.Failure_NotInitialized=11]="Failure_NotInitialized",t[t.Failure_PinMismatch=12]="Failure_PinMismatch",t[t.Failure_WipeCodeMismatch=13]="Failure_WipeCodeMismatch",t[t.Failure_InvalidSession=14]="Failure_InvalidSession",t[t.Failure_FirmwareError=99]="Failure_FirmwareError"}(e.FailureType||(e.FailureType={})),function(t){t[t.ButtonRequest_Other=1]="ButtonRequest_Other",t[t.ButtonRequest_FeeOverThreshold=2]="ButtonRequest_FeeOverThreshold",t[t.ButtonRequest_ConfirmOutput=3]="ButtonRequest_ConfirmOutput",t[t.ButtonRequest_ResetDevice=4]="ButtonRequest_ResetDevice",t[t.ButtonRequest_ConfirmWord=5]="ButtonRequest_ConfirmWord",t[t.ButtonRequest_WipeDevice=6]="ButtonRequest_WipeDevice",t[t.ButtonRequest_ProtectCall=7]="ButtonRequest_ProtectCall",t[t.ButtonRequest_SignTx=8]="ButtonRequest_SignTx",t[t.ButtonRequest_FirmwareCheck=9]="ButtonRequest_FirmwareCheck",t[t.ButtonRequest_Address=10]="ButtonRequest_Address",t[t.ButtonRequest_PublicKey=11]="ButtonRequest_PublicKey",t[t.ButtonRequest_MnemonicWordCount=12]="ButtonRequest_MnemonicWordCount",t[t.ButtonRequest_MnemonicInput=13]="ButtonRequest_MnemonicInput",t[t._Deprecated_ButtonRequest_PassphraseType=14]="_Deprecated_ButtonRequest_PassphraseType",t[t.ButtonRequest_UnknownDerivationPath=15]="ButtonRequest_UnknownDerivationPath",t[t.ButtonRequest_RecoveryHomepage=16]="ButtonRequest_RecoveryHomepage",t[t.ButtonRequest_Success=17]="ButtonRequest_Success",t[t.ButtonRequest_Warning=18]="ButtonRequest_Warning",t[t.ButtonRequest_PassphraseEntry=19]="ButtonRequest_PassphraseEntry",t[t.ButtonRequest_PinEntry=20]="ButtonRequest_PinEntry"}(e.Enum_ButtonRequestType||(e.Enum_ButtonRequestType={})),function(t){t[t.PinMatrixRequestType_Current=1]="PinMatrixRequestType_Current",t[t.PinMatrixRequestType_NewFirst=2]="PinMatrixRequestType_NewFirst",t[t.PinMatrixRequestType_NewSecond=3]="PinMatrixRequestType_NewSecond",t[t.PinMatrixRequestType_WipeCodeFirst=4]="PinMatrixRequestType_WipeCodeFirst",t[t.PinMatrixRequestType_WipeCodeSecond=5]="PinMatrixRequestType_WipeCodeSecond"}(e.Enum_PinMatrixRequestType||(e.Enum_PinMatrixRequestType={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.INFO=2]="INFO"}(e.DebugButton||(e.DebugButton={})),function(t){t[t.LEFT_BTN=0]="LEFT_BTN",t[t.MIDDLE_BTN=1]="MIDDLE_BTN",t[t.RIGHT_BTN=2]="RIGHT_BTN"}(e.DebugPhysicalButton||(e.DebugPhysicalButton={})),function(t){t[t.NETWORK=0]="NETWORK",t[t.TOKEN=1]="TOKEN"}(e.EthereumDefinitionType||(e.EthereumDefinitionType={})),function(t){t[t.UINT=1]="UINT",t[t.INT=2]="INT",t[t.BYTES=3]="BYTES",t[t.STRING=4]="STRING",t[t.BOOL=5]="BOOL",t[t.ADDRESS=6]="ADDRESS",t[t.ARRAY=7]="ARRAY",t[t.STRUCT=8]="STRUCT"}(e.EthereumDataType||(e.EthereumDataType={})),function(t){t[t.Bip39=0]="Bip39",t[t.Slip39_Basic=1]="Slip39_Basic",t[t.Slip39_Advanced=2]="Slip39_Advanced"}(e.Enum_BackupType||(e.Enum_BackupType={})),function(t){t[t.Strict=0]="Strict",t[t.PromptAlways=1]="PromptAlways",t[t.PromptTemporarily=2]="PromptTemporarily"}(e.Enum_SafetyCheckLevel||(e.Enum_SafetyCheckLevel={})),function(t){t[t.Toif=1]="Toif",t[t.Jpeg=2]="Jpeg",t[t.ToiG=3]="ToiG"}(e.Enum_HomescreenFormat||(e.Enum_HomescreenFormat={})),function(t){t[t.Capability_Bitcoin=1]="Capability_Bitcoin",t[t.Capability_Bitcoin_like=2]="Capability_Bitcoin_like",t[t.Capability_Binance=3]="Capability_Binance",t[t.Capability_Cardano=4]="Capability_Cardano",t[t.Capability_Crypto=5]="Capability_Crypto",t[t.Capability_EOS=6]="Capability_EOS",t[t.Capability_Ethereum=7]="Capability_Ethereum",t[t.Capability_Lisk=8]="Capability_Lisk",t[t.Capability_Monero=9]="Capability_Monero",t[t.Capability_NEM=10]="Capability_NEM",t[t.Capability_Ripple=11]="Capability_Ripple",t[t.Capability_Stellar=12]="Capability_Stellar",t[t.Capability_Tezos=13]="Capability_Tezos",t[t.Capability_U2F=14]="Capability_U2F",t[t.Capability_Shamir=15]="Capability_Shamir",t[t.Capability_ShamirGroups=16]="Capability_ShamirGroups",t[t.Capability_PassphraseEntry=17]="Capability_PassphraseEntry"}(e.Enum_Capability||(e.Enum_Capability={})),function(t){t[t.DISABLE=0]="DISABLE",t[t.ENABLE=1]="ENABLE",t[t.REFRESH=2]="REFRESH"}(e.SdProtectOperationType||(e.SdProtectOperationType={})),function(t){t[t.RecoveryDeviceType_ScrambledWords=0]="RecoveryDeviceType_ScrambledWords",t[t.RecoveryDeviceType_Matrix=1]="RecoveryDeviceType_Matrix"}(e.RecoveryDeviceType||(e.RecoveryDeviceType={})),function(t){t[t.WordRequestType_Plain=0]="WordRequestType_Plain",t[t.WordRequestType_Matrix9=1]="WordRequestType_Matrix9",t[t.WordRequestType_Matrix6=2]="WordRequestType_Matrix6"}(e.Enum_WordRequestType||(e.Enum_WordRequestType={})),function(t){t[t.MAINNET=0]="MAINNET",t[t.TESTNET=1]="TESTNET",t[t.STAGENET=2]="STAGENET",t[t.FAKECHAIN=3]="FAKECHAIN"}(e.MoneroNetworkType||(e.MoneroNetworkType={})),function(t){t[t.MosaicLevy_Absolute=1]="MosaicLevy_Absolute",t[t.MosaicLevy_Percentile=2]="MosaicLevy_Percentile"}(e.NEMMosaicLevy||(e.NEMMosaicLevy={})),function(t){t[t.SupplyChange_Increase=1]="SupplyChange_Increase",t[t.SupplyChange_Decrease=2]="SupplyChange_Decrease"}(e.NEMSupplyChangeType||(e.NEMSupplyChangeType={})),function(t){t[t.CosignatoryModification_Add=1]="CosignatoryModification_Add",t[t.CosignatoryModification_Delete=2]="CosignatoryModification_Delete"}(e.NEMModificationType||(e.NEMModificationType={})),function(t){t[t.ImportanceTransfer_Activate=1]="ImportanceTransfer_Activate",t[t.ImportanceTransfer_Deactivate=2]="ImportanceTransfer_Deactivate"}(e.NEMImportanceTransferMode||(e.NEMImportanceTransferMode={})),function(t){t[t.NATIVE=0]="NATIVE",t[t.ALPHANUM4=1]="ALPHANUM4",t[t.ALPHANUM12=2]="ALPHANUM12"}(e.StellarAssetType||(e.StellarAssetType={})),function(t){t[t.NONE=0]="NONE",t[t.TEXT=1]="TEXT",t[t.ID=2]="ID",t[t.HASH=3]="HASH",t[t.RETURN=4]="RETURN"}(e.StellarMemoType||(e.StellarMemoType={})),function(t){t[t.ACCOUNT=0]="ACCOUNT",t[t.PRE_AUTH=1]="PRE_AUTH",t[t.HASH=2]="HASH"}(e.StellarSignerType||(e.StellarSignerType={})),function(t){t[t.Implicit=0]="Implicit",t[t.Originated=1]="Originated"}(e.TezosContractType||(e.TezosContractType={})),function(t){t[t.Yay=0]="Yay",t[t.Nay=1]="Nay",t[t.Pass=2]="Pass"}(e.TezosBallotType||(e.TezosBallotType={}))},12942:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TRANSPORT=e.ACTION_TIMEOUT=e.TREZOR_USB_DESCRIPTORS=e.T1_HID_VENDOR=e.ENDPOINT_ID=e.INTERFACE_ID=e.CONFIGURATION_ID=void 0,e.CONFIGURATION_ID=1,e.INTERFACE_ID=0,e.ENDPOINT_ID=1,e.T1_HID_VENDOR=21324,e.TREZOR_USB_DESCRIPTORS=[{vendorId:21324,productId:1},{vendorId:4617,productId:21440},{vendorId:4617,productId:21441}],e.ACTION_TIMEOUT=1e4,e.TRANSPORT={START:"transport-start",ERROR:"transport-error",UPDATE:"transport-update",DISABLE_WEBUSB:"transport-disable_webusb",REQUEST_DEVICE:"transport-request_device"}},75021:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.arrayDistinct=void 0,e.arrayDistinct=(a,s,r)=>r.indexOf(a)===s},52581:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.arrayPartition=void 0,e.arrayPartition=(a,s)=>a.reduce(([r,c],d)=>s(d)?[[...r,d],c]:[r,[...c,d]],[[],[]])},81917:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.arrayShuffle=void 0,e.arrayShuffle=a=>{const s=a.slice();for(let r=s.length-1;r>0;r--){const c=Math.floor(Math.random()*(r+1));[s[r],s[c]]=[s[c],s[r]]}return s}},92676:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.arrayToDictionary=void 0;const n=s=>!!["string","number"].includes(typeof s);e.arrayToDictionary=(s,r,c)=>s.reduce(c?(d,o)=>{var m;const u=r(o);return n(u)?Object.assign(Object.assign({},d),{[u]:[...null!==(m=d[u])&&void 0!==m?m:[],o]}):d}:(d,o)=>{const m=r(o);return n(m)?Object.assign(Object.assign({},d),{[m]:o}):d},{})},5518:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reverseBuffer=void 0,e.reverseBuffer=a=>{if(a.length<1)return a;const s=Buffer.alloc(a.length);let r=s.length-1;for(let c=0;c<s.length/2;c++)s[c]=a[r],s[r]=a[c],r--;return s}},44371:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bytesToHumanReadable=void 0;const n=["B","KB","MB","GB","TB"];e.bytesToHumanReadable=s=>{let r=Math.abs(s),c=0;for(;r>=1024||c>=n.length;)r/=1024,c++;return`${r.toFixed(1)} ${n[c]}`}},69453:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.capitalizeFirstLetter=void 0,e.capitalizeFirstLetter=a=>a.charAt(0).toUpperCase()+a.slice(1)},75387:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cloneObject=void 0,e.cloneObject=a=>{const s=JSON.stringify(a);return void 0===s?a:JSON.parse(s)}},27371:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.countBytesInString=void 0,e.countBytesInString=a=>encodeURI(a).split(/%..|./).length-1},30009:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createCooldown=void 0,e.createCooldown=a=>{let s=0;return()=>{const r=Date.now();return r-s>=a&&(s=r,!0)}}},95867:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createDeferred=void 0,e.createDeferred=a=>{let s=()=>{},r=()=>{};const c=new Promise((d,o)=>{s=d,r=o});return{id:a,resolve:s,reject:r,promise:c}}},51293:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createTimeoutPromise=void 0,e.createTimeoutPromise=a=>new Promise(s=>setTimeout(s,a))},67682:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getValueByKey=e.getKeyByValue=void 0,e.getKeyByValue=function(s,r){return s&&Object.keys(s).find(c=>s[c]===r)},e.getValueByKey=function(s,r){const c=s&&Object.keys(s).find(d=>d===r);return c&&s[c]}},67539:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getLocaleSeparators=void 0,e.getLocaleSeparators=a=>{var s,r;const d=new Intl.NumberFormat(a).formatToParts(10000.1);return{decimalSeparator:null===(s=d.find(({type:u})=>"decimal"===u))||void 0===s?void 0:s.value,thousandsSeparator:null===(r=d.find(({type:u})=>"group"===u))||void 0===r?void 0:r.value}}},65548:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getNumberFromPixelString=void 0,e.getNumberFromPixelString=a=>parseInt(a.replace("px",""),10)},9830:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRandomNumberInRange=void 0,e.getRandomNumberInRange=(a,s)=>Math.floor(Math.random()*(s-a+1))+a},60299:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSynchronize=void 0,e.getSynchronize=()=>{let a;return s=>{const r=(a??Promise.resolve()).catch(()=>{}).then(s).finally(()=>{a===r&&(a=void 0)});return a=r,a}}},27749:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getWeakRandomId=void 0,e.getWeakRandomId=a=>{let s="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let c=0;c<a;c++)s+=r.charAt(Math.floor(Math.random()*r.length));return s}},91873:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hasUppercaseLetter=void 0;const n=new RegExp("^(.*[A-Z].*)$");e.hasUppercaseLetter=s=>n.test(s)},16260:function(f,e,n){var a=this&&this.__createBinding||(Object.create?function(d,o,m,u){void 0===u&&(u=m);var E=Object.getOwnPropertyDescriptor(o,m);(!E||("get"in E?!o.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return o[m]}}),Object.defineProperty(d,u,E)}:function(d,o,m,u){void 0===u&&(u=m),d[u]=o[m]}),s=this&&this.__setModuleDefault||(Object.create?function(d,o){Object.defineProperty(d,"default",{enumerable:!0,value:o})}:function(d,o){d.default=o}),r=this&&this.__exportStar||function(d,o){for(var m in d)"default"!==m&&!Object.prototype.hasOwnProperty.call(o,m)&&a(o,d,m)},c=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var o={};if(null!=d)for(var m in d)"default"!==m&&Object.prototype.hasOwnProperty.call(d,m)&&a(o,d,m);return s(o,d),o};Object.defineProperty(e,"__esModule",{value:!0}),e.xssFilters=e.versionUtils=e.enumUtils=e.bufferUtils=void 0,r(n(75021),e),r(n(52581),e),r(n(81917),e),r(n(92676),e),e.bufferUtils=c(n(5518)),r(n(44371),e),r(n(69453),e),r(n(75387),e),r(n(27371),e),r(n(30009),e),r(n(95867),e),r(n(51293),e),e.enumUtils=c(n(67682)),r(n(65548),e),r(n(9830),e),r(n(60299),e),r(n(27749),e),r(n(91873),e),r(n(59777),e),r(n(62880),e),r(n(25733),e),r(n(46346),e),r(n(88933),e),r(n(59827),e),r(n(45400),e),r(n(53380),e),r(n(4415),e),r(n(54891),e),r(n(76312),e),r(n(10987),e),r(n(91248),e),r(n(5210),e),r(n(82317),e),e.versionUtils=c(n(92565)),e.xssFilters=c(n(73225)),r(n(67539),e)},59777:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAscii=void 0,e.isAscii=function(a){return!a||/^[\x00-\x7F]*$/.test(a)}},62880:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isHex=void 0,e.isHex=a=>/^(0x|0X)?[0-9A-Fa-f]+$/g.test(a)},25733:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isNotUndefined=void 0,e.isNotUndefined=a=>void 0!==a},46346:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isUrl=void 0;const n=/^(http|ws)s?:\/\/[a-z0-9]([a-z0-9.-]+)?(:[0-9]{1,5})?((\/)?(([a-z0-9-_])+(\/)?)+)$/i;e.isUrl=s=>n.test(s)},88933:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeDeepObject=void 0;const n=r=>{if("object"==typeof r&&null!==r){if("function"==typeof Object.getPrototypeOf){const c=Object.getPrototypeOf(r);return c===Object.prototype||null===c}return"[object Object]"===Object.prototype.toString.call(r)}return!1};e.mergeDeepObject=(...r)=>r.reduce((c,d)=>{if(Array.isArray(d))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(d).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(c[o]=Array.isArray(c[o])&&Array.isArray(d[o])?e.mergeDeepObject.options.mergeArrays?Array.from(new Set(c[o].concat(d[o]))):d[o]:n(c[o])&&n(d[o])?(0,e.mergeDeepObject)(c[o],d[o]):d[o])}),c},{});const s={mergeArrays:!0};e.mergeDeepObject.options=s,e.mergeDeepObject.withOptions=(r,...c)=>{e.mergeDeepObject.options=Object.assign({mergeArrays:!0},r);const d=(0,e.mergeDeepObject)(...c);return e.mergeDeepObject.options=s,d}},59827:function(f,e){var n=this&&this.__rest||function(s,r){var c={};for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&r.indexOf(d)<0&&(c[d]=s[d]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(d=Object.getOwnPropertySymbols(s);o<d.length;o++)r.indexOf(d[o])<0&&Object.prototype.propertyIsEnumerable.call(s,d[o])&&(c[d[o]]=s[d[o]])}return c};Object.defineProperty(e,"__esModule",{value:!0}),e.objectPartition=void 0,e.objectPartition=(s,r)=>r.reduce(([c,d],o)=>{const E=d[o],v=n(d,["symbol"==typeof o?o:o+""]);return void 0!==E?[Object.assign(Object.assign({},c),{[o]:E}),v]:[c,d]},[{},s])},45400:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseElectrumUrl=void 0;const n=/^(?:([a-zA-Z0-9.-]+)|\[([a-f0-9:]+)\]):([0-9]{1,5}):([ts])$/;e.parseElectrumUrl=s=>{var r;const c=s.match(n);if(c)return{host:null!==(r=c[1])&&void 0!==r?r:c[2],port:Number.parseInt(c[3],10),protocol:c[4]}}},53380:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseHostname=void 0;const n=/^([a-z0-9.+-]+:\/\/)?([a-z0-9.-]+)([:/][^:/]+)*\/?$/i;e.parseHostname=s=>{var r,c;return null===(c=null===(r=s.match(n))||void 0===r?void 0:r[2])||void 0===c?void 0:c.toLowerCase()}},4415:function(f,e){var n=this&&this.__awaiter||function(s,r,c,d){return new(c||(c=Promise))(function(m,u){function E(b){try{h(d.next(b))}catch(_){u(_)}}function v(b){try{h(d.throw(b))}catch(_){u(_)}}function h(b){b.done?m(b.value):function(m){return m instanceof c?m:new c(function(u){u(m)})}(b.value).then(E,v)}h((d=d.apply(s,r||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.promiseAllSequence=void 0,e.promiseAllSequence=s=>n(void 0,void 0,void 0,function*(){const r=[];for(let c=0;c<s.length;++c){const d=yield s[c]();r.push(d)}return r})},54891:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.redactUserPathFromString=e.startOfUserPathRegex=void 0,e.startOfUserPathRegex=/([/\\][Uu]sers[/\\]{1,4})([^"^'^[^\]^/^\\]*)/g,e.redactUserPathFromString=a=>a.replace(e.startOfUserPathRegex,"$1[*]")},76312:function(f,e){var n=this&&this.__awaiter||function(h,b,_,l){return new(_||(_=Promise))(function(g,O){function A(P){try{p(l.next(P))}catch(T){O(T)}}function N(P){try{p(l.throw(P))}catch(T){O(T)}}function p(P){P.done?g(P.value):function(g){return g instanceof _?g:new _(function(O){O(g)})}(P.value).then(A,N)}p((l=l.apply(h,b||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleAction=void 0;const a=h=>Array.isArray(h),s=()=>new Error("Aborted by signal"),r=()=>new Error("Aborted by deadline"),c=()=>new Error("Aborted by timeout"),d=(h,b)=>new Promise((_,l)=>{if(b.aborted)return l();if(void 0===h)return _();const i=setTimeout(_,h),g=()=>{clearTimeout(i),b.removeEventListener("abort",g),l()};b.addEventListener("abort",g)}),o=(h,b,_)=>new Promise((l,i)=>{if(_.aborted)return i();const g=void 0!==h?setTimeout(()=>i(b()),h):void 0,O=()=>{clearTimeout(g),_.removeEventListener("abort",O),i()};_.addEventListener("abort",O)}),m=(h,b)=>new Promise((_,l)=>{if(b.aborted)return l();if(null==h?void 0:h.aborted)return l(s());const i=()=>l(s());null==h||h.addEventListener("abort",i);const g=()=>{null==h||h.removeEventListener("abort",i),b.removeEventListener("abort",g),l()};b.addEventListener("abort",g)}),u=(h,b)=>n(void 0,void 0,void 0,function*(){const _=new AbortController,l=()=>_.abort();b.aborted&&l(),b.addEventListener("abort",l);try{return yield new Promise(i=>i(h(_.signal)))}finally{b.removeEventListener("abort",l)}});e.scheduleAction=(h,b)=>n(void 0,void 0,void 0,function*(){const{signal:_,delay:l,attempts:i,timeout:g,deadline:O,gap:A}=b,N=O&&O-Date.now(),p=a(i)?i.length:i??(O?1/0:1),P=new AbortController,T=P.signal,w=a(i)?y=>i[y]:()=>({timeout:g,gap:A});try{return yield Promise.race([m(_,T),o(N,r,T),d(l,T).then(()=>((h,b,_,l)=>n(void 0,void 0,void 0,function*(){for(let i=0;i<h-1&&!l.aborted;i++){const g=new AbortController,O=()=>g.abort();l.addEventListener("abort",O);try{return yield b(i,g.signal)}catch{O(),yield(y=i,U=void 0,d(null!==(U=w(y).gap)&&void 0!==U?U:0,T))}finally{l.removeEventListener("abort",O)}}var y,U;return l.aborted?Promise.reject():b(h-1,l)}))(p,(y,U)=>Promise.race([o(w(y).timeout,c,T),u(h,U)]),0,T))])}finally{P.abort()}})},10987:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.throwError=void 0,e.throwError=a=>{throw new Error(a)}},5210:(f,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.topologicalSort=void 0;const a=n(52581);e.topologicalSort=(r,c,d)=>{const o=[],m=E=>(0,a.arrayPartition)(E,v=>!E.some(h=>c(h,v)));let u=r;for(;u.length;){const[E,v]=m(u);if(!E.length)throw new Error("Cycle detected");o.push(...d?E.sort(d):E),u=v}return o}},91248:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.truncateMiddle=void 0,e.truncateMiddle=(a,s,r)=>a.length<=s+r?a:`${a.substring(0,s)}\u2026${a.substring(a.length-r,a.length)}`},82317:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.urlToOnion=void 0,e.urlToOnion=(a,s)=>{var r;const[,c,d,o,m]=null!==(r=a.match(/^(http|ws)s?:\/\/([^:/]+\.)?([^/.]+\.[^/.]+)(\/.*)?$/i))&&void 0!==r?r:[];if(o&&s[o])return`${c}://${d??""}${s[o]}${m??""}`}},92565:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeVersion=e.isNewerOrEqual=e.isEqual=e.isNewer=e.isVersionArray=void 0;const n=u=>({major:u[0],minor:u[1],patch:u[2]}),a=u=>{const E=u.split(".");if(3!==E.length)throw new Error("version string is in wrong format");return E},s=u=>`${u[0]}.${u[1]}.${u[2]}`;e.isVersionArray=u=>3===u.length,e.isNewer=(u,E)=>{const v=n("string"==typeof u?a(u):u),h=n("string"==typeof E?a(E):E);return v.major-h.major!=0?v.major>h.major:v.minor-h.minor!=0?v.minor>h.minor:v.patch-h.patch!=0&&v.patch>h.patch},e.isEqual=(u,E)=>("string"==typeof u?u:s(u))===("string"==typeof E?E:s(E)),e.isNewerOrEqual=(u,E)=>(0,e.isNewer)(u,E)||(0,e.isEqual)(u,E),e.normalizeVersion=u=>u.replace(/\b0+(\d)/g,"$1")},73225:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.inDoubleQuotes=e.inSingleQuotes=e.inHTML=void 0;const n=/</g,a=/'/g,s=/"/g;e.inHTML=o=>o.replace(n,"<"),e.inSingleQuotes=o=>o.replace(a,"'"),e.inDoubleQuotes=o=>o.replace(s,""")}}]);