/*! For license information please see 5.46be50cc.chunk.js.LICENSE.txt */ (this["webpackJsonpipfs-webui"]=this["webpackJsonpipfs-webui"]||[]).push([[5],[function(e,t,n){"use strict";e.exports=n(429)},function(e,t,n){"use strict";e.exports=n(428)},function(e,t,n){e.exports=n(427)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(32);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.arg,n=e.searchParams,s=e.hashAlg,u=e.mtime,c=e.mode,l=i(e,["arg","searchParams","hashAlg","mtime","mode"]);n&&(l=r(r({},l),n)),s&&(l.hash=s),null!=u&&(u=a(u),l.mtime=u.secs,l.mtimeNsecs=u.nsecs),null!=c&&(l.mode=o(c)),l.timeout&&!isNaN(l.timeout)&&(l.timeout="".concat(l.timeout,"ms")),void 0===t||null===t?t=[]:Array.isArray(t)||(t=[t]);var f=new URLSearchParams(l);return t.forEach((function(e){return f.append("arg",e)})),f}},function(e,t,n){var r=n(79);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t0}},u=function(e){return function(t){return function(n){var r=n.actionCreator,i=n.args;if(r){var o=e.meta.unboundActionCreators[r];if(!o)throw Error("NoSuchActionCreator: "+r);return t(i?o.apply(void 0,i):o())}return t(n)}}},c=function(e){return function(t){var n=e.reduce((function(e,n){return Object.assign(e,n(t))}),{});return function(e){return function(r){if("function"===typeof r){var i=t.getState,o=t.dispatch;return r(Object.assign({},{getState:i,dispatch:o,store:t},n))}return e(r)}}}};var l=function(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r),f=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+f(),REPLACE:"@@redux/REPLACE"+f(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+f()}};function d(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(h)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function f(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function b(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return c(),s.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,c();var n=s.indexOf(e);s.splice(n,1)}}}function v(e){if(!d(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,o=i(o,e)}finally{u=!1}for(var t=a=s,n=0;n1&&void 0!==arguments[1]?arguments[1]:k,n=null,r=null;return function(){return w(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function x(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}var S=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r500)throw Error("Could not resolve selector dependencies.")}(r),n.unboundSelectors=r,function(e,t){var n=function(n){var r=t[n];e[n]||(e[n]=function(){return r(e.getState())})};for(var r in t)n(r)}(e,r),n.reactorNames=n.reactorNames.concat(t.reactorNames),Object.assign(n.unboundActionCreators,t.actionCreators),Object.assign(e,function(e,t){if("function"===typeof e)return g(e,t);if("object"!==typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},i=0;ir})),x[d]=A(l,(function(e){return e.isExpired})),x[h]=A(l,(function(e){return e.errorTimes.slice(-1)[0]||null})),x[p]=A(l,(function(e){return e.lastSuccess})),x[v]=A(h,"selectAppTime",(function(e,t){return!!e&&t-es?w():void 0)}))),x},ne={idleTimeout:3e4,idleAction:"APP_IDLE",doneCallback:null,stopWhenTabInactive:!0,cancelIdleWhenDone:!0,reactorPermissionCheck:null},re={timeout:500},ie=function(e,t,n){return M((function(){e?R((function(){return D(n,re)})):D(n,re)}),t)},oe=function(e){return{name:"reactors",init:function(t){var n,r=Object.assign({},ne,e),i=r.idleAction,o=r.idleTimeout,a=r.cancelIdleWhenDone,s=r.doneCallback,u=r.stopWhenTabInactive,c=r.reactorPermissionCheck;o&&(n=ie(u,o,(function(){return t.dispatch({type:i})})));var l=function(){t.nextReaction||(t.meta.reactorNames.some((function(e){var n=t[e]();if(n){if(c&&!c(e,n))return;return t.activeReactor=e,t.nextReaction=n,n}})),t.nextReaction&&D((function(){var e=t.nextReaction;t.activeReactor=null,t.nextReaction=null,t.dispatch(e)}),re)),n&&(n(),a&&(P||t.nextReaction||t.selectAsyncActive&&t.selectAsyncActive()||(n&&n.cancel(),s&&s())))},f=t.subscribe(l);return l(),function(){n&&n.cancel(),f()}}}},ae=Object.prototype.hasOwnProperty;function se(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(Se){return null}}var ue={stringify:function(e,t){t=t||"";var n,r,i=[];for(r in"string"!==typeof t&&(t="?"),e)if(ae.call(e,r)){if((n=e[r])||null!==n&&undefined!==n&&!isNaN(n)||(n=""),r=encodeURIComponent(r),n=encodeURIComponent(n),null===r||null===n)continue;i.push(r+"="+n)}return i.length?t+i.join("&"):""},parse:function(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,r={};t=n.exec(e);){var i=se(t[1]),o=se(t[2]);null===i||null===o||i in r||(r[i]=o)}return r}},ce=function(e){return"[object String]"===Object.prototype.toString.call(e)},le=function(e){return"undefined"!==typeof e},fe=function(e){return ce(e)?e:ue.stringify(e)},pe=/^[0-9.]+$/,de=T?window.location:{},he={name:"url",inert:!T,actionType:"URL_UPDATED",handleScrollRestoration:!0},be=function(e){var t=Object.assign({},he,e),n=t.actionType,r=function(e){return e[t.name]},i=A(r,(function(e){return function(e){var t={};for(var n in e){var r=e[n];ce(r)&&(t[n]=r)}return t}(new URL(e.url))})),o=A(i,(function(e){return ue.parse(e.search)})),a=A(o,(function(e){return ue.stringify(e)})),s=A(i,(function(e){return e.pathname})),u=A(i,(function(e){return t="#",(n=e.hash).charAt(0)===t?n.slice(1):n;var t,n})),c=A(u,(function(e){return ue.parse(e)})),l=A(i,(function(e){return e.hostname})),f=A(l,(function(e){return function(e,t){if(pe.test(e))return[];var n=e.split(".");return t?n.slice(-2).join("."):e.split(".").slice(0,-2)}(e)})),p=function(e,t){return void 0===t&&(t={replace:!1,maintainScrollPosition:!1}),function(i){var o=i.dispatch,a=i.getState,s=e;if("string"===typeof e){var u=new URL("/"===e.charAt(0)?"http://example.com"+e:e);s={pathname:u.pathname,query:u.search||"",hash:u.hash||""}}var c=new URL(r(a()).url);le(s.pathname)&&(c.pathname=s.pathname),le(s.hash)&&(c.hash=fe(s.hash)),le(s.query)&&(c.search=fe(s.query)),o({type:n,payload:{url:c.href,replace:t.replace,maintainScrollPosition:t.maintainScrollPosition}})}};return{name:t.name,init:function(e){if(!t.inert){var n=t.handleScrollRestoration?function(){if(T){history.scrollRestoration&&(history.scrollRestoration="manual");var e=L("popstate",U),t=L("scroll",M(B,300),{passive:!0});return U(),function(){e(),t()}}}():null,r=L("popstate",(function(){e.doUpdateUrl({pathname:de.pathname,hash:de.hash,query:de.search})})),i=e.selectUrlRaw(),o=e.subscribe((function(){var n=e.selectUrlRaw(),r=n.url;if(i!==n&&r!==de.href)try{window.history[n.replace?"replaceState":"pushState"]({},null,n.url),t.handleScrollRestoration&&B(),n.maintainScrollPosition||window.scrollTo(0,0)}catch(Se){console.error(Se)}i=n}));return function(){n&&n(),r(),o()}}},getReducer:function(){var e={url:!t.inert&&T?de.href:"/",replace:!1,maintainScrollPosition:!1};return function(t,r){void 0===t&&(t=e);var i=r.type,o=r.payload;return"string"===typeof t?{url:t,replace:!1,maintainScrollPosition:!1}:i===n?Object.assign({url:o.url||o,replace:!!o.replace,maintainScrollPosition:!!o.maintainScrollPosition}):t}},doUpdateUrl:p,doReplaceUrl:function(e){return p(e,{replace:!0})},doUpdateQuery:function(e,t){return void 0===t&&(t={replace:!0}),p({query:fe(e)},t)},doUpdateHash:function(e,t){return void 0===t&&(t={replace:!1}),p({hash:(n="#",r=fe(e),r===n||""===r?"":r.charAt(0)!==n?n+r:r)},t);var n,r},selectUrlRaw:r,selectUrlObject:i,selectQueryObject:o,selectQueryString:a,selectPathname:s,selectHash:u,selectHashObject:c,selectHostname:l,selectSubdomains:f}},ve=function(e){var t="DEBUG_ENABLED",n="DEBUG_DISABLED",r="color: #1676D2;",i="color: #F57C00;",o=function(e,t){var n=t.method;void 0===n&&(n="log");var r=t.label,i=t.color;return console[n].apply(console,P?["%c"+r,i,e]:[r,e])},a={logSelectors:!0,logState:!0,enabled:O,actionFilter:null},s=Object.assign({},a,e);return{name:"debug",reducer:function(e,r){void 0===e&&(e=s.enabled);var i=r.type;return i===t||i!==n&&e},doEnableDebug:function(){return function(e){var n=e.dispatch;if(P)try{localStorage.debug=!0}catch(Se){}n({type:t})}},doDisableDebug:function(){return function(e){var t=e.dispatch;if(P)try{delete localStorage.debug}catch(Se){}t({type:n})}},selectIsDebug:function(e){return e.debug},getMiddleware:function(){return function(e){return function(t){return function(n){if(!e.getState().debug||s.actionFilter&&!s.actionFilter(n))return t(n);console.group(n.type),console.info("action:",n);var r=t(n);return s.logState&&console.debug("state:",e.getState()),s.logSelectors&&e.doLogSelectors(),e.doLogNextReaction&&e.doLogNextReaction(),console.groupEnd(n.type),r}}}},doLogBundles:function(){return function(e){var t=e.store;o(t.meta.chunks.reduce((function(e,t){return e.push.apply(e,t.bundleNames),e}),[]),{label:"installed bundles:",color:r})}},doLogSelectors:function(){return function(e){var t=e.store;o(Object.keys(t.meta.unboundSelectors).sort().reduce((function(e,n){return e[n]=t[n](),e}),{}),{label:"selectors:",color:"color: #4CAF50;"})}},doLogActionCreators:function(){return function(e){var t=e.store;o(Object.keys(t.meta.unboundActionCreators).sort(),{label:"action creators:",color:i})}},doLogReactors:function(){return function(e){var t=e.store;o(t.meta.reactorNames,{label:"reactors:",color:i})}},doLogNextReaction:function(){return function(e){var t=e.store,n=t.nextReaction,r=t.activeReactor;n&&o(n,{color:i,label:"next reaction "+r+":"})}},doLogDebugSummary:function(){return function(e){var t=e.store;t.doLogBundles(),t.doLogSelectors(),t.doLogActionCreators(),t.doLogReactors(),t.doLogNextReaction()}},init:function(e){e.selectIsDebug()&&P&&(self.store=e,console.groupCollapsed("%credux bundler v26.1.0",r),e.doLogDebugSummary(),console.groupEnd())}}},ge="OFFLINE",me="ONLINE",ye={name:"online",selectIsOnline:function(e){return e.online},getReducer:function(){var e=!P||navigator.onLine;return function(t,n){void 0===t&&(t=e);var r=n.type;return r!==ge&&(r===me||t)}},init:function(e){var t=L("online",(function(){return e.dispatch({type:me})})),n=L("offline",(function(){return e.dispatch({type:ge})}));return function(){t(),n()}}},ke=function(e){var t=e.cacheFn,n=e.logger,r=e.enabled;return void 0===r&&(r=P),{name:"localCache",init:function(e){e.buildPersistActionMap=function(){e.meta.persistActionMap=e.meta.chunks.reduce((function(e,t){return t.rawBundles.forEach((function(t){t.persistActions&&t.persistActions.forEach((function(n){e[n]||(e[n]=[]),e[n].push(t.name)}))})),e}),{})},e.buildPersistActionMap()},getMiddleware:function(){return function(e){return function(i){return function(o){var a=e.getState,s=e.meta.persistActionMap[o.type],u=i(o),c=a();return r&&s&&D((function(){Promise.all(s.map((function(e){return t(e,c[e])}))).then((function(){n&&n("cached "+s.join(", ")+" due to "+o.type)}))}),{timeout:500}),u}}}}}},we=function(e,t){var n=Object.assign({},Z,t).routeInfoSelector,r=Q(e);return{name:"routes",selectRoutes:function(){return e},selectRouteMatcher:function(){return r},selectRouteInfo:A(n,r),selectRouteParams:A("selectRouteInfo",(function(e){return e.params})),selectRoute:A("selectRouteInfo",(function(e){return e.page}))}},Ee=te,xe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];e||(e=[]);var n=[i,s,ye,be(),oe(),ve()].concat(e);return K.apply(void 0,n)}}).call(this,n(38),n(289)(e))},function(e,t,n){"use strict";var r=n(20),i=n(21),o=n(285),a=n(151),s=n(501),u=n(504),c=n(204),l=n(203),f=n(505),p=s.nameToCode,d=Object.keys(p).reduce((function(e,t){return e[p[t]]=t,e}),{}),h=Symbol.for("@ipld/js-cid/CID"),b=function(){function e(t,n,i,u){if(r(this,e),this.version,this.codec,this.multihash,Object.defineProperty(this,h,{value:!0}),e.isCID(t)){var c=t;return this.version=c.version,this.codec=c.codec,this.multihash=c.multihash,void(this.multibaseName=c.multibaseName||(0===c.version?"base58btc":"base32"))}if("string"===typeof t){var l=a.isEncoded(t);if(l){var f=a.decode(t);this.version=parseInt(f[0].toString(),16),this.codec=s.getCodec(f.slice(1)),this.multihash=s.rmPrefix(f.slice(1)),this.multibaseName=l}else this.version=0,this.codec="dag-pb",this.multihash=o.fromB58String(t),this.multibaseName="base58btc";return e.validateCID(this),void Object.defineProperty(this,"string",{value:t})}if(t instanceof Uint8Array){var p=parseInt(t[0].toString(),16);if(1===p){var b=t;this.version=p,this.codec=s.getCodec(b.slice(1)),this.multihash=s.rmPrefix(b.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=t,this.multibaseName="base58btc";e.validateCID(this)}else this.version=t,"number"===typeof n&&(n=d[n]),this.codec=n,this.multihash=i,this.multibaseName=u||(0===t?"base58btc":"base32"),e.validateCID(this)}return i(e,[{key:"toV0",value:function(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");var t=o.decode(this.multihash),n=t.name,r=t.length;if("sha2-256"!==n)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==r)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new e(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new e(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.multibaseName;if(this.string&&0!==this.string.length&&t===this.multibaseName)return this.string;if(0===this.version){if("base58btc"!==t)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");e=o.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");e=l(a.encode(t,this.bytes))}return t===this.multibaseName&&Object.defineProperty(this,"string",{value:e}),e}},{key:Symbol.for("nodejs.util.inspect.custom"),value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&f(this.multihash,e.multihash)}},{key:"bytes",get:function(){var e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");var t=s.getCodeVarint(this.codec);e=c([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}Object.defineProperty(this,"_bytes",{value:e})}return e}},{key:"prefix",get:function(){var e=s.getCodeVarint(this.codec),t=o.prefix(this.multihash);return c([[this.version],e,t],1+e.byteLength+t.byteLength)}},{key:"code",get:function(){return p[this.codec]}}],[{key:"validateCID",value:function(e){var t=u.checkCIDComponents(e);if(t)throw new Error(t)}},{key:"isCID",value:function(t){return t instanceof e||Boolean(t&&t[h])}}]),e}();b.codecs=p,e.exports=b},,function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n0&&"/"!==e.charAt(0))throw new Error('multiaddr "'.concat(e,'" must start with a "/"'));this.bytes=o.fromString(e)}else{if(!(e.bytes&&e.protos&&e.protoCodes))throw new Error("addr must be a string, Buffer, or another Multiaddr");this.bytes=o.fromBytes(e.bytes)}}),{className:"Multiaddr",symbolName:"@multiformats/js-multiaddr/multiaddr"});b.prototype.toString=function(){return o.bytesToString(this.bytes)},b.prototype.toJSON=b.prototype.toString,b.prototype.toOptions=function(){var e={},t=this.toString().split("/");return e.family="ip4"===t[1]?"ipv4":"ipv6",e.host=t[2],e.transport=t[3],e.port=parseInt(t[4]),e},b.prototype[f]=function(){return""},b.prototype.inspect=function(){return""},b.prototype.protos=function(){return this.protoCodes().map((function(e){return Object.assign({},a(e))}))},b.prototype.protoCodes=function(){for(var e=[],t=this.bytes,n=0;n=0;n--)if(t[n][0]===e)return b(o.tuplesToBytes(t.slice(0,n)));return this},b.prototype.getPeerId=function(){var e=null;try{e=this.stringTuples().filter((function(e){if(e[0]===a.names.ipfs.code)return!0})).pop()[1],e=p(new u(e).multihash,"base58btc")}catch(t){e=null}return e},b.prototype.getPath=function(){var e=null;try{e=this.stringTuples().filter((function(e){if(a(e[0]).path)return!0}))[0][1]}catch(t){e=null}return e},b.prototype.equals=function(e){return d(this.bytes,e.bytes)},b.prototype.resolve=function(){var e=i(r.mark((function e(){var t,n,i;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.protos().find((function(e){return e.resolvable}))){e.next=3;break}return e.abrupt("return",[this]);case 3:if(n=h.get(t.name)){e.next=6;break}throw l(new Error("no available resolver for ".concat(t.name)),"ERR_NO_AVAILABLE_RESOLVER");case 6:return e.next=8,n(this);case 8:return i=e.sent,e.abrupt("return",i.map((function(e){return b(e)})));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),b.prototype.nodeAddress=function(){var e=this.protoCodes(),t=this.protoNames(),n=this.toString().split("/").slice(1);if(n.length<4)throw new Error('multiaddr must have a valid format: "/{ip4, ip6, dns4, dns6}/{address}/{tcp, udp}/{port}".');if(4!==e[0]&&41!==e[0]&&54!==e[0]&&55!==e[0])throw new Error("no protocol with name: \"'".concat(t[0],'\'". Must have a valid family name: "{ip4, ip6, dns4, dns6}".'));if("tcp"!==n[2]&&"udp"!==n[2])throw new Error("no protocol with name: \"'".concat(t[1],'\'". Must have a valid transport protocol: "{tcp, udp}".'));return{family:41===e[0]||55===e[0]?6:4,address:n[1],port:parseInt(n[3])}},b.fromNodeAddress=function(e,t){if(!e)throw new Error("requires node address object");if(!t)throw new Error("requires transport protocol");var n;switch(e.family){case"IPv4":n="ip4";break;case"IPv6":n="ip6";break;default:throw Error("Invalid addr family. Got '".concat(e.family,"' instead of 'IPv4' or 'IPv6'"))}return b("/"+[n,e.address,t,e.port].join("/"))},b.prototype.isThinWaistAddress=function(e){var t=(e||this).protos();return 2===t.length&&((4===t[0].code||41===t[0].code)&&(6===t[1].code||273===t[1].code))},b.protocols=a,b.isName=function(e){return!!b.isMultiaddr(e)&&e.protos().some((function(e){return e.resolvable}))},b.resolve=function(e){return b.isMultiaddr(e)&&b.isName(e)?Promise.reject(new Error("not implemented yet")):Promise.reject(Error("not a valid name"))},b.resolvers=h,e.exports=b},function(e,t,n){"use strict";e.exports=function(e){if(null==e)return e;var t=/^[A-Z]+$/;return Object.keys(e).reduce((function(n,r){return t.test(r)?n[r.toLowerCase()]=e[r]:t.test(r[0])?n[r[0].toLowerCase()+r.slice(1)]=e[r]:n[r]=e[r],n}),{})}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t1?e.slice(0,-1):[],a=[],s=[];o.forEach((function(e){if("select"!==e.slice(0,6)){if("do"!==e.slice(0,2))throw Error("CanNotConnect "+e);a.push(e)}else s.push(e)}));var u=function(e){function t(t,n){var r=this;e.call(this,t,n);var i=n.store;this.state=i.select(s),this.unsubscribe=i.subscribeToSelectors(s,this.setState.bind(this)),this.actionCreators={},a.forEach((function(e){r.actionCreators[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return i.action?i.action(e,t):i[e].apply(i,t)}}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentWillUnmount=function(){this.unsubscribe()},t.prototype.render=function(){return Object(r.createElement)(n,Object.assign({},this.props,this.state,this.actionCreators))},t}(r.Component);return u.contextTypes=i,u.displayName="connect("+(n.displayName||n.name)+")",u}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectType=function(e){return Object.prototype.toString.call(e).slice(8,-1)};var r=function(e){return function(n){return t.getObjectType(n)===e}},i=function(e){return function(t){return typeof t===e}},o=function e(n){switch(n){case null:return"null";case!0:case!1:return"boolean"}switch(typeof n){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol"}if(e.array(n))return"Array";if(e.function(n))return"Function";var r=t.getObjectType(n);return r||"Object"};o.array=Array.isArray,o.arrayOf=function(e,t){return!(!o.array(e)&&!o.function(t))&&e.every((function(e){return t(e)}))},o.asyncFunction=r("AsyncFunction"),o.boolean=function(e){return!0===e||!1===e},o.date=r("Date"),o.defined=function(e){return!o.undefined(e)},o.domElement=function(e){return o.object(e)&&!o.plainObject(e)&&1===e.nodeType&&o.string(e.nodeName)&&["innerHTML","ownerDocument","style","attributes","nodeValue"].every((function(t){return t in e}))},o.empty=function(e){return o.string(e)&&0===e.length||o.array(e)&&0===e.length||o.object(e)&&!o.map(e)&&!o.set(e)&&0===Object.keys(e).length||o.set(e)&&0===e.size||o.map(e)&&0===e.size},o.error=r("Error"),o.function=r("Function"),o.generator=function(e){return o.iterable(e)&&o.function(e.next)&&o.function(e.throw)},o.generatorFunction=r("GeneratorFunction"),o.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},o.iterable=function(e){return!o.nullOrUndefined(e)&&o.function(e[Symbol.iterator])},o.map=r("Map"),o.nan=function(e){return Number.isNaN(e)},o.null=function(e){return null===e},o.nullOrUndefined=function(e){return o.null(e)||o.undefined(e)},o.number=function(e){return i("number")(e)&&!o.nan(e)},o.numericString=function(e){return o.string(e)&&e.length>0&&!Number.isNaN(Number(e))},o.object=function(e){return!o.nullOrUndefined(e)&&(o.function(e)||"object"===typeof e)},o.oneOf=function(e,t){return!!o.array(e)&&e.indexOf(t)>-1},o.plainObject=function(e){if("Object"!==t.getObjectType(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.getPrototypeOf({})},o.promise=r("Promise"),o.propertyOf=function(e,t,n){if(!o.object(e)||!t)return!1;var r=e[t];return o.function(n)?n(r):o.defined(r)},o.regexp=r("RegExp"),o.set=r("Set"),o.string=i("string"),o.symbol=i("symbol"),o.undefined=i("undefined"),o.weakMap=r("WeakMap"),o.weakSet=r("WeakSet"),t.default=o},function(e,t,n){"use strict";(function(e){var r=n(649),i=n(328),o=n(424);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(38))},function(e,t,n){var r=n(482),i=n(483),o=n(192),a=n(484);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t){e.exports=function(e,t){var n={},r=!1;function i(n,i){return r=!0,i=new Promise((function(t){t(e[n](i))})),{done:!1,value:t(i)}}return"function"===typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return r?(r=!1,e):i("next",e)},"function"===typeof e.throw&&(n.throw=function(e){if(r)throw r=!1,e;return i("throw",e)}),"function"===typeof e.return&&(n.return=function(e){return r?(r=!1,e):i("return",e)}),n}},function(e,t,n){"use strict";var r;r=globalThis.AbortController&&globalThis.AbortSignal?globalThis:n(307),e.exports={AbortController:r.AbortController,AbortSignal:r.AbortSignal}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return o("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!s(r,e)||i&&!s(a,e))))}function u(e){return e.displayName||e.name||("string"===typeof e&&e.length>0?e:"Unknown")}},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function u(e,t){try{return t in e}catch(n){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){(function(e,t){return u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(u(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):c(e,t,n):o(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var f=l;e.exports=f},function(e,t,n){"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var f=0,p=o-1;(0!==l||f>>0,c[p]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=f,n++}if(" "!==e[n]){for(var d=o-i;d!==o&&0===c[d];)d++;for(var h=new Uint8Array(r+(o-d)),b=r;d!==o;)h[b++]=c[d++];return h}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var f=t[i],p=0,d=u-1;(0!==f||p>>0,l[d]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");r=p,i++}for(var h=u-r;h!==u&&0===l[h];)h++;for(var b=s.repeat(n);h0;o--)u.push("0");a.splice.apply(a,u)}for(r=t||new i(n+16),o=0;o>8&255,r[n++]=255&c}}if(!r)throw Error("Invalid ip address: "+e);return r},r.toString=function(e,t,n){t=~~t;var r=[];if(4===(n=n||e.length-t)){for(var i=0;i32?"ipv6":u(t))&&(n=16);for(var o=new i(n),a=0,s=o.length;a>c)}return r.toString(o)},r.mask=function(e,t){e=r.toBuffer(e),t=r.toBuffer(t);var n=new i(Math.max(e.length,t.length)),o=0;if(e.length===t.length)for(o=0;oe.length&&(i=t,o=e);var a=i.length-o.length;for(n=a;n>>0},r.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(255&e)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",C=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.async((function(O){for(;;)switch(O.prev=O.next){case 0:e=[],t=new FormData,n=0,s=0,u=!0,c=!1,O.prev=6,f=i(o(A));case 8:return O.next=10,r.awrap(f.next());case 10:return p=O.sent,u=p.done,O.next=14,r.awrap(p.value);case 14:if(d=O.sent,u){O.next=30;break}b=(h=d).content,v=h.path,g=h.mode,m=h.mtime,y="",k=b?"file":"dir",n>0&&(y="-".concat(n)),w=k+y,E=[],null!==g&&void 0!==g&&E.push("mode=".concat(a(g))),null!=m&&(x=m.secs,S=m.nsecs,E.push("mtime=".concat(x)),null!=S&&E.push("mtime-nsecs=".concat(S))),E.length&&(w="".concat(w,"?").concat(E.join("&"))),b?(t.set(w,b,encodeURIComponent(v)),_=s+b.size,e.push({name:v,start:s,end:_}),s=_):t.set(w,new File([""],encodeURIComponent(v),{type:"application/x-directory"})),n++;case 27:u=!0,O.next=8;break;case 30:O.next=36;break;case 32:O.prev=32,O.t0=O.catch(6),c=!0,l=O.t0;case 36:if(O.prev=36,O.prev=37,u||null==f.return){O.next=41;break}return O.next=41,r.awrap(f.return());case 41:if(O.prev=41,!c){O.next=44;break}throw l;case 44:return O.finish(41);case 45:return O.finish(36);case 46:return O.abrupt("return",{total:s,parts:e,headers:C,body:t});case 47:case"end":return O.stop()}}),null,null,[[6,32,36,46],[37,,41,45]],Promise)}},function(e,t,n){"use strict";var r=n(557).anySignal;function i(e){return e.filter(Boolean)}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.cachePromiseRejection,c=void 0!==n&&n,l=o(t,["cachePromiseRejection"]),f=l.cache||new Map,p=l.cacheKey||function(e){return i(e,1)[0]},d=a(e,r(r({},l),{},{cache:f,cacheKey:p})),h=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(121);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(95),i=n(353),o=n(227),a=Object.defineProperty;t.f=n(82)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(133)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(72)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(358)),o=a(n(857));function a(e){return e&&e.__esModule?e:{default:e}}var s=Object.keys(i).reduce((function(e,t){return e[t]=(0,o.default)(i[t]),e}),{});t.default=function(e,t){return"string"===typeof t?s[t][e]:"object"===("undefined"===typeof t?"undefined":(0,r.default)(t))?(0,o.default)(t)[e]:s.chromeLight[e]}},function(e,t){var n={tr:{regexp:/[\u0069]/g,map:{i:"\u0130"}},az:{regexp:/[\u0069]/g,map:{i:"\u0130"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{"i\u0307":"I","j\u0307":"J","\u012f\u0307":"\u012e","i\u0307\u0300":"\xcc","i\u0307\u0301":"\xcd","i\u0307\u0303":"\u0128"}}};e.exports=function(e,t){var r=n[t];return e=null==e?"":String(e),r&&(e=e.replace(r.regexp,(function(e){return r.map[e]}))),e.toUpperCase()}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(126))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(175);function i(e){var t,n;function i(t,n){try{var a=e[t](n),s=a.value,u=s instanceof r.a;Promise.resolve(u?s.wrapped:s).then((function(e){u?i("return"===t?"return":"next",e):o(a.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(c){o("throw",c)}}function o(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(o,a){var s={key:e,arg:r,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,i(e,r))}))},"function"!==typeof e.return&&(this.return=void 0)}function o(e){return function(){return new i(e.apply(this,arguments))}}"function"===typeof Symbol&&Symbol.asyncIterator&&(i.prototype[Symbol.asyncIterator]=function(){return this}),i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)}},function(e,t,n){"use strict";function r(e){var t;if("undefined"!==typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(200);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(149),i=n(284),o=n(493);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},function(e,t,n){"use strict";t.TextEncoder=TextEncoder,t.TextDecoder=TextDecoder},function(e,t,n){"use strict";var r=n(276).encoding,i=new(0,n(91).TextEncoder);function o(e){for(var t=new Uint8Array(e.length),n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8";return"utf8"===t||"utf-8"===t?i.encode(e):"ascii"===t?o(e):r(t).decode(e)}},function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,u=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",f=1e14,p=14,d=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],b=1e7,v=1e9;function g(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,n,r=1,i=e.length,o=e[0]+"";rc^n?1:-1;for(s=(u=i.length)<(c=o.length)?u:c,a=0;ao[a]^n?1:-1;return u==c?0:u>c^n?1:-1}function k(e,t,n,r){if(en||e!==u(e))throw Error(c+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return g(e.e/p)==t&&e.c[t]%2!=0}function E(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else tP?g.c=g.e=null:e.e=10;f/=10,c++);return void(c>P?g.c=g.e=null:(g.e=c,g.c=[e]))}v=String(e)}else{if(!a.test(v=String(e)))return i(g,v,h);g.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(c=v.indexOf("."))>-1&&(v=v.replace(".","")),(f=v.search(/e/i))>0?(c<0&&(c=f),c+=+v.slice(f+1),v=v.substring(0,f)):c<0&&(c=v.length)}else{if(k(t,2,j.length,"Base"),10==t)return U(g=new L(e),_+g.e+1,A);if(v=String(e),h="number"==typeof e){if(0*e!=0)return i(g,v,h,t);if(g.s=1/e<0?(v=v.slice(1),-1):1,L.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(l+e)}else g.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(n=j.slice(0,t),c=f=0,b=v.length;fc){c=b;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,f=-1,c=0;continue}return i(g,String(e),h,t)}h=!1,(c=(v=r(v,t,10,g.s)).indexOf("."))>-1?v=v.replace(".",""):c=v.length}for(f=0;48===v.charCodeAt(f);f++);for(b=v.length;48===v.charCodeAt(--b););if(v=v.slice(f,++b)){if(b-=f,h&&L.DEBUG&&b>15&&(e>d||e!==u(e)))throw Error(l+g.s*e);if((c=c-f-1)>P)g.c=g.e=null;else if(c=O)?E(u,a):x(u,a,"0");else if(o=(e=U(new L(e),t,n)).e,s=(u=m(e.c)).length,1==r||2==r&&(t<=o||o<=C)){for(;ss){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function M(e,t){for(var n,r=1,i=new L(e[0]);r=10;i/=10,r++);return(n=r+n*p-1)>P?e.c=e.e=null:n=10;c/=10,i++);if((o=t-i)<0)o+=p,a=t,b=(l=v[d=0])/g[i-a-1]%10|0;else if((d=s((o+1)/p))>=v.length){if(!r)break e;for(;v.length<=d;v.push(0));l=b=0,i=1,a=(o%=p)-p+1}else{for(l=c=v[d],i=1;c>=10;c/=10,i++);b=(a=(o%=p)-p+i)<0?0:l/g[i-a-1]%10|0}if(r=r||t<0||null!=v[d+1]||(a<0?l:l%g[i-a-1]),r=n<4?(b||r)&&(0==n||n==(e.s<0?3:2)):b>5||5==b&&(4==n||r||6==n&&(o>0?a>0?l/g[i-a]:0:v[d-1])%10&1||n==(e.s<0?8:7)),t<1||!v[0])return v.length=0,r?(t-=e.e+1,v[0]=g[(p-t%p)%p],e.e=-t||0):v[0]=e.e=0,e;if(0==o?(v.length=d,c=1,d--):(v.length=d+1,c=g[p-o],v[d]=a>0?u(l/g[i-a]%g[a])*c:0),r)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,v[0]==f&&(v[0]=1));break}if(v[d]+=c,v[d]!=f)break;v[d--]=0,c=1}for(o=v.length;0===v[--o];v.pop());}e.e>P?e.c=e.e=null:e.e=O?E(t,n):x(t,n,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(k(n=e[t],0,v,t),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(k(n=e[t],0,8,t),A=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(k(n[0],-v,0,t),k(n[1],0,v,t),C=n[0],O=n[1]):(k(n,-v,v,t),C=-(O=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)k(n[0],-v,-1,t),k(n[1],1,v,t),T=n[0],P=n[1];else{if(k(n,-v,v,t),!n)throw Error(c+t+" cannot be zero: "+n);T=-(P=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(c+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw I=!n,Error(c+"crypto unavailable");I=n}else I=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(k(n=e[t],0,9,t),R=n),e.hasOwnProperty(t="POW_PRECISION")&&(k(n=e[t],0,v,t),D=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(c+t+" not an object: "+n);N=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+t+" invalid: "+n);j=n}}return{DECIMAL_PLACES:_,ROUNDING_MODE:A,EXPONENTIAL_AT:[C,O],RANGE:[T,P],CRYPTO:I,MODULO_MODE:R,POW_PRECISION:D,FORMAT:N,ALPHABET:j}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-v&&i<=v&&i===u(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%p)<1&&(t+=p),String(r[0]).length==t){for(t=0;t=f||n!==u(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return M(arguments,o.lt)},L.minimum=L.min=function(){return M(arguments,o.gt)},L.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return u(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,i,o,a,l=0,f=[],d=new L(S);if(null==e?e=_:k(e,0,v),o=s(e/p),I)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(o*=2));l>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(f.push(a%1e14),l+=2);l=o/2}else{if(!crypto.randomBytes)throw I=!1,Error(c+"crypto unavailable");for(n=crypto.randomBytes(o*=7);l=9e15?crypto.randomBytes(7).copy(n,l):(f.push(a%1e14),l+=7);l=o/7}if(!I)for(;l=10;a/=10,l++);ln-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var u,c,l,f,p,d,h,b,v=r.indexOf("."),g=_,y=A;for(v>=0&&(f=D,D=0,r=r.replace(".",""),d=(b=new L(i)).pow(r.length-v),D=f,b.c=t(x(m(d.c),d.e,"0"),10,o,e),b.e=b.c.length),l=f=(h=t(r,i,o,s?(u=j,e):(u=e,j))).length;0==h[--f];h.pop());if(!h[0])return u.charAt(0);if(v<0?--l:(d.c=h,d.e=l,d.s=a,h=(d=n(d,b,g,y,o)).c,p=d.r,l=d.e),v=h[c=l+g+1],f=o/2,p=p||c<0||null!=h[c+1],p=y<4?(null!=v||p)&&(0==y||y==(d.s<0?3:2)):v>f||v==f&&(4==y||p||6==y&&1&h[c-1]||y==(d.s<0?8:7)),c<1||!h[0])r=p?x(u.charAt(1),-g,u.charAt(0)):u.charAt(0);else{if(h.length=c,p)for(--o;++h[--c]>o;)h[c]=0,c||(++l,h=[1].concat(h));for(f=h.length;!h[--f];);for(v=0,r="";v<=f;r+=u.charAt(h[v++]));r=x(r,l,u.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,o,a,s=0,u=e.length,c=t%b,l=t/b|0;for(e=e.slice();u--;)s=((i=c*(o=e[u]%b)+(r=l*o+(a=e[u]/b|0)*c)%b*b+s)/n|0)+(r/b|0)+l*a,e[u]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var c,l,d,h,b,v,m,y,k,w,E,x,S,_,A,C,O,T=r.s==i.s?1:-1,P=r.c,I=i.c;if(!P||!P[0]||!I||!I[0])return new L(r.s&&i.s&&(P?!I||P[0]!=I[0]:I)?P&&0==P[0]||!I?0*T:T/0:NaN);for(k=(y=new L(T)).c=[],T=o+(l=r.e-i.e)+1,s||(s=f,l=g(r.e/p)-g(i.e/p),T=T/p|0),d=0;I[d]==(P[d]||0);d++);if(I[d]>(P[d]||0)&&l--,T<0)k.push(1),h=!0;else{for(_=P.length,C=I.length,d=0,T+=2,(b=u(s/(I[0]+1)))>1&&(I=e(I,b,s),P=e(P,b,s),C=I.length,_=P.length),S=C,E=(w=P.slice(0,C)).length;E=s/2&&A++;do{if(b=0,(c=t(I,w,C,E))<0){if(x=w[0],C!=E&&(x=x*s+(w[1]||0)),(b=u(x/A))>1)for(b>=s&&(b=s-1),m=(v=e(I,b,s)).length,E=w.length;1==t(v,w,m,E);)b--,n(v,C=10;T/=10,d++);U(y,o+(y.e=d+l*p-1)+1,a,h)}else y.e=l,y.r=+h;return y}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,u){var l,f=s?a:a.replace(i,"");if(r.test(f))o.s=isNaN(f)?null:f<0?-1:1;else{if(!s&&(f=f.replace(e,(function(e,t,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=l?e:t})),u&&(l=u,f=f.replace(t,"$1").replace(n,"0.$1")),a!=f))return new L(f,l);if(L.DEBUG)throw Error(c+"Not a"+(u?" base "+u:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),o.absoluteValue=o.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return y(this,new L(e,t))},o.decimalPlaces=o.dp=function(e,t){var n,r,i,o=this;if(null!=e)return k(e,0,v),null==t?t=A:k(t,0,8),U(new L(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-g(this.e/p))*p,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},o.dividedBy=o.div=function(e,t){return n(this,new L(e,t),_,A)},o.dividedToIntegerBy=o.idiv=function(e,t){return n(this,new L(e,t),0,1)},o.exponentiatedBy=o.pow=function(e,t){var n,r,i,o,a,l,f,d,h=this;if((e=new L(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+z(e));if(null!=t&&(t=new L(t)),a=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return d=new L(Math.pow(+z(h),a?2-w(e):+z(e))),t?d.mod(t):d;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(r=!l&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||a&&h.c[1]>=24e7:h.c[0]<8e13||a&&h.c[0]<=9999975e7)))return o=h.s<0&&w(e)?-0:0,h.e>-1&&(o=1/o),new L(l?1/o:o);D&&(o=s(D/p+2))}for(a?(n=new L(.5),l&&(e.s=1),f=w(e)):f=(i=Math.abs(+z(e)))%2,d=new L(S);;){if(f){if(!(d=d.times(h)).c)break;o?d.c.length>o&&(d.c.length=o):r&&(d=d.mod(t))}if(i){if(0===(i=u(i/2)))break;f=i%2}else if(U(e=e.times(n),e.e+1,1),e.e>14)f=w(e);else{if(0===(i=+z(e)))break;f=i%2}h=h.times(h),o?h.c&&h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}return r?d:(l&&(d=S.div(d)),t?d.mod(t):o?U(d,D,A,undefined):d)},o.integerValue=function(e){var t=new L(this);return null==e?e=A:k(e,0,8),U(t,t.e+1,e)},o.isEqualTo=o.eq=function(e,t){return 0===y(this,new L(e,t))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return y(this,new L(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return 1===(t=y(this,new L(e,t)))||0===t},o.isInteger=function(){return!!this.c&&g(this.e/p)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return y(this,new L(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return-1===(t=y(this,new L(e,t)))||0===t},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(e,t){var n,r,i,o,a=this,s=a.s;if(t=(e=new L(e,t)).s,!s||!t)return new L(NaN);if(s!=t)return e.s=-t,a.plus(e);var u=a.e/p,c=e.e/p,l=a.c,d=e.c;if(!u||!c){if(!l||!d)return l?(e.s=-t,e):new L(d?a:NaN);if(!l[0]||!d[0])return d[0]?(e.s=-t,e):new L(l[0]?a:3==A?-0:0)}if(u=g(u),c=g(c),l=l.slice(),s=u-c){for((o=s<0)?(s=-s,i=l):(c=u,i=d),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(o=(s=l.length)<(t=d.length))?s:t,s=t=0;t0)for(;t--;l[n++]=0);for(t=f-1;r>s;){if(l[--r]=0;){for(n=0,h=x[i]%k,v=x[i]/k|0,o=i+(a=u);o>i;)n=((c=h*(c=E[--a]%k)+(s=v*c+(l=E[a]/k|0)*h)%k*k+m[o]+n)/y|0)+(s/k|0)+v*l,m[o--]=c%y;m[o]=n}return n?++r:m.splice(0,1),B(e,m,r)},o.negated=function(){var e=new L(this);return e.s=-e.s||null,e},o.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new L(e,t)).s,!i||!t)return new L(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/p,a=e.e/p,s=r.c,u=e.c;if(!o||!a){if(!s||!u)return new L(i/0);if(!s[0]||!u[0])return u[0]?e:new L(s[0]?r:0*i)}if(o=g(o),a=g(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=u.length)<0&&(n=u,u=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+u[t]+i)/f|0,s[t]=f===s[t]?0:s[t]%f;return i&&(s=[i].concat(s),++a),B(e,s,a)},o.precision=o.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return k(e,1,v),null==t?t=A:k(t,0,8),U(new L(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*p+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},o.shiftedBy=function(e){return k(e,-9007199254740991,d),this.times("1e"+e)},o.squareRoot=o.sqrt=function(){var e,t,r,i,o,a=this,s=a.c,u=a.s,c=a.e,l=_+4,f=new L("0.5");if(1!==u||!s||!s[0])return new L(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+z(a)))||u==1/0?(((t=m(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=g((c+1)/2)-(c<0||c%2),r=new L(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new L(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(o=r,r=f.times(o.plus(n(a,o,l,1))),m(o.c).slice(0,u)===(t=m(r.c)).slice(0,u)){if(r.e0&&b>0){for(o=b%s||s,f=h.substr(0,o);o0&&(f+=l+h.slice(o)),d&&(f="-"+f)}r=p?f+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?p.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):p):f}return(n.prefix||"")+r+(n.suffix||"")},o.toFraction=function(e){var t,r,i,o,a,s,u,l,f,d,b,v,g=this,y=g.c;if(null!=e&&(!(u=new L(e)).isInteger()&&(u.c||1!==u.s)||u.lt(S)))throw Error(c+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+z(u));if(!y)return new L(g);for(t=new L(S),f=r=new L(S),i=l=new L(S),v=m(y),a=t.e=v.length-g.e-1,t.c[0]=h[(s=a%p)<0?p+s:s],e=!e||u.comparedTo(t)>0?a>0?t:f:u,s=P,P=1/0,u=new L(v),l.c[0]=0;d=n(u,t,0,1),1!=(o=r.plus(d.times(i))).comparedTo(e);)r=i,i=o,f=l.plus(d.times(o=f)),l=o,t=u.minus(d.times(o=t)),u=o;return o=n(e.minus(r),i,0,1),l=l.plus(o.times(f)),r=r.plus(o.times(i)),l.s=f.s=g.s,b=n(f,i,a*=2,A).minus(g).abs().comparedTo(n(l,r,a,A).minus(g).abs())<1?[f,i]:[l,r],P=s,b},o.toNumber=function(){return+z(this)},o.toPrecision=function(e,t){return null!=e&&k(e,1,v),F(this,e,t,2)},o.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=C||o>=O?E(m(n.c),o):x(m(n.c),o,"0"):10===e?t=x(m((n=U(new L(n),_+o+1,A)).c),n.e,"0"):(k(e,2,j.length,"Base"),t=r(x(m(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},o.valueOf=o.toJSON=function(){return z(this)},o._isBigNumber=!0,null!=t&&L.set(t),L}()).default=o.BigNumber=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){var r=n(80),i=n(54),o=n(226),a=n(114),s=n(96),u=function e(t,n,u){var c,l,f,p=t&e.F,d=t&e.G,h=t&e.S,b=t&e.P,v=t&e.B,g=t&e.W,m=d?i:i[n]||(i[n]={}),y=m.prototype,k=d?r:h?r[n]:(r[n]||{}).prototype;for(c in d&&(u=n),u)(l=!p&&k&&void 0!==k[c])&&s(m,c)||(f=l?k[c]:u[c],m[c]=d&&"function"!=typeof k[c]?u[c]:v&&l?o(f,r):g&&k[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):b&&"function"==typeof f?o(Function.call,f):f,b&&((m.virtual||(m.virtual={}))[c]=f,t&e.R&&y&&!y[c]&&a(y,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(115);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(359),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(t){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"===typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"===typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!==typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=i,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=o,r.ProtocolError=o("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var i=[],o=i.forEach,a=i.slice;function s(e){return o.call(a.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function u(){return"function"===typeof XMLHttpRequest||"object"===("undefined"===typeof XMLHttpRequest?"undefined":r(XMLHttpRequest))}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return s}));var o=n(103);function a(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?Object(o.a)(e):t}function s(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(276).encoding,i=new(0,n(91).TextDecoder)("utf8");function o(e){for(var t="",n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8";return"utf8"===t||"utf-8"===t?i.decode(e):"ascii"===t?o(e):r(t).encode(e)}},function(e,t,n){"use strict";t.TextEncoder=TextEncoder,t.TextDecoder=TextDecoder},function(e,t,n){"use strict";var r=n(195),i=n(196),o=i.encodeText,a=i.decodeText,s=i.concat;function u(e){if(r.names[e])return r.names[e];if(r.codes[e])return r.codes[e];throw new Error("Unsupported encoding: ".concat(e))}(t=e.exports=function(e,t){if(!t)throw new Error("requires an encoded Uint8Array");var n=u(e),r=n.name,i=n.codeBuf;return function(e,t){u(e).decode(a(t))}(r,t),s([i,t],i.length+t.length)}).encode=function(e,t){var n=u(e),r=o(n.encode(t));return s([n.codeBuf,r],n.codeBuf.length+r.length)},t.decode=function(e){e instanceof Uint8Array&&(e=a(e));var t=e[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase()),u(e[0]).decode(e.substring(1))},t.isEncoded=function(e){if(e instanceof Uint8Array&&(e=a(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return u(e[0]).name}catch(t){return!1}},t.encoding=u,t.encodingFromData=function(e){return e instanceof Uint8Array&&(e=a(e)),u(e[0])},t.names=Object.freeze(r.names),t.codes=Object.freeze(r.codes)},function(e,t,n){"use strict";t.TextEncoder=TextEncoder,t.TextDecoder=TextDecoder},function(e,t,n){"use strict";var r=n(20),i=n(21),o=n(13),a=n(199),s=n(155),u=function(){function e(t,n,i){if(r(this,e),!i)throw new Error("A link requires a cid to point to");Object.defineProperties(this,{Name:{value:t||"",writable:!1,enumerable:!0},Tsize:{value:n,writable:!1,enumerable:!0},Hash:{value:new o(i),writable:!1,enumerable:!0},_nameBuf:{value:null,writable:!0,enumerable:!1}})}return i(e,[{key:"toString",value:function(){return"DAGLink <".concat(this.Hash.toBaseEncodedString(),' - name: "').concat(this.Name,'", size: ').concat(this.Tsize,">")}},{key:"toJSON",value:function(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}},{key:"nameAsBuffer",get:function(){return null!==this._nameBuf||(this._nameBuf=s(this.Name)),this._nameBuf}}]),e}();e.exports=a(u,{className:"DAGLink",symbolName:"@ipld/js-ipld-dag-pb/daglink"})},function(e,t,n){var r=n(81),i=n(134);e.exports=n(82)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){var r=n(356),i=n(229);e.exports=function(e){return r(i(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";n.d(t,"d",(function(){return T})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return I}));var r=n(0),i=n.n(r),o=n(957),a=n(253),s=n(146),u=n.n(s),c=n(120);n(888);function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t=0&&u===s&&c())}var S=n(105),_=n.n(S),A=(n(5),function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,o=t.estimatedCellSize;i()(this,e),v()(this,"_cellSizeAndPositionData",{}),v()(this,"_lastMeasuredIndex",-1),v()(this,"_lastBatchedIndex",-1),v()(this,"_cellCount",void 0),v()(this,"_cellSizeGetter",void 0),v()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=o}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(i));null===i?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:i},n+=i,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,o=e.targetIndex;if(r<=0)return 0;var a,s=this.getSizeAndPositionOfCell(o),u=s.offset,c=u-r+s.size;switch(n){case"start":a=u;break;case"end":a=c;break;case"center":a=u-(r-s.size)/2;break;default:a=Math.max(c,Math.min(u,i))}var l=this.getTotalSize();return Math.max(0,Math.min(l-r,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,i=this._findNearestCell(n),o=this.getSizeAndPositionOfCell(i);n=o.offset+o.size;for(var a=i;nn&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}()),C=function(){return"undefined"!==typeof window&&window.chrome?16777100:15e5},O=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?C():n,o=_()(t,["maxScrollSize"]);i()(this,e),v()(this,"_cellSizeAndPositionManager",void 0),v()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new A(o),this._maxScrollSize=r}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize(),o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(o*(i-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,o=e.targetIndex;i=this._safeOffsetToOffset({containerSize:r,offset:i});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:i,targetIndex:o});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(o*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(o*(r-t))}}]),e}();function T(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,i=n.indices,o=Object.keys(i),a=!e||o.every((function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0})),s=o.length!==Object.keys(t).length||o.some((function(e){var n=t[e],r=i[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=i,a&&s&&r(i)}}function P(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,o=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,u=e.scrollOffset,c=e.scrollToAlignment,l=e.scrollToIndex,f=e.size,p=e.sizeJustIncreasedFromZero,d=e.updateScrollIndexCallback,h=n.getCellCount(),b=l>=0&&l0&&(fn.getTotalSize()-f&&d(h-1)}var I,R,D,N=n(137),j=(I="undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||I.oRequestAnimationFrame||I.msRequestAnimationFrame||function(e){return I.setTimeout(e,1e3/60)},L=I.cancelAnimationFrame||I.webkitCancelAnimationFrame||I.mozCancelAnimationFrame||I.oCancelAnimationFrame||I.msCancelAnimationFrame||function(e){I.clearTimeout(e)},F=j,M=L,B=function(e){return M(e.id)},U=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:F((function i(){Date.now()-n>=t?e.call():r.id=F(i)}))};return r};function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return h()(t,e),a()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,o=e.rowIndex,a=void 0===o?this.props.scrollToRow:o,s=H({},this.props,{scrollToAlignment:n,scrollToColumn:i,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r;if(!(i<0)){this._debounceScrollEnded();var o=this.props,a=o.autoHeight,s=o.autoWidth,u=o.height,c=o.width,l=this.state.instanceProps,f=l.scrollbarSize,p=l.rowSizeAndPositionManager.getTotalSize(),d=l.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,d-c+f),n),b=Math.min(Math.max(0,p-u+f),i);if(this.state.scrollLeft!==h||this.state.scrollTop!==b){var v={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:b!==this.state.scrollTop?b>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:G};a||(v.scrollTop=b),s||(v.scrollLeft=h),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:b,totalColumnsWidth:d,totalRowsHeight:p})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,o=this.props,a=o.scrollToColumn,s=o.scrollToRow,u=this.state.instanceProps;u.columnSizeAndPositionManager.resetCell(n),u.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?i<=s:i>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,i=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(H({},i,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(H({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,i=e.scrollLeft,o=e.scrollToColumn,a=e.scrollTop,s=e.scrollToRow,u=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=H({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"===typeof i&&i>=0||"number"===typeof a&&a>=0){var l=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:a});l&&(l.needToResetStyleCache=!1,this.setState(l))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var f=r>0&&u>0;o>=0&&f&&this._updateScrollLeftForScrollToColumn(),s>=0&&f&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:a||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,i=r.autoHeight,o=r.autoWidth,a=r.columnCount,s=r.height,u=r.rowCount,c=r.scrollToAlignment,l=r.scrollToColumn,f=r.scrollToRow,p=r.width,d=this.state,h=d.scrollLeft,b=d.scrollPositionChangeReason,v=d.scrollTop,g=d.instanceProps;this._handleInvalidatedGridSize();var m=a>0&&0===e.columnCount||u>0&&0===e.rowCount;b===V&&(!o&&h>=0&&(h!==this._scrollingContainer.scrollLeft||m)&&(this._scrollingContainer.scrollLeft=h),!i&&v>=0&&(v!==this._scrollingContainer.scrollTop||m)&&(this._scrollingContainer.scrollTop=v));var y=(0===e.width||0===e.height)&&s>0&&p>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):P({cellSizeAndPositionManager:g.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:l,size:p,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):P({cellSizeAndPositionManager:g.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:c,scrollToIndex:f,size:s,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var k=g.rowSizeAndPositionManager.getTotalSize(),w=g.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:w,totalRowsHeight:k})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&B(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,i=e.className,o=e.containerProps,a=e.containerRole,s=e.containerStyle,u=e.height,c=e.id,l=e.noContentRenderer,f=e.role,p=e.style,d=e.tabIndex,h=e.width,b=this.state,v=b.instanceProps,m=b.needToResetStyleCache,y=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:n?"auto":u,position:"relative",width:r?"auto":h,WebkitOverflowScrolling:"touch",willChange:"transform"};m&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=v.columnSizeAndPositionManager.getTotalSize(),S=v.rowSizeAndPositionManager.getTotalSize(),_=S>u?v.scrollbarSize:0,A=x>h?v.scrollbarSize:0;A===this._horizontalScrollBarSize&&_===this._verticalScrollBarSize||(this._horizontalScrollBarSize=A,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),w.overflowX=x+_<=h?"hidden":"auto",w.overflowY=S+A<=u?"hidden":"auto";var C=this._childrenToDisplay,O=0===C.length&&u>0&&h>0;return g.createElement("div",k()({ref:this._setScrollingContainerRef},o,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:E("ReactVirtualized__Grid",i),id:c,onScroll:this._onScroll,role:f,style:H({},w,{},p),tabIndex:d}),C.length>0&&g.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:H({width:t?"auto":x,height:S,maxWidth:x,maxHeight:S,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},s)},C),O&&l())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,i=e.columnCount,o=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,u=e.overscanIndicesGetter,c=e.overscanRowCount,l=e.rowCount,f=e.width,p=e.isScrollingOptOut,d=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,b=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,g=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,m=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var y=b.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:g}),k=b.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),w=b.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:g}),E=b.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=y.start,this._renderedColumnStopIndex=y.stop,this._renderedRowStartIndex=k.start,this._renderedRowStopIndex=k.stop;var x=u({direction:"horizontal",cellCount:i,overscanCellsCount:s,scrollDirection:d,startIndex:"number"===typeof y.start?y.start:0,stopIndex:"number"===typeof y.stop?y.stop:-1}),S=u({direction:"vertical",cellCount:l,overscanCellsCount:c,scrollDirection:h,startIndex:"number"===typeof k.start?k.start:0,stopIndex:"number"===typeof k.stop?k.stop:-1}),_=x.overscanStartIndex,A=x.overscanStopIndex,C=S.overscanStartIndex,O=S.overscanStopIndex;if(o){if(!o.hasFixedHeight())for(var T=C;T<=O;T++)if(!o.has(T,0)){_=0,A=i-1;break}if(!o.hasFixedWidth())for(var P=_;P<=A;P++)if(!o.has(0,P)){C=0,O=l-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:b.columnSizeAndPositionManager,columnStartIndex:_,columnStopIndex:A,deferredMeasurementCache:o,horizontalOffsetAdjustment:w,isScrolling:m,isScrollingOptOut:p,parent:this,rowSizeAndPositionManager:b.rowSizeAndPositionManager,rowStartIndex:C,rowStopIndex:O,scrollLeft:g,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:E,visibleColumnIndices:y,visibleRowIndices:k}),this._columnStartIndex=_,this._columnStopIndex=A,this._rowStartIndex=C,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&B(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=U(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"===typeof this._deferredInvalidateColumnIndex&&"number"===typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalColumnsWidth,o=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var o="".concat(r,"-").concat(i);this._styleCache[o]=e[o],n&&(this._cellCache[o]=t[o])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var i,o,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),x({cellCount:a.prevColumnCount,cellSize:"number"===typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"===typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),x({cellCount:a.prevRowCount,cellSize:"number"===typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"===typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,H({},r,{},i,{},o)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"===typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"===typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,i={scrollPositionChangeReason:V};return"number"===typeof n&&n>=0&&(i.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,i.scrollLeft=n),"number"===typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"===typeof n&&n>=0&&n!==t.scrollLeft||"number"===typeof r&&r>=0&&r!==t.scrollTop?i:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"===typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,i=e.scrollToAlignment,o=e.scrollToColumn,a=e.width,s=t.scrollLeft,u=t.instanceProps;if(n>0){var c=n-1,l=o<0?c:Math.min(c,o),f=u.rowSizeAndPositionManager.getTotalSize(),p=u.scrollbarSizeMeasured&&f>r?u.scrollbarSize:0;return u.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:a-p,currentOffset:s,targetIndex:l})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,i=t._getCalculatedScrollLeft(e,n);return"number"===typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,i=e.scrollToAlignment,o=e.scrollToRow,a=e.width,s=t.scrollTop,u=t.instanceProps;if(r>0){var c=r-1,l=o<0?c:Math.min(c,o),f=u.columnSizeAndPositionManager.getTotalSize(),p=u.scrollbarSizeMeasured&&f>a?u.scrollbarSize:0;return u.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:n-p,currentOffset:s,targetIndex:l})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,i=t._getCalculatedScrollTop(e,n);return"number"===typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:i}):{}}}]),t}(g.PureComponent),v()(R,"propTypes",null),D);v()(W,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,o=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,u=e.isScrolling,c=e.isScrollingOptOut,l=e.parent,f=e.rowSizeAndPositionManager,p=e.rowStartIndex,d=e.rowStopIndex,h=e.styleCache,b=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,g=e.visibleRowIndices,m=[],y=r.areOffsetsAdjusted()||f.areOffsetsAdjusted(),k=!u&&!y,w=p;w<=d;w++)for(var E=f.getSizeAndPositionOfCell(w),x=i;x<=o;x++){var S=r.getSizeAndPositionOfCell(x),_=x>=v.start&&x<=v.stop&&w>=g.start&&w<=g.stop,A="".concat(w,"-").concat(x),C=void 0;k&&h[A]?C=h[A]:a&&!a.has(w,x)?C={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(C={height:E.size,left:S.offset+s,position:"absolute",top:E.offset+b,width:S.size},h[A]=C);var O={columnIndex:x,isScrolling:u,isVisible:_,key:A,parent:l,rowIndex:w,style:C},T=void 0;!c&&!u||s||b?T=n(O):(t[A]||(t[A]=n(O)),T=t[A]),null!=T&&!1!==T&&m.push(T)}return m},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:N.a,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),Object(m.a)(W);var q=W;function K(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o+1)}}var Y,X;function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $=(X=Y=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a=0){var l=t.getScrollPositionForCell({align:i,cellIndex:o,height:r,scrollLeft:u,scrollTop:c,width:a});l.scrollLeft===u&&l.scrollTop===c||n._setScrollPosition(l)}})),v()(p()(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,i=t.height,o=t.isScrollingChange,a=t.width,s=n._scrollbarSize,u=r.getTotalSize(),c=u.height,l=u.width,f=Math.max(0,Math.min(l-a+s,e.target.scrollLeft)),p=Math.max(0,Math.min(c-i+s,e.target.scrollTop));if(n.state.scrollLeft!==f||n.state.scrollTop!==p){var d=e.cancelable?le:fe;n.state.isScrolling||o(!0),n.setState({isScrolling:!0,scrollLeft:f,scrollPositionChangeReason:d,scrollTop:p})}n._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:p,totalWidth:l,totalHeight:c})}})),n._scrollbarSize=Object(N.a)(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return h()(t,e),a()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Object(N.a)(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||i>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:i}),this._invokeOnSectionRenderedHelper();var o=t.getTotalSize(),a=o.height,s=o.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:i||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,i=n.scrollToAlignment,o=n.scrollToCell,a=n.width,s=this.state,u=s.scrollLeft,c=s.scrollPositionChangeReason,l=s.scrollTop;c===fe&&(u>=0&&u!==t.scrollLeft&&u!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=u),l>=0&&l!==t.scrollTop&&l!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=l)),r===e.height&&i===e.scrollToAlignment&&o===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,i=e.className,o=e.height,a=e.horizontalOverscanSize,s=e.id,u=e.noContentRenderer,c=e.style,l=e.verticalOverscanSize,f=e.width,p=this.state,d=p.isScrolling,h=p.scrollLeft,b=p.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var v=r.getTotalSize(),m=v.height,y=v.width,k=Math.max(0,h-a),w=Math.max(0,b-l),x=Math.min(y,h+f+a),S=Math.min(m,b+o+l),_=o>0&&f>0?r.cellRenderers({height:S-w,isScrolling:d,width:x-k,x:k,y:w}):[],A={boxSizing:"border-box",direction:"ltr",height:t?"auto":o,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},C=m>o?this._scrollbarSize:0,O=y>f?this._scrollbarSize:0;return A.overflowX=y+C<=f?"hidden":"auto",A.overflowY=m+O<=o?"hidden":"auto",g.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:E("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:ce({},A,{},c),tabIndex:0},n>0&&g.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:m,maxHeight:m,maxWidth:y,overflow:"hidden",pointerEvents:d?"none":"",width:y}},_),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalHeight,o=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:fe};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:fe}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:fe}}}]),t}(g.PureComponent);v()(pe,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),pe.propTypes={},Object(m.a)(pe);var de=pe,he=function(){function e(t){var n=t.height,r=t.width,o=t.x,a=t.y;i()(this,e),this.height=n,this.width=r,this.x=o,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),be=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;i()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return a()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,i=e.y,o={};return this.getSections({height:t,width:n,x:r,y:i}).forEach((function(e){return e.getCellIndices().forEach((function(e){o[e]=e}))})),Object.keys(o).map((function(e){return o[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,i=e.y,o=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),s=Math.floor(i/this._sectionSize),u=Math.floor((i+t-1)/this._sectionSize),c=[],l=o;l<=a;l++)for(var f=s;f<=u;f++){var p="".concat(l,".").concat(f);this._sections[p]||(this._sections[p]=new he({height:this._sectionSize,width:this._sectionSize,x:l*this._sectionSize,y:f*this._sectionSize})),c.push(this._sections[p])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function ve(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,s=r,u=s-o+i;switch(n){case"start":return s;case"end":return u;case"center":return s-(o-i)/2;default:return Math.max(u,Math.min(s,a))}}var ge=function(e){function t(e,n){var r;return i()(this,t),(r=u()(this,l()(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(p()(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(p()(r)),r}return h()(t,e),a()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=k()({},this.props);return g.createElement(de,k()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,i=[],o=new be(r),a=0,s=0,u=0;u=0&&nn||i1&&void 0!==arguments[1]?arguments[1]:0,n="function"===typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,i=this.props,o=i.isRowLoaded,a=i.minimumBatchSize,s=i.rowCount,u=i.threshold,c=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,i=e.startIndex,o=e.stopIndex,a=[],s=null,u=null,c=i;c<=o;c++){t({index:c})?null!==u&&(a.push({startIndex:s,stopIndex:u}),s=u=null):(u=c,null===s&&(s=c))}if(null!==u){for(var l=Math.min(Math.max(u,s+n-1),r-1),f=u+1;f<=l&&!t({index:f});f++)u=f;a.push({startIndex:s,stopIndex:u})}if(a.length)for(var p=a[0];p.stopIndex-p.startIndex+10;){var d=p.startIndex-1;if(t({index:d}))break;p.startIndex=d}return a}({isRowLoaded:o,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-u),stopIndex:Math.min(s-1,t+u)}),l=(n=[]).concat.apply(n,ke()(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:l}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(g.PureComponent);v()(we,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),we.propTypes={};var Ee,xe,Se=(xe=Ee=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,i=e.width,o=E("ReactVirtualized__List",t);return g.createElement(q,k()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:o,columnWidth:i,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(g.PureComponent),v()(Ee,"propTypes",null),xe);v()(Se,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:K,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var _e=n(402),Ae=n.n(_e);var Ce={ge:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(var o=n+1;t<=n;){var a=t+n>>>1;i(e[a],r)>=0?(o=a,n=a-1):t=a+1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=n+1;t<=n;){var o=t+n>>>1;e[o]>=r?(i=o,n=o-1):t=o+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},gt:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(var o=n+1;t<=n;){var a=t+n>>>1;i(e[a],r)>0?(o=a,n=a-1):t=a+1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=n+1;t<=n;){var o=t+n>>>1;e[o]>r?(i=o,n=o-1):t=o+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},lt:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(var o=t-1;t<=n;){var a=t+n>>>1;i(e[a],r)<0?(o=a,t=a+1):n=a-1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=t-1;t<=n;){var o=t+n>>>1;e[o]>>1;i(e[a],r)<=0?(o=a,t=a+1):n=a-1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=t-1;t<=n;){var o=t+n>>>1;e[o]<=r?(i=o,t=o+1):n=o-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},eq:function(e,t,n,r,i){return"function"===typeof n?function(e,t,n,r,i){for(;t<=n;){var o=t+n>>>1,a=i(e[o],r);if(0===a)return o;a<=0?t=o+1:n=o-1}return-1}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(;t<=n;){var i=t+n>>>1,o=e[i];if(o===r)return i;o<=r?t=i+1:n=i-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}};function Oe(e,t,n,r,i){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var Te=Oe.prototype;function Pe(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Ie(e,t){var n=Ue(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Re(e,t){var n=e.intervals([]);n.push(t),Ie(e,n)}function De(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),Ie(e,n),1)}function Ne(e,t,n){for(var r=0;r=0&&e[r][1]>=t;--r){var i=n(e[r]);if(i)return i}}function Le(e,t){for(var n=0;n>1],i=[],o=[],a=[];for(n=0;n3*(t+1)?Re(this,e):this.left.insert(e):this.left=Ue([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Re(this,e):this.right.insert(e):this.right=Ue([e]);else{var n=Ce.ge(this.leftPoints,e,Me),r=Ce.ge(this.rightPoints,e,Be);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},Te.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?De(this,e):2===(o=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?De(this,e):2===(o=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var i=this.left,o=this.right;n.count-=r.count,n.right=r.left,r.left=i,r.right=o}Pe(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Pe(this,this.left):Pe(this,this.right);return 1}for(i=Ce.ge(this.leftPoints,e,Me);ithis.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return je(this.rightPoints,e,t)}return Le(this.leftPoints,t)},Te.queryInterval=function(e,t,n){var r;if(ethis.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return tthis.mid?je(this.rightPoints,e,n):Le(this.leftPoints,n)};var He=ze.prototype;He.insert=function(e){this.root?this.root.insert(e):this.root=new Oe(e[0],null,null,[e],[e])},He.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},He.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},He.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(He,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(He,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ge,Ve,We=function(){function e(){var t;i()(this,e),v()(this,"_columnSizeMap",{}),v()(this,"_intervalTree",t&&0!==t.length?new ze(Ue(t)):new ze(null)),v()(this,"_leftMap",{})}return a()(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Ae()(e,3),i=t[0],o=(t[1],t[2]);return n(o,r._leftMap[o],i)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var i=this._columnSizeMap,o=i[t];i[t]=void 0===o?n+r:Math.max(o,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};i()(this,e),v()(this,"_cellMeasurerCache",void 0),v()(this,"_columnIndexOffset",void 0),v()(this,"_rowIndexOffset",void 0),v()(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),v()(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,o=n.columnIndexOffset,a=void 0===o?0:o,s=n.rowIndexOffset,u=void 0===s?0:s;this._cellMeasurerCache=r,this._columnIndexOffset=a,this._rowIndexOffset=u}return a()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t0?new Je({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:s}):o,r._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new Je({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:s}):o,r._deferredMeasurementCacheTopRightGrid=a>0?new Je({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),r}return h()(t,e),a()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,o=this.props,a=o.fixedColumnCount,s=o.fixedRowCount,u=Math.max(0,n-a),c=Math.max(0,i-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:u,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:u,rowIndex:i}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),o=_()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,s=a.scrollLeft,u=a.scrollTop;return g.createElement("div",{style:this._containerOuterStyle},g.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(o),this._renderTopRightGrid(Qe({},o,{onScroll:t,scrollLeft:s}))),g.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Qe({},o,{onScroll:t,scrollTop:u})),this._renderBottomRightGrid(Qe({},o,{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:r,scrollToRow:i,scrollTop:u}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"===typeof n){for(var r=0,i=0;i=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(g.PureComponent);v()(Ze,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),Ze.propTypes={},Object(m.a)(Ze);var et=function(e){function t(e,n){var r;return i()(this,t),(r=u()(this,l()(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(p()(r)),r}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,i=t.scrollHeight,o=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:i,scrollLeft:o,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,i=e.scrollLeft,o=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:i,scrollTop:o,scrollWidth:a})}}]),t}(g.PureComponent);et.propTypes={};function tt(e){var t=e.className,n=e.columns,r=e.style;return g.createElement("div",{className:t,role:"row",style:r},n)}tt.propTypes=null;var nt={ASC:"ASC",DESC:"DESC"};function rt(e){var t=e.sortDirection,n=E("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===nt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===nt.DESC});return g.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===nt.ASC?g.createElement("path",{d:"M7 14l5-5 5 5z"}):g.createElement("path",{d:"M7 10l5 5 5-5z"}),g.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function it(e){var t=e.dataKey,n=e.label,r=e.sortBy,i=e.sortDirection,o=r===t,a=[g.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"===typeof n?n:null},n)];return o&&a.push(g.createElement(rt,{key:"SortIndicator",sortDirection:i})),a}function ot(e){var t=e.className,n=e.columns,r=e.index,i=e.key,o=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,l=e.rowData,f=e.style,p={"aria-rowindex":r+1};return(o||a||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,o&&(p.onClick=function(e){return o({event:e,index:r,rowData:l})}),a&&(p.onDoubleClick=function(e){return a({event:e,index:r,rowData:l})}),s&&(p.onMouseOut=function(e){return s({event:e,index:r,rowData:l})}),u&&(p.onMouseOver=function(e){return u({event:e,index:r,rowData:l})}),c&&(p.onContextMenu=function(e){return c({event:e,index:r,rowData:l})})),g.createElement("div",k()({},p,{className:t,key:i,role:"row",style:f}),n)}rt.propTypes={},it.propTypes=null,ot.propTypes=null;var at=function(e){function t(){return i()(this,t),u()(this,l()(t).apply(this,arguments))}return h()(t,e),t}(g.Component);function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=Object(ae.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,i=t.disableHeader,o=t.gridClassName,a=t.gridStyle,s=t.headerHeight,u=t.headerRowRenderer,c=t.height,l=t.id,f=t.noRowsRenderer,p=t.rowClassName,d=t.rowStyle,h=t.scrollToIndex,b=t.style,v=t.width,m=this.state.scrollbarWidth,y=i?c:c-s,w="function"===typeof p?p({index:-1}):p,x="function"===typeof d?d({index:-1}):d;return this._cachedColumnStyles=[],g.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=ut({overflow:"hidden"},r)})),g.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":g.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:E("ReactVirtualized__Table",r),id:l,role:"grid",style:b},!i&&u({className:E("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:ut({height:s,overflow:"hidden",paddingRight:m,width:v},x)}),g.createElement(q,k()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:E("ReactVirtualized__Table__Grid",o),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:y,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:m,scrollToRow:h,style:ut({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,i=e.parent,o=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,u=t.props,c=u.cellDataGetter,l=u.cellRenderer,f=u.className,p=u.columnData,d=u.dataKey,h=u.id,b=l({cellData:c({columnData:p,dataKey:d,rowData:o}),columnData:p,columnIndex:n,dataKey:d,isScrolling:r,parent:i,rowData:o,rowIndex:a}),v=this._cachedColumnStyles[n],m="string"===typeof b?b:null;return g.createElement("div",{"aria-colindex":n+1,"aria-describedby":h,className:E("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+n,onClick:function(e){s&&s({columnData:p,dataKey:d,event:e})},role:"gridcell",style:v,title:m},b)}},{key:"_createHeader",value:function(e){var t,n,r,i,o,a=e.column,s=e.index,u=this.props,c=u.headerClassName,l=u.headerStyle,f=u.onHeaderClick,p=u.sort,d=u.sortBy,h=u.sortDirection,b=a.props,v=b.columnData,m=b.dataKey,y=b.defaultSortDirection,k=b.disableSort,w=b.headerRenderer,x=b.id,S=b.label,_=!k&&p,A=E("ReactVirtualized__Table__headerColumn",c,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:_}),C=this._getFlexStyleForColumn(a,ut({},l,{},a.props.headerStyle)),O=w({columnData:v,dataKey:m,disableSort:k,label:S,sortBy:d,sortDirection:h});if(_||f){var T=d!==m?y:h===nt.DESC?nt.ASC:nt.DESC,P=function(e){_&&p({defaultSortDirection:y,event:e,sortBy:m,sortDirection:T}),f&&f({columnData:v,dataKey:m,event:e})};o=a.props["aria-label"]||S||m,i="none",r=0,t=P,n=function(e){"Enter"!==e.key&&" "!==e.key||P(e)}}return d===m&&(i=h===nt.ASC?"ascending":"descending"),g.createElement("div",{"aria-label":o,"aria-sort":i,className:A,id:x,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:C,tabIndex:r},O)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,i=e.key,o=e.parent,a=e.style,s=this.props,u=s.children,c=s.onRowClick,l=s.onRowDoubleClick,f=s.onRowRightClick,p=s.onRowMouseOver,d=s.onRowMouseOut,h=s.rowClassName,b=s.rowGetter,v=s.rowRenderer,m=s.rowStyle,y=this.state.scrollbarWidth,k="function"===typeof h?h({index:n}):h,w="function"===typeof m?m({index:n}):m,x=b({index:n}),S=g.Children.toArray(u).map((function(e,i){return t._createColumn({column:e,columnIndex:i,isScrolling:r,parent:o,rowData:x,rowIndex:n,scrollbarWidth:y})})),_=E("ReactVirtualized__Table__row",k),A=ut({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:y},w);return v({className:_,columns:S,index:n,isScrolling:r,key:i,onRowClick:c,onRowDoubleClick:l,onRowRightClick:f,onRowMouseOver:p,onRowMouseOut:d,rowData:x,style:A})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=ut({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:g.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"===typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(g.PureComponent);v()(ct,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:K,overscanRowCount:10,rowRenderer:ot,headerRowRenderer:tt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ct.propTypes={};var lt=[],ft=null,pt=null;function dt(){pt&&(pt=null,document.body&&null!=ft&&(document.body.style.pointerEvents=ft),ft=null)}function ht(){dt(),lt.forEach((function(e){return e.__resetIsScrolling()}))}function bt(e){e.currentTarget===window&&null==ft&&document.body&&(ft=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){pt&&B(pt);var e=0;lt.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),pt=U(ht,e)}(),lt.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function vt(e,t){lt.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",bt),lt.push(e)}function gt(e,t){(lt=lt.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",bt),pt&&(B(pt),dt()))}var mt,yt,kt=function(e){return e===window},wt=function(e){return e.getBoundingClientRect()};function Et(e,t){if(e){if(kt(e)){var n=window,r=n.innerHeight,i=n.innerWidth;return{height:"number"===typeof r?r:0,width:"number"===typeof i?i:0}}return wt(e)}return{height:t.serverHeight,width:t.serverWidth}}function xt(e,t){if(kt(t)&&document.documentElement){var n=document.documentElement,r=wt(e),i=wt(n);return{top:r.top-i.top,left:r.left-i.left}}var o=St(t),a=wt(e),s=wt(t);return{top:a.top+o.top-s.top,left:a.left+o.left-s.left}}function St(e){return kt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,i=n.width,o=this._child||ae.findDOMNode(this);if(o instanceof Element&&e){var a=xt(o,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=Et(e,this.props);r===s.height&&i===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(ee.a)(),this.updatePosition(e),e&&(vt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),gt(this,r),vt(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(gt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,i=t.scrollLeft,o=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:o,isScrolling:n,scrollLeft:i,scrollTop:r,width:a})}}]),t}(g.PureComponent),v()(mt,"propTypes",null),yt);v()(Ot,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Ct(),serverHeight:0,serverWidth:0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(139);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(19),a=function(){var e=i(r.mark((function e(t){var n,i,a,s,u,c,l,f;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],i=!0,a=!1,e.prev=3,u=o(t);case 5:return e.next=7,u.next();case 7:return c=e.sent,i=c.done,e.next=11,c.value;case 11:if(l=e.sent,i){e.next=18;break}f=l,n.push(f);case 15:i=!0,e.next=5;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(3),a=!0,s=e.t0;case 24:if(e.prev=24,e.prev=25,i||null==u.return){e.next=29;break}return e.next=29,u.return();case 29:if(e.prev=29,!a){e.next=32;break}throw s;case 32:return e.finish(29);case 33:return e.finish(24);case 34:return e.abrupt("return",n);case 35:case"end":return e.stop()}}),e,null,[[3,20,24,34],[25,,29,33]])})));return function(t){return e.apply(this,arguments)}}();e.exports=a},,function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:"utf8";if("utf8"===t||"utf-8"===t)return i.decode(e);if("ascii"===t)return o(e);var n=r[t];if(!n)throw new Error("Unknown base");return n.encode(e)}},function(e,t,n){"use strict";var r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,docid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,json:512,messagepack:513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056});e.exports={baseTable:r}},function(e,t,n){"use strict";var r=n(10),i=n(207),o=n(515),a=n(516),s=n(294),u=n(519);var c=n(520),l=n(521);e.exports=r({addPrefix:function(e,t){var n;if(e instanceof Uint8Array)n=s.varintUint8ArrayEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");n=a[e]}return u([n,t],n.length+t.length)},rmPrefix:function(e){return i.decode(e),e.slice(i.decode.bytes)},getCodec:function(e){var t=i.decode(e),n=o.get(t);if(void 0===n)throw new Error("Code ".concat(t," not found"));return n},getName:function(e){return o.get(e)},getNumber:function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return i.decode(t)},getCode:function(e){return i.decode(e)},getCodeVarint:function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},getVarint:function(e){return i.encode(e)},print:l},c)},function(e,t,n){var r=n(556);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";var r=n(50).Buffer,i=Symbol.for("BufferList");function o(e){if(!(this instanceof o))return new o(e);o._init.call(this,e)}o._init=function(e){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},o.prototype._new=function(e){return new o(e)},o.prototype._offset=function(e){if(0===e)return[0,0];for(var t=0,n=0;nthis.length||e<0)){var t=this._offset(e);return this._bufs[t[0]][t[1]]}},o.prototype.slice=function(e,t){return"number"===typeof e&&e<0&&(e+=this.length),"number"===typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},o.prototype.copy=function(e,t,n,i){if(("number"!==typeof n||n<0)&&(n=0),("number"!==typeof i||i>this.length)&&(i=this.length),n>=this.length)return e||r.alloc(0);if(i<=0)return e||r.alloc(0);var o=!!e,a=this._offset(n),s=i-n,u=s,c=o&&t||0,l=a[1];if(0===n&&i===this.length){if(!o)return 1===this._bufs.length?this._bufs[0]:r.concat(this._bufs,this.length);for(var f=0;fd)){this._bufs[p].copy(e,c,l,l+u),c+=d;break}this._bufs[p].copy(e,c,l),c+=d,u-=d,l&&(l=0)}return e.length>c?e.slice(0,c):e},o.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!==typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();var n=this._offset(e),r=this._offset(t),i=this._bufs.slice(n[0],r[0]+1);return 0===r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!==n[1]&&(i[0]=i[0].slice(n[1])),this._new(i)},o.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},o.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){for(var e=this._new(),t=0;tthis.length?this.length:t;for(var i=this._offset(t),o=i[0],a=i[1];o=e.length){var u=s.indexOf(e,a);if(-1!==u)return this._reverseOffset([o,u]);a=s.length-e.length+1}else{var c=this._reverseOffset([o,a]);if(this._match(c,e))return c;a++}}a=0}return-1},o.prototype._match=function(e,t){if(this.length-e