From 4d349005d4baafb57357f75474db3932a4dfd82a Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Tue, 15 Mar 2022 17:38:18 -0700 Subject: [PATCH] Simplify add peer UI (#1999) * Remove non-null constraint on peer name * Remove validation requiring non-empty name for peer * Update database to use autoconnect true by default * Remove connect peer button and modal from peers page * Show saved peers tab by default in peers page * Update frontend build --- frontend/src/components/Peers/index.js | 82 ++----------------- itests/tests/test_squeak_node.py | 37 ++++----- .../webapp/static/build/asset-manifest.json | 26 +++--- .../admin/webapp/static/build/index.html | 2 +- ...ifest.d63830f90b931c5de8f0960d699a1571.js} | 24 +++--- .../webapp/static/build/service-worker.js | 2 +- ....7e46f2c7.chunk.js => 2.babe843f.chunk.js} | 6 +- ...SE.txt => 2.babe843f.chunk.js.LICENSE.txt} | 0 ...7.chunk.js.map => 2.babe843f.chunk.js.map} | 2 +- ....0c88bd8a.chunk.js => 4.5466ca1a.chunk.js} | 4 +- ...a.chunk.js.map => 4.5466ca1a.chunk.js.map} | 2 +- ...43c419.chunk.js => main.7c510e8d.chunk.js} | 4 +- .../static/js/main.7c510e8d.chunk.js.map | 1 + .../static/js/main.8343c419.chunk.js.map | 1 - ...n.2ae99013.js => runtime-main.1eacdecd.js} | 4 +- ...13.js.map => runtime-main.1eacdecd.js.map} | 2 +- squeaknode/core/peers.py | 10 +-- ...1b58_set_autoconnect_to_true_by_default.py | 41 ++++++++++ ...a2122c4711cc_allow_peer_name_to_be_null.py | 51 ++++++++++++ squeaknode/db/models.py | 4 +- tests/core/test_peers.py | 4 +- tests/db/test_squeak_db.py | 2 +- 22 files changed, 164 insertions(+), 147 deletions(-) rename squeaknode/admin/webapp/static/build/{precache-manifest.ff477efaf72aa2eba4b32430984c8df9.js => precache-manifest.d63830f90b931c5de8f0960d699a1571.js} (59%) rename squeaknode/admin/webapp/static/build/static/js/{2.7e46f2c7.chunk.js => 2.babe843f.chunk.js} (99%) rename squeaknode/admin/webapp/static/build/static/js/{2.7e46f2c7.chunk.js.LICENSE.txt => 2.babe843f.chunk.js.LICENSE.txt} (100%) rename squeaknode/admin/webapp/static/build/static/js/{2.7e46f2c7.chunk.js.map => 2.babe843f.chunk.js.map} (99%) rename squeaknode/admin/webapp/static/build/static/js/{4.0c88bd8a.chunk.js => 4.5466ca1a.chunk.js} (98%) rename squeaknode/admin/webapp/static/build/static/js/{4.0c88bd8a.chunk.js.map => 4.5466ca1a.chunk.js.map} (99%) rename squeaknode/admin/webapp/static/build/static/js/{main.8343c419.chunk.js => main.7c510e8d.chunk.js} (96%) create mode 100644 squeaknode/admin/webapp/static/build/static/js/main.7c510e8d.chunk.js.map delete mode 100644 squeaknode/admin/webapp/static/build/static/js/main.8343c419.chunk.js.map rename squeaknode/admin/webapp/static/build/static/js/{runtime-main.2ae99013.js => runtime-main.1eacdecd.js} (96%) rename squeaknode/admin/webapp/static/build/static/js/{runtime-main.2ae99013.js.map => runtime-main.1eacdecd.js.map} (98%) create mode 100644 squeaknode/db/alembic/versions/0e3b79a31b58_set_autoconnect_to_true_by_default.py create mode 100644 squeaknode/db/alembic/versions/a2122c4711cc_allow_peer_name_to_be_null.py diff --git a/frontend/src/components/Peers/index.js b/frontend/src/components/Peers/index.js index 4c1c12b5..0b721568 100644 --- a/frontend/src/components/Peers/index.js +++ b/frontend/src/components/Peers/index.js @@ -27,9 +27,8 @@ import { const Peers = (props) => { - const [tab, setTab] = useState('Connected Peers') + const [tab, setTab] = useState('Saved Peers') const [savePeerModalOpen, setSavePeerModalOpen] = useState(false) - const [connectPeerModalOpen, setconnectPeerModalOpen] = useState(false) const [showExternalAddressModalOpen, setShowExternalAddressModalOpen] = useState(false) const [styleBody, setStyleBody] = useState(false) const [name, setName] = useState('') @@ -73,11 +72,6 @@ const Peers = (props) => { setTimeout(()=>{ setSavePeerModalOpen(!savePeerModalOpen) },20) } - const toggleconnectPeerModal = (param, type) => { - setStyleBody(!styleBody) - setTimeout(()=>{ setconnectPeerModalOpen(!connectPeerModalOpen) },20) - } - const toggleShowExternalAddressModalOpen = () => { setStyleBody(!styleBody) setTimeout(()=>{ setShowExternalAddressModalOpen(!showExternalAddressModalOpen) },20) @@ -106,17 +100,6 @@ const Peers = (props) => { toggleSavePeerModal(); } - const connectPeer = () => { - const network = getNetwork(); - const strippedHost = removeHttp(host); - dispatch(setConnectPeer({ - host: strippedHost, - port: port, - network: network, - })); - toggleconnectPeerModal(); - } - const handleChangeUseTor = () => { setUseTor(!useTor); }; @@ -143,24 +126,20 @@ const Peers = (props) => { className='profiles-create-button'> Show External Address -
toggleconnectPeerModal('edit')} - className='profiles-create-button'> - Connect Peer -
toggleSavePeerModal('edit')} className='profiles-create-button'> - Add Saved Peer + Add Peer
-
setTab('Connected Peers')} className={tab === 'Connected Peers' ? `explore-nav-item activeTab` : `explore-nav-item`}> - Connected Peers -
setTab('Saved Peers')} className={tab === 'Saved Peers' ? `explore-nav-item activeTab` : `explore-nav-item`}> Saved Peers
+
setTab('Connected Peers')} className={tab === 'Connected Peers' ? `explore-nav-item activeTab` : `explore-nav-item`}> + Connected Peers +
{tab === 'Saved Peers' ? peers.map(sp=>{ @@ -279,7 +258,7 @@ const Peers = (props) => {
- + setName(e.target.value)} type="text" name="name" className="edit-input"/>
@@ -312,55 +291,6 @@ const Peers = (props) => {
- {/* Modal for connect peer */} -
toggleconnectPeerModal()} style={{display: connectPeerModalOpen ? 'block' : 'none'}} className="modal-edit"> -
handleModalClick(e)} className="modal-content"> -
-
-
toggleconnectPeerModal()} className="modal-closeIcon-wrap"> - -
-
-

Connect Peer

- -
-
- Submit -
-
-
- -
- -
-
- - setHost(e.target.value)} type="text" name="name" className="edit-input"/> -
-
-
-
- - setPort(e.target.value)} type="text" name="name" className="edit-input"/> -
-
-
-
- -
-
- -
-
-
- ) diff --git a/itests/tests/test_squeak_node.py b/itests/tests/test_squeak_node.py index 5bee69c9..92b88016 100644 --- a/itests/tests/test_squeak_node.py +++ b/itests/tests/test_squeak_node.py @@ -556,29 +556,10 @@ def test_create_peer(admin_stub): port=1234, ) assert get_peer_by_address_response.peer_name == "fake_peer_name" - - -def test_create_peer_empty_name(admin_stub): - # Try to create a new signing profile with an empty name - with pytest.raises(Exception) as excinfo: - create_saved_peer( - admin_stub, - "", - "another_fake_host", - 1234, - ) - assert "Peer name cannot be empty." in str(excinfo.value) + assert get_peer_response.squeak_peer.autoconnect def test_set_peer_autoconnect(admin_stub, peer_id): - # Get the peer - get_peer_response = admin_stub.GetPeer( - squeak_admin_pb2.GetPeerRequest( - peer_id=peer_id, - ) - ) - assert not get_peer_response.squeak_peer.autoconnect - # Set the peer to be autoconnect admin_stub.SetPeerAutoconnect( squeak_admin_pb2.SetPeerAutoconnectRequest( @@ -595,6 +576,22 @@ def test_set_peer_autoconnect(admin_stub, peer_id): ) assert get_peer_response.squeak_peer.autoconnect + # Set the peer to be not autoconnect + admin_stub.SetPeerAutoconnect( + squeak_admin_pb2.SetPeerAutoconnectRequest( + peer_id=peer_id, + autoconnect=False, + ) + ) + + # Get the peer again + get_peer_response = admin_stub.GetPeer( + squeak_admin_pb2.GetPeerRequest( + peer_id=peer_id, + ) + ) + assert not get_peer_response.squeak_peer.autoconnect + def test_rename_peer(admin_stub, peer_id, random_name): # Rename the peer diff --git a/squeaknode/admin/webapp/static/build/asset-manifest.json b/squeaknode/admin/webapp/static/build/asset-manifest.json index d618d4d0..dacc55cc 100644 --- a/squeaknode/admin/webapp/static/build/asset-manifest.json +++ b/squeaknode/admin/webapp/static/build/asset-manifest.json @@ -1,35 +1,35 @@ { "files": { "main.css": "/static/css/main.2db21378.chunk.css", - "main.js": "/static/js/main.8343c419.chunk.js", - "main.js.map": "/static/js/main.8343c419.chunk.js.map", - "runtime-main.js": "/static/js/runtime-main.2ae99013.js", - "runtime-main.js.map": "/static/js/runtime-main.2ae99013.js.map", - "static/js/2.7e46f2c7.chunk.js": "/static/js/2.7e46f2c7.chunk.js", - "static/js/2.7e46f2c7.chunk.js.map": "/static/js/2.7e46f2c7.chunk.js.map", + "main.js": "/static/js/main.7c510e8d.chunk.js", + "main.js.map": "/static/js/main.7c510e8d.chunk.js.map", + "runtime-main.js": "/static/js/runtime-main.1eacdecd.js", + "runtime-main.js.map": "/static/js/runtime-main.1eacdecd.js.map", + "static/js/2.babe843f.chunk.js": "/static/js/2.babe843f.chunk.js", + "static/js/2.babe843f.chunk.js.map": "/static/js/2.babe843f.chunk.js.map", "static/css/3.1f6bb621.chunk.css": "/static/css/3.1f6bb621.chunk.css", "static/js/3.043ad63d.chunk.js": "/static/js/3.043ad63d.chunk.js", "static/js/3.043ad63d.chunk.js.map": "/static/js/3.043ad63d.chunk.js.map", "static/css/4.6512f3a3.chunk.css": "/static/css/4.6512f3a3.chunk.css", - "static/js/4.0c88bd8a.chunk.js": "/static/js/4.0c88bd8a.chunk.js", - "static/js/4.0c88bd8a.chunk.js.map": "/static/js/4.0c88bd8a.chunk.js.map", + "static/js/4.5466ca1a.chunk.js": "/static/js/4.5466ca1a.chunk.js", + "static/js/4.5466ca1a.chunk.js.map": "/static/js/4.5466ca1a.chunk.js.map", "static/css/5.3aaab79d.chunk.css": "/static/css/5.3aaab79d.chunk.css", "static/js/5.93db42e1.chunk.js": "/static/js/5.93db42e1.chunk.js", "static/js/5.93db42e1.chunk.js.map": "/static/js/5.93db42e1.chunk.js.map", "index.html": "/index.html", - "precache-manifest.ff477efaf72aa2eba4b32430984c8df9.js": "/precache-manifest.ff477efaf72aa2eba4b32430984c8df9.js", + "precache-manifest.d63830f90b931c5de8f0960d699a1571.js": "/precache-manifest.d63830f90b931c5de8f0960d699a1571.js", "service-worker.js": "/service-worker.js", "static/css/3.1f6bb621.chunk.css.map": "/static/css/3.1f6bb621.chunk.css.map", "static/css/4.6512f3a3.chunk.css.map": "/static/css/4.6512f3a3.chunk.css.map", "static/css/5.3aaab79d.chunk.css.map": "/static/css/5.3aaab79d.chunk.css.map", "static/css/main.2db21378.chunk.css.map": "/static/css/main.2db21378.chunk.css.map", - "static/js/2.7e46f2c7.chunk.js.LICENSE.txt": "/static/js/2.7e46f2c7.chunk.js.LICENSE.txt", + "static/js/2.babe843f.chunk.js.LICENSE.txt": "/static/js/2.babe843f.chunk.js.LICENSE.txt", "static/media/icon.a0c2d343.svg": "/static/media/icon.a0c2d343.svg" }, "entrypoints": [ - "static/js/runtime-main.2ae99013.js", - "static/js/2.7e46f2c7.chunk.js", + "static/js/runtime-main.1eacdecd.js", + "static/js/2.babe843f.chunk.js", "static/css/main.2db21378.chunk.css", - "static/js/main.8343c419.chunk.js" + "static/js/main.7c510e8d.chunk.js" ] } \ No newline at end of file diff --git a/squeaknode/admin/webapp/static/build/index.html b/squeaknode/admin/webapp/static/build/index.html index ff26caf4..0f69e4ab 100644 --- a/squeaknode/admin/webapp/static/build/index.html +++ b/squeaknode/admin/webapp/static/build/index.html @@ -1 +1 @@ -Squeaknode
\ No newline at end of file +Squeaknode
\ No newline at end of file diff --git a/squeaknode/admin/webapp/static/build/precache-manifest.ff477efaf72aa2eba4b32430984c8df9.js b/squeaknode/admin/webapp/static/build/precache-manifest.d63830f90b931c5de8f0960d699a1571.js similarity index 59% rename from squeaknode/admin/webapp/static/build/precache-manifest.ff477efaf72aa2eba4b32430984c8df9.js rename to squeaknode/admin/webapp/static/build/precache-manifest.d63830f90b931c5de8f0960d699a1571.js index 4589fc6f..d73129ca 100644 --- a/squeaknode/admin/webapp/static/build/precache-manifest.ff477efaf72aa2eba4b32430984c8df9.js +++ b/squeaknode/admin/webapp/static/build/precache-manifest.d63830f90b931c5de8f0960d699a1571.js @@ -1,6 +1,6 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ { - "revision": "cfcd5740a8ae966c08a4f9c5e228c4e1", + "revision": "0b255a98c80cf51b2c371c1f6f24fd8a", "url": "/index.html" }, { @@ -8,7 +8,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/css/3.1f6bb621.chunk.css" }, { - "revision": "df35692a3771eae60516", + "revision": "e412fb479d10e72daad6", "url": "/static/css/4.6512f3a3.chunk.css" }, { @@ -16,36 +16,36 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/css/5.3aaab79d.chunk.css" }, { - "revision": "aebac4fdb8fdeeecb551", + "revision": "c36a7f4ae9e7eccf5a4b", "url": "/static/css/main.2db21378.chunk.css" }, { - "revision": "4955e18ffa3434bb3610", - "url": "/static/js/2.7e46f2c7.chunk.js" + "revision": "552e6884ef83ffe7b186", + "url": "/static/js/2.babe843f.chunk.js" }, { "revision": "a569361d31625f49e7e30aea21628ed5", - "url": "/static/js/2.7e46f2c7.chunk.js.LICENSE.txt" + "url": "/static/js/2.babe843f.chunk.js.LICENSE.txt" }, { "revision": "8cc1987a8af1ab54b6a5", "url": "/static/js/3.043ad63d.chunk.js" }, { - "revision": "df35692a3771eae60516", - "url": "/static/js/4.0c88bd8a.chunk.js" + "revision": "e412fb479d10e72daad6", + "url": "/static/js/4.5466ca1a.chunk.js" }, { "revision": "98f588d1fdf51e73593e", "url": "/static/js/5.93db42e1.chunk.js" }, { - "revision": "aebac4fdb8fdeeecb551", - "url": "/static/js/main.8343c419.chunk.js" + "revision": "c36a7f4ae9e7eccf5a4b", + "url": "/static/js/main.7c510e8d.chunk.js" }, { - "revision": "225aa98f6e6625289fb2", - "url": "/static/js/runtime-main.2ae99013.js" + "revision": "af7b71b81945c699d35d", + "url": "/static/js/runtime-main.1eacdecd.js" }, { "revision": "a0c2d343127a93b025409da6fd970700", diff --git a/squeaknode/admin/webapp/static/build/service-worker.js b/squeaknode/admin/webapp/static/build/service-worker.js index 1f867003..569a4992 100644 --- a/squeaknode/admin/webapp/static/build/service-worker.js +++ b/squeaknode/admin/webapp/static/build/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/precache-manifest.ff477efaf72aa2eba4b32430984c8df9.js" + "/precache-manifest.d63830f90b931c5de8f0960d699a1571.js" ); self.addEventListener('message', (event) => { diff --git a/squeaknode/admin/webapp/static/build/static/js/2.7e46f2c7.chunk.js b/squeaknode/admin/webapp/static/build/static/js/2.babe843f.chunk.js similarity index 99% rename from squeaknode/admin/webapp/static/build/static/js/2.7e46f2c7.chunk.js rename to squeaknode/admin/webapp/static/build/static/js/2.babe843f.chunk.js index e871ebe8..153d4bff 100644 --- a/squeaknode/admin/webapp/static/build/static/js/2.7e46f2c7.chunk.js +++ b/squeaknode/admin/webapp/static/build/static/js/2.babe843f.chunk.js @@ -1,3 +1,3 @@ -/*! For license information please see 2.7e46f2c7.chunk.js.LICENSE.txt */ -(this["webpackJsonptwitter-frontend"]=this["webpackJsonptwitter-frontend"]||[]).push([[2],[function(e,t,r){"use strict";e.exports=r(64)},function(e,t,r){e.exports=r(101)},,function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:d(e)?3:0}function u(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===s(e)?e.get(t):e[t]}function c(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function g(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){return W&&e instanceof Map}function d(e){return V&&e instanceof Set}function p(e){return e.o||e.t}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=q(e);delete t[$];for(var r=K(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&a(e,(function(e,t){return m(t,!0)}),!0))}function y(){n(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=X[e];return t||n(18,e),t}function _(e,t){X[e]||(X[e]=t)}function S(){return B}function E(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function w(e){T(e),e.p.forEach(A),e.p=null}function T(e){e===B&&(B=e.l)}function O(e){return B={p:[],l:B,h:e,m:!0,_:0}}function A(e){var t=e[$];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var r=t.p[0],o=void 0!==e&&e!==r;return t.h.O||v("ES5").S(t,e,o),o?(r[$].P&&(w(t),n(4)),i(e)&&(e=R(t,e),t.l||x(t,e)),t.u&&v("Patches").M(r[$],e,t.u,t.s)):e=R(t,r,[]),w(t),t.u&&t.v(t.u,t.s),e!==z?e:void 0}function R(e,t,r){if(b(t))return t;var n=t[$];if(!n)return a(t,(function(o,i){return j(e,n,t,o,i,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return x(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=h(n.k):n.o;a(3===n.i?new Set(o):o,(function(t,i){return j(e,n,o,t,i,r)})),x(e,o,!1),r&&e.u&&v("Patches").R(n,r,e.u,e.s)}return n.o}function j(e,t,r,n,a,s){if(o(a)){var l=R(e,a,s&&t&&3!==t.i&&!u(t.D,n)?s.concat(n):void 0);if(c(r,n,l),!o(l))return;e.m=!1}if(i(a)&&!b(a)){if(!e.h.N&&e._<1)return;R(e,a),t&&t.A.l||x(e,a)}}function x(e,t,r){void 0===r&&(r=!1),e.h.N&&e.m&&m(t,r)}function N(e,t){var r=e[$];return(r?p(r):e)[t]}function M(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function P(e){e.o||(e.o=h(e.t))}function k(e,t,r){var n=f(t)?v("MapSet").T(t,r):d(t)?v("MapSet").F(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:S(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,i=Z;r&&(o=[n],i=Q);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return n.k=u,n.j=s,u}(t,r):v("ES5").J(t,r);return(r?r.A:S()).p.push(n),n}function D(e){return o(e)||n(22,e),function e(t){if(!i(t))return t;var r,n=t[$],o=s(t);if(n){if(!n.P&&(n.i<4||!v("ES5").K(n)))return n.t;n.I=!0,r=L(t,o),n.I=!1}else r=L(t,o);return a(r,(function(t,o){n&&l(n.t,t)===o||c(r,t,e(o))})),3===o?new Set(r):r}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}function U(){function e(e,t){var r=i[e];return r?r.enumerable=t:i[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[$];return Z.get(t,e)},set:function(t){var r=this[$];Z.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][$];if(!o.P)switch(o.i){case 5:n(o)&&I(o);break;case 4:r(o)&&I(o)}}}function r(e){for(var t=e.t,r=e.k,n=K(r),o=n.length-1;o>=0;o--){var i=n[o];if(i!==$){var a=t[i];if(void 0===a&&!u(t,i))return!0;var s=r[i],l=s&&s[$];if(l?l.t!==a:!g(s,a))return!0}}var c=!!t[$];return n.length!==K(t).length+(c?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}var i={};_("ES5",{J:function(t,r){var n=Array.isArray(t),o=function(t,r){if(t){for(var n=Array(r.length),o=0;o1?n-1:0),s=1;s1?r-1:0),i=1;i=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var i=v("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(r+1))}))},e}()),ee=J.produce,te=(J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J),J.setUseProxies.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J),ee),re=r(26);r(16);function ne(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"===typeof o?o(r,n,e):t(o)}}}}var oe=ne();oe.withExtraArgument=ne;var ie=oe;function ae(){return(ae=Object.assign||function(e){for(var t=1;t=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;"string"===typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};function we(e,t,r){var n=ye(e+"/fulfilled",(function(e,t,r){return{payload:e,meta:{arg:r,requestId:t}}})),o=ye(e+"/pending",(function(e,t){return{payload:void 0,meta:{arg:t,requestId:e}}})),i=ye(e+"/rejected",(function(e,t,r,n){var o=!!e&&"AbortError"===e.name,i=!!e&&"ConditionError"===e.name;return{payload:n,error:Ee(e||"Rejected"),meta:{arg:r,requestId:t,aborted:o,condition:i}}})),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,u,l){var c,g=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),f=new a,d=new Promise((function(e,t){return f.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:c||"Aborted"})}))})),p=!1;var h=function(){try{var a,c=function(e){return h?e:(r&&!r.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a)},h=!1,m=function(e,t){try{var r=e()}catch(n){return t(n)}return r&&r.then?r.then(void 0,t):r}((function(){if(r&&r.condition&&!1===r.condition(e,{getState:u,extra:l}))throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return p=!0,s(o(g,e)),Promise.resolve(Promise.race([d,Promise.resolve(t(e,{dispatch:s,getState:u,extra:l,requestId:g,signal:f.signal,rejectWithValue:function(e){return new Se(e)}})).then((function(t){return t instanceof Se?i(null,g,e,t.value):n(t,g,e)}))])).then((function(e){a=e}))}),(function(t){a=i(t,g,e)}));return Promise.resolve(m&&m.then?m.then(c):c(m))}catch(y){return Promise.reject(y)}}();return Object.assign(h,{abort:function(e){p&&(c=e,f.abort())}})}}),{pending:o,rejected:i,fulfilled:n,typePrefix:e})}function Te(e){if("error"in e)throw e.error;return e.payload}U()},,function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return m})),r.d(t,"c",(function(){return _}));var n=r(0),o=r.n(n),i=(r(30),o.a.createContext(null));var a=function(e){e()},s={notify:function(){}};function u(){var e=a,t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var l=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}();var c=function(e){var t=e.store,r=e.context,a=e.children,s=Object(n.useMemo)((function(){var e=new l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(n.useMemo)((function(){return t.getState()}),[t]);Object(n.useEffect)((function(){var e=s.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,u]);var c=r||i;return o.a.createElement(c.Provider,{value:s},a)},g=(r(3),r(17),r(28),r(41),"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect);r(26);function f(){return Object(n.useContext)(i)}function d(e){void 0===e&&(e=i);var t=e===i?f:function(){return Object(n.useContext)(e)};return function(){return t().store}}var p=d();function h(e){void 0===e&&(e=i);var t=e===i?p:d(e);return function(){return t().dispatch}}var m=h(),y=function(e,t){return e===t};function b(e){void 0===e&&(e=i);var t=e===i?f:function(){return Object(n.useContext)(e)};return function(e,r){void 0===r&&(r=y);var o=t(),i=function(e,t,r,o){var i,a=Object(n.useReducer)((function(e){return e+1}),0)[1],s=Object(n.useMemo)((function(){return new l(r,o)}),[r,o]),u=Object(n.useRef)(),c=Object(n.useRef)(),f=Object(n.useRef)(),d=Object(n.useRef)(),p=r.getState();try{i=e!==c.current||p!==f.current||u.current?e(p):d.current}catch(h){throw u.current&&(h.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),h}return g((function(){c.current=e,f.current=p,d.current=i,u.current=void 0})),g((function(){function e(){try{var e=c.current(r.getState());if(t(e,d.current))return;d.current=e}catch(h){u.current=h}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),i}(e,r,o.store,o.subscription);return Object(n.useDebugValue)(i),i}}var v,_=b(),S=r(29);v=S.unstable_batchedUpdates,a=v},,function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(l){return void r(l)}s.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}}r.d(t,"a",(function(){return o}))},function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1){var o=r[n];return n>0&&(r.splice(n,1),r.unshift(o)),o.value}return"NOT_FOUND"}return{get:n,put:function(t,o){"NOT_FOUND"===n(t)&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(s,l);function g(){var t=c.get(arguments);if("NOT_FOUND"===t){if(t=e.apply(null,arguments),u){var r=c.getEntries(),n=r.find((function(e){return u(e.value,t)}));n&&(t=n.value)}c.put(arguments,t)}return t}return g.clearCache=function(){return c.clear()},g}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var r=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},,function(e,t,r){(function(e){e.exports=function(){"use strict";var t,r;function n(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function u(e){return void 0===e}function l(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function g(e,t){var r,n=[];for(r=0;r>>0;for(t=0;t0)for(r=0;r=0?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)a(e,t)&&r.push(t);return r};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},P={};function k(e,t,r,n){var o=n;"string"===typeof n&&(o=function(){return this[n]()}),e&&(P[e]=o),t&&(P[t[0]]=function(){return x(o.apply(this,arguments),t[1],t[2])}),r&&(P[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function D(e,t){return e.isValid()?(t=L(t,e.localeData()),I[t]=I[t]||function(e){var t,r,n,o=e.match(N);for(t=0,r=o.length;t=0&&M.test(e);)e=e.replace(M,n),M.lastIndex=0,r-=1;return e}var U={};function F(e,t){var r=e.toLowerCase();U[r]=U[r+"s"]=U[t]=e}function B(e){return"string"===typeof e?U[e]||U[e.toLowerCase()]:void 0}function H(e){var t,r,n={};for(r in e)a(e,r)&&(t=B(r))&&(n[t]=e[r]);return n}var W={};function V(e,t){W[e]=t}function Y(e){return e%4===0&&e%100!==0||e%400===0}function z(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=z(t)),r}function $(e,t){return function(r){return null!=r?(q(this,e,r),n.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&Y(e.year())&&1===e.month()&&29===e.date()?(r=G(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Se(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var X,Z=/\d/,Q=/\d\d/,J=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,re=/\d\d?/,ne=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,ue=/\d+/,le=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,ge=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,t,r){X[e]=C(t)?t:function(e,n){return e&&r?r:t}}function pe(e,t){return a(X,e)?X[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,o){return t||r||n||o}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var me,ye={};function be(e,t){var r,n=t;for("string"===typeof e&&(e=[e]),l(t)&&(n=function(e,r){r[t]=G(e)}),r=0;r68?1900:2e3)};var Me=$("FullYear",!0);function Ie(e,t,r,n,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,o,i,a),s}function Pe(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ke(e,t,r){var n=7+t-r;return-(7+Pe(e,0,n).getUTCDay()-t)%7+n-1}function De(e,t,r,n,o){var i,a,s=1+7*(t-1)+(7+r-n)%7+ke(e,n,o);return s<=0?a=Ne(i=e-1)+s:s>Ne(e)?(i=e+1,a=s-Ne(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Le(e,t,r){var n,o,i=ke(e.year(),t,r),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?n=a+Ue(o=e.year()-1,t,r):a>Ue(e.year(),t,r)?(n=a-Ue(e.year(),t,r),o=e.year()+1):(o=e.year(),n=a),{week:n,year:o}}function Ue(e,t,r){var n=ke(e,t,r),o=ke(e+1,t,r);return(Ne(e)-n+o)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}k("w",["ww",2],"wo","week"),k("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),V("week",5),V("isoWeek",5),de("w",re),de("ww",re,Q),de("W",re),de("WW",re,Q),ve(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=G(e)})),k("d",0,"do","day"),k("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),k("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),k("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),k("e",0,0,"weekday"),k("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),de("d",re),de("e",re),de("E",re),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["dd","ddd","dddd"],(function(e,t,r,n){var o=r._locale.weekdaysParse(e,n,r._strict);null!=o?t.d=o:p(r).invalidWeekday=e})),ve(["d","e","E"],(function(e,t,r,n){t[n]=G(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=fe,Ye=fe,ze=fe;function Ge(e,t,r){var n,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(o=me.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=me.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=me.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=me.call(this._weekdaysParse,a))||-1!==(o=me.call(this._shortWeekdaysParse,a))||-1!==(o=me.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=me.call(this._shortWeekdaysParse,a))||-1!==(o=me.call(this._weekdaysParse,a))||-1!==(o=me.call(this._minWeekdaysParse,a))?o:null:-1!==(o=me.call(this._minWeekdaysParse,a))||-1!==(o=me.call(this._weekdaysParse,a))||-1!==(o=me.call(this._shortWeekdaysParse,a))?o:null}function $e(){function e(e,t){return t.length-e.length}var t,r,n,o,i,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)r=d([2e3,1]).day(t),n=he(this.weekdaysMin(r,"")),o=he(this.weekdaysShort(r,"")),i=he(this.weekdays(r,"")),a.push(n),s.push(o),u.push(i),l.push(n),l.push(o),l.push(i);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ke(){return this.hours()%12||12}function qe(e,t){k(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}k("H",["HH",2],0,"hour"),k("h",["hh",2],0,Ke),k("k",["kk",2],0,(function(){return this.hours()||24})),k("hmm",0,0,(function(){return""+Ke.apply(this)+x(this.minutes(),2)})),k("hmmss",0,0,(function(){return""+Ke.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)})),k("Hmm",0,0,(function(){return""+this.hours()+x(this.minutes(),2)})),k("Hmmss",0,0,(function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)})),qe("a",!0),qe("A",!1),F("hour","h"),V("hour",13),de("a",Xe),de("A",Xe),de("H",re),de("h",re),de("k",re),de("HH",re,Q),de("hh",re,Q),de("kk",re,Q),de("hmm",ne),de("hmmss",oe),de("Hmm",ne),de("Hmmss",oe),be(["H","HH"],3),be(["k","kk"],(function(e,t,r){var n=G(e);t[3]=24===n?0:n})),be(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),be(["h","hh"],(function(e,t,r){t[3]=G(e),p(r).bigHour=!0})),be("hmm",(function(e,t,r){var n=e.length-2;t[3]=G(e.substr(0,n)),t[4]=G(e.substr(n)),p(r).bigHour=!0})),be("hmmss",(function(e,t,r){var n=e.length-4,o=e.length-2;t[3]=G(e.substr(0,n)),t[4]=G(e.substr(n,2)),t[5]=G(e.substr(o)),p(r).bigHour=!0})),be("Hmm",(function(e,t,r){var n=e.length-2;t[3]=G(e.substr(0,n)),t[4]=G(e.substr(n))})),be("Hmmss",(function(e,t,r){var n=e.length-4,o=e.length-2;t[3]=G(e.substr(0,n)),t[4]=G(e.substr(n,2)),t[5]=G(e.substr(o))}));var Ze,Qe=$("Hours",!0),Je={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:we,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:We,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function rt(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(n=ot(o.slice(0,t).join("-")))return n;if(r&&r.length>=t&&rt(o,r)>=t-1)break;t--}i++}return Ze}(e)}function ut(e){var t,r=e._a;return r&&-2===p(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>Se(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((-?\d+)/i,ht=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,r,n,o,i,a,s=e._i,u=lt.exec(s)||ct.exec(s);if(u){for(p(e).iso=!0,t=0,r=ft.length;t7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=Le(Ot(),i,a),r=_t(t.gg,e._a[0],l.year),n=_t(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i),n<1||n>Ue(r,i,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=De(r,n,o,i,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=_t(e._a[0],o[0]),(e._dayOfYear>Ne(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),r=Pe(a,0,e._dayOfYear),e._a[1]=r.getUTCMonth(),e._a[2]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:Ie).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function Et(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],p(e).empty=!0;var t,r,o,i,a,s,u=""+e._i,l=u.length,c=0;for(o=L(e._f,e._locale).match(N)||[],t=0;t0&&p(e).unusedInput.push(a),u=u.slice(u.indexOf(r)+r.length),c+=r.length),P[i]?(r?p(e).empty=!1:p(e).unusedTokens.push(i),_e(i,r,e)):e._strict&&!r&&p(e).unusedTokens.push(i);p(e).charsLeftOver=l-c,u.length>0&&p(e).unusedInput.push(u),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),St(e),ut(e)}else vt(e);else yt(e)}function wt(e){var t=e._i,r=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===r&&""===t?m({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new _(ut(t)):(c(t)?e._d=t:o(r)?function(e){var t,r,n,o,i,a,s=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()}));function Rt(e,t){var r,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ot();for(r=t[0],n=1;n=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function nr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function or(e,t){return t.erasAbbrRegex(e)}function ir(){var e,t,r=[],n=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e(i=Ue(e,n,o))&&(t=i),ur.call(this,e,t,r,n,o))}function ur(e,t,r,n,o){var i=De(e,t,r,n,o),a=Pe(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}k("N",0,0,"eraAbbr"),k("NN",0,0,"eraAbbr"),k("NNN",0,0,"eraAbbr"),k("NNNN",0,0,"eraName"),k("NNNNN",0,0,"eraNarrow"),k("y",["y",1],"yo","eraYear"),k("y",["yy",2],0,"eraYear"),k("y",["yyy",3],0,"eraYear"),k("y",["yyyy",4],0,"eraYear"),de("N",or),de("NN",or),de("NNN",or),de("NNNN",(function(e,t){return t.erasNameRegex(e)})),de("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),be(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var o=r._locale.erasParse(e,n,r._strict);o?p(r).era=o:p(r).invalidEra=e})),de("y",ue),de("yy",ue),de("yyy",ue),de("yyyy",ue),de("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),be(["y","yy","yyy","yyyy"],0),be(["yo"],(function(e,t,r,n){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),k(0,["gg",2],0,(function(){return this.weekYear()%100})),k(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ar("gggg","weekYear"),ar("ggggg","weekYear"),ar("GGGG","isoWeekYear"),ar("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),de("G",le),de("g",le),de("GG",re,Q),de("gg",re,Q),de("GGGG",ae,ee),de("gggg",ae,ee),de("GGGGG",se,te),de("ggggg",se,te),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=G(e)})),ve(["gg","GG"],(function(e,t,r,o){t[o]=n.parseTwoDigitYear(e)})),k("Q",0,"Qo","quarter"),F("quarter","Q"),V("quarter",7),de("Q",Z),be("Q",(function(e,t){t[1]=3*(G(e)-1)})),k("D",["DD",2],"Do","date"),F("date","D"),V("date",9),de("D",re),de("DD",re,Q),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),be(["D","DD"],2),be("Do",(function(e,t){t[2]=G(e.match(re)[0])}));var lr=$("Date",!0);k("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),V("dayOfYear",4),de("DDD",ie),de("DDDD",J),be(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=G(e)})),k("m",["mm",2],0,"minute"),F("minute","m"),V("minute",14),de("m",re),de("mm",re,Q),be(["m","mm"],4);var cr=$("Minutes",!1);k("s",["ss",2],0,"second"),F("second","s"),V("second",15),de("s",re),de("ss",re,Q),be(["s","ss"],5);var gr,fr,dr=$("Seconds",!1);for(k("S",0,0,(function(){return~~(this.millisecond()/100)})),k(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),k(0,["SSS",3],0,"millisecond"),k(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),k(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),k(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),k(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),k(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),k(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),V("millisecond",16),de("S",ie,Z),de("SS",ie,Q),de("SSS",ie,J),gr="SSSS";gr.length<=9;gr+="S")de(gr,ue);function pr(e,t){t[6]=G(1e3*("0."+e))}for(gr="S";gr.length<=9;gr+="S")be(gr,pr);fr=$("Milliseconds",!1),k("z",0,0,"zoneAbbr"),k("zz",0,0,"zoneName");var hr=_.prototype;function mr(e){return e}hr.add=Gt,hr.calendar=function(e,t){1===arguments.length&&(qt(arguments[0])?(e=arguments[0],t=void 0):Xt(arguments[0])&&(t=arguments[0],e=void 0));var r=e||Ot(),o=Dt(r,this).startOf("day"),i=n.calendarFormat(this,o)||"sameElse",a=t&&(C(t[i])?t[i].call(this,r):t[i]);return this.format(a||this.localeData().calendar(i,this,Ot(r)))},hr.clone=function(){return new _(this)},hr.diff=function(e,t,r){var n,o,i;if(!this.isValid())return NaN;if(!(n=Dt(e,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=Zt(this,n)/12;break;case"month":i=Zt(this,n);break;case"quarter":i=Zt(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-o)/864e5;break;case"week":i=(this-n-o)/6048e5;break;default:i=this-n}return r?i:z(i)},hr.endOf=function(e){var t,r;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?nr:rr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}return this._d.setTime(t),n.updateOffset(this,!0),this},hr.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=D(this,e);return this.localeData().postformat(t)},hr.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Ot(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hr.fromNow=function(e){return this.from(Ot(),e)},hr.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Ot(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hr.toNow=function(e){return this.to(Ot(),e)},hr.get=function(e){return C(this[e=B(e)])?this[e]():this},hr.invalidAt=function(){return p(this).overflow},hr.isAfter=function(e,t){var r=S(e)?e:Ot(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()9999?D(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",D(r,"Z")):D(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",o="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(hr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),hr.toJSON=function(){return this.isValid()?this.toISOString():null},hr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hr.unix=function(){return Math.floor(this.valueOf()/1e3)},hr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hr.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hr.isLocal=function(){return!!this.isValid()&&!this._isUTC},hr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hr.isUtc=Ut,hr.isUTC=Ut,hr.zoneAbbr=function(){return this._isUTC?"UTC":""},hr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hr.dates=w("dates accessor is deprecated. Use date instead.",lr),hr.months=w("months accessor is deprecated. Use month instead",je),hr.years=w("years accessor is deprecated. Use year instead",Me),hr.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),hr.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=wt(t))._a?(e=t._isUTC?d(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(n=0;n0):this._isDSTShifted=!1,this._isDSTShifted}));var yr=j.prototype;function br(e,t,r,n){var o=st(),i=d().set(n,t);return o[r](i,e)}function vr(e,t,r){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return br(e,t,r,"month");var n,o=[];for(n=0;n<12;n++)o[n]=br(e,n,r,"month");return o}function _r(e,t,r,n){"boolean"===typeof e?(l(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,l(t)&&(r=t,t=void 0),t=t||"");var o,i=st(),a=e?i._week.dow:0,s=[];if(null!=r)return br(t,(r+a)%7,n,"day");for(o=0;o<7;o++)s[o]=br(t,(o+a)%7,n,"day");return s}yr.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return C(n)?n.call(t,r):n},yr.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yr.invalidDate=function(){return this._invalidDate},yr.ordinal=function(e){return this._ordinal.replace("%d",e)},yr.preparse=mr,yr.postformat=mr,yr.relativeTime=function(e,t,r,n){var o=this._relativeTime[r];return C(o)?o(e,t,r,n):o.replace(/%d/i,e)},yr.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return C(r)?r(t):r.replace(/%s/i,t)},yr.set=function(e){var t,r;for(r in e)a(e,r)&&(C(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yr.eras=function(e,t){var r,o,i,a=this._eras||st("en")._eras;for(r=0,o=a.length;r=0)return u[n]},yr.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*r},yr.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||ir.call(this),e?this._erasAbbrRegex:this._erasRegex},yr.erasNameRegex=function(e){return a(this,"_erasNameRegex")||ir.call(this),e?this._erasNameRegex:this._erasRegex},yr.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||ir.call(this),e?this._erasNarrowRegex:this._erasRegex},yr.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},yr.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yr.monthsParse=function(e,t,r){var n,o,i;if(this._monthsParseExact)return Ce.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=d([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},yr.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||xe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ae),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yr.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||xe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yr.week=function(e){return Le(e,this._week.dow,this._week.doy).week},yr.firstDayOfYear=function(){return this._week.doy},yr.firstDayOfWeek=function(){return this._week.dow},yr.weekdays=function(e,t){var r=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(r,this._week.dow):e?r[e.day()]:r},yr.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yr.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yr.weekdaysParse=function(e,t,r){var n,o,i;if(this._weekdaysParseExact)return Ge.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=d([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},yr.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ye),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yr.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=w("moment.lang is deprecated. Use moment.locale instead.",it),n.langData=w("moment.langData is deprecated. Use moment.localeData instead.",st);var Sr=Math.abs;function Er(e,t,r,n){var o=Ht(t,r);return e._milliseconds+=n*o._milliseconds,e._days+=n*o._days,e._months+=n*o._months,e._bubble()}function wr(e){return e<0?Math.floor(e):Math.ceil(e)}function Tr(e){return 4800*e/146097}function Or(e){return 146097*e/4800}function Ar(e){return function(){return this.as(e)}}var Cr=Ar("ms"),Rr=Ar("s"),jr=Ar("m"),xr=Ar("h"),Nr=Ar("d"),Mr=Ar("w"),Ir=Ar("M"),Pr=Ar("Q"),kr=Ar("y");function Dr(e){return function(){return this.isValid()?this._data[e]:NaN}}var Lr=Dr("milliseconds"),Ur=Dr("seconds"),Fr=Dr("minutes"),Br=Dr("hours"),Hr=Dr("days"),Wr=Dr("months"),Vr=Dr("years"),Yr=Math.round,zr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gr(e,t,r,n,o){return o.relativeTime(t||1,!!r,e,n)}var $r=Math.abs;function Kr(e){return(e>0)-(e<0)||+e}function qr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,o,i,a,s,u=$r(this._milliseconds)/1e3,l=$r(this._days),c=$r(this._months),g=this.asSeconds();return g?(e=z(u/60),t=z(e/60),u%=60,e%=60,r=z(c/12),c%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",o=g<0?"-":"",i=Kr(this._months)!==Kr(g)?"-":"",a=Kr(this._days)!==Kr(g)?"-":"",s=Kr(this._milliseconds)!==Kr(g)?"-":"",o+"P"+(r?i+r+"Y":"")+(c?i+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+n+"S":"")):"P0D"}var Xr=xt.prototype;return Xr.isValid=function(){return this._isValid},Xr.abs=function(){var e=this._data;return this._milliseconds=Sr(this._milliseconds),this._days=Sr(this._days),this._months=Sr(this._months),e.milliseconds=Sr(e.milliseconds),e.seconds=Sr(e.seconds),e.minutes=Sr(e.minutes),e.hours=Sr(e.hours),e.months=Sr(e.months),e.years=Sr(e.years),this},Xr.add=function(e,t){return Er(this,e,t,1)},Xr.subtract=function(e,t){return Er(this,e,t,-1)},Xr.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+Tr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Or(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},Xr.asMilliseconds=Cr,Xr.asSeconds=Rr,Xr.asMinutes=jr,Xr.asHours=xr,Xr.asDays=Nr,Xr.asWeeks=Mr,Xr.asMonths=Ir,Xr.asQuarters=Pr,Xr.asYears=kr,Xr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Xr._bubble=function(){var e,t,r,n,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*wr(Or(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=z(i/1e3),u.seconds=e%60,t=z(e/60),u.minutes=t%60,r=z(t/60),u.hours=r%24,a+=z(r/24),o=z(Tr(a)),s+=o,a-=wr(Or(o)),n=z(s/12),s%=12,u.days=a,u.months=s,u.years=n,this},Xr.clone=function(){return Ht(this)},Xr.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Xr.milliseconds=Lr,Xr.seconds=Ur,Xr.minutes=Fr,Xr.hours=Br,Xr.days=Hr,Xr.weeks=function(){return z(this.days()/7)},Xr.months=Wr,Xr.years=Vr,Xr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,o=!1,i=zr;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},zr,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=this.localeData(),n=function(e,t,r,n){var o=Ht(e).abs(),i=Yr(o.as("s")),a=Yr(o.as("m")),s=Yr(o.as("h")),u=Yr(o.as("d")),l=Yr(o.as("M")),c=Yr(o.as("w")),g=Yr(o.as("y")),f=i<=r.ss&&["s",i]||i0,f[4]=n,Gr.apply(null,f)}(this,!o,i,r),o&&(n=r.pastFuture(+this,n)),r.postformat(n)},Xr.toISOString=qr,Xr.toString=qr,Xr.toJSON=qr,Xr.locale=Qt,Xr.localeData=er,Xr.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qr),Xr.lang=Jt,k("X",0,0,"unix"),k("x",0,0,"valueOf"),de("x",le),de("X",/[+-]?\d+(\.\d{1,3})?/),be("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),be("x",(function(e,t,r){r._d=new Date(G(e))})),n.version="2.26.0",t=Ot,n.fn=hr,n.min=function(){var e=[].slice.call(arguments,0);return Rt("isBefore",e)},n.max=function(){var e=[].slice.call(arguments,0);return Rt("isAfter",e)},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(e){return Ot(1e3*e)},n.months=function(e,t){return vr(e,t,"months")},n.isDate=c,n.locale=it,n.invalid=m,n.duration=Ht,n.isMoment=S,n.weekdays=function(e,t,r){return _r(e,t,r,"weekdays")},n.parseZone=function(){return Ot.apply(null,arguments).parseZone()},n.localeData=st,n.isDuration=Nt,n.monthsShort=function(e,t){return vr(e,t,"monthsShort")},n.weekdaysMin=function(e,t,r){return _r(e,t,r,"weekdaysMin")},n.defineLocale=at,n.updateLocale=function(e,t){if(null!=t){var r,n,o=Je;null!=et[e]&&null!=et[e].parentLocale?et[e].set(R(et[e]._config,t)):(null!=(n=ot(e))&&(o=n._config),t=R(o,t),null==n&&(t.abbr=e),(r=new j(t)).parentLocale=et[e],et[e]=r),it(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===it()&&it(e)):null!=et[e]&&delete et[e]);return et[e]},n.locales=function(){return T(et)},n.weekdaysShort=function(e,t,r){return _r(e,t,r,"weekdaysShort")},n.normalizeUnits=B,n.relativeTimeRounding=function(e){return void 0===e?Yr:"function"===typeof e&&(Yr=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==zr[e]&&(void 0===t?zr[e]:(zr[e]=t,"s"===e&&(zr.ss=t-1),!0))},n.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},n.prototype=hr,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}).call(this,r(99)(e))},,function(e,t,r){"use strict";var n=r(51),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r=0;f--){var d=a[f];"."===d?i(a,f):".."===d?(i(a,f),g++):g&&(i(a,f),g--)}if(!l)for(;g--;g)a.unshift("..");!l||""===a[0]||a[0]&&o(a[0])||a.unshift("");var p=a.join("/");return r&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}));if("object"===typeof t||"object"===typeof r){var n=s(t),o=s(r);return n!==t||o!==r?e(n,o):Object.keys(Object.assign({},t,r)).every((function(n){return e(t[n],r[n])}))}return!1},l=r(23);function c(e){return"/"===e.charAt(0)?e:"/"+e}function g(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&"?"!==r&&(o+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o}function h(e,t,r,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e)).state=t:(void 0===(i=Object(n.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return r&&(i.key=r),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,o){if(null!=e){var i="function"===typeof e?e(t,r):e;"string"===typeof i?"function"===typeof n?n(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;nt?r.splice(t,r.length-t,n):r.push(n),g({action:"PUSH",location:n,index:t,entries:r})}}))},replace:function(e,t){var n=h(e,t,f(),_.location);c.confirmTransitionTo(n,"REPLACE",r,(function(e){e&&(_.entries[_.index]=n,g({action:"REPLACE",location:n}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return f})),r.d(t,"d",(function(){return h})),r.d(t,"e",(function(){return g}));var n=r(24);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function i(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function a(){for(var e=[],t=0;t Promise))`.","See if using `DarkReader.setFetchMethod(window.fetch)`","before `DarkReader.enable()` works."].join(" ")))]}))}))},d=f;function p(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,d(e)];case 1:return[2,t.sent()]}}))}))}window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});var h=new Set;function m(){for(var e=[],t=0;t0;)n.splice(r-1,2);return n}function A(e,t){if(t.match(/^.*?\/\//)||t.match(/^data\:/))return t.startsWith("//")?t.includes("..")?""+location.protocol+O(e,t).join("/"):""+location.protocol+t:t;var r=T(e);if(t.startsWith("/"))return T(r.protocol+"//"+r.host+t).href;var n=r.pathname.split("/");return n[n.length-1].match(/\.[a-z]+$/i)&&n.pop(),n=O(e,t),T(r.protocol+"//"+r.host+"/"+n.join("/")).href}function C(){for(var e=[],t=0;t=10){if(u-s1e3)return!0;for(var t=0,r=0;r1e3)return!0;return!1}(t))!i||z()?n.forEach((function(t){return(0,t.onHugeMutations)(e)})):a||($(o=function(){return n.forEach((function(t){return(0,t.onHugeMutations)(e)}))}),a=!0),i=!0;else{var r=function(e){var t=new Set,r=new Set,n=new Set;e.forEach((function(e){E(e.addedNodes,(function(e){e instanceof Element&&e.isConnected&&t.add(e)})),E(e.removedNodes,(function(e){e instanceof Element&&(e.isConnected?n.add(e):r.add(e))}))})),n.forEach((function(e){return t.delete(e)}));var o=[],i=[];return t.forEach((function(e){t.has(e.parentElement)&&o.push(e)})),r.forEach((function(e){r.has(e.parentElement)&&i.push(e)})),o.forEach((function(e){return t.delete(e)})),i.forEach((function(e){return r.delete(e)})),{additions:t,moves:n,deletions:r}}(t);n.forEach((function(e){return(0,e.onMinorMutations)(r)}))}}))).observe(e,{childList:!0,subtree:!0}),q.set(e,r),n=new Set,X.set(r,n)}return n.add(t),{disconnect:function(){n.delete(t),o&&K(o),0===n.size&&(r.disconnect(),X.delete(r),q.delete(e))}}}function Q(e){var t=e.h,r=e.s,n=e.l,o=e.a,a=void 0===o?1:o;if(0===r){var s=i([n,n,n].map((function(e){return Math.round(255*e)})),3),u=s[0],l=s[1];return{r:u,g:s[2],b:l,a:a}}var c=(1-Math.abs(2*n-1))*r,g=c*(1-Math.abs(t/60%2-1)),f=n-c/2,d=i((t<60?[c,g,0]:t<120?[g,c,0]:t<180?[0,c,g]:t<240?[0,g,c]:t<300?[g,0,c]:[c,0,g]).map((function(e){return Math.round(255*(e+f))})),3);return{r:d[0],g:d[1],b:d[2],a:a}}function J(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=void 0===o?1:o,a=t/255,s=r/255,u=n/255,l=Math.max(a,s,u),c=Math.min(a,s,u),g=l-c,f=(l+c)/2;if(0===g)return{h:0,s:0,l:f,a:i};var d=60*(l===a?(s-u)/g%6:l===s?(u-a)/g+2:(a-s)/g+4);return d<0&&(d+=360),{h:d,s:g/(1-Math.abs(2*f-1)),l:f,a:i}}function ee(e,t){void 0===t&&(t=0);var r=e.toFixed(t);if(0===t)return r;var n=r.indexOf(".");if(n>=0){var o=r.match(/0+$/);if(o)return o.index===n+1?r.substring(0,n):r.substring(0,o.index)}return r}function te(e){var t=e.h,r=e.s,n=e.l,o=e.a;return null!=o&&o<1?"hsla("+ee(t)+", "+ee(100*r)+"%, "+ee(100*n)+"%, "+ee(o,2)+")":"hsl("+ee(t)+", "+ee(100*r)+"%, "+ee(100*n)+"%)"}var re=/^rgba?\([^\(\)]+\)$/,ne=/^hsla?\([^\(\)]+\)$/,oe=/^#[0-9a-f]+$/i;function ie(e){var t=e.trim().toLowerCase();if(t.match(re))return function(e){var t=i(ae(e,se,ue,le),4),r=t[0],n=t[1],o=t[2],a=t[3];return{r:r,g:n,b:o,a:void 0===a?1:a}}(t);if(t.match(ne))return function(e){var t=i(ae(e,ce,ge,fe),4),r=t[0],n=t[1],o=t[2],a=t[3];return Q({h:r,s:n,l:o,a:void 0===a?1:a})}(t);if(t.match(oe))return function(e){var t=e.substring(1);switch(t.length){case 3:case 4:var r=i([0,1,2].map((function(e){return parseInt(""+t[e]+t[e],16)})),3),n=r[0],o=r[1],a=r[2],s=3===t.length?1:parseInt(""+t[3]+t[3],16)/255;return{r:n,g:o,b:a,a:s};case 6:case 8:var u=i([0,2,4].map((function(e){return parseInt(t.substring(e,e+2),16)})),3);return n=u[0],o=u[1],a=u[2],s=6===t.length?1:parseInt(t.substring(6,8),16)/255,{r:n,g:o,b:a,a:s}}throw new Error("Unable to parse "+e)}(t);if(de.has(t))return function(e){var t=de.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}(t);if(pe.has(t))return function(e){var t=pe.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}(t);if("transparent"===e)return{r:0,g:0,b:0,a:0};throw new Error("Unable to parse "+e)}function ae(e,t,r,n){var o=e.split(t).filter((function(e){return e})),a=Object.entries(n);return o.map((function(e){return e.trim()})).map((function(e,t){var n,o=a.find((function(t){var r=i(t,1)[0];return e.endsWith(r)}));return n=o?parseFloat(e.substring(0,e.length-o[0].length))/o[1]*r[t]:parseFloat(e),r[t]>1?Math.round(n):n}))}var se=/rgba?|\(|\)|\/|,|\s/gi,ue=[255,255,255,1],le={"%":100},ce=/hsla?|\(|\)|\/|,|\s/gi,ge=[360,1,1,1],fe={"%":100,deg:360,rad:2*Math.PI,turn:1},de=new Map(Object.entries({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074})),pe=new Map(Object.entries({ActiveBorder:3906044,ActiveCaption:0,AppWorkspace:11184810,Background:6513614,ButtonFace:16777215,ButtonHighlight:15329769,ButtonShadow:10461343,ButtonText:0,CaptionText:0,GrayText:8355711,Highlight:11720703,HighlightText:0,InactiveBorder:16777215,InactiveCaption:16777215,InactiveCaptionText:0,InfoBackground:16514245,InfoText:0,Menu:16185078,MenuText:16777215,Scrollbar:11184810,ThreeDDarkShadow:0,ThreeDFace:12632256,ThreeDHighlight:16777215,ThreeDLightShadow:16777215,ThreeDShadow:0,Window:15527148,WindowFrame:11184810,WindowText:0,"-webkit-focus-ring-color":15046400}).map((function(e){var t=i(e,2),r=t[0],n=t[1];return[r.toLowerCase(),n]})));function he(e,t,r,n,o){return(e-t)*(o-n)/(r-t)+n}function me(e,t,r){return Math.min(r,Math.max(t,e))}function ye(e,t){for(var r=[],n=0;n=0}))).map((function(e){var t=i(e,2);return t[0]+":"+t[1]})).join(";");if(n.has(o))return n.get(o);var a=Q(r(J(e))),s=a.r,u=a.g,l=a.b,c=a.a,g=i(function(e,t){var r=i(e,3),n=ye(t,[[r[0]/255],[r[1]/255],[r[2]/255],[1],[1]]);return[0,1,2].map((function(e){return me(Math.round(255*n[e][0]),0,255)}))}([s,u,l],ve(t)),3),f=g[0],d=g[1],p=g[2],h=1===c?function(e){var t=e.r,r=e.g,n=e.b,o=e.a;return"#"+(null!=o&&o<1?[t,r,n,Math.round(255*o)]:[t,r,n]).map((function(e){return(e<16?"0":"")+e.toString(16)})).join("")}({r:f,g:d,b:p}):function(e){var t=e.r,r=e.g,n=e.b,o=e.a;return null!=o&&o<1?"rgba("+ee(t)+", "+ee(r)+", "+ee(n)+", "+ee(o,2)+")":"rgb("+ee(t)+", "+ee(r)+", "+ee(n)+")"}({r:f,g:d,b:p,a:c});return n.set(o,h),h}function Te(e){return e}function Oe(e){var t=e.h,r=e.s,n=e.l,o=e.a,i=he(n,0,1,0,.9),a=t,s=r;return(n<.2||n>.8||r<.36)&&(s=n<.4?he(n,0,.4,.16,0):he(n,.4,1,0,.16),a=n<.4?205:40),{h:a,s:s,l:i,a:o}}function Ae(e){var t=e.h,r=e.s,n=e.l,o=e.a,i=he(r,0,1,.25,.4),a=t,s=r;return(n>=.8&&t>200&&t<280||r<.12)&&(s=.05,a=205),{h:a,s:s,l:n205&&t<=245,a=he(r,0,1,i?he(t,205,245,.7,.7):.7,.6),s=n<.5?he(n,0,.5,.9,a):n.7&&y++);var b=i*a,v=b-h;return{isDark:m/v>=.7,isLight:y/v>=.7,isTransparent:h/b>=.1,isLarge:n>=48e4}}(o),[2,t({src:e,dataURL:r,width:o.naturalWidth,height:o.naturalHeight},i)]}}))}))}function He(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return function(e){return e.match(/^(.*?\/{2,3})?(.+?)(\/|$)/)[2]}(e)!==location.host?[3,2]:[4,c(e)];case 1:return[2,t.sent()];case 2:return[4,Fe({url:e,responseType:"data-url"})];case 3:return[2,t.sent()]}}))}))}function We(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=function(){return r("Unable to load image "+e)},n.src=e}))]}))}))}chrome.runtime.onMessage.addListener((function(e){var t=e.type,r=e.data,n=e.error,o=e.id;if("fetch-response"===t){var i=Le.get(o),a=Ue.get(o);Le.delete(o),Ue.delete(o),n?a&&a(n):i&&i(r)}}));var Ve=new Set;function Ye(e,t){for(var r=e.dataURL,n=e.width,o=e.height,i=['',"",'','',"","",'',""].join(""),a=new Uint8Array(i.length),s=0;s=0&&"-webkit-print-color-adjust"!==e||"fill"===e||"stroke"===e){if(l=function(e,t){if(qe.has(t.toLowerCase()))return t;try{var r=Ze(t);return e.indexOf("background")>=0?function(e){return Ce(r,e)}:e.indexOf("border")>=0||e.indexOf("outline")>=0?function(e){return Ne(r,e)}:function(e){return je(r,e)}}catch(n){return R("Color parse error",n),null}}(e,o))return{property:e,value:l,important:s,sourceValue:u}}else if("background-image"===e||"list-style-image"===e){if(l=function(e,o,i,a){var s=this;try{var u=be(Je,o),l=be(I,o);if(0===l.length&&0===u.length)return o;var c=function(e){var t=0;return e.map((function(e){var r=o.indexOf(e,t);return t=r+e.length,{match:e,index:r}}))},g=c(l).map((function(e){return t({type:"url"},e)})).concat(c(u).map((function(e){return t({type:"gradient"},e)}))).sort((function(e,t){return e.index-t.index})),f=function(e,r){var n,o=e.isDark,i=e.isLight,a=e.isTransparent,s=e.isLarge,u=e.width;return o&&a&&1===r.mode&&!s&&u>2?(C("Inverting dark image "+e.src),n='url("'+Ye(e,t(t({},r),{sepia:me(r.sepia+10,0,100)}))+'")'):i&&!a&&1===r.mode?s?n="none":(C("Dimming light image "+e.src),n='url("'+Ye(e,r)+'")'):0===r.mode&&i&&!s?(C("Applying filter to image "+e.src),n='url("'+Ye(e,t(t({},r),{brightness:me(r.brightness-10,5,200),sepia:me(r.sepia+10,0,100)}))+'")'):n=null,n},d=[],p=0;return g.forEach((function(e,t){var u=e.match,l=e.type,c=e.index,h=p,m=c+u.length;p=m,d.push((function(){return o.substring(h,c)})),d.push("url"===l?function(e){var t=k(e);if(i.parentStyleSheet.href){var o=D(i.parentStyleSheet.href);t=A(o,t)}else t=i.parentStyleSheet.ownerNode&&i.parentStyleSheet.ownerNode.baseURI?A(i.parentStyleSheet.ownerNode.baseURI,t):A(location.origin,t);var u='url("'+t+'")';return function(e){return r(s,void 0,void 0,(function(){var r,o;return n(this,(function(n){switch(n.label){case 0:return et.has(t)?(r=et.get(t),[3,7]):[3,1];case 1:return n.trys.push([1,6,,7]),tt.has(t)?(o=tt.get(t),[4,new Promise((function(e){return o.push(e)}))]):[3,3];case 2:return(r=n.sent())?[3,5]:[2,null];case 3:return tt.set(t,[]),[4,Be(t)];case 4:r=n.sent(),et.set(t,r),tt.get(t).forEach((function(e){return e(r)})),tt.delete(t),n.label=5;case 5:return a()?[2,null]:[3,7];case 6:return R(n.sent()),tt.has(t)&&(tt.get(t).forEach((function(e){return e(null)})),tt.delete(t)),[2,u];case 7:return[2,f(r,e)||u]}}))}))}}(u):function(e){var t=e.match(/^(.*-gradient)\((.*)\)$/),r=t[1],n=t[2],o=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,i=be(/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?[^\(\),]*),?/g,n,1).map((function(e){var t=Qe(e=e.trim());if(t)return function(e){return Me(t,e)};var r=e.lastIndexOf(" ");if(t=Qe(e.substring(0,r)))return function(n){return Me(t,n)+" "+e.substring(r+1)};var n=e.match(o);return n&&(t=Qe(n[3]))?function(e){return n[1]+"("+(n[2]?n[2]+", ":"")+Me(t,e)+")"}:function(){return e}}));return function(e){return r+"("+i.map((function(t){return t(e)})).join(", ")+")"}}(u)),t===g.length-1&&d.push((function(){return o.substring(m)}))})),function(e){var t=d.map((function(t){return t(e)}));return t.some((function(e){return e instanceof Promise}))?Promise.all(t).then((function(e){return e.join("")})):t.join("")}}catch(h){return R("Unable to parse gradient "+o,h),null}}(0,o,i,a))return{property:e,value:l,important:s,sourceValue:u}}else if(e.indexOf("shadow")>=0){var l;if(l=function(e,t){try{var r=0,n=be(/(^|\s)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,t,2),o=n.map((function(e,o){var i=r,a=t.indexOf(e,r),s=a+e.length;r=s;var u=Qe(e);return u?function(e){return""+t.substring(i,a)+function(e,t){return Ce(e,t)}(u,e)+(o===n.length-1?t.substring(s):"")}:function(){return t.substring(i,s)}}));return function(e){return o.map((function(t){return t(e)})).join("")}}catch(i){return R("Unable to parse shadow "+t,i),null}}(0,o))return{property:e,value:l,important:s,sourceValue:u}}return null}function $e(e,r){var n=[];return r||(n.push("html {"),n.push(" background-color: "+Ce({r:255,g:255,b:255},e)+" !important;"),n.push("}")),n.push((r?"":"html, body, ")+"input, textarea, select, button {"),n.push(" background-color: "+Ce({r:255,g:255,b:255},e)+";"),n.push("}"),n.push("html, body, input, textarea, select, button {"),n.push(" border-color: "+Ne({r:76,g:76,b:76},e)+";"),n.push(" color: "+je({r:0,g:0,b:0},e)+";"),n.push("}"),n.push("a {"),n.push(" color: "+je({r:0,g:64,b:255},e)+";"),n.push("}"),n.push("table {"),n.push(" border-color: "+Ne({r:128,g:128,b:128},e)+";"),n.push("}"),n.push("::placeholder {"),n.push(" color: "+je({r:169,g:169,b:169},e)+";"),n.push("}"),n.push("input:-webkit-autofill,"),n.push("textarea:-webkit-autofill,"),n.push("select:-webkit-autofill {"),n.push(" background-color: "+Ce({r:250,g:255,b:189},e)+" !important;"),n.push(" color: "+je({r:0,g:0,b:0},e)+" !important;"),n.push("}"),e.scrollbarColor&&n.push(function(e){var r,n,o,i,a,s,u=[];if("auto"===e.scrollbarColor)r=Ce({r:241,g:241,b:241},e),n=je({r:96,g:96,b:96},e),o=Ce({r:176,g:176,b:176},e),i=Ce({r:144,g:144,b:144},e),a=Ce({r:96,g:96,b:96},e),s=Ce({r:255,g:255,b:255},e);else{var l=J(ie(e.scrollbarColor)),c=l.l>.5,g=function(e){return t(t({},l),{l:me(l.l+e,0,1)})},f=function(e){return t(t({},l),{l:me(l.l-e,0,1)})};r=te(f(.4)),n=te(c?f(.4):g(.4)),o=te(l),i=te(g(.1)),a=te(g(.2))}return u.push("::-webkit-scrollbar {"),u.push(" background-color: "+r+";"),u.push(" color: "+n+";"),u.push("}"),u.push("::-webkit-scrollbar-thumb {"),u.push(" background-color: "+o+";"),u.push("}"),u.push("::-webkit-scrollbar-thumb:hover {"),u.push(" background-color: "+i+";"),u.push("}"),u.push("::-webkit-scrollbar-thumb:active {"),u.push(" background-color: "+a+";"),u.push("}"),u.push("::-webkit-scrollbar-corner {"),u.push(" background-color: "+s+";"),u.push("}"),u.push("* {"),u.push(" scrollbar-color: "+r+" "+o+";"),u.push("}"),u.join("\n")}(e)),e.selectionColor&&n.push(function(e){var t,r,n=[];if("auto"===e.selectionColor)t=Ce({r:0,g:96,b:212},e),r=je({r:255,g:255,b:255},e);else{var o=J(ie(e.selectionColor));t=e.selectionColor,r=o.l<.5?"#FFF":"#000"}return["::selection","::-moz-selection"].forEach((function(e){n.push(e+" {"),n.push(" background-color: "+t+" !important;"),n.push(" color: "+r+" !important;"),n.push("}")})),n.join("\n")}(e)),n.join("\n")}function Ke(e,t){var r=t.strict,n=[];return n.push("html, body, "+(r?"body :not(iframe)":"body > :not(iframe)")+" {"),n.push(" background-color: "+Ce({r:255,g:255,b:255},e)+" !important;"),n.push(" border-color: "+Ne({r:64,g:64,b:64},e)+" !important;"),n.push(" color: "+je({r:0,g:0,b:0},e)+" !important;"),n.push("}"),n.join("\n")}var qe=new Set(["inherit","transparent","initial","currentcolor","none","unset"]),Xe=new Map;function Ze(e){if(e=e.trim(),Xe.has(e))return Xe.get(e);var t=ie(e);return Xe.set(e,t),t}function Qe(e){try{return Ze(e)}catch(t){return null}}var Je=/[\-a-z]+gradient\(([^\(\)]*(\(([^\(\)]*(\(.*?\)))*[^\(\)]*\))){0,15}[^\(\)]*\)/g,et=new Map,tt=new Map;function rt(){Xe.clear(),Ee.clear(),et.clear(),ze(),tt.clear()}var nt={"background-color":{customProp:"--darkreader-inline-bgcolor",cssProp:"background-color",dataAttr:"data-darkreader-inline-bgcolor",store:new WeakSet},"background-image":{customProp:"--darkreader-inline-bgimage",cssProp:"background-image",dataAttr:"data-darkreader-inline-bgimage",store:new WeakSet},"border-color":{customProp:"--darkreader-inline-border",cssProp:"border-color",dataAttr:"data-darkreader-inline-border",store:new WeakSet},"border-bottom-color":{customProp:"--darkreader-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-darkreader-inline-border-bottom",store:new WeakSet},"border-left-color":{customProp:"--darkreader-inline-border-left",cssProp:"border-left-color",dataAttr:"data-darkreader-inline-border-left",store:new WeakSet},"border-right-color":{customProp:"--darkreader-inline-border-right",cssProp:"border-right-color",dataAttr:"data-darkreader-inline-border-right",store:new WeakSet},"border-top-color":{customProp:"--darkreader-inline-border-top",cssProp:"border-top-color",dataAttr:"data-darkreader-inline-border-top",store:new WeakSet},"box-shadow":{customProp:"--darkreader-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-darkreader-inline-boxshadow",store:new WeakSet},color:{customProp:"--darkreader-inline-color",cssProp:"color",dataAttr:"data-darkreader-inline-color",store:new WeakSet},fill:{customProp:"--darkreader-inline-fill",cssProp:"fill",dataAttr:"data-darkreader-inline-fill",store:new WeakSet},stroke:{customProp:"--darkreader-inline-stroke",cssProp:"stroke",dataAttr:"data-darkreader-inline-stroke",store:new WeakSet},"outline-color":{customProp:"--darkreader-inline-outline",cssProp:"outline-color",dataAttr:"data-darkreader-inline-outline",store:new WeakSet}},ot=Object.values(nt),it=["style","fill","stroke","bgcolor","color"],at=it.map((function(e){return"["+e+"]"})).join(", ");function st(){return ot.map((function(e){var t=e.dataAttr,r=e.customProp;return["["+t+"] {"," "+e.cssProp+": var("+r+") !important;","}"].join("\n")})).join("\n")}var ut=new Map,lt=new Map;function ct(e,t,r){ut.has(e)&&(ut.get(e).disconnect(),lt.get(e).disconnect());var n=new WeakSet;function o(e){(function(e){var t=[];return e instanceof Element&&e.matches(at)&&t.push(e),(e instanceof Element||e instanceof ShadowRoot||e instanceof Document)&&w(t,e.querySelectorAll(at)),t})(e).forEach((function(e){n.has(e)||(n.add(e),t(e))})),Y(e,(function(o){n.has(e)||(n.add(e),r(o.shadowRoot),ct(o.shadowRoot,t,r))}))}var i=Z(e,{onMinorMutations:function(e){e.additions.forEach((function(e){return o(e)}))},onHugeMutations:function(){o(e)}});ut.set(e,i);var a=new MutationObserver((function(e){e.forEach((function(e){it.includes(e.attributeName)&&t(e.target),ot.filter((function(t){var r=t.store,n=t.dataAttr;return r.has(e.target)&&!e.target.hasAttribute(n)})).forEach((function(t){var r=t.dataAttr;return e.target.setAttribute(r,"")}))}))}));a.observe(e,{attributes:!0,attributeFilter:it.concat(ot.map((function(e){return e.dataAttr}))),subtree:!0}),lt.set(e,a)}var gt=new WeakMap,ft=["brightness","contrast","grayscale","sepia","mode"];function dt(e,t){return it.map((function(t){return t+'="'+e.getAttribute(t)+'"'})).concat(ft.map((function(e){return e+'="'+t[e]+'"'}))).join(" ")}function pt(e,t,r){if(dt(e,t)!==gt.get(e)){var n=new Set(Object.keys(nt));if(r.length>0&&function(e,t){for(var r=0;r32||u>32}l("fill",i?"background-color":"color",o)}e.hasAttribute("stroke")&&(o=e.getAttribute("stroke"),l("stroke",e instanceof SVGLineElement||e instanceof SVGTextElement?"border-color":"color",o)),e.style&&x(e.style,(function(e,t){"background-image"===e&&t.indexOf("url")>=0||nt.hasOwnProperty(e)&&l(e,e,t)})),e.style&&e instanceof SVGTextElement&&e.style.fill&&l("fill","color",e.style.getPropertyValue("fill")),E(n,(function(t){var r=nt[t],n=r.store,o=r.dataAttr;n.delete(e),e.removeAttribute(o)})),gt.set(e,dt(e,t))}}function l(r,o,i){var a=nt[r],s=a.customProp,u=a.dataAttr,l=Ge(o,i,null,null);if(l){var c=l.value;"function"===typeof c&&(c=c(t)),e.style.setProperty(s,c),e.hasAttribute(u)||e.setAttribute(u,""),n.delete(r)}}}var ht=null,mt=null;function yt(e,t){ht=ht||e.content;try{var r=ie(ht);e.content=Ce(r,t)}catch(n){R(n)}}function bt(e){return(e instanceof HTMLStyleElement||e instanceof SVGStyleElement||e instanceof HTMLLinkElement&&e.rel&&e.rel.toLowerCase().includes("stylesheet")&&!e.disabled)&&!e.classList.contains("darkreader")&&"print"!==e.media&&!e.classList.contains("stylus")}function vt(e,t){return void 0===t&&(t=[]),bt(e)?t.push(e):(e instanceof Element||e instanceof ShadowRoot||e===document)&&(E(e.querySelectorAll('style, link[rel*="stylesheet" i]:not([disabled])'),(function(e){return vt(e,t)})),Y(e,(function(e){return vt(e.shadowRoot,t)}))),t}var _t=function(){var e=[],t=null;function r(){for(var r;r=e.shift();)r();t=null}return{add:function(n){e.push(n),t||(t=requestAnimationFrame(r))},cancel:function(){e.splice(0),cancelAnimationFrame(t),t=null}}}();function St(e,t){for(var o=t.update,a=t.loadingStart,s=t.loadingEnd,u=[],l=e;(l=l.nextElementSibling)&&l.matches(".darkreader");)u.push(l);var c=u.find((function(e){return e.matches(".darkreader--cors")}))||null,g=u.find((function(e){return e.matches(".darkreader--sync")}))||null,f=null,d=null,p=!1;function h(){return p}var m=new MutationObserver((function(){o()})),y={attributes:!0,childList:!0,characterData:!0};function b(){return e instanceof HTMLStyleElement&&e.textContent.trim().match(P)}function v(){return c?c.sheet.cssRules:b()?null:U()}function _(){c?(e.nextSibling!==c&&e.parentNode.insertBefore(c,e.nextSibling),c.nextSibling!==g&&e.parentNode.insertBefore(g,c.nextSibling)):e.nextSibling!==g&&e.parentNode.insertBefore(g,e.nextSibling)}var S=!1,E=!1;function w(){return r(this,void 0,void 0,(function(){var t,r,o,a,s,u,l;return n(this,(function(n){switch(n.label){case 0:if(!(e instanceof HTMLLinkElement))return[3,7];if(o=i(L(),2),a=o[0],(s=o[1])&&R(s),!(a&&!s||(d=s,d&&d.message&&d.message.includes("loading"))))return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(g=e,new Promise((function(e,t){var r=function(){g.removeEventListener("load",n),g.removeEventListener("error",o)},n=function(){r(),e()},o=function(){r(),t("Link loading failed "+g.href)};g.addEventListener("load",n),g.addEventListener("error",o)})))];case 2:return n.sent(),[3,4];case 3:return R(n.sent()),E=!0,[3,4];case 4:if(p)return[2,null];l=i(L(),2),a=l[0],(s=l[1])&&R(s),n.label=5;case 5:return null!=a?[2,a]:[4,Et(e.href)];case 6:return t=n.sent(),r=D(e.href),p?[2,null]:[3,8];case 7:if(!b())return[2,null];t=e.textContent.trim(),r=D(location.href),n.label=8;case 8:if(!t)return[3,13];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,wt(t,r)];case 10:return u=n.sent(),c=function(e,t){if(!t)return null;var r=document.createElement("style");return r.classList.add("darkreader"),r.classList.add("darkreader--cors"),r.media="screen",r.textContent=t,e.parentNode.insertBefore(r,e.nextSibling),r.sheet.disabled=!0,r}(e,u),[3,12];case 11:return R(n.sent()),[3,12];case 12:if(c)return f=V(c,"prev-sibling"),[2,c.sheet.cssRules];n.label=13;case 13:return[2,null]}var g,d}))}))}var T=0,O=new Map,A=new Map,C=null,M=!1,I=null,k=null;function L(){try{return null==e.sheet?[null,null]:[e.sheet.cssRules,null]}catch(t){return[null,t]}}function U(){var e=i(L(),2),t=e[0],r=e[1];return r?(R(r),null):t}function F(){var e=U();e&&(I=e.length)}function H(){F(),Y(),function e(){(function(){var e=U();return e&&e.length!==I})()&&(F(),o()),k=requestAnimationFrame(e)}()}function Y(){cancelAnimationFrame(k)}function z(){m.disconnect(),p=!0,f&&f.stop(),d&&d.stop(),Y()}var G=0;return{details:function(){var e=v();return e?{variables:function(e){var t=new Map;return e&&j(e,(function(e){e.style&&x(e.style,(function(e,r){N(e)&&t.set(e,r)}))})),t}(e)}:(S||E||(S=!0,a(),w().then((function(e){S=!1,s(),e&&o()})).catch((function(e){R(e),S=!1,s()}))),null)},render:function(t,r){var n=v();if(n){p=!1;var o=0===A.size,i=new Set(A.keys()),a=function(e){return["mode","brightness","contrast","grayscale","sepia"].map((function(t){return t+":"+e[t]})).join(";")}(t),s=a!==C,u=[];if(j(n,(function(t){var n=t.cssText,a=!1;i.delete(n),O.has(n)||(O.set(n,n),a=!0);var s=null,l=null;if(r.size>0||n.includes("var(")){var c=B(n,r);O.get(n)!==c&&(O.set(n,c),a=!0,(s=document.createElement("style")).classList.add("darkreader"),s.classList.add("darkreader--vars"),s.media="screen",s.textContent=c,e.parentNode.insertBefore(s,e.nextSibling),l=s.sheet.cssRules[0])}if(a){o=!0;var g=[],f=l||t;f&&f.style&&x(f.style,(function(e,r){var n=Ge(e,r,t,h);n&&g.push(n)}));var d=null;g.length>0&&(d={selector:t.selectorText,declarations:g},t.parentRule instanceof CSSMediaRule&&(d.media=t.parentRule.media.mediaText),u.push(d)),A.set(n,d),W(s)}else u.push(A.get(n))})),i.forEach((function(e){O.delete(e),A.delete(e)})),C=a,M||o||s){T++,M=!1;var l=[],c=new Map,f=0;u.filter((function(e){return e})).forEach((function(e){var r=e.selector,n=e.declarations,o=e.media;n.forEach((function(e){var n=e.property,i=e.value,a=e.important,s=e.sourceValue;if("function"===typeof i){var u=i(t);if(u instanceof Promise){var g=l.length,d=f++;l.push({media:o,selector:r,property:n,value:null,important:a,asyncKey:d,sourceValue:s});var h=T;u.then((function(e){e&&!p&&h===T&&(l[g].value=e,_t.add((function(){p||h!==T||function(e){var t=c.get(e),r=t.declarations,n=t.target,o=t.index;n.deleteRule(o),m(n,o,r),c.delete(e)}(d)})))}))}else l.push({media:o,selector:r,property:n,value:u,important:a,sourceValue:s})}else l.push({media:o,selector:r,property:n,value:i,important:a,sourceValue:s})}))})),function t(){var r=[];l.forEach((function(e,t){var n,o,i=0===t?null:l[t-1],a=i&&i.media===e.media,s=i&&a&&i.selector===e.selector;a?n=r[r.length-1]:(n=[],r.push(n)),s?o=n[n.length-1]:(o=[],n.push(o)),o.push(e)})),g||((g=e instanceof SVGStyleElement?document.createElementNS("http://www.w3.org/2000/svg","style"):document.createElement("style")).classList.add("darkreader"),g.classList.add("darkreader--sync"),g.media="screen"),d&&d.stop(),_(),null==g.sheet&&(g.textContent="");for(var n=g.sheet,o=n.cssRules.length-1;o>=0;o--)n.deleteRule(o);r.forEach((function(e){var t,r=e[0][0].media;r?(n.insertRule("@media "+r+" {}",n.cssRules.length),t=n.cssRules[n.cssRules.length-1]):t=n,e.forEach((function(e){var r=e.filter((function(e){return null==e.value}));r.length>0&&r.forEach((function(r){var n=r.asyncKey;return c.set(n,{declarations:e,target:t,index:t.cssRules.length})})),m(t,t.cssRules.length,e)}))})),d?d.run():d=V(g,"prev-sibling",t)}()}}function m(e,t,r){var n=r[0].selector;e.insertRule(n+" {}",t);var o=e.cssRules.item(t).style;r.forEach((function(e){var t=e.property,r=e.value,n=e.important,i=e.sourceValue;o.setProperty(t,null==r?i:r,n?"important":"")}))}},pause:z,destroy:function(){z(),W(c),W(g)},watch:function(){m.observe(e,y),e instanceof HTMLStyleElement&&H()},restore:function(){if(g)if(++G>10)R("Style sheet was moved multiple times",e);else{R("Restore style",g,e);var t=null==g.sheet||g.sheet.cssRules.length>0;_(),t&&(M=!0,F(),o())}}}}function Et(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return e.startsWith("data:")?[4,fetch(e)]:[3,3];case 1:return[4,t.sent().text()];case 2:return[2,t.sent()];case 3:return[4,Fe({url:e,responseType:"text",mimeType:"text/css"})];case 4:return[2,t.sent()]}}))}))}function wt(e,t){return r(this,void 0,void 0,(function(){var r,i,a,s,u,l,c,g,f,d;return n(this,(function(n){switch(n.label){case 0:e=function(e,t){return e.replace(I,(function(e){var r=k(e);return'url("'+A(t,r)+'")'}))}(e=function(e){return e.replace(U,"")}(e=e.replace(L,"")),t),r=be(P,e),n.label=1;case 1:n.trys.push([1,10,11,12]),i=o(r),a=i.next(),n.label=2;case 2:if(a.done)return[3,9];s=a.value,u=k(s.substring(8).replace(/;$/,"")),l=A(t,u),c=void 0,n.label=3;case 3:return n.trys.push([3,6,,7]),[4,Et(l)];case 4:return[4,wt(c=n.sent(),D(l))];case 5:return c=n.sent(),[3,7];case 6:return R(n.sent()),c="",[3,7];case 7:e=e.split(s).join(c),n.label=8;case 8:return a=i.next(),[3,2];case 9:return[3,12];case 10:return g=n.sent(),f={error:g},[3,12];case 11:try{a&&!a.done&&(d=i.return)&&d.call(i)}finally{if(f)throw f.error}return[7];case 12:return[2,e=e.trim()]}}))}))}var Tt,Ot,At=[],Ct=new Map;function Rt(e){(function(){try{return document.querySelector(":defined"),!0}catch(e){return!1}})()&&E(e.querySelectorAll(":not(:defined)"),(function(e){var t=e.tagName.toLowerCase();Ct.has(t)||(Ct.set(t,new Set),function(e){return new Promise((function(t){window.customElements&&"function"===typeof window.customElements.whenDefined?customElements.whenDefined(e).then(t):requestAnimationFrame((function r(){var n=Ct.get(e);n&&n.size>0&&(n.values().next().value.matches(":defined")?t():requestAnimationFrame(r))}))}))}(t).then((function(){if(Ot){var e=Ct.get(t);Ct.delete(t),Ot(Array.from(e))}}))),Ct.get(t).add(e)}))}function jt(e,t){xt();var r=new Set(e),n=new WeakMap,o=new WeakMap;function i(e){n.set(e,e.previousElementSibling),o.set(e,e.nextElementSibling)}function a(e){var a=e.createdStyles,s=e.removedStyles,u=e.movedStyles;a.forEach((function(e){return i(e)})),u.forEach((function(e){return i(e)})),s.forEach((function(e){return t=e,n.delete(t),void o.delete(t);var t})),a.forEach((function(e){return r.add(e)})),s.forEach((function(e){return r.delete(e)})),a.size+s.size+u.size>0&&t({created:Array.from(a),removed:Array.from(s),moved:Array.from(u),updated:[]})}function s(e){var t=e.additions,r=e.moves,n=e.deletions,o=new Set,i=new Set,s=new Set;t.forEach((function(e){return vt(e).forEach((function(e){return o.add(e)}))})),n.forEach((function(e){return vt(e).forEach((function(e){return i.add(e)}))})),r.forEach((function(e){return vt(e).forEach((function(e){return s.add(e)}))})),a({createdStyles:o,removedStyles:i,movedStyles:s}),t.forEach((function(e){Y(e,g),Rt(e)}))}function u(e){var t=new Set(vt(e)),i=new Set,s=new Set,u=new Set;t.forEach((function(e){r.has(e)||i.add(e)})),r.forEach((function(e){t.has(e)||s.add(e)})),t.forEach((function(e){var t;i.has(e)||s.has(e)||(t=e).previousElementSibling===n.get(t)&&t.nextElementSibling===o.get(t)||u.add(e)})),a({createdStyles:i,removedStyles:s,movedStyles:u}),Y(e,g),Rt(e)}function l(e){var r=new Set;e.forEach((function(e){bt(e.target)&&e.target.isConnected&&r.add(e.target)})),r.size>0&&t({updated:Array.from(r),created:[],removed:[],moved:[]})}function c(e){var t=Z(e,{onMinorMutations:s,onHugeMutations:u}),r=new MutationObserver(l);r.observe(e,{attributes:!0,attributeFilter:["rel","disabled"],subtree:!0}),At.push(t,r),Tt.add(e)}function g(e){null==e.shadowRoot||Tt.has(e.shadowRoot)||c(e.shadowRoot)}e.forEach(i),c(document),Y(document.documentElement,g),Ot=function(e){var r=[];e.forEach((function(e){return w(r,vt(e.shadowRoot))})),t({created:r,updated:[],removed:[],moved:[]}),e.forEach((function(e){return g(e)}))},Rt(document)}function xt(){At.forEach((function(e){return e.disconnect()})),At.splice(0,At.length),Tt=new WeakSet,Ot=null,Ct.clear()}var Nt=new Map,Mt=new Map,It=null,Pt=null,kt=null;function Dt(e,t){void 0===t&&(t=document.head||document);var r=t.querySelector("."+e);return r||((r=document.createElement("style")).classList.add("darkreader"),r.classList.add(e),r.media="screen"),r}var Lt=new Map;function Ut(e,t){Lt.has(t)&&Lt.get(t).stop(),Lt.set(t,V(e,"parent"))}function Ft(){var e=Dt("darkreader--fallback");e.textContent=Ke(It,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),Ut(e,"fallback");var r=Dt("darkreader--user-agent");r.textContent=$e(It,kt),document.head.insertBefore(r,e.nextSibling),Ut(r,"user-agent");var n=Dt("darkreader--text");It.useFont||It.textStroke>0?n.textContent=function(e){var t=[];return t.push("*:not(pre) {"),e.useFont&&e.fontFamily&&t.push(" font-family: "+e.fontFamily+" !important;"),e.textStroke>0&&(t.push(" -webkit-text-stroke: "+e.textStroke+"px !important;"),t.push(" text-stroke: "+e.textStroke+"px !important;")),t.push("}"),t.join("\n")}(It):n.textContent="",document.head.insertBefore(n,e.nextSibling),Ut(n,"text");var o=Dt("darkreader--invert");Pt&&Array.isArray(Pt.invert)&&Pt.invert.length>0?o.textContent=[Pt.invert.join(", ")+" {"," filter: "+Ie(t(t({},It),{contrast:0===It.mode?It.contrast:me(It.contrast-10,0,100)}))+" !important;","}"].join("\n"):o.textContent="",document.head.insertBefore(o,n.nextSibling),Ut(o,"invert");var i=Dt("darkreader--inline");i.textContent=st(),document.head.insertBefore(i,o.nextSibling),Ut(i,"inline");var a=Dt("darkreader--override");a.textContent=Pt&&Pt.css?Pt.css.replace(/\${(.+?)}/g,(function(e,t){try{var r=Ze(t);return we(r,It,Te)}catch(n){return R(n),t}})):"",document.head.appendChild(a),Ut(a,"override")}var Bt=new Set;function Ht(e){var t=Dt("darkreader--inline",e);t.textContent=st(),e.insertBefore(t,e.firstChild),Bt.add(e)}function Wt(){var e=document.head.querySelector(".darkreader--fallback");e&&(e.textContent="")}var Vt=0,Yt=new Set;function zt(e){if(!Nt.has(e)){var t=++Vt,r=St(e,{update:function(){var e=r.details();e&&(0===e.variables.size?r.render(It,Mt):(Gt(e.variables),Kt()))},loadingStart:function(){if(!z()||!Qt){Yt.add(t);var e=document.querySelector(".darkreader--fallback");e.textContent||(e.textContent=Ke(It,{strict:!1}))}},loadingEnd:function(){Yt.delete(t),0===Yt.size&&z()&&Wt()}});return Nt.set(e,r),r}}function Gt(e){0!==e.size&&(e.forEach((function(e,t){return Mt.set(t,e)})),Mt.forEach((function(e,t){return Mt.set(t,B(e,Mt))})))}function $t(e){var t=Nt.get(e);t&&(t.destroy(),Nt.delete(e))}var Kt=H((function(e){Nt.forEach((function(e){return e.render(It,Mt)})),e&&e()})),qt=function(){Kt.cancel()};function Xt(){0===Yt.size&&Wt()}var Zt=null,Qt=!document.hidden;function Jt(){document.removeEventListener("visibilitychange",Zt),Zt=null}function er(){function e(){!function(){qt(),Gt(M(document.documentElement));var e=vt(document).filter((function(e){return!Nt.has(e)})).map((function(e){return zt(e)})),t=e.map((function(e){return e.details()})).filter((function(e){return e&&e.variables.size>0})).map((function(e){return e.variables}));0===t.length?(Nt.forEach((function(e){return e.render(It,Mt)})),0===Yt.size&&Wt()):(t.forEach((function(e){return Gt(e)})),Kt((function(){0===Yt.size&&Wt()}))),e.forEach((function(e){return e.watch()}));var r=function(e){for(var t=[],r=0,n=e.length;r0&&(Ht(e.shadowRoot),w(r,t))}));var n=Pt&&Array.isArray(Pt.ignoreInlineStyle)?Pt.ignoreInlineStyle:[];r.forEach((function(e){return pt(e,It,n)}))}(),function(){jt(Array.from(Nt.keys()),(function(e){var t=e.created,r=e.updated,n=e.removed,o=e.moved,i=n,a=t.concat(r).concat(o).filter((function(e){return!Nt.has(e)})),s=o.filter((function(e){return Nt.has(e)}));i.forEach((function(e){return $t(e)}));var u=a.map((function(e){return zt(e)})),l=u.map((function(e){return e.details()})).filter((function(e){return e&&e.variables.size>0})).map((function(e){return e.variables}));0===l.length?u.forEach((function(e){return e.render(It,Mt)})):(l.forEach((function(e){return Gt(e)})),Kt()),u.forEach((function(e){return e.watch()})),s.forEach((function(e){return Nt.get(e).restore()}))}));var e,t,r=Pt&&Array.isArray(Pt.ignoreInlineStyle)?Pt.ignoreInlineStyle:[];e=function(e){if(pt(e,It,r),e===document.documentElement){var t=M(document.documentElement);t.size>0&&(Gt(t),Kt())}},t=function(e){var t=e.querySelectorAll(at);t.length>0&&(Ht(e),E(t,(function(e){return pt(e,It,r)})))},ct(document,e,t),Y(document.documentElement,(function(r){ct(r.shadowRoot,e,t)})),$(Xt)}()}Ft(),document.hidden?function(e){var t=Boolean(Zt);Zt=function(){document.hidden||(Jt(),e(),Qt=!0)},t||document.addEventListener("visibilitychange",Zt)}(e):e(),function(e){var t=document.querySelector('meta[name="theme-color"]');t?yt(t,e):(mt&&mt.disconnect(),(mt=new MutationObserver((function(t){e:for(var r=0;r1)for(var r=1;r0?b(j,--C):0,O--,10===R&&(O=1,T--),R}function I(){return R=C2||L(R)>3?"":" "}function W(e,t){for(;--t&&I()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return D(e,k()+(t<6&&32==P()&&32==I()))}function V(e,t){for(;I()&&e+R!==57&&(e+R!==84||47!==P()););return"/*"+D(t,C-1)+"*"+d(47===e?e:I())}function Y(e){for(;!L(P());)I();return D(e,C)}function z(e){return F(function e(t,r,n,o,i,a,s,u,l){var c=0,g=0,f=s,p=0,h=0,b=0,v=1,S=1,w=1,T=0,O="",A=i,C=a,R=o,j=O;for(;S;)switch(b=T,T=I()){case 40:if(108!=b&&58==j.charCodeAt(f-1)){-1!=y(j+=m(B(T),"&","&\f"),"&\f")&&(w=-1);break}case 34:case 39:case 91:j+=B(T);break;case 9:case 10:case 13:case 32:j+=H(b);break;case 92:j+=W(k()-1,7);continue;case 47:switch(P()){case 42:case 47:E($(V(I(),k()),r,n),l);break;default:j+="/"}break;case 123*v:u[c++]=_(j)*w;case 125*v:case 59:case 0:switch(T){case 0:case 125:S=0;case 59+g:h>0&&_(j)-f&&E(h>32?K(j+";",o,n,f-1):K(m(j," ","")+";",o,n,f-2),l);break;case 59:j+=";";default:if(E(R=G(j,r,n,c,g,i,u,O,A=[],C=[],f),a),123===T)if(0===g)e(j,r,R,R,A,a,f,u,C);else switch(p){case 100:case 109:case 115:e(t,R,R,o&&E(G(t,R,R,0,0,i,u,O,i,A=[],f),C),i,C,f,u,o?A:C);break;default:e(j,R,R,R,[""],C,0,u,C)}}c=g=h=0,v=w=1,O=j="",f=s;break;case 58:f=1+_(j),h=b;default:if(v<1)if(123==T)--v;else if(125==T&&0==v++&&125==M())continue;switch(j+=d(T),T*v){case 38:w=g>0?1:(j+="\f",-1);break;case 44:u[c++]=(_(j)-1)*w,w=1;break;case 64:45===P()&&(j+=B(I())),p=P(),g=f=_(O=j+=Y(k())),T++;break;case 45:45===b&&2==_(j)&&(v=0)}}return a}("",null,null,null,[""],e=U(e),0,[0],e))}function G(e,t,r,n,o,i,a,s,u,l,c){for(var g=o-1,d=0===o?i:[""],p=S(d),y=0,b=0,_=0;y0?d[E]+" "+w:m(w,/&\f/g,d[E])))&&(u[_++]=T);return x(e,t,r,0===o?"rule":s,u,l,c)}function $(e,t,r){return x(e,t,r,l,d(R),v(e,2,-2),0)}function K(e,t,r,n){return x(e,t,r,c,v(e,0,n),v(e,n+1,-1),n)}function q(e,t){switch(function(e,t){return(((t<<2^b(e,0))<<2^b(e,1))<<2^b(e,2))<<2^b(e,3)}(e,t)){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+s+e+a+e+e;case 6828:case 4268:return u+e+a+e+e;case 6165:return u+e+a+"flex-"+e+e;case 5187:return u+e+m(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+a+"flex-$1$2")+e;case 5443:return u+e+a+"flex-item-"+m(e,/flex-|-self/,"")+e;case 4675:return u+e+a+"flex-line-pack"+m(e,/align-content|flex-|-self/,"")+e;case 5548:return u+e+a+m(e,"shrink","negative")+e;case 5292:return u+e+a+m(e,"basis","preferred-size")+e;case 6060:return u+"box-"+m(e,"-grow","")+u+e+a+m(e,"grow","positive")+e;case 4554:return u+m(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return m(m(m(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return m(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return m(m(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+a+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4095:case 3583:case 4068:case 2532:return m(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(e)-1-t>6)switch(b(e,t+1)){case 109:if(45!==b(e,t+4))break;case 102:return m(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+s+(108==b(e,t+3)?"$3":"$2-$3"))+e;case 115:return~y(e,"stretch")?q(m(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==b(e,t+1))break;case 6444:switch(b(e,_(e)-3-(~y(e,"!important")&&10))){case 107:return m(e,":",":"+u)+e;case 101:return m(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+u+(45===b(e,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+a+"$2box$3")+e}break;case 5936:switch(b(e,t+11)){case 114:return u+e+a+m(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+a+m(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+a+m(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return u+e+a+e+e}return e}function X(e,t){for(var r="",n=S(e),o=0;o-1&&!e.return)switch(e.type){case c:e.return=q(e.value,e.length);break;case g:return X([N(e,{value:m(e.value,"@","@"+u)})],n);case"rule":if(e.length)return w(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return X([N(e,{props:[m(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return X([N(e,{props:[m(t,/:(plac\w+)/,":"+u+"input-$1")]}),N(e,{props:[m(t,/:(plac\w+)/,":-moz-$1")]}),N(e,{props:[m(t,/:(plac\w+)/,a+"input-$1")]})],n)}return""}))}}],ae=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||ie;var o,a,s={},u=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},ce={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ge=/[A-Z]|^ms/g,fe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,de=function(e){return 45===e.charCodeAt(1)},pe=function(e){return null!=e&&"boolean"!==typeof e},he=J((function(e){return de(e)?e:e.replace(ge,"-$&").toLowerCase()})),me=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(fe,(function(e,t,r){return be={name:t,styles:r,next:be},t}))}return 1===ce[e]||de(e)||"number"!==typeof t||0===t?t:t+"px"};function ye(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return be={name:r.name,styles:r.styles,next:be},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)be={name:n.name,styles:n.styles,next:be},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ue(e){return(Ue="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 Fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(e,t){for(var r=0;r-1}function it(e){return ot(e)?window.pageYOffset:e.scrollTop}function at(e,t){ot(e)?window.scrollTo(0,t):e.scrollTop=t}function st(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function ut(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Je,o=it(e),i=t-o,a=10,s=0;function u(){var t=st(s+=a,o,i,r);at(e,t),s=d)return{placement:"bottom",maxHeight:t};if(w>=d&&!a)return i&&ut(u,T,160),{placement:"bottom",maxHeight:t};if(!a&&w>=n||a&&S>=n)return i&&ut(u,T,160),{placement:"bottom",maxHeight:a?S-b:w-b};if("auto"===o||a){var A=t,C=a?_:E;return C>=n&&(A=Math.min(C-b-s.controlHeight,t)),{placement:"top",maxHeight:A}}if("bottom"===o)return i&&at(u,T),{placement:"bottom",maxHeight:t};break;case"top":if(_>=d)return{placement:"top",maxHeight:t};if(E>=d&&!a)return i&&ut(u,O,160),{placement:"top",maxHeight:t};if(!a&&E>=n||a&&_>=n){var R=t;return(!a&&E>=n||a&&_>=n)&&(R=a?_-v:E-v),i&&ut(u,O,160),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}var yt=function(e){return"auto"===e?"bottom":e},bt=Object(o.createContext)({getPortalPlacement:null}),vt=function(e){Ve(r,e);var t=Ze(r);function r(){var e;Fe(this,r);for(var n=arguments.length,o=new Array(n),i=0;ie.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(n,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,r),".");if("menu"===t){var c=s?" disabled":"",g="".concat(u?"selected":"focused").concat(c);return"option ".concat(i," ").concat(g,", ").concat(l(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},or=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,l=e.id,c=u.ariaLiveMessages,g=u.getOptionLabel,f=u.inputValue,d=u.isMulti,p=u.isOptionDisabled,h=u.isSearchable,m=u.menuIsOpen,y=u.options,b=u.screenReaderStatus,v=u.tabSelectsValue,_=u["aria-label"],S=u["aria-live"],E=Object(o.useMemo)((function(){return Ke(Ke({},nr),c||{})}),[c]),w=Object(o.useMemo)((function(){var e,r="";if(t&&E.onChange){var n=t.option,o=t.options,i=t.removedValue,a=t.removedValues,u=t.value,l=i||n||(e=u,Array.isArray(e)?null:e),c=l?g(l):"",f=o||a||void 0,d=f?f.map(g):[],h=Ke({isDisabled:l&&p(l,s),label:c,labels:d},t);r=E.onChange(h)}return r}),[t,E,p,s,g]),T=Object(o.useMemo)((function(){var e="",t=r||n,o=!!(r&&s&&s.includes(r));if(t&&E.onFocus){var i={focused:t,label:g(t),isDisabled:p(t,s),isSelected:o,options:y,context:t===r?"menu":"value",selectValue:s};e=E.onFocus(i)}return e}),[r,n,g,p,E,y,s]),O=Object(o.useMemo)((function(){var e="";if(m&&y.length&&E.onFilter){var t=b({count:i.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,m,E,y,b]),A=Object(o.useMemo)((function(){var e="";if(E.guidance){var t=n?"value":m?"menu":"input";e=E.guidance({"aria-label":_,context:t,isDisabled:r&&p(r,s),isMulti:d,isSearchable:h,tabSelectsValue:v})}return e}),[_,r,n,d,p,h,m,E,s,v]),C="".concat(T," ").concat(O," ").concat(A),R=xe(o.Fragment,null,xe("span",{id:"aria-selection"},w),xe("span",{id:"aria-context"},C)),j="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return xe(o.Fragment,null,xe(rr,{id:l},j&&R),xe(rr,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},a&&!j&&R))},ir=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],ar=new RegExp("["+ir.map((function(e){return e.letters})).join("")+"]","g"),sr={},ur=0;ur0,h=g-f-l,m=!1;h>t&&s.current&&(n&&n(e),s.current=!1),p&&u.current&&(a&&a(e),u.current=!1),p&&t>h?(r&&!s.current&&r(e),d.scrollTop=g,m=!0,s.current=!0):!p&&-t>l&&(i&&!u.current&&i(e),d.scrollTop=0,m=!0,u.current=!0),m&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,n,i,a]),f=Object(o.useCallback)((function(e){g(e,e.deltaY)}),[g]),d=Object(o.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),p=Object(o.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;g(e,t)}),[g]),h=Object(o.useCallback)((function(e){if(e){var t=!!dt&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",p,t)}}),[p,d,f]),m=Object(o.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",p,!1))}),[p,d,f]);return Object(o.useEffect)((function(){if(t){var e=c.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){c.current=e}}({isEnabled:void 0===n||n,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,r=e.accountForScrollbars,n=void 0===r||r,i=Object(o.useRef)({}),a=Object(o.useRef)(null),s=Object(o.useCallback)((function(e){if(wr){var t=document.body,r=t&&t.style;if(n&&yr.forEach((function(e){var t=r&&r[e];i.current[e]=t})),n&&Tr<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(br).forEach((function(e){var t=br[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(s,"px"))}t&&Er()&&(t.addEventListener("touchmove",vr,Or),e&&(e.addEventListener("touchstart",Sr,Or),e.addEventListener("touchmove",_r,Or))),Tr+=1}}),[n]),u=Object(o.useCallback)((function(e){if(wr){var t=document.body,r=t&&t.style;Tr=Math.max(Tr-1,0),n&&Tr<1&&yr.forEach((function(e){var t=i.current[e];r&&(r[e]=t)})),t&&Er()&&(t.removeEventListener("touchmove",vr,Or),e&&(e.removeEventListener("touchstart",Sr,Or),e.removeEventListener("touchmove",_r,Or)))}}),[n]);return Object(o.useEffect)((function(){if(t){var e=a.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){a.current=e}}({isEnabled:r});return xe(o.Fragment,null,r&&xe("div",{onClick:Ar,css:Cr}),t((function(e){i(e),a(e)})))}var jr={clearIndicator:Dt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,r=e.isFocused,n=e.theme,o=n.colors,i=n.borderRadius,a=n.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:r?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?o.primary:o.neutral30}}},dropdownIndicator:kt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,o=r.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*n,marginTop:2*n,width:1}},input:function(e){var t=e.isDisabled,r=e.value,n=e.theme,o=n.spacing,i=n.colors;return Ke({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:r?"translateZ(0)":""},Vt)},loadingIndicator:function(e){var t=e.isFocused,r=e.size,n=e.theme,o=n.colors,i=n.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Et,menu:function(e){var t,r=e.placement,n=e.theme,o=n.borderRadius,i=n.spacing,a=n.colors;return t={label:"menu"},Object(Ye.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Object(Ye.a)(t,"backgroundColor",a.neutral0),Object(Ye.a)(t,"borderRadius",o),Object(Ye.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(Ye.a)(t,"marginBottom",i.menuGutter),Object(Ye.a)(t,"marginTop",i.menuGutter),Object(Ye.a)(t,"position","absolute"),Object(Ye.a)(t,"width","100%"),Object(Ye.a)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,r=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,r=t.spacing,n=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:n/2,display:"flex",margin:r.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,r=t.borderRadius,n=t.colors,o=e.cropWithEllipsis;return{borderRadius:r/2,color:n.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,r=t.spacing,n=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:n/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:St,option:function(e){var t=e.isDisabled,r=e.isFocused,n=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:n?a.primary:r?a.primary25:"transparent",color:t?a.neutral20:n?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:n?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,r=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,r=e.theme,n=r.spacing,o=r.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,r=e.isMulti,n=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:r&&n&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var xr,Nr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Mr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:lt(),captureMenuScroll:!lt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=Ke({ignoreCase:!0,ignoreAccents:!0,stringify:pr,trim:!0,matchFrom:"any"},xr),n=r.ignoreCase,o=r.ignoreAccents,i=r.stringify,a=r.trim,s=r.matchFrom,u=a?dr(t):t,l=a?dr(i(e)):i(e);return n&&(u=u.toLowerCase(),l=l.toLowerCase()),o&&(u=fr(u),l=gr(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(a){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Ir(e,t,r,n){return{type:"option",data:t,isDisabled:Fr(e,t,r),isSelected:Br(e,t,r),label:Lr(e,t),value:Ur(e,t),index:n}}function Pr(e,t){return e.options.map((function(r,n){if("options"in r){var o=r.options.map((function(r,n){return Ir(e,r,t,n)})).filter((function(t){return Dr(e,t)}));return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=Ir(e,r,t,n);return Dr(e,i)?i:void 0})).filter(pt)}function kr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Zt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Dr(e,t){var r=e.inputValue,n=void 0===r?"":r,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Wr(e)||!i)&&Hr(e,{label:a,value:s,data:o},n)}var Lr=function(e,t){return e.getOptionLabel(t)},Ur=function(e,t){return e.getOptionValue(t)};function Fr(e,t,r){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function Br(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=Ur(e,t);return r.some((function(t){return Ur(e,t)===n}))}function Hr(e,t,r){return!e.filterOption||e.filterOption(t,r)}var Wr=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},Vr=1,Yr=function(e){Ve(r,e);var t=Ze(r);function r(e){var n;return Fe(this,r),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props,o=r.onChange,i=r.name;t.name=i,n.ariaOnChange(e,t),o(e,t)},n.setValue=function(e,t,r){var o=n.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(n.setState({inputIsHiddenAfterUpdate:!a}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=n.state.selectValue,s=o&&n.isOptionSelected(e,a),u=n.isOptionDisabled(e,a);if(s){var l=n.getOptionValue(e);n.setValue(a.filter((function(e){return n.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void n.ariaOnChange(e,{action:"select-option",option:e,name:i});o?n.setValue([].concat(Zt(a),[e]),"select-option",e):n.setValue(e,"select-option")}r&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,r=n.state.selectValue,o=n.getOptionValue(e),i=r.filter((function(e){return n.getOptionValue(e)!==o})),a=ht(t,i,i[0]||null);n.onChange(a,{action:"remove-value",removedValue:e}),n.focusInput()},n.clearValue=function(){var e=n.state.selectValue;n.onChange(ht(n.props.isMulti,[],null),{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,r=t[t.length-1],o=t.slice(0,t.length-1),i=ht(e,o,o[0]||null);n.onChange(i,{action:"pop-value",removedValue:r})},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var e=arguments.length,t=new Array(e),r=0;r5||i>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=n.props.inputValue,r=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(r,{action:"input-change",prevInputValue:t}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){var t=n.props.inputValue;n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur",prevInputValue:t}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){return Wr(n.props)},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,g=t.tabSelectsValue,f=t.openMenuOnFocus,d=n.state,p=d.focusedOption,h=d.focusedValue,m=d.selectValue;if(!u&&("function"!==typeof c||(c(e),!e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;n.focusValue("previous");break;case"ArrowRight":if(!r||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)n.removeValue(h);else{if(!o)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!l||!g||!p||f&&n.isOptionSelected(p,m))return;n.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(l){if(!p)return;if(n.isComposing)return;n.selectOption(p);break}return;case"Escape":l?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:a}),n.onMenuClose()):s&&i&&n.clearValue();break;case" ":if(a)return;if(!l){n.openMenu("first");break}if(!p)return;n.selectOption(p);break;case"ArrowUp":l?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":l?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!l)return;n.focusOption("pageup");break;case"PageDown":if(!l)return;n.focusOption("pagedown");break;case"Home":if(!l)return;n.focusOption("first");break;case"End":if(!l)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.instancePrefix="react-select-"+(n.props.instanceId||++Vr),n.state.selectValue=rt(e.value),n}return He(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isDisabled,n=t.menuIsOpen,o=this.state.isFocused;(o&&!r&&e.isDisabled||o&&n&&!e.menuIsOpen)&&this.focusInput(),o&&r&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(!function(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?at(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=r.indexOf(n);n||(o=-1);var i=r.length-1,a=-1;if(r.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var o=0,i=n.indexOf(r);r||(i=-1),"up"===e?o=i>0?i-1:n.length-1:"down"===e?o=(i+1)%n.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>n.length-1&&(o=n.length-1):"last"===e&&(o=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(Nr):Ke(Ke({},Nr),this.props.theme):Nr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,u=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:r,getValue:n,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return Fr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Br(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Hr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,i=e.inputId,a=e.inputValue,s=e.tabIndex,u=e.form,l=e.menuIsOpen,c=this.getComponents().Input,g=this.state,f=g.inputIsHidden,d=g.ariaSelection,p=this.commonProps,h=i||this.getElementId("input"),m=Ke(Ke({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox"),"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===d||void 0===d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?o.createElement(c,Object(n.a)({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:u,type:"text",value:a},m)):o.createElement(mr,Object(n.a)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Je,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:u,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,i=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,u=t.SingleValue,l=t.Placeholder,c=this.commonProps,g=this.props,f=g.controlShouldRenderValue,d=g.isDisabled,p=g.isMulti,h=g.inputValue,m=g.placeholder,y=this.state,b=y.selectValue,v=y.focusedValue,_=y.isFocused;if(!this.hasValue()||!f)return h?null:o.createElement(l,Object(n.a)({},c,{key:"placeholder",isDisabled:d,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return b.map((function(t,u){var l=t===v,g="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(r,Object(n.a)({},c,{components:{Container:i,Label:a,Remove:s},isFocused:l,isDisabled:d,key:g,index:u,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var S=b[0];return o.createElement(u,Object(n.a)({},c,{data:S,isDisabled:d}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,i=r.isDisabled,a=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||a)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Object(n.a)({},t,{innerProps:u,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,i=r.isDisabled,a=r.isLoading,s=this.state.isFocused;if(!e||!a)return null;return o.createElement(e,Object(n.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var i=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return o.createElement(r,Object(n.a)({},i,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Object(n.a)({},t,{innerProps:a,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),r=t.Group,i=t.GroupHeading,a=t.Menu,s=t.MenuList,u=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,g=t.Option,f=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,y=p.isLoading,b=p.loadingMessage,v=p.minMenuHeight,_=p.maxMenuHeight,S=p.menuIsOpen,E=p.menuPlacement,w=p.menuPosition,T=p.menuPortalTarget,O=p.menuShouldBlockScroll,A=p.menuShouldScrollIntoView,C=p.noOptionsMessage,R=p.onMenuScrollToTop,j=p.onMenuScrollToBottom;if(!S)return null;var x,N=function(t,r){var i=t.type,a=t.data,s=t.isDisabled,u=t.isSelected,l=t.label,c=t.value,p=d===a,h=s?void 0:function(){return e.onOptionHover(a)},m=s?void 0:function(){return e.selectOption(a)},y="".concat(e.getElementId("option"),"-").concat(r),b={id:y,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1};return o.createElement(g,Object(n.a)({},f,{innerProps:b,data:a,isDisabled:s,isSelected:u,key:y,label:l,type:i,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())x=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,s=t.options,u=t.index,l="".concat(e.getElementId("group"),"-").concat(u),c="".concat(l,"-heading");return o.createElement(r,Object(n.a)({},f,{key:l,data:a,options:s,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return N(e,"".concat(u,"-").concat(e.index))})))}if("option"===t.type)return N(t,"".concat(t.index))}));else if(y){var M=b({inputValue:m});if(null===M)return null;x=o.createElement(l,f,M)}else{var I=C({inputValue:m});if(null===I)return null;x=o.createElement(c,f,I)}var P={minMenuHeight:v,maxMenuHeight:_,menuPlacement:E,menuPosition:w,menuShouldScrollIntoView:A},k=o.createElement(vt,Object(n.a)({},f,P),(function(t){var r=t.ref,i=t.placerProps,u=i.placement,l=i.maxHeight;return o.createElement(a,Object(n.a)({},f,P,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:y,placement:u}),o.createElement(Rr,{captureEnabled:h,onTopArrive:R,onBottomArrive:j,lockEnabled:O},(function(t){return o.createElement(s,Object(n.a)({},f,{innerRef:function(r){e.getMenuListRef(r),t(r)},isLoading:y,maxHeight:l,focusedOption:d}),x)})))}));return T||"fixed"===w?o.createElement(u,Object(n.a)({},f,{appendTo:T,controlElement:this.controlRef,menuPlacement:E,menuPosition:w}),k):k}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,i=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!n){if(i){if(r){var u=s.map((function(t){return e.getOptionValue(t)})).join(r);return o.createElement("input",{name:a,type:"hidden",value:u})}var l=s.length>0?s.map((function(t,r){return o.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden"});return o.createElement("div",null,l)}var c=s[0]?this.getOptionValue(s[0]):"";return o.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,i=t.focusedOption,a=t.focusedValue,s=t.isFocused,u=t.selectValue,l=this.getFocusableOptions();return o.createElement(or,Object(n.a)({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:a,isFocused:s,selectValue:u,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,i=e.SelectContainer,a=e.ValueContainer,s=this.props,u=s.className,l=s.id,c=s.isDisabled,g=s.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(i,Object(n.a)({},d,{className:u,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),o.createElement(t,Object(n.a)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:g}),o.createElement(a,Object(n.a)({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(r,Object(n.a)({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,n=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=e.options,l=e.value,c=e.menuIsOpen,g=e.inputValue,f=e.isMulti,d=rt(l),p={};if(r&&(l!==r.value||u!==r.options||c!==r.menuIsOpen||g!==r.inputValue)){var h=c?function(e,t){return kr(Pr(e,t))}(e,d):[],m=n?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n-1?r:t[0]}(t,h),focusedValue:m,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=i,v=a&&s;return a&&!v&&(b={value:ht(f,d,d[0]||null),options:d,action:"initial-input-focus"},v=!s),"initial-input-focus"===(null===i||void 0===i?void 0:i.action)&&(b=null),Ke(Ke(Ke({},p),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:v})}}]),r}(o.Component);Yr.defaultProps=Mr;r(107),r(111),r(113),r(117),r(118),r(119);var zr=Object(o.forwardRef)((function(e,t){var r=function(e){var t=e.defaultInputValue,r=void 0===t?"":t,n=e.defaultMenuIsOpen,i=void 0!==n&&n,a=e.defaultValue,s=void 0===a?null:a,u=e.inputValue,l=e.menuIsOpen,c=e.onChange,g=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,h=Le(e,Xt),m=qt(Object(o.useState)(void 0!==u?u:r),2),y=m[0],b=m[1],v=qt(Object(o.useState)(void 0!==l?l:i),2),_=v[0],S=v[1],E=qt(Object(o.useState)(void 0!==p?p:s),2),w=E[0],T=E[1],O=Object(o.useCallback)((function(e,t){"function"===typeof c&&c(e,t),T(e)}),[c]),A=Object(o.useCallback)((function(e,t){var r;"function"===typeof g&&(r=g(e,t)),b(void 0!==r?r:e)}),[g]),C=Object(o.useCallback)((function(){"function"===typeof d&&d(),S(!0)}),[d]),R=Object(o.useCallback)((function(){"function"===typeof f&&f(),S(!1)}),[f]),j=void 0!==u?u:y,x=void 0!==l?l:_,N=void 0!==p?p:w;return Ke(Ke({},h),{},{inputValue:j,menuIsOpen:x,onChange:O,onInputChange:A,onMenuClose:R,onMenuOpen:C,value:N})}(e);return o.createElement(Yr,Object(n.a)({ref:t},r))}));o.Component,t.a=zr},,function(e,t,r){"use strict";(function(t){var n=r(21),o=r(86),i=r(53),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=r(54)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw i(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(a)})),e.exports=u}).call(this,r(39))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";(function(e){var n=r(0),o=r.n(n),i=r(22),a=r(30),s=r.n(a),u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(r,n){e=r,t.forEach((function(t){return t(e,n)}))}}}var c=o.a.createContext||function(e,t){var r,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}()+"__",c=function(e){function r(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(i.a)(r,e);var n=r.prototype;return n.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},n.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var r,n=this.props.value,o=e.value;((i=n)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?r=0:(r="function"===typeof t?t(n,o):1073741823,0!==(r|=0)&&this.emitter.set(e.value,r))}var i,a},n.render=function(){return this.props.children},r}(n.Component);c.childContextTypes=((r={})[a]=s.a.object.isRequired,r);var g=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,r){0!==((0|e.observedBits)&r)&&e.setState({value:e.getValue()})},e}Object(i.a)(r,t);var n=r.prototype;return n.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},n.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},n.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},n.getValue=function(){return this.context[a]?this.context[a].get():e},n.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},r}(n.Component);return g.contextTypes=((o={})[a]=s.a.object,o),{Provider:c,Consumer:g}};t.a=c}).call(this,r(47))},function(e,t,r){var n=r(106);e.exports=d,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var r,n=[],i=0,a=0,s="",c=t&&t.delimiter||"/";null!=(r=o.exec(e));){var g=r[0],f=r[1],d=r.index;if(s+=e.slice(a,d),a=d+g.length,f)s+=f[1];else{var p=e[a],h=r[2],m=r[3],y=r[4],b=r[5],v=r[6],_=r[7];s&&(n.push(s),s="");var S=null!=h&&null!=p&&p!==h,E="+"===v||"*"===v,w="?"===v||"*"===v,T=r[2]||c,O=y||b;n.push({name:m||i++,prefix:h||"",delimiter:T,optional:w,repeat:E,partial:S,asterisk:!!_,pattern:O?l(O):_?".*":"[^"+u(T)+"]+?"})}}return a=n}}),"es6","es3"),$jscomp.polyfill("Array.prototype.find",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}}),"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",(function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var n=r.length,o=e.length;t=Math.max(0,Math.min(0|t,r.length));for(var i=0;i=o}}),"es6","es3"),$jscomp.polyfill("String.prototype.repeat",(function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279>>=1)&&(t+=t);return r}}),"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.isDef=function(e){return void 0!==e},goog.isString=function(e){return"string"==typeof e},goog.isBoolean=function(e){return"boolean"==typeof e},goog.isNumber=function(e){return"number"==typeof e},goog.exportPath_=function(e,t,r){e=e.split("."),r=r||goog.global,e[0]in r||"undefined"==typeof r.execScript||r.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)!e.length&&goog.isDef(t)?r[n]=t:r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}},goog.define=function(e,t){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;r&&void 0===r.nodeType&&Object.prototype.hasOwnProperty.call(r,e)?t=r[e]:n&&void 0===n.nodeType&&Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e])}return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){if(!COMPILED){delete goog.implicitNamespaces_[e];for(var r=e;(r=r.substring(0,r.lastIndexOf(".")))&&!goog.getObjectByName(r);)goog.implicitNamespaces_[r]=!0}goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(!goog.isString(e)||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=e,!COMPILED){if(goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');delete goog.implicitNamespaces_[e]}},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){if(!COMPILED){if(e in goog.loadedModules_)return goog.loadedModules_[e].exports;if(!goog.implicitNamespaces_[e])return null!=(e=goog.getObjectByName(e))?e:null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&("function"==typeof e.getCurrentModulePath&&!!e.getCurrentModulePath())},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(e in goog.loadedModules_)throw Error('Module with namespace "'+e+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||"function"!=typeof t.getCurrentModulePath)throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},COMPILED||(goog.isProvided_=function(e){return e in goog.loadedModules_||!goog.implicitNamespaces_[e]&&goog.isDefAndNotNull(goog.getObjectByName(e))},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var r=0;r>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"===typeof e.clone)return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')})),a("es7",(function(){return b("2 ** 2 == 4")})),a("es8",(function(){return b("async () => 1, true")})),a("es9",(function(){return b("({...rest} = {}), true")})),a("es_next",(function(){return!1})),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function r(){n&&(goog.global.setTimeout(n,0),n=null)}var n=t;if(e.length){t=[];for(var o=0;o<\/script>",t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(n):n)}else{var o=t.createElement("script");o.defer=goog.Dependency.defer_,o.async=!1,o.type="text/javascript",(n=goog.getScriptNonce())&&o.setAttribute("nonce",n),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(e.loaded(),e.resume())}):o.onload=function(){o.onload=null,e.loaded()},o.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,t.head.appendChild(o)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,r,n,o){goog.Dependency.call(this,e,t,r,n,o)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document,r=this;if(goog.isDocumentLoading_()){var n=function(e,r){e=r?'