-
Notifications
You must be signed in to change notification settings - Fork 0
/
2766.e7fb8c1812d4e93d7aa5.js
1 lines (1 loc) · 13.1 KB
/
2766.e7fb8c1812d4e93d7aa5.js
1
"use strict";(self.webpackChunktimeless_frontend=self.webpackChunktimeless_frontend||[]).push([[2766],{5158:(p,o)=>{function t(){return(null==global?void 0:global.crypto)||(null==global?void 0:global.msCrypto)||{}}function s(){const c=t();return c.subtle||c.webkitSubtle}Object.defineProperty(o,"__esModule",{value:!0}),o.isBrowserCryptoAvailable=o.getSubtleCrypto=o.getBrowerCrypto=void 0,o.getBrowerCrypto=t,o.getSubtleCrypto=s,o.isBrowserCryptoAvailable=function(){return!!t()&&!!s()}},69537:(p,o)=>{function t(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function s(){return"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.node}Object.defineProperty(o,"__esModule",{value:!0}),o.isBrowser=o.isNode=o.isReactNative=void 0,o.isReactNative=t,o.isNode=s,o.isBrowser=function(){return!t()&&!s()}},38572:(p,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0});const s=t(33172);s.__exportStar(t(5158),o),s.__exportStar(t(69537),o)},52885:(p,o,t)=>{t.d(o,{O4:()=>d,CA:()=>y,dQ:()=>a,xK:()=>f,JV:()=>v});const d="INTERNAL_ERROR",y="SERVER_ERROR",a=[-32700,-32600,-32601,-32602,-32603],f={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[d]:{code:-32603,message:"Internal error"},[y]:{code:-32e3,message:"Server error"}},v=y},84275:(p,o,t)=>{var s=t(38572);t.o(s,"IJsonRpcProvider")&&t.d(o,{IJsonRpcProvider:function(){return s.IJsonRpcProvider}}),t.o(s,"formatJsonRpcError")&&t.d(o,{formatJsonRpcError:function(){return s.formatJsonRpcError}}),t.o(s,"formatJsonRpcRequest")&&t.d(o,{formatJsonRpcRequest:function(){return s.formatJsonRpcRequest}}),t.o(s,"formatJsonRpcResult")&&t.d(o,{formatJsonRpcResult:function(){return s.formatJsonRpcResult}}),t.o(s,"getBigIntRpcId")&&t.d(o,{getBigIntRpcId:function(){return s.getBigIntRpcId}}),t.o(s,"isHttpUrl")&&t.d(o,{isHttpUrl:function(){return s.isHttpUrl}}),t.o(s,"isJsonRpcError")&&t.d(o,{isJsonRpcError:function(){return s.isJsonRpcError}}),t.o(s,"isJsonRpcRequest")&&t.d(o,{isJsonRpcRequest:function(){return s.isJsonRpcRequest}}),t.o(s,"isJsonRpcResponse")&&t.d(o,{isJsonRpcResponse:function(){return s.isJsonRpcResponse}}),t.o(s,"isJsonRpcResult")&&t.d(o,{isJsonRpcResult:function(){return s.isJsonRpcResult}}),t.o(s,"isLocalhostUrl")&&t.d(o,{isLocalhostUrl:function(){return s.isLocalhostUrl}}),t.o(s,"isReactNative")&&t.d(o,{isReactNative:function(){return s.isReactNative}}),t.o(s,"isWsUrl")&&t.d(o,{isWsUrl:function(){return s.isWsUrl}}),t.o(s,"payloadId")&&t.d(o,{payloadId:function(){return s.payloadId}})},93938:(p,o,t)=>{t.d(o,{i5:()=>c,by:()=>d,L2:()=>y,CX:()=>h});var s=t(52885);function c(f){return s.dQ.includes(f)}function d(f){return Object.keys(s.xK).includes(f)?s.xK[f]:s.xK[s.JV]}function y(f){return Object.values(s.xK).find(I=>I.code===f)||s.xK[s.JV]}function h(f,v,I){return f.message.includes("getaddrinfo ENOTFOUND")||f.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${I} RPC url at ${v}`):f}},90863:(p,o,t)=>{t.d(o,{o0:()=>c,CS:()=>g,sT:()=>d,tm:()=>y,RI:()=>a});var s=t(93938),m=t(52885);function c(f=3){return Date.now()*Math.pow(10,f)+Math.floor(Math.random()*Math.pow(10,f))}function g(f=6){return BigInt(c(f))}function d(f,v,I){return{id:I||c(),jsonrpc:"2.0",method:f,params:v}}function y(f,v){return{id:f,jsonrpc:"2.0",result:v}}function a(f,v,I){return{id:f,jsonrpc:"2.0",error:h(v,I)}}function h(f,v){return void 0===f?(0,s.by)(m.O4):("string"==typeof f&&(f=Object.assign(Object.assign({},(0,s.by)(m.CA)),{message:f})),void 0!==v&&(f.data=v),(0,s.i5)(f.code)&&(f=(0,s.L2)(f.code)),f)}},22339:(p,o,t)=>{t.d(o,{CX:()=>m.CX,formatJsonRpcError:()=>g.RI,formatJsonRpcRequest:()=>g.sT,formatJsonRpcResult:()=>g.tm,getBigIntRpcId:()=>g.CS,payloadId:()=>g.o0,IJsonRpcProvider:()=>d.x0,isHttpUrl:()=>y.jK,isLocalhostUrl:()=>y.JF,isWsUrl:()=>y.UZ,isJsonRpcError:()=>a.jg,isJsonRpcRequest:()=>a.DW,isJsonRpcResponse:()=>a.u,isJsonRpcResult:()=>a.k4}),t(52885);var m=t(93938),c=t(84275);t.o(c,"IJsonRpcProvider")&&t.d(o,{IJsonRpcProvider:function(){return c.IJsonRpcProvider}}),t.o(c,"formatJsonRpcError")&&t.d(o,{formatJsonRpcError:function(){return c.formatJsonRpcError}}),t.o(c,"formatJsonRpcRequest")&&t.d(o,{formatJsonRpcRequest:function(){return c.formatJsonRpcRequest}}),t.o(c,"formatJsonRpcResult")&&t.d(o,{formatJsonRpcResult:function(){return c.formatJsonRpcResult}}),t.o(c,"getBigIntRpcId")&&t.d(o,{getBigIntRpcId:function(){return c.getBigIntRpcId}}),t.o(c,"isHttpUrl")&&t.d(o,{isHttpUrl:function(){return c.isHttpUrl}}),t.o(c,"isJsonRpcError")&&t.d(o,{isJsonRpcError:function(){return c.isJsonRpcError}}),t.o(c,"isJsonRpcRequest")&&t.d(o,{isJsonRpcRequest:function(){return c.isJsonRpcRequest}}),t.o(c,"isJsonRpcResponse")&&t.d(o,{isJsonRpcResponse:function(){return c.isJsonRpcResponse}}),t.o(c,"isJsonRpcResult")&&t.d(o,{isJsonRpcResult:function(){return c.isJsonRpcResult}}),t.o(c,"isLocalhostUrl")&&t.d(o,{isLocalhostUrl:function(){return c.isLocalhostUrl}}),t.o(c,"isReactNative")&&t.d(o,{isReactNative:function(){return c.isReactNative}}),t.o(c,"isWsUrl")&&t.d(o,{isWsUrl:function(){return c.isWsUrl}}),t.o(c,"payloadId")&&t.d(o,{payloadId:function(){return c.payloadId}});var g=t(90863),d=t(57572),y=t(96796),a=t(9087)},57572:(p,o,t)=>{t.d(o,{x0:()=>g});class g extends class extends class{}{constructor(){super()}}{constructor(y){super()}}},96796:(p,o,t)=>{function g(h,f){const v=function(h){const f=h.match(new RegExp(/^\w+:/,"gi"));if(f&&f.length)return f[0]}(h);return void 0!==v&&new RegExp(f).test(v)}function d(h){return g(h,"^https?:")}function y(h){return g(h,"^wss?:")}function a(h){return new RegExp("wss?://localhost(:d{2,5})?").test(h)}t.d(o,{jK:()=>d,UZ:()=>y,JF:()=>a})},9087:(p,o,t)=>{function s(a){return"object"==typeof a&&"id"in a&&"jsonrpc"in a&&"2.0"===a.jsonrpc}function m(a){return s(a)&&"method"in a}function c(a){return s(a)&&(g(a)||d(a))}function g(a){return"result"in a}function d(a){return"error"in a}t.d(o,{DW:()=>m,u:()=>c,k4:()=>g,jg:()=>d})},65361:p=>{var o="%[a-f0-9]{2}",t=new RegExp("("+o+")|([^%]+?)","gi"),s=new RegExp("("+o+")+","gi");function m(d,y){try{return[decodeURIComponent(d.join(""))]}catch{}if(1===d.length)return d;var a=d.slice(0,y=y||1),h=d.slice(y);return Array.prototype.concat.call([],m(a),m(h))}function c(d){try{return decodeURIComponent(d)}catch{for(var y=d.match(t)||[],a=1;a<y.length;a++)y=(d=m(y,a).join("")).match(t)||[];return d}}p.exports=function(d){if("string"!=typeof d)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof d+"`");try{return d=d.replace(/\+/g," "),decodeURIComponent(d)}catch{return function(d){for(var y={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},a=s.exec(d);a;){try{y[a[0]]=decodeURIComponent(a[0])}catch{var h=c(a[0]);h!==a[0]&&(y[a[0]]=h)}a=s.exec(d)}y["%C2"]="\ufffd";for(var f=Object.keys(y),v=0;v<f.length;v++){var I=f[v];d=d.replace(new RegExp(I,"g"),y[I])}return d}(d)}}},95967:p=>{p.exports=(o,t)=>{if("string"!=typeof o||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[o];const s=o.indexOf(t);return-1===s?[o]:[o.slice(0,s),o.slice(s+t.length)]}},82915:p=>{p.exports=o=>encodeURIComponent(o).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)},33172:(p,o,t)=>{t.r(o),t.d(o,{__extends:()=>m,__assign:()=>c,__rest:()=>g,__decorate:()=>d,__param:()=>y,__metadata:()=>a,__awaiter:()=>h,__generator:()=>f,__createBinding:()=>v,__exportStar:()=>I,__values:()=>A,__read:()=>N,__spread:()=>T,__spreadArrays:()=>j,__await:()=>U,__asyncGenerator:()=>B,__asyncDelegator:()=>F,__asyncValues:()=>L,__makeTemplateObject:()=>W,__importStar:()=>K,__importDefault:()=>V,__classPrivateFieldGet:()=>H,__classPrivateFieldSet:()=>G});var s=function(n,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var l in u)u.hasOwnProperty(l)&&(r[l]=u[l])})(n,e)};function m(n,e){function r(){this.constructor=n}s(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var c=function(){return c=Object.assign||function(e){for(var r,u=1,l=arguments.length;u<l;u++)for(var i in r=arguments[u])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},c.apply(this,arguments)};function g(n,e){var r={};for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&e.indexOf(u)<0&&(r[u]=n[u]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(u=Object.getOwnPropertySymbols(n);l<u.length;l++)e.indexOf(u[l])<0&&Object.prototype.propertyIsEnumerable.call(n,u[l])&&(r[u[l]]=n[u[l]])}return r}function d(n,e,r,u){var R,l=arguments.length,i=l<3?e:null===u?u=Object.getOwnPropertyDescriptor(e,r):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,e,r,u);else for(var O=n.length-1;O>=0;O--)(R=n[O])&&(i=(l<3?R(i):l>3?R(e,r,i):R(e,r))||i);return l>3&&i&&Object.defineProperty(e,r,i),i}function y(n,e){return function(r,u){e(r,u,n)}}function a(n,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,e)}function h(n,e,r,u){return new(r||(r=Promise))(function(i,R){function O(P){try{E(u.next(P))}catch(C){R(C)}}function D(P){try{E(u.throw(P))}catch(C){R(C)}}function E(P){P.done?i(P.value):function(i){return i instanceof r?i:new r(function(R){R(i)})}(P.value).then(O,D)}E((u=u.apply(n,e||[])).next())})}function f(n,e){var u,l,i,R,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return R={next:O(0),throw:O(1),return:O(2)},"function"==typeof Symbol&&(R[Symbol.iterator]=function(){return this}),R;function O(E){return function(P){return function(E){if(u)throw new TypeError("Generator is already executing.");for(;r;)try{if(u=1,l&&(i=2&E[0]?l.return:E[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,E[1])).done)return i;switch(l=0,i&&(E=[2&E[0],i.value]),E[0]){case 0:case 1:i=E;break;case 4:return r.label++,{value:E[1],done:!1};case 5:r.label++,l=E[1],E=[0];continue;case 7:E=r.ops.pop(),r.trys.pop();continue;default:if(!(i=(i=r.trys).length>0&&i[i.length-1])&&(6===E[0]||2===E[0])){r=0;continue}if(3===E[0]&&(!i||E[1]>i[0]&&E[1]<i[3])){r.label=E[1];break}if(6===E[0]&&r.label<i[1]){r.label=i[1],i=E;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(E);break}i[2]&&r.ops.pop(),r.trys.pop();continue}E=e.call(n,r)}catch(P){E=[6,P],l=0}finally{u=i=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,P])}}}function v(n,e,r,u){void 0===u&&(u=r),n[u]=e[r]}function I(n,e){for(var r in n)"default"!==r&&!e.hasOwnProperty(r)&&(e[r]=n[r])}function A(n){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&n[e],u=0;if(r)return r.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&u>=n.length&&(n=void 0),{value:n&&n[u++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(n,e){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var l,R,u=r.call(n),i=[];try{for(;(void 0===e||e-- >0)&&!(l=u.next()).done;)i.push(l.value)}catch(O){R={error:O}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(R)throw R.error}}return i}function T(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(N(arguments[e]));return n}function j(){for(var n=0,e=0,r=arguments.length;e<r;e++)n+=arguments[e].length;var u=Array(n),l=0;for(e=0;e<r;e++)for(var i=arguments[e],R=0,O=i.length;R<O;R++,l++)u[l]=i[R];return u}function U(n){return this instanceof U?(this.v=n,this):new U(n)}function B(n,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,u=r.apply(n,e||[]),i=[];return l={},R("next"),R("throw"),R("return"),l[Symbol.asyncIterator]=function(){return this},l;function R(J){u[J]&&(l[J]=function(S){return new Promise(function(M,x){i.push([J,S,M,x])>1||O(J,S)})})}function O(J,S){try{!function(J){J.value instanceof U?Promise.resolve(J.value.v).then(E,P):C(i[0][2],J)}(u[J](S))}catch(M){C(i[0][3],M)}}function E(J){O("next",J)}function P(J){O("throw",J)}function C(J,S){J(S),i.shift(),i.length&&O(i[0][0],i[0][1])}}function F(n){var e,r;return e={},u("next"),u("throw",function(l){throw l}),u("return"),e[Symbol.iterator]=function(){return this},e;function u(l,i){e[l]=n[l]?function(R){return(r=!r)?{value:U(n[l](R)),done:"return"===l}:i?i(R):R}:i}}function L(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,e=n[Symbol.asyncIterator];return e?e.call(n):(n=A(n),r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r);function u(i){r[i]=n[i]&&function(R){return new Promise(function(O,D){!function(i,R,O,D){Promise.resolve(D).then(function(E){i({value:E,done:O})},R)}(O,D,(R=n[i](R)).done,R.value)})}}}function W(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}function K(n){if(n&&n.__esModule)return n;var e={};if(null!=n)for(var r in n)Object.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e.default=n,e}function V(n){return n&&n.__esModule?n:{default:n}}function H(n,e){if(!e.has(n))throw new TypeError("attempted to get private field on non-instance");return e.get(n)}function G(n,e,r){if(!e.has(n))throw new TypeError("attempted to set private field on non-instance");return e.set(n,r),r}}}]);