ethereum-lite-explorer
Version:
Ethereum Lite Explorer
200 lines (186 loc) • 55.9 kB
JavaScript
__aleth_io__3box(function(e){function t(t){var r=t[0];var o=t[1];var i,a,s=0,l=[];for(;s<r.length;s++){a=r[s];n[a]&&l.push(n[a][0]);n[a]=0}for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i]);c&&c(t);for(;l.length;)l.shift()()}var r={};var n={0:0};function o(e){return i.p+""+{1:"900ab790cd44af5d115c",2:"30503f687e9f75b76c73",3:"39dee59f99cd2587fa31"}[e]+".bundle.js"}function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};e[t].call(n.exports,n,n.exports,i);n.l=!0;return n.exports}i.e=function e(t){var r=[];var a=n[t];if(0!==a)if(a)r.push(a[2]);else{var s=new Promise(function(e,r){a=n[t]=[e,r]});r.push(a[2]=s);var l=document.createElement("script");var c;l.charset="utf-8";l.timeout=120;i.nc&&l.setAttribute("nonce",i.nc);l.src=o(t);0!==l.src.indexOf(window.location.origin+"/")&&(l.crossOrigin="anonymous");c=function(e){l.onerror=l.onload=null;clearTimeout(p);var r=n[t];if(0!==r){if(r){var o=e&&("load"===e.type?"missing":e.type);var i=e&&e.target&&e.target.src;var a=new Error("Loading chunk "+t+" failed.\n("+o+": "+i+")");a.type=o;a.request=i;r[1](a)}n[t]=void 0}};var p=setTimeout(function(){c({type:"timeout",target:l})},12e4);l.onerror=l.onload=c;document.head.appendChild(l)}return Promise.all(r)};i.m=e;i.c=r;i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})};i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};i.t=function(e,t){1&t&&(e=i(e));if(8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);i.r(r);Object.defineProperty(r,"default",{enumerable:!0,value:e});if(2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r};i.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};i.d(t,"a",t);return t};i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};i.p="";i.oe=function(e){console.error(e);throw e};var a=window["webpackJsonp_aleth_io_3box"]=window["webpackJsonp_aleth_io_3box"]||[];var s=a.push.bind(a);a.push=t;a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var c=s;return i(i.s="p0a2")}({"+1F+":function(e,t,r){var n={"./en-US.json":["9jCR",2],"./zh-CN.json":["6XSq",3]};function o(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t});var t=n[e],o=t[0];return r.e(t[1]).then(function(){return r.t(o,3)})}o.keys=function e(){return Object.keys(n)};o.id="+1F+";e.exports=o},"1XU+":function(e,t,r){"use strict";var n;var o=r("6BtY");var i;e.exports=o},"5R4H":function(e,t,r){"use strict";(function(t){var r="__global_unique_id__";e.exports=function(){return t[r]=(t[r]||0)+1}}).call(this,r("pCvA"))},"6BtY":function(e,t,r){"use strict";function n(e){return function(){return e}}var o=function e(){};o.thatReturns=n;o.thatReturnsFalse=n(!1);o.thatReturnsTrue=n(!0);o.thatReturnsNull=n(null);o.thatReturnsThis=function(){return this};o.thatReturnsArgument=function(e){return e};e.exports=o},"8VmE":function(e,t){function r(){e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};return r.apply(this,arguments)}e.exports=r},Dtiu:function(e,t){e.exports=require("styled-components")},E02R:function(e,t,r){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},FIWN:function(e,t,r){"use strict";var n=!1;var o=function(){};var i;e.exports=o},IfDu:function(e,t,r){"use strict";t.__esModule=!0;var n;var o=s(r("cDcd"));var i;var a=s(r("Qwwl"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=o.default.createContext||a.default;e.exports=t["default"]},NS33:function(e,t,r){"use strict";var n=r("E02R");function o(){}function i(){}i.resetWarningCache=o;e.exports=function(){function e(e,t,r,o,i,a){if(a===n)return;var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");s.name="Invariant Violation";throw s}e.isRequired=e;function t(){return e}var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};r.PropTypes=r;return r}},OvAC:function(e,t){function r(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}e.exports=r},PE9J:function(e,t){function r(e,t){if(null==e)return{};var r={};var n=Object.keys(e);var o,i;for(i=0;i<n.length;i++){o=n[i];if(t.indexOf(o)>=0)continue;r[o]=e[o]}return r}e.exports=r},QKC2:function(e,t){function r(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}e.exports=r},Qwwl:function(e,t,r){"use strict";t.__esModule=!0;var n=r("cDcd");var o=u(n);var i;var a=u(r("W0B4"));var s;var l=u(r("5R4H"));var c;var p=u(r("1XU+"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=1073741823;function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function b(e){var t=[];return{on:function e(r){t.push(r)},off:function e(r){t=t.filter(function(e){return e!==r})},get:function t(){return e},set:function r(n,o){e=n;t.forEach(function(t){return t(e,o)})}}}function g(e){return Array.isArray(e)?e[0]:e}function y(e,t){var r,o;var i="__create-react-context-"+(0,l.default)()+"__";var s=function(e){h(r,e);function r(){var t,n,o;f(this,r);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=(t=n=d(this,e.call.apply(e,[this].concat(a))),n.emitter=b(n.props.value),t),d(n,o)}r.prototype.getChildContext=function e(){var t;return(t={})[i]=this.emitter,t};r.prototype.componentWillReceiveProps=function e(r){if(this.props.value!==r.value){var n=this.props.value;var o=r.value;var i=void 0;if(m(n,o))i=0;else{i="function"==typeof t?t(n,o):v;0;0!==(i|=0)&&this.emitter.set(r.value,i)}}};r.prototype.render=function e(){return this.props.children};return r}(n.Component);s.childContextTypes=((r={})[i]=a.default.object.isRequired,r);var c=function(t){h(r,t);function r(){var e,n,o;f(this,r);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=(e=n=d(this,t.call.apply(t,[this].concat(a))),n.state={value:n.getValue()},n.onUpdate=function(e,t){var r;0!=((0|n.observedBits)&t)&&n.setState({value:n.getValue()})},e),d(n,o)}r.prototype.componentWillReceiveProps=function e(t){var r=t.observedBits;this.observedBits=void 0===r||null===r?v:r};r.prototype.componentDidMount=function e(){this.context[i]&&this.context[i].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?v:t};r.prototype.componentWillUnmount=function e(){this.context[i]&&this.context[i].off(this.onUpdate)};r.prototype.getValue=function t(){return this.context[i]?this.context[i].get():e};r.prototype.render=function e(){return g(this.props.children)(this.state.value)};return r}(n.Component);c.contextTypes=((o={})[i]=a.default.object,o);return{Provider:s,Consumer:c}}t.default=y;e.exports=t["default"]},T1e2:function(e,t){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=r},VBo9:function(e,t){e.exports=require("mobx")},W0B4:function(e,t,r){var n,o;e.exports=r("NS33")()},cDcd:function(e,t){e.exports=require("react")},faye:function(e,t){e.exports=require("react-dom")},p0a2:function(e,t,r){"use strict";r.r(t);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){n(e,t);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function e(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})}function u(e,t){var r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=2&a[0]?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;(o=0,i)&&(a=[2&a[0],i.value]);switch(a[0]){case 0:case 1:i=a;break;case 4:r.label++;return{value:a[1],done:!1};case 5:r.label++;o=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){r=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(6===a[0]&&r.label<i[1]){r.label=i[1];i=a;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(a);break}i[2]&&r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function f(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;if(t)return t.call(e);return{next:function(){e&&r>=e.length&&(e=void 0);return{value:e&&e[r++],done:!e}}}}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(r=n["return"])&&r.call(n)}finally{if(a)throw a.error}}return i}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){n[e]&&(o[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{l(n[e](t))}catch(e){u(i[0][3],e)}}function l(e){e.value instanceof m?Promise.resolve(e.value.v).then(c,p):u(i[0][2],e)}function c(e){s("next",e)}function p(e){s("throw",e)}function u(e,t){(e(t),i.shift(),i.length)&&s(i[0][0],i[0][1])}}function g(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function y(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=d(e),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise(function(n,i){o(n,i,(r=e[t](r)).done,r.value)})}}function o(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}}function w(e,t){Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t;return e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);t.default=e;return t}function E(e){return e&&e.__esModule?e:{default:e}}var O=r("cDcd");var P=r.n(O);var C=r("Dtiu");const{default:T,css:S,injectGlobal:D,keyframes:N,ThemeProvider:M,withTheme:_}=C;var j=T;var I=r("sGQ9");var k=r("VBo9");var L=r("faye");var R=r("PE9J");var $=r.n(R);var W=r("8VmE");var A=r.n(W);var B=r("QKC2");var F=r.n(B);var U=r("T1e2");var H=r.n(U);var V=r("OvAC");var z=r.n(V);var q=r("y37j");var Y=r("IfDu");var G;var X=r.n(Y)()({setReferenceNode:void 0,referenceNode:void 0});var K=function(e){F()(t,e);function t(){var t;t=e.call(this)||this;z()(H()(H()(t)),"setReferenceNode",function(e){if(!e||t.state.context.referenceNode===e)return;t.setState(function(t){var r=t.context;return{context:A()({},r,{referenceNode:e})}})});t.state={context:{setReferenceNode:t.setReferenceNode,referenceNode:void 0}};return t}var r;t.prototype.render=function e(){return O["createElement"](X.Provider,{value:this.state.context},this.props.children)};return t}(O["Component"]);var Q=function e(t){return Array.isArray(t)?t[0]:t};var J=function e(t){if("function"==typeof t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.apply(void 0,n)}};var Z={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"};var ee={};var te=function(e){F()(t,e);function t(){var t;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t=e.call.apply(e,[this].concat(n))||this;z()(H()(H()(t)),"state",{data:void 0,placement:void 0});z()(H()(H()(t)),"popperInstance",void 0);z()(H()(H()(t)),"popperNode",null);z()(H()(H()(t)),"arrowNode",null);z()(H()(H()(t)),"setPopperNode",function(e){if(!e||t.popperNode===e)return;J(t.props.innerRef,e);t.popperNode=e;t.updatePopperInstance()});z()(H()(H()(t)),"setArrowNode",function(e){t.arrowNode=e});z()(H()(H()(t)),"updateStateModifier",{enabled:!0,order:900,fn:function e(r){var n=r.placement;t.setState({data:r,placement:n});return r}});z()(H()(H()(t)),"getOptions",function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:A()({},t.props.modifiers,{arrow:A()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}});z()(H()(H()(t)),"getPopperStyle",function(){return t.popperNode&&t.state.data?A()({position:t.state.data.offsets.popper.position},t.state.data.styles):Z});z()(H()(H()(t)),"getPopperPlacement",function(){return t.state.data?t.state.placement:void 0});z()(H()(H()(t)),"getArrowStyle",function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:ee});z()(H()(H()(t)),"getOutOfBoundariesState",function(){return t.state.data?t.state.data.hide:void 0});z()(H()(H()(t)),"destroyPopperInstance",function(){if(!t.popperInstance)return;t.popperInstance.destroy();t.popperInstance=null});z()(H()(H()(t)),"updatePopperInstance",function(){t.destroyPopperInstance();var e,r=H()(H()(t)).popperNode;var n=t.props.referenceElement;if(!n||!r)return;t.popperInstance=new q["a"](n,r,t.getOptions())});z()(H()(H()(t)),"scheduleUpdate",function(){t.popperInstance&&t.popperInstance.scheduleUpdate()});return t}var r=t.prototype;r.componentDidUpdate=function e(t,r){this.props.placement!==t.placement||this.props.referenceElement!==t.referenceElement||this.props.positionFixed!==t.positionFixed?this.updatePopperInstance():this.props.eventsEnabled!==t.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners());r.placement!==this.state.placement&&this.scheduleUpdate()};r.componentWillUnmount=function e(){J(this.props.innerRef,null);this.destroyPopperInstance()};r.render=function e(){return Q(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})};return t}(O["Component"]);z()(te,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});var re=q["a"].placements;function ne(e){var t=e.referenceElement,r=$()(e,["referenceElement"]);return O["createElement"](X.Consumer,null,function(e){var n=e.referenceNode;return O["createElement"](te,A()({referenceElement:void 0!==t?t:n},r))})}var oe=r("FIWN");var ie=r.n(oe);var ae=function(e){F()(t,e);function t(){var t;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t=e.call.apply(e,[this].concat(n))||this;z()(H()(H()(t)),"refHandler",function(e){J(t.props.innerRef,e);J(t.props.setReferenceNode,e)});return t}var r;t.prototype.render=function e(){ie()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component.");return Q(this.props.children)({ref:this.refHandler})};return t}(O["Component"]);function se(e){return O["createElement"](X.Consumer,null,function(t){var r=t.setReferenceNode;return O["createElement"](ae,A()({setReferenceNode:r},e))})}class le extends O["Component"]{render(){let e=O["Children"].only(this.props.children);return O["cloneElement"](e,{ref:e=>{this.innerRef=e instanceof Element?e:L["findDOMNode"](e)}})}componentDidMount(){this.props.onMount(this.innerRef)}componentWillUnmount(){this.props.onUnmount&&this.props.onUnmount(this.innerRef)}}const{default:ce,css:pe,injectGlobal:ue,keyframes:fe,ThemeProvider:de,withTheme:he}=C;var ve=ce;const me=(e,t,r)=>{let n=t+"px solid transparent";let o=t+"px solid "+r;if(!e)return"";return e.startsWith("top")?pe`
transform: translateX(-50%);
border-left: ${n};
border-right: ${n};
border-top: ${o};
`:e.startsWith("bottom")?pe`
transform: translateX(-50%);
top: -${t}px;
border-left: ${n};
border-right: ${n};
border-bottom: ${o};
`:e.startsWith("left")?pe`
transform: translateY(-50%);
right: -${t}px;
border-top: ${n};
border-left: ${o};
border-bottom: ${n};
`:e.startsWith("right")?pe`
transform: translateY(-50%);
left: -${t}px;
border-top: ${n};
border-right: ${o};
border-bottom: ${n};
`:""};const be=e=>{if(!e)return"";return e.startsWith("bottom")?pe`
top: 0;
`:e.startsWith("left")?pe`
right: 0;
`:""};const ge=ve("div")`
position: absolute;
${e=>be(e.placement)}
&:before, &:after {
content: "";
position: absolute;
}
&:before {
${e=>e.borderColor?me(e.placement,6,e.borderColor):""}
}
&:after {
${e=>me(e.placement,5,e.backgroundColor)}
}
`;let ye=class e extends O["Component"]{render(){return O["createElement"](K,null,O["createElement"](se,null,({ref:e})=>O["createElement"](le,{onMount:t=>e(t),onUnmount:t=>e(null)},this.props.children)),this.props.visible?L["createPortal"](O["createElement"](ne,Object.assign({placement:this.props.placement,modifiers:Object.assign({offset:{offset:`${this.props.alignmentOffset+"px"||!1}, ${this.props.offset}px`}},this.props.noFlip?{flip:{enabled:!1}}:{})},this.props.referenceElement?{referenceElement:this.createReferenceObject()}:{}),({ref:e,style:t,placement:r,arrowProps:n})=>O["createElement"]("div",{ref:e,onClick:e=>e.stopPropagation(),style:Object.assign({},t,{background:this.props.backgroundColor,boxShadow:"0 2px 6px 0 rgba(0, 0, 0, .08)",border:this.props.borderColor?"1px solid "+this.props.borderColor:void 0,boxSizing:"border-box",pointerEvents:this.props.nonInteractive?"none":void 0},this.props.style),"data-placement":r},this.props.content,this.props.noArrow?null:O["createElement"](ge,{placement:r,backgroundColor:this.props.backgroundColor,borderColor:this.props.borderColor,innerRef:n.ref,style:n.style}))),document.body):null)}createReferenceObject(){let e=this.props.referenceElement;if("function"!=typeof e)return e;const t=e;return{getBoundingClientRect:()=>t()?t().getBoundingClientRect():{bottom:0,left:0,right:0,top:0,height:0,width:0},get clientWidth(){return t()?t().clientWidth:0},get clientHeight(){return t()?t().clientHeight:0}}}};ye.defaultProps={backgroundColor:"#fff",placement:"top",offset:0};ye=s([I["observer"]],ye);class we{constructor(){this.listeners=new Set}subscribe(e){this.listeners.add(e)}unsubscribe(e){this.listeners.delete(e)}subscribeOnce(e){let t=(r,n)=>{e(r,n);this.unsubscribe(t);t=void 0};this.subscribe(t)}dispatch(e,t){this.listeners.forEach(r=>r(t,e))}asEvent(){return this}}const xe={enterDelay:400,leaveDelay:400};class Ee{constructor(e={}){this.hoveredElements=0;this._onActiveChange=new we;this.options=Object.assign({},xe,e)}get onActiveChange(){return this._onActiveChange.asEvent()}applyOpts(e){this.options=Object.assign({},this.options,e)}enter(e){this.hoveredElements++;if(this.hideTimeoutId){clearTimeout(this.hideTimeoutId);this.hideTimeoutId=void 0}this.showTimeoutId=setTimeout(()=>this._onActiveChange.dispatch(this,e),this.options.enterDelay)}leave(){this.hoveredElements--;if(this.hoveredElements>0)return;if(this.showTimeoutId){clearTimeout(this.showTimeoutId);this.showTimeoutId=void 0}this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);this.hideTimeoutId=setTimeout(()=>this._onActiveChange.dispatch(this,void 0),this.options.leaveDelay)}}let Oe=class e extends O["Component"]{constructor(e){super(e);this.visible=!1;this.handleMouseEnter=(()=>{this.multiHover.enter(!0)});this.handleMouseLeave=(()=>{this.multiHover.leave()});this.multiHover=new Ee({enterDelay:this.props.showDelay,leaveDelay:this.props.hideDelay});this.multiHover.onActiveChange.subscribe(e=>this.visible=e||!1)}componentDidUpdate(e){this.props.showDelay!==e.showDelay&&this.multiHover.applyOpts({enterDelay:this.props.showDelay});this.props.hideDelay!==e.hideDelay&&this.multiHover.applyOpts({leaveDelay:this.props.hideDelay})}render(){let e=this.props,{showDelay:t,hideDelay:r,content:n}=e,o=a(e,["showDelay","hideDelay","content"]);let i=O["Children"].only(this.props.children);return O["createElement"](ye,Object.assign({visible:this.visible,content:O["createElement"]("div",{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},n)},o),O["createElement"](le,{onMount:e=>{e.addEventListener("mouseenter",this.handleMouseEnter);e.addEventListener("mouseleave",this.handleMouseLeave)},onUnmount:e=>{e.removeEventListener("mouseenter",this.handleMouseEnter);e.removeEventListener("mouseleave",this.handleMouseLeave)}},i))}};Oe.defaultProps={showDelay:400,hideDelay:400};s([k["observable"]],Oe.prototype,"visible",void 0);Oe=s([I["observer"]],Oe);const Pe=({children:e,className:t})=>O["createElement"]("div",{className:t},e);const Ce=ve(Pe)`
font-size: 12px;
line-height: 12px;
height: 12px;
text-transform: uppercase;
background-color: ${e=>e.arrow?e.disabled?e.theme.colors.label.disabled:e.theme.colors.base.highlight.color:"transparent"};
font-weight: 600;
letter-spacing: .5px;
padding: 4px 8px;
margin-right: ${e=>e.arrow?"10px":"0"};
color: ${e=>e.arrow?e.theme.colors.base.highlight.contrast:e.strong?e.disabled?e.theme.colors.label.disabled:e.theme.colors.label.strong:e.disabled?e.theme.colors.label.disabled:e.theme.colors.label.default};
/**
* When is the first label in a row the width of the container (LayoutRowItemWrapper) is 200px + 2*8px padding,
* and the display: flex along with justify-content: flex-end ensures that the label is right aligned.
* However, if the label is long enough (bigger than 200px) to wrap, the Label div will occupy all the container
* width, and the text will be aligned to right thanks to the rule below.
*/
text-align: right;
${e=>e.arrow?pe`
position: relative;
&::before {
content: "";
position: absolute;
top: 0;
right: -10px;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid ${e.disabled?e.theme.colors.label.disabled:e.theme.colors.base.highlight.color};
transform: scaleX(.8);
transform-origin: center left;
}
`:""}
`;const Te=ve.div`
display: block;
`;const Se=ve("div")`
padding-top: ${e=>e.paddingTop}px;
white-space: nowrap;
${e=>e.fullWidth?pe`
width: 100%;
`:""}
`;const De=({children:e,className:t,Icon:r,iconPlacement:n,metrics:o,fullWidth:i})=>{let a=r?O["createElement"](Te,null,O["createElement"](r,{size:o.iconSize})):null;let s="left"===n;return O["createElement"]("div",{className:t},s&&a,void 0!==e?O["createElement"](Se,{fullWidth:i,paddingTop:o.textPaddingTop},e):null,!s&&a)};const Ne=(e,t)=>{if("function"==typeof e)return e(t);return e};const Me=1;const _e=ve(De)`
display: flex;
font-size: ${e=>e.metrics.fontSize}px;
line-height: ${e=>e.metrics.lineHeight}px;
height: ${e=>e.metrics.height}px;
${e=>e.fullWidth?pe`
width: 100%;
`:""}
padding: 0 ${e=>e.metrics.textPaddingX-1}px;
${e=>{if(!e.Icon)return;let t=Math.max(0,(e.metrics.height-e.metrics.iconSize)/2-1);let r="left"===e.iconPlacement;let n=void 0!==e.children;return pe`
${r?pe`
padding-left: ${t}px;
${n?"":pe`
padding-right: ${t}px;
`}
`:pe`
padding-right: ${t}px;
${n?"":pe`
padding-left: ${t}px;
`}
`}
& ${Te} {
margin-top: ${t}px;
${n?pe`
${r?pe`
margin-right: 8px;
`:pe`
margin-left: 8px;`}
`:""}
}
`}}
font-weight: ${e=>e.metrics.fontWeight};
letter-spacing: ${e=>e.metrics.letterSpacing};
box-sizing: border-box;
vertical-align: middle;
border: ${1}px solid ${e=>Ne(e.colors,e.theme).border||Ne(e.colors,e.theme).background||"transparent"};
background-color: ${e=>Ne(e.colors,e.theme).background||"transparent"};
color: ${e=>Ne(e.colors,e.theme).text};
`;const je=({children:e,className:t,Icon:r,iconPlacement:n,variant:o,colors:i,fullWidth:a,theme:s})=>O["createElement"](_e,{className:t,metrics:s.spacing.valueBoxMetrics[o],colors:"string"==typeof i?s.colors.valueBox[i]:i,Icon:r,iconPlacement:n,fullWidth:a},e);const Ie=he(je);Ie.defaultProps={variant:"normal",colors:"primary"};const ke=ve.a`
text-decoration: none;
outline: none;
color: ${e=>e.theme.colors.link};
`;class Le extends P.a.Component{render(){return P.a.createElement(ke,Object.assign({target:"_blank"},this.props),this.props.children)}}const Re=ve.div`
min-width: 250px;
`;const $e=ve.div`
display: flex;
align-content: center;
`;const We=ve.div`
display: flex;
align-items: center;
align-content: center;
height: 36px;
padding: 0 8px;
justify-content: flex-end;
`;const Ae=ve(We)`
width: 100px;
`;const Be=({children:e})=>O["createElement"](Ae,null,O["createElement"](Ce,null,e));const Fe=({children:e})=>O["createElement"](We,null,O["createElement"](Ie,{variant:"small"},e));const Ue=ve.div`
border-top: 1px solid ${e=>e.theme.colors.overlayBorder};
`;const He=ve.div`
height: 42px;
line-height: 42px;
font-size: 14px;
text-align: center;
color: ${e=>e.theme.colors.base.secondary.color};
`;class Ve extends O["Component"]{render(){let{translation:e,data:t}=this.props;let[,r,n,o]=e.get("accountView.threeBox.disclaimer.label").match(/(.*){link}(.*){\/link}(.*)/);let i=this.getWebsiteUrl();return O["createElement"](Re,null,t.profile.name?O["createElement"]($e,null,O["createElement"](Be,null,e.get("accountView.threeBox.name.label")),O["createElement"](Fe,null,t.profile.name)):null,t.accounts&&t.accounts.github&&t.accounts.github.username?O["createElement"]($e,null,O["createElement"](Be,null,e.get("accountView.threeBox.github.label")),O["createElement"](Fe,null,O["createElement"](Le,{href:`https://github.com/${t.accounts.github.username}`},t.accounts.github.username))):null,t.accounts&&t.accounts.twitter&&t.accounts.twitter.username?O["createElement"]($e,null,O["createElement"](Be,null,e.get("accountView.threeBox.twitter.label")),O["createElement"](Fe,null,O["createElement"](Le,{href:`https://twitter.com/${t.accounts.twitter.username}`},"@",t.accounts.twitter.username))):null,i?O["createElement"]($e,null,O["createElement"](Be,null,e.get("accountView.threeBox.website.label")),O["createElement"](Fe,null,O["createElement"](Le,{href:i},i))):null,O["createElement"](Ue,null),O["createElement"](He,null,r,O["createElement"](Le,{href:"https://"+n},n),o))}getWebsiteUrl(){let{website:e}=this.props.data.profile;if(!e)return;e.match(/^https?:\/\//)||(e="http://"+e);return e}}const ze=j("img")`
width: ${e=>e.theme.spacing.identiconSize}px;
height: ${e=>e.theme.spacing.identiconSize}px;
border: 1px solid ${({theme:e})=>e.colors.identiconBorder};
`;class qe extends O["PureComponent"]{render(){let{threeBoxData:e,translation:t}=this.props;let r=this.getProfileImageSrc();if(!r)return this.props.fallback;let n=O["createElement"](ze,{src:r});if(e&&(e.profile.name||e.profile.website)){let r=O["createElement"](Ve,{translation:t,data:e});n=O["createElement"](Oe,{placement:"bottom",content:r},n)}return n}getProfileImageSrc(){let{threeBoxData:e}=this.props;if(e&&e.profile.image&&e.profile.image.length){let t=e.profile.image[0].contentUrl["/"];return this.props.ipfsUrlMask.replace("%s",t)}return}}const Ye=e=>({contextType:{accountHash:"string"},slotNames:["fallback"],dataAdapters:[{alias:"profile",def:{contextType:{accountHash:"string"},load(e,t){return p(this,void 0,void 0,function*(){let n=(yield r.e(1).then(r.t.bind(null,"/JBc",7))).default;t.throwIfCancelled();let o=yield n.getProfile("0x"+e.accountHash);t.throwIfCancelled();let i;o&&(i=yield n.getVerifiedAccounts(o));let a;return{profile:o,accounts:i}})}}}],getContentComponent:()=>p(void 0,void 0,void 0,function*(){return qe}),getContentProps(t){let{translation:r,slots:n,asyncData:o}=t;let i;let a;return{threeBoxData:o.get("profile").data,ipfsUrlMask:e,translation:r,fallback:n&&n.fallback[0]}}});r.d(t,"manifest",function(){return Ke});const Ge={init(e,t,n,o){r.p=o;if(!e.ipfsUrlMask)throw new Error('Missing config "ipfsUrlMask"');t.addModuleDef("module://aleth.io/3box/profile",Ye(e.ipfsUrlMask))},getAvailableLocales:()=>["en-US","zh-CN"],loadTranslations(e){return p(this,void 0,void 0,function*(){return yield r("+1F+")("./"+e+".json")})}};var Xe=t["default"]=Ge;const Ke={version:"1.1.1",cmsVersion:"^1.0.0-beta.7"}},pCvA:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},sGQ9:function(e,t){e.exports=require("mobx-react")},y37j:function(e,t,r){"use strict";(function(e){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.15.0
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var r="undefined"!=typeof window&&"undefined"!=typeof document;var n=["Edge","Trident","Firefox"];var o=0;for(var i=0;i<n.length;i+=1)if(r&&navigator.userAgent.indexOf(n[i])>=0){o=1;break}function a(e){var t=!1;return function(){if(t)return;t=!0;window.Promise.resolve().then(function(){t=!1;e()})}}function s(e){var t=!1;return function(){if(!t){t=!0;setTimeout(function(){t=!1;e()},o)}}}var l;var c=r&&window.Promise?a:s;function p(e){var t;return e&&"[object Function]"==={}.toString.call(e)}function u(e,t){if(1!==e.nodeType)return[];var r;var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function f(e){if("HTML"===e.nodeName)return e;return e.parentNode||e.host}function d(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=u(e),r=t.overflow,n=t.overflowX,o=t.overflowY;if(/(auto|scroll|overlay)/.test(r+o+n))return e;return d(f(e))}var h=r&&!(!window.MSInputMethodContext||!document.documentMode);var v=r&&/MSIE 10/.test(navigator.userAgent);function m(e){if(11===e)return h;if(10===e)return v;return h||v}function b(e){if(!e)return document.documentElement;var t=m(10)?document.body:null;var r=e.offsetParent||null;for(;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;if(!n||"BODY"===n||"HTML"===n)return e?e.ownerDocument.documentElement:document.documentElement;if(-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===u(r,"position"))return b(r);return r}function g(e){var t=e.nodeName;if("BODY"===t)return!1;return"HTML"===t||b(e.firstElementChild)===e}function y(e){if(null!==e.parentNode)return y(e.parentNode);return e}function w(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING;var n=r?e:t;var o=r?t:e;var i=document.createRange();i.setStart(n,0);i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||n.contains(o)){if(g(a))return a;return b(a)}var s=y(e);return s.host?w(s.host,t):w(e,y(t).host)}function x(e){var t;var r="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft";var n=e.nodeName;if("BODY"===n||"HTML"===n){var o=e.ownerDocument.documentElement;var i;return(e.ownerDocument.scrollingElement||o)[r]}return e[r]}function E(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=x(t,"top");var o=x(t,"left");var i=r?-1:1;e.top+=n*i;e.bottom+=n*i;e.left+=o*i;e.right+=o*i;return e}function O(e,t){var r="x"===t?"Left":"Top";var n="Left"===r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function P(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],m(10)?parseInt(r["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function C(e){var t=e.body;var r=e.documentElement;var n=m(10)&&getComputedStyle(r);return{height:P("Height",t,r,n),width:P("Width",t,r,n)}}var T=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};var S=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(t,r,n){r&&e(t.prototype,r);n&&e(t,n);return t}}();var D=function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e};var N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function M(e){return N({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _(e){var t={};try{if(m(10)){t=e.getBoundingClientRect();var r=x(e,"top");var n=x(e,"left");t.top+=r;t.left+=n;t.bottom+=r;t.right+=n}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top};var i="HTML"===e.nodeName?C(e.ownerDocument):{};var a=i.width||e.clientWidth||o.right-o.left;var s=i.height||e.clientHeight||o.bottom-o.top;var l=e.offsetWidth-a;var c=e.offsetHeight-s;if(l||c){var p=u(e);l-=O(p,"x");c-=O(p,"y");o.width-=l;o.height-=c}return M(o)}function j(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=m(10);var o="HTML"===t.nodeName;var i=_(e);var a=_(t);var s=d(e);var l=u(t);var c=parseFloat(l.borderTopWidth,10);var p=parseFloat(l.borderLeftWidth,10);if(r&&o){a.top=Math.max(a.top,0);a.left=Math.max(a.left,0)}var f=M({top:i.top-a.top-c,left:i.left-a.left-p,width:i.width,height:i.height});f.marginTop=0;f.marginLeft=0;if(!n&&o){var h=parseFloat(l.marginTop,10);var v=parseFloat(l.marginLeft,10);f.top-=c-h;f.bottom-=c-h;f.left-=p-v;f.right-=p-v;f.marginTop=h;f.marginLeft=v}(n&&!r?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=E(f,t));return f}function I(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r=e.ownerDocument.documentElement;var n=j(e,r);var o=Math.max(r.clientWidth,window.innerWidth||0);var i=Math.max(r.clientHeight,window.innerHeight||0);var a=t?0:x(r);var s=t?0:x(r,"left");var l;return M({top:a-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:i})}function k(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===u(e,"position"))return!0;var r=f(e);if(!r)return!1;return k(r)}function L(e){if(!e||!e.parentElement||m())return document.documentElement;var t=e.parentElement;for(;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function R(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];var i={top:0,left:0};var a=o?L(e):w(e,t);if("viewport"===n)i=I(a,o);else{var s=void 0;"scrollParent"===n?"BODY"===(s=d(f(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===n?e.ownerDocument.documentElement:n;var l=j(s,a,o);if("HTML"!==s.nodeName||k(a))i=l;else{var c=C(e.ownerDocument),p=c.height,u=c.width;i.top+=l.top-l.marginTop;i.bottom=p+l.top;i.left+=l.left-l.marginLeft;i.right=u+l.left}}var h="number"==typeof(r=r||0);i.left+=h?r:r.left||0;i.top+=h?r:r.top||0;i.right-=h?r:r.right||0;i.bottom-=h?r:r.bottom||0;return i}function $(e){var t,r;return e.width*e.height}function W(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=R(r,n,i,o);var s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}};var l=Object.keys(s).map(function(e){return N({key:e},s[e],{area:$(s[e])})}).sort(function(e,t){return t.area-e.area});var c=l.filter(function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight});var p=c.length>0?c[0].key:l[0].key;var u=e.split("-")[1];return p+(u?"-"+u:"")}function A(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;var o;return j(r,n?L(t):w(t,r),n)}function B(e){var t;var r=e.ownerDocument.defaultView.getComputedStyle(e);var n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0);var o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0);var i;return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function F(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function U(e,t,r){r=r.split("-")[0];var n=B(e);var o={width:n.width,height:n.height};var i=-1!==["right","left"].indexOf(r);var a=i?"top":"left";var s=i?"left":"top";var l=i?"height":"width";var c=i?"width":"height";o[a]=t[a]+t[l]/2-n[l]/2;o[s]=r===s?t[s]-n[c]:t[F(s)];return o}function H(e,t){if(Array.prototype.find)return e.find(t);return e.filter(t)[0]}function V(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===r});var n=H(e,function(e){return e[t]===r});return e.indexOf(n)}function z(e,t,r){var n;(void 0===r?e:e.slice(0,V(e,"name",r))).forEach(function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e["function"]||e.fn;if(e.enabled&&p(r)){t.offsets.popper=M(t.offsets.popper);t.offsets.reference=M(t.offsets.reference);t=r(t,e)}});return t}function q(){if(this.state.isDestroyed)return;var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed);e.placement=W(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);e.originalPlacement=e.placement;e.positionFixed=this.options.positionFixed;e.offsets.popper=U(this.popper,e.offsets.reference,e.placement);e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";e=z(this.modifiers,e);if(this.state.isCreated)this.options.onUpdate(e);else{this.state.isCreated=!0;this.options.onCreate(e)}}function Y(e,t){return e.some(function(e){var r=e.name,n;return e.enabled&&r===t})}function G(e){var t=[!1,"ms","Webkit","Moz","O"];var r=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0;n<t.length;n++){var o=t[n];var i=o?""+o+r:e;if(void 0!==document.body.style[i])return i}return null}function X(){this.state.isDestroyed=!0;if(Y(this.modifiers,"applyStyle")){this.popper.removeAttribute("x-placement");this.popper.style.position="";this.popper.style.top="";this.popper.style.left="";this.popper.style.right="";this.popper.style.bottom="";this.popper.style.willChange="";this.popper.style[G("transform")]=""}this.disableEventListeners();this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper);return this}function K(e){var t=e.ownerDocument;return t?t.defaultView:window}function Q(e,t,r,n){var o="BODY"===e.nodeName;var i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,r,{passive:!0});o||Q(d(i.parentNode),t,r,n);n.push(i)}function J(e,t,r,n){r.updateBound=n;K(e).addEventListener("resize",r.updateBound,{passive:!0});var o=d(e);Q(o,"scroll",r.updateBound,r.scrollParents);r.scrollElement=o;r.eventsEnabled=!0;return r}function Z(){this.state.eventsEnabled||(this.state=J(this.reference,this.options,this.state,this.scheduleUpdate))}function ee(e,t){K(e).removeEventListener("resize",t.updateBound);t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)});t.updateBound=null;t.scrollParents=[];t.scrollElement=null;t.eventsEnabled=!1;return t}function te(){if(this.state.eventsEnabled){cancelAnimationFrame(this.scheduleUpdate);this.state=ee(this.reference,this.state)}}function re(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ne(e,t){Object.keys(t).forEach(function(r){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&re(t[r])&&(n="px");e.style[r]=t[r]+n})}function oe(e,t){Object.keys(t).forEach(function(r){var n;!1!==t[r]?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function ie(e){ne(e.instance.popper,e.styles);oe(e.instance.popper,e.attributes);e.arrowElement&&Object.keys(e.arrowStyles).length&&ne(e.arrowElement,e.arrowStyles);return e}function ae(e,t,r,n,o){var i=A(o,t,e,r.positionFixed);var a=W(r.placement,i,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);t.setAttribute("x-placement",a);ne(t,{position:r.positionFixed?"fixed":"absolute"});return r}function se(e,t){var r=e.offsets,n=r.popper,o=r.reference;var i=Math.round,a=Math.floor;var s=function e(t){return t};var l=i(o.width);var c=i(n.width);var p=-1!==["left","right"].indexOf(e.placement);var u=-1!==e.placement.indexOf("-");var f;var d;var h=t?p||u||l%2==c%2?i:a:s;var v=t?i:s;return{left:h(l%2==1&&c%2==1&&!u&&t?n.left-1:n.left),top:v(n.top),bottom:v(n.bottom),right:h(n.right)}}var le=r&&/Firefox/i.test(navigator.userAgent);function ce(e,t){var r=t.x,n=t.y;var o=e.offsets.popper;var i=H(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration;var s=b(e.instance.popper);var l=_(s);var c={position:o.position};var p=se(e,window.devicePixelRatio<2||!le);var u="bottom"===r?"top":"bottom";var f="right"===n?"left":"right";var d=G("transform");var h=void 0,v=void 0;v="bottom"===u?"HTML"===s.nodeName?-s.clientHeight+p.bottom:-l.height+p.bottom:p.top;h="right"===f?"HTML"===s.nodeName?-s.clientWidth+p.right:-l.width+p.right:p.left;if(a&&d){c[d]="translate3d("+h+"px, "+v+"px, 0)";c[u]=0;c[f]=0;c.willChange="transform"}else{var m="bottom"===u?-1:1;var g="right"===f?-1:1;c[u]=v*m;c[f]=h*g;c.willChange=u+", "+f}var y={"x-placement":e.placement};e.attributes=N({},y,e.attributes);e.styles=N({},c,e.styles);e.arrowStyles=N({},e.offsets.arrow,e.arrowStyles);return e}function pe(e,t,r){var n=H(e,function(e){var r;return e.name===t});var o=!!n&&e.some(function(e){return e.name===r&&e.enabled&&e.order<n.order});if(!o){var i="`"+t+"`";var a="`"+r+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}function ue(e,t){var r;if(!pe(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n)){console.warn("WARNING: `arrow.element` must be child of its popper element!");return e}var o=e.placement.split("-")[0];var i=e.offsets,a=i.popper,s=i.reference;var l=-1!==["left","right"].indexOf(o);var c=l?"height":"width";var p=l?"Top":"Left";var f=p.toLowerCase();var d=l?"left":"top";var h=l?"bottom":"right";var v=B(n)[c];s[h]-v<a[f]&&(e.offsets.popper[f]-=a[f]-(s[h]-v));s[f]+v>a[h]&&(e.offsets.popper[f]+=s[f]+v-a[h]);e.offsets.popper=M(e.offsets.popper);var m=s[f]+s[c]/2-v/2;var b=u(e.instance.popper);var g=parseFloat(b["margin"+p],10);var y=parseFloat(b["border"+p+"Width"],10);var w=m-e.offsets.popper[f]-g-y;w=Math.max(Math.min(a[c]-v,w),0);e.arrowElement=n;e.offsets.arrow=(D(r={},f,Math.round(w)),D(r,d,""),r);return e}function fe(e){if("end"===e)return"start";if("start"===e)return"end";return e}var de=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var he=de.slice(3);function ve(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r=he.indexOf(e);var n=he.slice(r+1).concat(he.slice(0,r));return t?n.reverse():n}var me={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function be(e,t){if(Y(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var r=R(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed);var n=e.placement.split("-")[0];var o=F(n);var i=e.placement.split("-")[1]||"";var a=[];switch(t.behavior){case me.FLIP:a=[n,o];break;case me.CLOCKWISE:a=ve(n);break;case me.COUNTERCLOCKWISE:a=ve(n,!0);break;default:a=t.behavior}a.forEach(function(s,l){if(n!==s||a.length===l+1)return e;n=e.placement.split("-")[0];o=F(n);var c=e.offsets.popper;var p=e.offsets.reference;var u=Math.floor;var f="left"===n&&u(c.right)>u(p.left)||"right"===n&&u(c.left)<u(p.right)||"top"===n&&u(c.bottom)>u(p.top)||"bottom"===n&&u(c.top)<u(p.bottom);var d=u(c.left)<u(r.left);var h=u(c.right)>u(r.right);var v=u(c.top)<u(r.top);var m=u(c.bottom)>u(r.bottom);var b="left"===n&&d||"right"===n&&h||"top"===n&&v||"bottom"===n&&m;var g=-1!==["top","bottom"].indexOf(n);var y=!!t.flipVariations&&(g&&"start"===i&&d||g&&"end"===i&&h||!g&&"start"===i&&v||!g&&"end"===i&&m);var w=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&d||!g&&"start"===i&&m||!g&&"end"===i&&v);var x=y||w;if(f||b||x){e.flipped=!0;(f||b)&&(n=a[l+1]);x&&(i=fe(i));e.placement=n+(i?"-"+i:"");e.offsets.popper=N({},e.offsets.popper,U(e.instance.popper,e.offsets.reference,e.placement));e=z(e