diff --git a/.eslintignore b/.eslintignore index e31ca77ec62..a61f149b83b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -11,7 +11,7 @@ app/assets/v2/js/lib/highlight.js app/assets/v2/js/lib/tooltip.js app/assets/v2/js/lib/tweenlite.js app/assets/v2/js/lib/web3.0.20.7.js -app/assets/v2/js/lib/web3connect.js +app/assets/v2/js/lib/web3modal.min.js app/assets/v2/js/abi.js app/assets/onepager/js/confetti.js diff --git a/app/assets/v2/js/lib/web3connect.js b/app/assets/v2/js/lib/web3connect.js deleted file mode 100644 index 16140203533..00000000000 --- a/app/assets/v2/js/lib/web3connect.js +++ /dev/null @@ -1,54 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Web3Connect",[],t):"object"==typeof exports?exports.Web3Connect=t():e.Web3Connect=t()}(this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t,n){"use strict";e.exports=n(19)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return l}),n.d(t,"__param",function(){return c}),n.d(t,"__metadata",function(){return u}),n.d(t,"__awaiter",function(){return s}),n.d(t,"__generator",function(){return A}),n.d(t,"__exportStar",function(){return d}),n.d(t,"__values",function(){return f}),n.d(t,"__read",function(){return I}),n.d(t,"__spread",function(){return g}),n.d(t,"__spreadArrays",function(){return M}),n.d(t,"__await",function(){return p}),n.d(t,"__asyncGenerator",function(){return N}),n.d(t,"__asyncDelegator",function(){return y}),n.d(t,"__asyncValues",function(){return j}),n.d(t,"__makeTemplateObject",function(){return v}),n.d(t,"__importStar",function(){return m}),n.d(t,"__importDefault",function(){return h}); -/*! ***************************************************************************** -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 r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function l(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,l)}c((r=r.apply(e,t||[])).next())})}function A(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function I(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||l(e,t)})})}function l(e,t){try{!function(e){e.value instanceof p?Promise.resolve(e.value.v).then(c,u):s(o[0][2],e)}(i[e](t))}catch(e){s(o[0][3],e)}}function c(e){l("next",e)}function u(e){l("throw",e)}function s(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}function y(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:p(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function v(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEB3_CONNECT_MODAL_ID="WEB3_CONNECT_MODAL_ID",t.INJECTED_PROVIDER_ID="injected",t.CACHED_PROVIDER_KEY="WEB3_CONNECT_CACHED_PROVIDER",t.CONNECT_EVENT="connect",t.ERROR_EVENT="error",t.CLOSE_EVENT="close",t.MODAL_LIGHTBOX_CLASSNAME="web3connect-modal-lightbox",t.MODAL_CONTAINER_CLASSNAME="web3connect-modal-container",t.MODAL_HITBOX_CLASSNAME="web3connect-modal-hitbox",t.MODAL_CARD_CLASSNAME="web3connect-modal-card",t.PROVIDER_WRAPPER_CLASSNAME="web3connect-provider-wrapper",t.PROVIDER_CONTAINER_CLASSNAME="web3connect-provider-container",t.PROVIDER_ICON_CLASSNAME="web3connect-provider-icon",t.PROVIDER_NAME_CLASSNAME="web3connect-provider-name",t.PROVIDER_DESCRIPTION_CLASSNAME="web3connect-provider-description",t.CONNECT_BUTTON_CLASSNAME="web3connect-connect-button"},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"createGlobalStyle",function(){return ot}),n.d(t,"css",function(){return ye}),n.d(t,"isStyledComponent",function(){return b}),n.d(t,"keyframes",function(){return lt}),n.d(t,"ServerStyleSheet",function(){return Ke}),n.d(t,"StyleSheetConsumer",function(){return _e}),n.d(t,"StyleSheetContext",function(){return qe}),n.d(t,"StyleSheetManager",function(){return $e}),n.d(t,"ThemeConsumer",function(){return We}),n.d(t,"ThemeContext",function(){return Ve}),n.d(t,"ThemeProvider",function(){return Xe}),n.d(t,"withTheme",function(){return ct}),n.d(t,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",function(){return ut});var i=n(7),o=n.n(i),a=n(14),l=n.n(a),c=n(0),u=n.n(c),s=n(15),A=n(8),d=n(9),f=(n(11),n(6),n(16)),I=function(e,t){for(var n=[e[0]],r=0,i=t.length;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},v=function(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},m=function(e){return"object"===(void 0===e?"undefined":g(e))&&e.constructor===Object},h=Object.freeze([]),C=Object.freeze({});function w(e){return"function"==typeof e}function E(e){return e.displayName||e.name||"Component"}function b(e){return e&&"string"==typeof e.styledComponentId}var D=void 0!==e&&e.env.SC_ATTR||"data-styled",x="undefined"!=typeof window&&"HTMLElement"in window,T="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||!1,S={};var z=function(e){function t(n){M(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o0&&-1!==n.slice(0,t).indexOf(G)&&n.slice(t-G.length,t)!==G?"."+U:e};B.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(G)>0&&(n[0]=n[0].replace(Z,H))},Y,R]),O.use([Y,R]);var F=function(e){return O("",e)};function J(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",i=e.join("").replace(k,""),o=t&&n?n+" "+t+" { "+i+" }":i;return U=r,G=t,Z=new RegExp("\\"+G+"\\b","g"),B(n||!t?"":t,o)}var V=function(){return n.nc},W=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},X=function(e,t){e[t]=Object.create(null)},K=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},q=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},_=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;n"+e()+""}},re=function(e,t){return function(){var n,r=((n={})[D]=q(t),n["data-styled-version"]="4.2.0",n),i=V();return i&&(r.nonce=i),u.a.createElement("style",N({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},ie=function(e){return function(){return Object.keys(e)}},oe=function(e){return document.createTextNode(ee(e))},ae=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,o=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},a=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=ee(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=N({},e[n]);return t}(r),n=Object.create(null);for(var o in i)n[o]=[i[o][0]];return e(t,n)},css:a,getIds:ie(i),hasNameForId:K(r),insertMarker:o,insertRules:function(e,t,n){o(e)[0]+=t.join(" "),W(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",X(r,e))},sealed:!1,styleTag:null,toElement:re(a,r),toHTML:ne(a,r)}},le=function(e,t,n,r,i){if(x&&!n){var o=function(e,t,n){var r=document.createElement("style");r.setAttribute(D,""),r.setAttribute("data-styled-version","4.2.0");var i=V();if(i&&r.setAttribute("nonce",i),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new z(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,r);return T?function(e,t){var n=Object.create(null),r=Object.create(null),i=void 0!==t,o=!1,a=function(t){var i=r[t];return void 0!==i?i:(r[t]=oe(t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},l=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new z(5)},css:l,getIds:ie(r),hasNameForId:K(n),insertMarker:a,insertRules:function(e,r,l){for(var c=a(e),u=[],s=r.length,A=0;A0&&(o=!0,t().insertRules(e+"-import",u))},removeRules:function(a){var l=r[a];if(void 0!==l){var c=oe(a);e.replaceChild(c,l),r[a]=c,X(n,a),i&&o&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:re(l,n),toHTML:ne(l,n)}}(o,i):function(e,t){var n=Object.create(null),r=Object.create(null),i=[],o=void 0!==t,a=!1,l=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),X(n,e),r[e])},c=function(){var t=_(e).cssRules,n="";for(var o in r){n+=ee(o);for(var a=r[o],l=te(i,a),c=l-i[a];c0&&(a=!0,t().insertRules(r+"-import",I)),i[s]+=f,W(n,r,u)},removeRules:function(l){var c=r[l];if(void 0!==c){var u=i[c];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}(_(e),te(i,c)-1,u),i[c]=0,X(n,l),o&&a&&t().removeRules(l+"-import")}},sealed:!1,styleTag:e,toElement:re(c,n),toHTML:ne(c,n)}}(o,i)}return ae()},ce=/\s+/,ue=void 0;ue=x?T?40:1e3:-1;var se=0,Ae=void 0,de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];M(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=le(t.target,n?n.styleTag:null,t.forceServer,!0)},se+=1,this.id=se,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!x||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+D+'][data-styled-version="4.2.0"]'),i=r.length;if(!i)return this;for(var o=0;o0&&void 0!==arguments[0]&&arguments[0];Ae=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),i=0;i1?t-1:0),r=1;r=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var ve=52,me=function(e){return String.fromCharCode(e+(e>25?39:97))};function he(e){var t="",n=void 0;for(n=e;n>ve;n=Math.floor(n/ve))t=me(n%ve)+t;return me(n%ve)+t}function Ce(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:C,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},Te=/[[\].#*$><+~=|^:(),"'`-]+/g,Se=/(^-|-$)/g;function ze(e){return e.replace(Te,"-").replace(Se,"")}function Le(e){return"string"==typeof e&&!0}var Qe={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},ke={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Oe=((we={})[A.ForwardRef]={$$typeof:!0,render:!0},we),Be=Object.defineProperty,Pe=Object.getOwnPropertyNames,Re=Object.getOwnPropertySymbols,Ye=void 0===Re?function(){return[]}:Re,Ue=Object.getOwnPropertyDescriptor,Ge=Object.getPrototypeOf,Ze=Object.prototype,He=Array.prototype;function Fe(e,t,n){if("string"!=typeof t){var r=Ge(t);r&&r!==Ze&&Fe(e,r,n);for(var i=He.concat(Pe(t),Ye(t)),o=Oe[e.$$typeof]||Qe,a=Oe[t.$$typeof]||Qe,l=i.length,c=void 0,u=void 0;l--;)if(u=i[l],!(ke[u]||n&&n[u]||a&&a[u]||o&&o[u])&&(c=Ue(t,u)))try{Be(e,u,c)}catch(e){}return e}return e}function Je(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)}var Ve=Object(c.createContext)(),We=Ve.Consumer,Xe=function(e){function t(n){M(this,t);var r=v(this,e.call(this,n));return r.getContext=Object(d.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return y(t,e),t.prototype.render=function(){return this.props.children?u.a.createElement(Ve.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return u.a.createElement(Ve.Provider,{value:t},u.a.Children.only(this.props.children))},t.prototype.getTheme=function(e,t){if(w(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":g(e)))throw new z(8);return N({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(c.Component),Ke=function(){function e(){M(this,e),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new z(2);return u.a.createElement($e,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new z(3)},e}(),qe=Object(c.createContext)(),_e=qe.Consumer,$e=function(e){function t(n){M(this,t);var r=v(this,e.call(this,n));return r.getContext=Object(d.a)(r.getContext),r}return y(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new de(t);throw new z(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return u.a.createElement(qe.Provider,{value:this.getContext(n,r)},t)},t}(c.Component),et=(new Set,{});var tt=function(e){function t(){M(this,t);var n=v(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return y(t,e),t.prototype.render=function(){return u.a.createElement(_e,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():u.a.createElement(We,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,i=(t.displayName,t.foldedComponentIds),o=t.styledComponentId,a=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(C,this.props):void 0!==e?this.generateAndInjectStyles(xe(this.props,e,r),this.props):this.generateAndInjectStyles(this.props.theme||C,this.props);var u=this.props.as||this.attrs.as||a,s=Le(u),A={},d=N({},this.attrs,this.props),I=void 0;for(I in d)"forwardedComponent"!==I&&"as"!==I&&"suppressClassNameWarning"!==I&&("forwardedRef"===I?A.ref=d[I]:s&&!Object(f.a)(I)||(A[I]=d[I]));return this.props.style&&this.attrs.style&&(A.style=N({},this.attrs.style,this.props.style)),A.className=Array.prototype.concat(i,this.props.className,o,this.attrs.className,l).filter(Boolean).join(" "),Object(c.createElement)(u,A)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,i=N({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var t=e,n=!1,o=void 0,a=void 0;for(a in w(t)&&(t=t(i),n=!0),t)o=t[a],n||!w(o)||Je(o)||b(o)||(o=o(i)),r.attrs[a]=o,i[a]=o}),i):i},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,i=n.componentStyle;n.warnTooManyClasses;return i.isStatic&&!r.length?i.generateAndInjectStyles(C,this.styleSheet):i.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(c.Component);function nt(e,t,n){var r=b(e),i=!Le(e),o=t.displayName,a=void 0===o?function(e){return Le(e)?"styled."+e:"Styled("+E(e)+")"}(e):o,l=t.componentId,c=void 0===l?function(e,t,n){var r="string"!=typeof t?"sc":ze(t),i=(et[r]||0)+1;et[r]=i;var o=r+"-"+e.generateName(r+i);return n?n+"-"+o:o}(De,t.displayName,t.parentComponentId):l,s=t.ParentComponent,A=void 0===s?tt:s,d=t.attrs,f=void 0===d?h:d,I=t.displayName&&t.componentId?ze(t.displayName)+"-"+t.componentId:t.componentId||c,g=r&&e.attrs?Array.prototype.concat(e.attrs,f).filter(Boolean):f,M=new De(r?e.componentStyle.rules.concat(n):n,g,I),p=u.a.forwardRef(function(e,t){return u.a.createElement(A,N({},e,{forwardedComponent:p,forwardedRef:t}))});return p.attrs=g,p.componentStyle=M,p.displayName=a,p.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,p.styledComponentId=I,p.target=r?e.target:e,p.withComponent=function(e){var r=t.componentId,i=j(t,["componentId"]),o=r&&r+"-"+(Le(e)?e:ze(E(e)));return nt(e,N({},i,{attrs:g,componentId:o,ParentComponent:A}),n)},p.toString=function(){return"."+p.styledComponentId},i&&Fe(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),p}var rt=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;if(!Object(A.isValidElementType)(n))throw new z(1,String(n));var i=function(){return t(n,r,ye.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,N({},r,i))},i.attrs=function(i){return e(t,n,N({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(nt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){rt[e]=rt(e)});var it=function(){function e(t,n){M(this,e),this.rules=t,this.componentId=n,this.isStatic=Ce(t,h),de.master.hasId(n)||de.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=J(Ne(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function ot(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r])/g,N=/([[}=:>])\s+/g,y=/(\{[^{]+?);(?=\})/g,j=/\s{2,}/g,v=/([^\(])(:+) */g,m=/[svh]\w+-[tblr]{2}/,h=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,w=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,b=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,x="-webkit-",T="-moz-",S="-ms-",z=59,L=125,Q=123,k=40,O=41,B=91,P=93,R=10,Y=13,U=9,G=64,Z=32,H=38,F=45,J=95,V=42,W=44,X=58,K=39,q=34,_=47,$=62,ee=43,te=126,ne=0,re=12,ie=11,oe=107,ae=109,le=115,ce=112,ue=111,se=105,Ae=99,de=100,fe=112,Ie=1,ge=1,Me=0,pe=1,Ne=1,ye=1,je=0,ve=0,me=0,he=[],Ce=[],we=0,Ee=null,be=-2,De=-1,xe=0,Te=1,Se=2,ze=3,Le=0,Qe=1,ke="",Oe="",Be="";function Pe(e,t,i,o,a){for(var l,c,s=0,A=0,d=0,f=0,p=0,N=0,y=0,j=0,m=0,C=0,w=0,E=0,b=0,D=0,J=0,je=0,Ce=0,Ee=0,be=0,De=i.length,Ye=De-1,Je="",Ve="",We="",Xe="",Ke="",qe="";J0&&(Ve=Ve.replace(r,"")),Ve.trim().length>0)){switch(y){case Z:case U:case z:case Y:case R:break;default:Ve+=i.charAt(J)}y=z}if(1===Ce)switch(y){case Q:case L:case z:case q:case K:case k:case O:case W:Ce=0;case U:case Y:case R:case Z:break;default:for(Ce=0,be=J,p=y,J--,y=z;be0&&(++J,y=p);case Q:be=De}}switch(y){case Q:for(p=(Ve=Ve.trim()).charCodeAt(0),w=1,be=++J;J0&&(Ve=Ve.replace(r,"")),N=Ve.charCodeAt(1)){case de:case ae:case le:case F:l=t;break;default:l=he}if(be=(We=Pe(t,l,We,N,a+1)).length,me>0&&0===be&&(be=Ve.length),we>0&&(l=Re(he,Ve,Ee),c=He(ze,We,l,t,ge,Ie,be,N,a,o),Ve=l.join(""),void 0!==c&&0===(be=(We=c.trim()).length)&&(N=0,We="")),be>0)switch(N){case le:Ve=Ve.replace(h,Ze);case de:case ae:case F:We=Ve+"{"+We+"}";break;case oe:We=(Ve=Ve.replace(I,"$1 $2"+(Qe>0?ke:"")))+"{"+We+"}",We=1===Ne||2===Ne&&Ge("@"+We,3)?"@"+x+We+"@"+We:"@"+We;break;default:We=Ve+We,o===fe&&(Xe+=We,We="")}else We="";break;default:We=Pe(t,Re(t,Ve,Ee),We,o,a+1)}Ke+=We,E=0,Ce=0,D=0,je=0,Ee=0,b=0,Ve="",We="",y=i.charCodeAt(++J);break;case L:case z:if((be=(Ve=(je>0?Ve.replace(r,""):Ve).trim()).length)>1)switch(0===D&&((p=Ve.charCodeAt(0))===F||p>96&&p<123)&&(be=(Ve=Ve.replace(" ",":")).length),we>0&&void 0!==(c=He(Te,Ve,t,e,ge,Ie,Xe.length,o,a,o))&&0===(be=(Ve=c.trim()).length)&&(Ve="\0\0"),p=Ve.charCodeAt(0),N=Ve.charCodeAt(1),p){case ne:break;case G:if(N===se||N===Ae){qe+=Ve+i.charAt(J);break}default:if(Ve.charCodeAt(be-1)===X)break;Xe+=Ue(Ve,p,N,Ve.charCodeAt(2))}E=0,Ce=0,D=0,je=0,Ee=0,Ve="",y=i.charCodeAt(++J)}}switch(y){case Y:case R:if(A+f+d+s+ve===0)switch(C){case O:case K:case q:case G:case te:case $:case V:case ee:case _:case F:case X:case W:case z:case Q:case L:break;default:D>0&&(Ce=1)}A===_?A=0:pe+E===0&&o!==oe&&Ve.length>0&&(je=1,Ve+="\0"),we*Le>0&&He(xe,Ve,t,e,ge,Ie,Xe.length,o,a,o),Ie=1,ge++;break;case z:case L:if(A+f+d+s===0){Ie++;break}default:switch(Ie++,Je=i.charAt(J),y){case U:case Z:if(f+s+A===0)switch(j){case W:case X:case U:case Z:Je="";break;default:y!==Z&&(Je=" ")}break;case ne:Je="\\0";break;case re:Je="\\f";break;case ie:Je="\\v";break;case H:f+A+s===0&&pe>0&&(Ee=1,je=1,Je="\f"+Je);break;case 108:if(f+A+s+Me===0&&D>0)switch(J-D){case 2:j===ce&&i.charCodeAt(J-3)===X&&(Me=j);case 8:m===ue&&(Me=m)}break;case X:f+A+s===0&&(D=J);break;case W:A+d+f+s===0&&(je=1,Je+="\r");break;case q:case K:0===A&&(f=f===y?0:0===f?y:f);break;case B:f+A+d===0&&s++;break;case P:f+A+d===0&&s--;break;case O:f+A+s===0&&d--;break;case k:if(f+A+s===0){if(0===E)switch(2*j+3*m){case 533:break;default:w=0,E=1}d++}break;case G:A+d+f+s+D+b===0&&(b=1);break;case V:case _:if(f+s+d>0)break;switch(A){case 0:switch(2*y+3*i.charCodeAt(J+1)){case 235:A=_;break;case 220:be=J,A=V}break;case V:y===_&&j===V&&be+2!==J&&(33===i.charCodeAt(be+2)&&(Xe+=i.substring(be,J+1)),Je="",A=0)}}if(0===A){if(pe+f+s+b===0&&o!==oe&&y!==z)switch(y){case W:case te:case $:case ee:case O:case k:if(0===E){switch(j){case U:case Z:case R:case Y:Je+="\0";break;default:Je="\0"+Je+(y===W?"":"\0")}je=1}else switch(y){case k:D+7===J&&108===j&&(D=0),E=++w;break;case O:0==(E=--w)&&(je=1,Je+="\0")}break;case U:case Z:switch(j){case ne:case Q:case L:case z:case W:case re:case U:case Z:case R:case Y:break;default:0===E&&(je=1,Je+="\0")}}Ve+=Je,y!==Z&&y!==U&&(C=y)}}m=j,j=y,J++}if(be=Xe.length,me>0&&0===be&&0===Ke.length&&0===t[0].length==0&&(o!==ae||1===t.length&&(pe>0?Oe:Be)===t[0])&&(be=t.join(",").length+2),be>0){if(l=0===pe&&o!==oe?function(e){for(var t,n,i=0,o=e.length,a=Array(o);i1)){if(d=c.charCodeAt(c.length-1),f=n.charCodeAt(0),t="",0!==s)switch(d){case V:case te:case $:case ee:case Z:case k:break;default:t=" "}switch(f){case H:n=t+Oe;case te:case $:case ee:case Z:case O:case k:break;case B:n=t+n+Oe;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ye>0){n=t+n.substring(8,A-1);break}default:(s<1||l[s-1].length<1)&&(n=t+Oe+n)}break;case W:t="";default:n=A>1&&n.indexOf(":")>0?t+n.replace(v,"$1"+Oe+"$2"):t+n+Oe}c+=n}a[i]=c.replace(r,"").trim()}return a}(t):t,we>0&&void 0!==(c=He(Se,Xe,l,e,ge,Ie,be,o,a,o))&&0===(Xe=c).length)return qe+Xe+Ke;if(Xe=l.join(",")+"{"+Xe+"}",Ne*Me!=0){switch(2!==Ne||Ge(Xe,2)||(Me=0),Me){case ue:Xe=Xe.replace(M,":"+T+"$1")+Xe;break;case ce:Xe=Xe.replace(g,"::"+x+"input-$1")+Xe.replace(g,"::"+T+"$1")+Xe.replace(g,":"+S+"input-$1")+Xe}Me=0}}return qe+Xe+Ke}function Re(e,t,n){var r=t.trim().split(s),i=r,o=r.length,a=e.length;switch(a){case 0:case 1:for(var l=0,c=0===a?"":e[0]+" ";l0&&pe>0)return i.replace(d,"$1").replace(A,"$1"+Be);break;default:return e.trim()+i.replace(A,"$1"+e.trim())}default:if(n*pe>0&&i.indexOf("\f")>0)return i.replace(A,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+i}function Ue(e,t,n,r){var u,s=0,A=e+";",d=2*t+3*n+4*r;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),i=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Qe){case 0:break;case F:if(110!==e.charCodeAt(10))break;default:for(var o=i.split((i="",l)),a=0,n=0,t=o.length;aG&&A<90||A>96&&A<123||A===J||A===F&&u.charCodeAt(1)!==F))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=ke}}s[n++]=u}i+=(0===a?"":",")+s.join(" ")}}return i=r+i+";",1===Ne||2===Ne&&Ge(i,1)?x+i+i:i}(A);if(0===Ne||2===Ne&&!Ge(A,1))return A;switch(d){case 1015:return 97===A.charCodeAt(10)?x+A+A:A;case 951:return 116===A.charCodeAt(3)?x+A+A:A;case 963:return 110===A.charCodeAt(5)?x+A+A:A;case 1009:if(100!==A.charCodeAt(4))break;case 969:case 942:return x+A+A;case 978:return x+A+T+A+A;case 1019:case 983:return x+A+T+A+S+A+A;case 883:return A.charCodeAt(8)===F?x+A+A:A.indexOf("image-set(",11)>0?A.replace(D,"$1"+x+"$2")+A:A;case 932:if(A.charCodeAt(4)===F)switch(A.charCodeAt(5)){case 103:return x+"box-"+A.replace("-grow","")+x+A+S+A.replace("grow","positive")+A;case 115:return x+A+S+A.replace("shrink","negative")+A;case 98:return x+A+S+A.replace("basis","preferred-size")+A}return x+A+S+A+A;case 964:return x+A+S+"flex-"+A+A;case 1023:if(99!==A.charCodeAt(8))break;return u=A.substring(A.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),x+"box-pack"+u+x+A+S+"flex-pack"+u+A;case 1005:return o.test(A)?A.replace(i,":"+x)+A.replace(i,":"+T)+A:A;case 1e3:switch(s=(u=A.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(s)){case 226:u=A.replace(m,"tb");break;case 232:u=A.replace(m,"tb-rl");break;case 220:u=A.replace(m,"lr");break;default:return A}return x+A+S+u+A;case 1017:if(-1===A.indexOf("sticky",9))return A;case 975:switch(s=(A=e).length-10,d=(u=(33===A.charCodeAt(s)?A.substring(0,s):A).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:A=A.replace(u,x+u)+";"+A;break;case 207:case 102:A=A.replace(u,x+(d>102?"inline-":"")+"box")+";"+A.replace(u,x+u)+";"+A.replace(u,S+u+"box")+";"+A}return A+";";case 938:if(A.charCodeAt(5)===F)switch(A.charCodeAt(6)){case 105:return u=A.replace("-items",""),x+A+x+"box-"+u+S+"flex-"+u+A;case 115:return x+A+S+"flex-item-"+A.replace(w,"")+A;default:return x+A+S+"flex-line-pack"+A.replace("align-content","").replace(w,"")+A}break;case 973:case 989:if(A.charCodeAt(3)!==F||122===A.charCodeAt(4))break;case 931:case 953:if(!0===b.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ue(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):A.replace(u,x+u)+A.replace(u,T+u.replace("fill-",""))+A;break;case 962:if(A=x+A+(102===A.charCodeAt(5)?S+A:"")+A,n+r===211&&105===A.charCodeAt(13)&&A.indexOf("transform",10)>0)return A.substring(0,A.indexOf(";",27)+1).replace(a,"$1"+x+"$2")+A}return A}function Ge(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),i=e.substring(n+1,e.length-1);return Ee(2!==t?r:r.replace(E,"$1"),i,t)}function Ze(e,t){var n=Ue(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function He(e,t,n,r,i,o,a,l,c,u){for(var s,A=0,d=t;A0&&(ke=i.replace(f,o===B?"":"-")),o=1,1===pe?Be=i:Oe=i;var a,l=[Be];we>0&&void 0!==(a=He(De,n,l,l,ge,Ie,0,0,0,0))&&"string"==typeof a&&(n=a);var c=Pe(he,l,n,0,0);return we>0&&void 0!==(a=He(be,c,l,l,ge,Ie,c.length,0,0,0))&&"string"!=typeof(c=a)&&(o=0),ke="",Be="",Oe="",Me=0,ge=1,Ie=1,je*o==0?c:c.replace(r,"").replace(p,"").replace(N,"$1").replace(y,"$1").replace(j," ")}return Ve.use=function e(t){switch(t){case void 0:case null:we=Ce.length=0;break;default:if("function"==typeof t)Ce[we++]=t;else if("object"==typeof t)for(var n=0,r=t.length;nL.length&&L.push(e)}function O(e,t,n){return null==e?0:function e(t,n,r,i){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var c=!1;if(null===t)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,""===n?"."+B(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u1)for(var n=1;nthis.eventPool.length&&this.eventPool.push(e)}function Ae(e){e.eventPool=[],e.getPooled=ue,e.release=se}i(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Ae(n),n},Ae(ce);var de=ce.extend({data:null}),fe=ce.extend({data:null}),Ie=[9,13,27,32],ge=F&&"CompositionEvent"in window,Me=null;F&&"documentMode"in document&&(Me=document.documentMode);var pe=F&&"TextEvent"in window&&!Me,Ne=F&&(!ge||Me&&8=Me),ye=String.fromCharCode(32),je={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ve=!1;function me(e,t){switch(e){case"keyup":return-1!==Ie.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function he(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ce=!1;var we={eventTypes:je,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(ge)e:{switch(e){case"compositionstart":i=je.compositionStart;break e;case"compositionend":i=je.compositionEnd;break e;case"compositionupdate":i=je.compositionUpdate;break e}i=void 0}else Ce?me(e,n)&&(i=je.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=je.compositionStart);return i?(Ne&&"ko"!==n.locale&&(Ce||i!==je.compositionStart?i===je.compositionEnd&&Ce&&(o=oe()):(re="value"in(ne=r)?ne.value:ne.textContent,Ce=!0)),i=de.getPooled(i,t,n,r),o?i.data=o:null!==(o=he(n))&&(i.data=o),H(i),o=i):o=null,(e=pe?function(e,t){switch(e){case"compositionend":return he(t);case"keypress":return 32!==t.which?null:(ve=!0,ye);case"textInput":return(e=t.data)===ye&&ve?null:e;default:return null}}(e,n):function(e,t){if(Ce)return"compositionend"===e||!ge&&me(e,t)?(e=oe(),ie=re=ne=null,Ce=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1