diff --git a/.gitignore b/.gitignore
index 02b9bc0c10..067c6b3c18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@ cross/
release/
.stack-work
\#*\#
+s/*
diff --git a/.ignore b/.ignore
new file mode 100644
index 0000000000..b27325c3be
--- /dev/null
+++ b/.ignore
@@ -0,0 +1,3 @@
+.stack-work
+./pkg/hs-vere/.stack-work
+./pkg/hs-urbit/.stack-work
diff --git a/bin/brass.pill b/bin/brass.pill
index 1fce9caad9..c4542539a2 100644
--- a/bin/brass.pill
+++ b/bin/brass.pill
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e534cb57dc8b2bee35004d843c7e0b2d028ba699e86d47a58efac4b065ce2f1b
-size 6047224
+oid sha256:8f6e93cb3ee5fcb0970851bd10d2d2a640ff968292d147c35385623b86570296
+size 6662042
diff --git a/bin/ivory.pill b/bin/ivory.pill
index 771574fe14..b8eb687de6 100644
--- a/bin/ivory.pill
+++ b/bin/ivory.pill
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:96b1f1ad730789b1d557aac66b847047c98341bcf436e1927f40f082a728d641
-size 3816083
+oid sha256:0e520b9ab0232d1765e1dacde96a1210845768e7334a334b5705d1c40348c82b
+size 4464201
diff --git a/bin/solid.pill b/bin/solid.pill
index bc8df50a1b..1a0fc416d7 100644
--- a/bin/solid.pill
+++ b/bin/solid.pill
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e4a4f8f86b18de5e410caeb491eecf8cf4fe24fbaba03ad8183b55a13eee154a
-size 9108350
+oid sha256:a4a8e1daf0bfe86d5fc4ef7060b0c6a6c2678a344787926f14bb4b8cfabe8752
+size 9549390
diff --git a/nix/ops/default.nix b/nix/ops/default.nix
index 7412ecb58d..0a56254637 100644
--- a/nix/ops/default.nix
+++ b/nix/ops/default.nix
@@ -48,4 +48,9 @@ rec {
pier = zod;
};
+ ivory = import ./ivory {
+ inherit arvo pkgs tlon deps debug;
+ pier = zod;
+ };
+
}
diff --git a/nix/ops/ivory/builder.sh b/nix/ops/ivory/builder.sh
new file mode 100755
index 0000000000..1e929a84fd
--- /dev/null
+++ b/nix/ops/ivory/builder.sh
@@ -0,0 +1,22 @@
+source $stdenv/setup
+
+set -ex
+
+cp -r $PIER ./pier
+chmod -R u+rw ./pier
+
+$URBIT -d ./pier
+
+cleanup () {
+ if [ -e ./pier/.vere.lock ]
+ then kill $(< ./pier/.vere.lock) || true;
+ fi
+}
+
+trap cleanup EXIT
+
+herb ./pier -P ivory.pill -d '+ivory'
+
+mv ivory.pill $out
+
+set +x
diff --git a/nix/ops/ivory/default.nix b/nix/ops/ivory/default.nix
new file mode 100644
index 0000000000..059bc2902f
--- /dev/null
+++ b/nix/ops/ivory/default.nix
@@ -0,0 +1,19 @@
+{ pkgs, tlon, deps, pier, arvo, debug }:
+
+let
+
+ urbitExe = if debug
+ then "${tlon.urbit-debug}/bin/urbit-debug -g"
+ else "${tlon.urbit}/bin/urbit";
+
+in
+
+pkgs.stdenv.mkDerivation rec {
+ name = "ivory";
+ builder = ./builder.sh;
+ buildInputs = [ tlon.herb pkgs.coreutils ];
+
+ URBIT = urbitExe;
+ PIER = pier;
+ ARVO = arvo;
+}
diff --git a/nix/pkgs/urbit/default.nix b/nix/pkgs/urbit/default.nix
index 5e971e684d..4bac93c1f6 100644
--- a/nix/pkgs/urbit/default.nix
+++ b/nix/pkgs/urbit/default.nix
@@ -1,6 +1,7 @@
{
pkgs,
debug,
+ ivory ? ../../../bin/ivory.pill,
argon2, ed25519, ent, ge-additions, h2o, murmur3, scrypt, secp256k1, sni, softfloat3, uv
}:
@@ -30,6 +31,7 @@ pkgs.stdenv.mkDerivation {
hardeningDisable = if debug then [ "all" ] else [];
CFLAGS = if debug then "-O3 -g -Werror" else "-O3 -Werror";
+ IVORY = ivory;
MEMORY_DEBUG = debug;
CPU_DEBUG = debug;
EVENT_TIME_DEBUG = false;
diff --git a/nix/pkgs/urbit/release.nix b/nix/pkgs/urbit/release.nix
index 171a891610..7beda08b66 100644
--- a/nix/pkgs/urbit/release.nix
+++ b/nix/pkgs/urbit/release.nix
@@ -1,6 +1,12 @@
{ env_name, env, deps }:
-{ ent, ge-additions, cacert, xxd, name ? "urbit", debug ? false }:
+{
+ ent,
+ name ? "urbit",
+ debug ? false,
+ ivory ? ../../../bin/ivory.pill,
+ ge-additions, cacert, xxd
+}:
let
@@ -22,6 +28,7 @@ env.make_derivation {
EVENT_TIME_DEBUG = false;
NCURSES = env.ncurses;
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
+ IVORY = ivory;
name = "${name}-${env_name}";
exename = name;
diff --git a/nix/pkgs/uterm/default.nix b/nix/pkgs/uterm/default.nix
deleted file mode 100644
index 5bf5669909..0000000000
--- a/nix/pkgs/uterm/default.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-{ pkgs ? import ../../nixpkgs.nix }:
-
-let
-
- compiler = "default";
- doBenchmark = false;
-
- run-hpack =
- "${pkgs.haskellPackages.hpack}/bin/hpack";
-
- f = { mkDerivation, stdenv,
- base, classy-prelude, lens, hpack, megaparsec }:
- mkDerivation {
- pname = "uterm";
- version = "0.1.0.0";
- src = ../../../pkg/uterm;
- isLibrary = false;
- isExecutable = true;
- executableHaskellDepends = [
- base classy-prelude lens hpack megaparsec
- ];
- license = stdenv.lib.licenses.lgpl3;
- preConfigure = ''
- ${run-hpack}
- '';
- };
-
- haskellPackages = if compiler == "default"
- then pkgs.haskellPackages
- else pkgs.haskell.packages.${compiler};
-
- variant = if doBenchmark then pkgs.haskell.lib.doBenchmark else pkgs.lib.id;
- drv = variant (haskellPackages.callPackage f {});
-
-in
-
- if pkgs.lib.inNixShell then drv.env else drv
diff --git a/pkg/arvo/app/azimuth-tracker.hoon b/pkg/arvo/app/azimuth-tracker.hoon
index 5d5bbecec3..30a5c92eb4 100644
--- a/pkg/arvo/app/azimuth-tracker.hoon
+++ b/pkg/arvo/app/azimuth-tracker.hoon
@@ -6,12 +6,19 @@
$: url=@ta
from-number=number:block
==
- +$ app-state ~
+ +$ app-state
+ $: url=@ta
+ =number:block
+ =pending-udiffs
+ blocks=(list block)
+ ==
+$ peek-data ~
+$ in-poke-data
- $% [%watch =config]
- [%clear ~]
- [%noun *]
+ $: %azimuth-tracker-poke
+ $% [%init ~]
+ [%listen whos=(set ship) =source:kale]
+ [%watch =config]
+ ==
==
+$ out-poke-data ~
+$ in-peer-data ~
@@ -183,40 +190,62 @@
==
=/ event-logs=(list event-log:rpc:ethereum)
(parse-event-logs:rpc:ethereum json)
- =/ =udiffs:point
- %+ murn event-logs
- |= =event-log:rpc:ethereum
- ^- (unit [=ship =udiff:point])
- ?~ mined.event-log
- ~
- ?: removed.u.mined.event-log
- ~& [%removed-log event-log]
- ~
- =/ =id:block [block-hash block-number]:u.mined.event-log
- =, azimuth-events:azimuth
- =, abi:ethereum
- ?: =(broke-continuity i.topics.event-log)
- =/ who=@ (decode-topics t.topics.event-log ~[%uint])
- =/ num=@ (decode-results data.event-log ~[%uint])
- `[who id %rift num]
- ?: =(changed-keys i.topics.event-log)
- =/ who=@ (decode-topics t.topics.event-log ~[%uint])
- =+ ^- [enc=octs aut=octs sut=@ud rev=@ud]
- %+ decode-results data.event-log
- ~[[%bytes-n 32] [%bytes-n 32] %uint %uint]
- `[who id %keys rev sut (pass-from-eth:azimuth enc aut sut)]
- ?: =(lost-sponsor i.topics.event-log)
- =+ ^- [who=@ pos=@]
- (decode-topics t.topics.event-log ~[%uint %uint])
- `[who id %spon ~]
- ?: =(escape-accepted i.topics.event-log)
- =+ ^- [who=@ wer=@]
- (decode-topics t.topics.event-log ~[%uint %uint])
- `[who id %spon `wer]
- ~& [%bad-topic event-log]
- ~
+ =/ =udiffs:point (event-logs-to-udiffs event-logs)
(pure:m udiffs)
::
+ ++ get-logs-by-range
+ |= [url=@ta =from=number:block =to=number:block]
+ =/ m (async:stdio udiffs:point)
+ ^- form:m
+ ;< =json bind:m
+ %+ request-rpc url
+ :* `'logs by range'
+ %eth-get-logs
+ `number+from-number
+ `number+to-number
+ ~[azimuth:contracts:azimuth]
+ topics
+ ==
+ =/ event-logs=(list event-log:rpc:ethereum)
+ (parse-event-logs:rpc:ethereum json)
+ =/ =udiffs:point (event-logs-to-udiffs event-logs)
+ (pure:m udiffs)
+ ::
+ ++ event-logs-to-udiffs
+ |= event-logs=(list =event-log:rpc:ethereum)
+ ^- =udiffs:point
+ %+ murn event-logs
+ |= =event-log:rpc:ethereum
+ ^- (unit [=ship =udiff:point])
+ ?~ mined.event-log
+ ~
+ ?: removed.u.mined.event-log
+ ~& [%removed-log event-log]
+ ~
+ =/ =id:block [block-hash block-number]:u.mined.event-log
+ =, azimuth-events:azimuth
+ =, abi:ethereum
+ ?: =(broke-continuity i.topics.event-log)
+ =/ who=@ (decode-topics t.topics.event-log ~[%uint])
+ =/ num=@ (decode-results data.event-log ~[%uint])
+ `[who id %rift num]
+ ?: =(changed-keys i.topics.event-log)
+ =/ who=@ (decode-topics t.topics.event-log ~[%uint])
+ =+ ^- [enc=octs aut=octs sut=@ud rev=@ud]
+ %+ decode-results data.event-log
+ ~[[%bytes-n 32] [%bytes-n 32] %uint %uint]
+ `[who id %keys rev sut (pass-from-eth:azimuth enc aut sut)]
+ ?: =(lost-sponsor i.topics.event-log)
+ =+ ^- [who=@ pos=@]
+ (decode-topics t.topics.event-log ~[%uint %uint])
+ `[who id %spon ~]
+ ?: =(escape-accepted i.topics.event-log)
+ =+ ^- [who=@ wer=@]
+ (decode-topics t.topics.event-log ~[%uint %uint])
+ `[who id %spon `wer]
+ ~& [%bad-topic event-log]
+ ~
+ ::
++ jael-update
|= =udiffs:point
=/ m (async:stdio ,~)
@@ -224,41 +253,86 @@
=* loop $
?~ udiffs
(pure:m ~)
- ~& > [%update block i.udiffs]
- :: ;< ~ bind:m (send-effect [%vent-update i.udiffs])
+ ~& [%sending-event i.udiffs]
+ ;< ~ bind:m (send-effect:stdio %new-event /ne i.udiffs)
loop(udiffs t.udiffs)
--
::
:: Main loop
::
=> |%
- ++ watch
- |= =config
- =/ m (async:stdio ,~)
+ ::
+ :: Subscribe to %sources from kale
+ ::
+ ++ init
+ |= state=app-state
+ =/ m (async:stdio ,app-state)
^- form:m
- =/ =number:block from-number.config
- =| =pending-udiffs
- =| blocks=(list block)
- |- ^- form:m
- =* poll-loop $
- ~& [%poll-loop number]
- ;< =latest=block bind:m (get-latest-block url.config)
+ ;< ~ bind:m (send-effect:stdio %sources /se ~)
+ (pure:m state)
+ ::
+ :: Send %listen to kale
+ ::
+ ++ listen
+ |= [state=app-state whos=(set ship) =source:kale]
+ =/ m (async:stdio ,app-state)
+ ^- form:m
+ ;< ~ bind:m (send-effect:stdio %listen /lo whos source)
+ (pure:m state)
+ ::
+ :: Take %source from kale
+ ::
+ ++ take-source
+ |= [state=app-state whos=(set ship) =source:kale]
+ =/ m (async:stdio ,app-state)
+ ^- form:m
+ ?: ?=(%& -.source)
+ (pure:m state)
+ =/ a-purl=purl:eyre node.p.source
+ =. url.state (crip (en-purl:html a-purl))
+ (watch state url.state launch:contracts:azimuth)
+ ::
+ :: Start watching a node
+ ::
+ ++ watch
+ |= [state=app-state =config]
+ =/ m (async:stdio ,app-state)
+ ^- form:m
+ =: url.state url.config
+ number.state from-number.config
+ pending-udiffs.state *pending-udiffs
+ blocks.state *(list block)
+ ==
+ (get-updates state)
+ ::
+ :: Get updates since last checked
+ ::
+ ++ get-updates
+ |= state=app-state
+ =/ m (async:stdio ,app-state)
+ ^- form:m
+ ~& [%get-updates number.state]
+ ;< =latest=block bind:m (get-latest-block url.state)
+ ;< =new=number:block bind:m (zoom state number.id.latest-block)
+ =. number.state new-number
|- ^- form:m
=* walk-loop $
- ~& [%walk-loop number]
- ?: (gth number number.id.latest-block)
+ ~& [%walk-loop number.state]
+ ?: (gth number.state number.id.latest-block)
;< now=@da bind:m get-time:stdio
- ;< ~ bind:m (wait:stdio (add now ~s10))
- poll-loop
- ;< =block bind:m (get-block-by-number url.config number)
- ;< [=new=^pending-udiffs new-blocks=(lest ^block)] bind:m
- (take-block url.config pending-udiffs block blocks)
- =: pending-udiffs new-pending-udiffs
- blocks new-blocks
- number +(number.id.i.new-blocks)
+ ;< ~ bind:m (wait-effect:stdio (add now ~s10))
+ (pure:m state)
+ ;< =block bind:m (get-block-by-number url.state number.state)
+ ;< [=new=pending-udiffs new-blocks=(lest ^block)] bind:m
+ (take-block url.state pending-udiffs.state block blocks.state)
+ =: pending-udiffs.state new-pending-udiffs
+ blocks.state new-blocks
+ number.state +(number.id.i.new-blocks)
==
walk-loop
::
+ :: Process a block, detecting and handling reorgs
+ ::
++ take-block
|= [url=@ta =a=pending-udiffs =block blocks=(list block)]
=/ m (async:stdio ,[pending-udiffs (lest ^block)])
@@ -274,6 +348,8 @@
=. b-pending-udiffs (~(put by b-pending-udiffs) number.id.block new-udiffs)
(pure:m b-pending-udiffs block blocks)
::
+ :: Release events if they're more than 30 blocks ago
+ ::
++ release-old-events
|= [=pending-udiffs =number:block]
=/ m (async:stdio ,^pending-udiffs)
@@ -283,6 +359,8 @@
;< ~ bind:m (jael-update udiffs)
(pure:m (~(del by pending-udiffs) rel-number))
::
+ :: Reorg detected, so rewind until we're back in sync
+ ::
++ rewind
|= [url=@ta =pending-udiffs =block blocks=(list block)]
=/ m (async:stdio ,[^pending-udiffs (lest ^block)])
@@ -300,11 +378,31 @@
=. pending-udiffs (~(del by pending-udiffs) number.id.block)
loop(block next-block, blocks t.blocks)
::
+ :: Tell subscribers there was a deep reorg
+ ::
++ disavow
|= =block
=/ m (async:stdio ,~)
^- form:m
(jael-update [*ship id.block %disavow ~]~)
+ ::
+ :: Zoom forward to near a given block number.
+ ::
+ :: Zooming doesn't go forward one block at a time. As a
+ :: consequence, it cannot detect and handle reorgs. Only use it
+ :: at a safe distance -- 500 blocks ago is probably sufficient.
+ ::
+ ++ zoom
+ |= [state=app-state =latest=number:block]
+ =/ m (async:stdio ,number:block)
+ ^- form:m
+ ?: (lth latest-number (add number.state 500))
+ (pure:m latest-number)
+ =/ to-number=number:block (sub latest-number 500)
+ ;< =udiffs:point bind:m
+ (get-logs-by-range url.state number.state to-number)
+ ;< ~ bind:m (jael-update udiffs)
+ (pure:m to-number)
--
::
:: Main
@@ -316,17 +414,20 @@
|= =in-poke-data
=/ m tapp-async
^- form:m
- ?- -.in-poke-data
- %noun (watch (config +.in-poke-data))
- %watch (watch +.in-poke-data)
- %clear !!
+ ?- +<.in-poke-data
+ %init (init state)
+ %listen (listen state +>.in-poke-data)
+ %watch (watch state +>.in-poke-data)
==
::
++ handle-take
|= =sign:tapp
- !!
- :: ?> ?=(%sources -.sign)
- :: (handle-poke %watch +.sign)
+ =/ m tapp-async
+ ^- form:m
+ ?+ -.sign ~|([%strange-sign -.sign] !!)
+ %source (take-source state +.sign)
+ %wake (get-updates state)
+ ==
::
++ handle-peer ~(handle-peer default-tapp bowl state)
--
diff --git a/pkg/arvo/app/chat/css/index.css b/pkg/arvo/app/chat/css/index.css
index 83068c326f..504262bb6d 100644
Binary files a/pkg/arvo/app/chat/css/index.css and b/pkg/arvo/app/chat/css/index.css differ
diff --git a/pkg/arvo/app/chat/img/Tile.png b/pkg/arvo/app/chat/img/Tile.png
index 58f4ccbea7..684658d0fa 100644
Binary files a/pkg/arvo/app/chat/img/Tile.png and b/pkg/arvo/app/chat/img/Tile.png differ
diff --git a/pkg/arvo/app/chat/index.html b/pkg/arvo/app/chat/index.html
index 03b0c2d3bd..8b3da7b801 100644
--- a/pkg/arvo/app/chat/index.html
+++ b/pkg/arvo/app/chat/index.html
@@ -5,7 +5,8 @@
-
+
+
diff --git a/pkg/arvo/app/chat/js/index.js b/pkg/arvo/app/chat/js/index.js
index 68fb6127b7..c50d909597 100644
--- a/pkg/arvo/app/chat/js/index.js
+++ b/pkg/arvo/app/chat/js/index.js
@@ -1 +1 @@
-!function(e){"function"==typeof define&&define.amd?define("index",e):e()}(function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;var l=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s2?n-2:0),a=2;a1?t-1:0),r=1;r2?n-2:0),a=2;a8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!e){if("undefined"!=typeof console){var i=r.map(function(e){return""+e});i.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,i)}try{var o=0,l="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(l)}catch(e){}}},D={};function E(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",a=r+"."+t;D[a]||(C(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),D[a]=!0)}var T={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){E(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){E(e,"replaceState")},enqueueSetState:function(e,t,n,r){E(e,"setState")}},N={};function M(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||T}Object.freeze(N),M.prototype.isReactComponent={},M.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&x(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var S={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},I=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){k(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var R in S)S.hasOwnProperty(R)&&I(R,S[R]);function O(){}function P(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||T}O.prototype=M.prototype;var L=P.prototype=new O;L.constructor=P,t(L,M.prototype),L.isPureReactComponent=!0;var B={current:null,currentDispatcher:null},A=/^(.*)[\\\/]/,j=1;function U(e){if(null==e)return null;if("number"==typeof e.tag&&C(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return"ConcurrentMode";case o:return"Fragment";case i:return"Portal";case u:return"Profiler";case s:return"StrictMode";case h:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case c:return"Context.Provider";case p:return r=e,a=e.render,l="ForwardRef",g=a.displayName||a.name||"",r.displayName||(""!==g?l+"("+g+")":l);case m:return U(e.type);case b:var t=(n=e)._status===j?n._result:null;if(t)return U(t)}var n,r,a,l,g;return null}var z={},F=null;function W(e){F=e}z.getCurrentStack=null,z.getStackAddendum=function(){var e="";if(F){var t=U(F.type),n=F._owner;e+=function(e,t,n){var r="";if(t){var a=t.fileName,i=a.replace(A,"");if(/^index\./.test(i)){var o=a.match(A);if(o){var l=o[1];l&&(i=l.replace(A,"")+"/"+i)}}r=" (at "+i+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(t,F._source,n&&U(n.type))}var r=z.getCurrentStack;return r&&(e+=r()||""),e};var Z={ReactCurrentOwner:B,assign:t};t(Z,{ReactDebugCurrentFrame:z,ReactComponentTreeHook:{}});var H=function(e,t){if(!e){for(var n=Z.ReactDebugCurrentFrame.getStackAddendum(),r=arguments.length,a=Array(r>2?r-2:0),i=2;i1){for(var c=Array(u),f=0;f.")}return t}(t);if(!ge[n]){ge[n]=!0;var r="";e&&e._owner&&e._owner!==B.current&&(r=" It was passed a child from "+U(e._owner.type)+"."),W(e),H(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),W(null)}}}function ye(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,H(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var u=X.apply(this,arguments);if(null==u)return u;if(r)for(var c=2;c is not supported and will be removed in a future major release. Did you mean to render instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,H(!1,"Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),n.Consumer}}}),n.Consumer=i,n._currentRenderer=null,n._currentRenderer2=null,n},forwardRef:function(e){return null!=e&&e.$$typeof===m?C(!1,"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&C(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:b,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return he(e)||C(!1,"memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:m,type:e,compare:void 0===t?null:t}},Fragment:o,StrictMode:s,Suspense:h,createElement:we,cloneElement:function(e,n,r){for(var a=function(e,n,r){null==e&&x(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var a=void 0,i=t({},e.props),o=e.key,l=e.ref,s=e._self,u=e._source,c=e._owner;if(null!=n){q(n)&&(l=n.ref,c=B.current),Q(n)&&(o=""+n.key);var f=void 0;for(a in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),n)G.call(n,a)&&!Y.hasOwnProperty(a)&&(void 0===n[a]&&void 0!==f?i[a]=f[a]:i[a]=n[a])}var d=arguments.length-2;if(1===d)i.children=r;else if(d>1){for(var p=Array(d),h=0;h=t){n=e;break}e=e.next}while(e!==r);null===n?n=r:n===r&&(r=s,c()),(t=n.previous).next=n.previous=s,s.next=n,s.previous=t}}function d(){if(-1===o&&null!==r&&1===r.priorityLevel){s=!0;try{do{f()}while(null!==r&&1===r.priorityLevel)}finally{s=!1,null!==r?c():u=!1}}}function p(e){s=!0;var t=a;a=e;try{if(e)for(;null!==r;){var i=n.unstable_now();if(!(r.expirationTime<=i))break;do{f()}while(null!==r&&r.expirationTime<=i)}else if(null!==r)do{f()}while(null!==r&&!D())}finally{s=!1,a=t,null!==r?c():u=!1,d()}}var h,m,b=Date,g="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,_="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){h=y(function(t){v(m),e(t)}),m=g(function(){_(h),e(n.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;n.unstable_now=function(){return x.now()}}else n.unstable_now=function(){return b.now()};var k,C,D,E=null;if("undefined"!=typeof window?E=window:void 0!==e&&(E=e),E&&E._schedMock){var T=E._schedMock;k=T[0],C=T[1],D=T[2],n.unstable_now=T[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var N=null,M=function(e){if(null!==N)try{N(e)}finally{N=null}};k=function(e){null!==N?setTimeout(k,0,e):(N=e,setTimeout(M,0,!1))},C=function(){N=null},D=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof _&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var S=null,I=!1,R=-1,O=!1,P=!1,L=0,B=33,A=33;D=function(){return L<=n.unstable_now()};var j=new MessageChannel,U=j.port2;j.port1.onmessage=function(){I=!1;var e=S,t=R;S=null,R=-1;var r=n.unstable_now(),a=!1;if(0>=L-r){if(!(-1!==t&&t<=r))return O||(O=!0,w(z)),S=e,void(R=t);a=!0}if(null!==e){P=!0;try{e(a)}finally{P=!1}}};var z=function(e){if(null!==S){w(z);var t=e-L+A;tt&&(t=8),A=tt?U.postMessage(void 0):O||(O=!0,w(z))},C=function(){S=null,I=!1,R=-1}}n.unstable_ImmediatePriority=1,n.unstable_UserBlockingPriority=2,n.unstable_NormalPriority=3,n.unstable_IdlePriority=5,n.unstable_LowPriority=4,n.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,a=o;i=e,o=n.unstable_now();try{return t()}finally{i=r,o=a,d()}},n.unstable_next=function(e){switch(i){case 1:case 2:case 3:var t=3;break;default:t=i}var r=i,a=o;i=t,o=n.unstable_now();try{return e()}finally{i=r,o=a,d()}},n.unstable_scheduleCallback=function(e,t){var a=-1!==o?o:n.unstable_now();if("object"==typeof t&&null!==t&&"number"==typeof t.timeout)t=a+t.timeout;else switch(i){case 1:t=a+-1;break;case 2:t=a+250;break;case 5:t=a+1073741823;break;case 4:t=a+1e4;break;default:t=a+5e3}if(e={callback:e,priorityLevel:i,expirationTime:t,next:null,previous:null},null===r)r=e.next=e.previous=e,c();else{a=null;var l=r;do{if(l.expirationTime>t){a=l;break}l=l.next}while(l!==r);null===a?a=r:a===r&&(r=e,c()),(t=a.previous).next=a.previous=e,e.next=a,e.previous=t}return e},n.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)r=null;else{e===r&&(r=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},n.unstable_wrapCallback=function(e){var t=i;return function(){var r=i,a=o;i=t,o=n.unstable_now();try{return e.apply(this,arguments)}finally{i=r,o=a,d()}}},n.unstable_getCurrentPriorityLevel=function(){return i},n.unstable_shouldYield=function(){return!a&&(null!==r&&r.expirationTime=i){c=f;break}f=f.next}while(f!==p);null===c?c=p:c===p&&(p=u,w());var d=c.previous;d.next=c.previous=u,u.next=c,u.previous=d}}}function k(){if(-1===b&&null!==p&&p.priorityLevel===r){v=!0;try{do{x()}while(null!==p&&p.priorityLevel===r)}finally{v=!1,null!==p?w():y=!1}}}function C(e){v=!0;var r=h;h=e;try{if(e)for(;null!==p&&!t;){var a=n.unstable_now();if(!(p.expirationTime<=a))break;do{x()}while(null!==p&&p.expirationTime<=a&&!t)}else if(null!==p)do{x()}while(null!==p&&!M())}finally{v=!1,h=r,null!==p?w():y=!1,k()}}var D,E,T,N,M,S=Date,I="function"==typeof setTimeout?setTimeout:void 0,R="function"==typeof clearTimeout?clearTimeout:void 0,O="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,P="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0,L=function(e){D=O(function(t){R(E),e(t)}),E=I(function(){P(D),e(n.unstable_now())},100)};if(_){var B=performance;n.unstable_now=function(){return B.now()}}else n.unstable_now=function(){return S.now()};var A=null;if("undefined"!=typeof window?A=window:void 0!==e&&(A=e),A&&A._schedMock){var j=A._schedMock;T=j[0],N=j[1],M=j[2],n.unstable_now=j[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var U=null,z=function(e){if(null!==U)try{U(e)}finally{U=null}};T=function(e,t){null!==U?setTimeout(T,0,e):(U=e,setTimeout(z,0,!1))},N=function(){U=null},M=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof O&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof P&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var F=null,W=!1,Z=-1,H=!1,G=!1,Y=0,V=33,$=33;M=function(){return Y<=n.unstable_now()};var q=new MessageChannel,Q=q.port2;q.port1.onmessage=function(e){W=!1;var t=F,r=Z;F=null,Z=-1;var a=n.unstable_now(),i=!1;if(Y-a<=0){if(!(-1!==r&&r<=a))return H||(H=!0,L(K)),F=t,void(Z=r);i=!0}if(null!==t){G=!0;try{t(i)}finally{G=!1}}};var K=function(e){if(null!==F){L(K);var t=e-Y+$;t<$&&V<$?(t<8&&(t=8),$=th){y=_;break}_=_.next}while(_!==p);null===y?y=p:y===p&&(p=v,w());var x=y.previous;x.next=y.previous=v,v.next=y,v.previous=x}return v},n.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)p=null;else{e===p&&(p=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},n.unstable_wrapCallback=function(e){var t=m;return function(){var r=m,a=b;m=t,b=n.unstable_now();try{return e.apply(this,arguments)}finally{m=r,b=a,k()}}},n.unstable_getCurrentPriorityLevel=function(){return m},n.unstable_shouldYield=function(){return!h&&(null!==p&&p.expirationTimethis.eventPool.length&&this.eventPool.push(e)}function Se(e){e.eventPool=[],e.getPooled=Ne,e.release=Me}l(Te.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=De)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=De)},persist:function(){this.isPersistent=De},isPersistent:Ee,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Ee,this._dispatchInstances=this._dispatchListeners=null}}),Te.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Te.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return l(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=l({},r.Interface,e),n.extend=r.extend,Se(n),n},Se(Te);var Ie=Te.extend({data:null}),Re=Te.extend({data:null}),Oe=[9,13,27,32],Pe=ce&&"CompositionEvent"in window,Le=null;ce&&"documentMode"in document&&(Le=document.documentMode);var Be=ce&&"TextEvent"in window&&!Le,Ae=ce&&(!Pe||Le&&8=Le),je=String.fromCharCode(32),Ue={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ze=!1;function Fe(e,t){switch(e){case"keyup":return-1!==Oe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function We(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ze=!1;var He={eventTypes:Ue,extractEvents:function(e,t,n,r){var a=void 0,i=void 0;if(Pe)e:{switch(e){case"compositionstart":a=Ue.compositionStart;break e;case"compositionend":a=Ue.compositionEnd;break e;case"compositionupdate":a=Ue.compositionUpdate;break e}a=void 0}else Ze?Fe(e,n)&&(a=Ue.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=Ue.compositionStart);return a?(Ae&&"ko"!==n.locale&&(Ze||a!==Ue.compositionStart?a===Ue.compositionEnd&&Ze&&(i=Ce()):(xe="value"in(we=r)?we.value:we.textContent,Ze=!0)),a=Ie.getPooled(a,t,n,r),i?a.data=i:null!==(i=We(n))&&(a.data=i),ue(a),i=a):i=null,(e=Be?function(e,t){switch(e){case"compositionend":return We(t);case"keypress":return 32!==t.which?null:(ze=!0,je);case"textInput":return(e=t.data)===je&&ze?null:e;default:return null}}(e,n):function(e,t){if(Ze)return"compositionend"===e||!Pe&&Fe(e,t)?(e=Ce(),ke=xe=we=null,Ze=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!Tt.call(Mt,e)||!Tt.call(Nt,e)&&(Et.test(e)?Mt[e]=!0:(Nt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Lt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Bt(e,t){var n=t.checked;return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function At(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Lt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function jt(e,t){null!=(t=t.checked)&&Pt(e,"checked",t,!1)}function Ut(e,t){jt(e,t);var n=Lt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ft(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ft(e,t.type,Lt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function zt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ft(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Rt,Ot);It[t]=new St(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Rt,Ot);It[t]=new St(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rt,Ot);It[t]=new St(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){It[e]=new St(e,1,!1,e.toLowerCase(),null)});var Wt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Zt(e,t,n){return(e=Te.getPooled(Wt.change,e,t,n)).type="change",function(e){Ye?Ve?Ve.push(e):Ve=[e]:Ye=e}(n),ue(e),e}var Ht=null,Gt=null;function Yt(e){X(e)}function Vt(e){if(ot(re(e)))return e}function $t(e,t){if("change"===e)return t}var qt=!1;function Qt(){Ht&&(Ht.detachEvent("onpropertychange",Kt),Gt=Ht=null)}function Kt(e){"value"===e.propertyName&&Vt(Gt)&&Je(Yt,e=Zt(Gt,e,nt(e)))}function Xt(e,t,n){"focus"===e?(Qt(),Gt=n,(Ht=t).attachEvent("onpropertychange",Kt)):"blur"===e&&Qt()}function Jt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vt(Gt)}function en(e,t){if("click"===e)return Vt(t)}function tn(e,t){if("input"===e||"change"===e)return Vt(t)}ce&&(qt=rt("input")&&(!document.documentMode||9Un.length&&Un.push(e)}}}var Yn={},Vn=0,$n="_reactListenersID"+(""+Math.random()).slice(2);function qn(e){return Object.prototype.hasOwnProperty.call(e,$n)||(e[$n]=Vn++,Yn[e[$n]]={}),Yn[e[$n]]}function Qn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Kn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xn(e,t){var n,r=Kn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Kn(r)}}function Jn(){for(var e=window,t=Qn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Qn((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function tr(e){var t=Jn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&er(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Xn(n,i);var o=Xn(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,rr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ar=null,ir=null,or=null,lr=!1;function sr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return lr||null==ar||ar!==Qn(n)?null:("selectionStart"in(n=ar)&&er(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},or&&vn(or,n)?null:(or=n,(e=Te.getPooled(rr.select,ir,e,t)).type="select",e.target=ar,ue(e),e))}var ur={eventTypes:rr,extractEvents:function(e,t,n,r){var a,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(a=!i)){e:{i=qn(i),a=z.onSelect;for(var o=0;o=t.length||E("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:Lt(n)}}function hr(e,t){var n=Lt(t.value),r=Lt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function mr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}q("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),F=ae,W=function(e){return!(e=e[ee])||5!==e.tag&&6!==e.tag?null:e},Z=re,Q({SimpleEventPlugin:An,EnterLeaveEventPlugin:mn,ChangeEventPlugin:nn,SelectEventPlugin:ur,BeforeInputEventPlugin:He});var br={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function gr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function vr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?gr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var yr,_r=void 0,wr=(yr=function(e,t){if(e.namespaceURI!==br.svg||"innerHTML"in e)e.innerHTML=t;else{for((_r=_r||document.createElement("div")).innerHTML="",t=_r.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return yr(e,t)})}:yr);function xr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var kr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cr=["Webkit","ms","Moz","O"];function Dr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function Er(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=Dr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(kr).forEach(function(e){Cr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});var Tr=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nr(e,t){t&&(Tr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&E("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&E("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||E("61")),null!=t.style&&"object"!=typeof t.style&&E("62",""))}function Mr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Sr(e,t){var n=qn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=z[t];for(var r=0;rZr||(e.current=Wr[Zr],Wr[Zr]=null,Zr--)}function Gr(e,t){Wr[++Zr]=e.current,e.current=t}var Yr={},Vr={current:Yr},$r={current:!1},qr=Yr;function Qr(e,t){var n=e.type.contextTypes;if(!n)return Yr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Kr(e){return null!=(e=e.childContextTypes)}function Xr(e){Hr($r),Hr(Vr)}function Jr(e){Hr($r),Hr(Vr)}function ea(e,t,n){Vr.current!==Yr&&E("168"),Gr(Vr,t),Gr($r,n)}function ta(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Yr,qr=Vr.current,Gr(Vr,t),Gr($r,$r.current),!0}function na(e,t,n){var r=e.stateNode;r||E("169"),n?(t=function(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())a in e||E("108",Ct(t)||"Unknown",a);return l({},n,r)}(e,t,qr),r.__reactInternalMemoizedMergedChildContext=t,Hr($r),Hr(Vr),Gr(Vr,t)):Hr($r),Gr($r,n)}var ra=null,aa=null;function ia(e){return function(t){try{return e(t)}catch(e){}}}function oa(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function la(e,t,n,r){return new oa(e,t,n,r)}function sa(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ua(e,t){var n=e.alternate;return null===n?((n=la(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ca(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)sa(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case dt:return fa(n.children,a,i,t);case gt:return da(n,3|a,i,t);case pt:return da(n,2|a,i,t);case ht:return(e=la(12,n,t,4|a)).elementType=ht,e.type=ht,e.expirationTime=i,e;case yt:return(e=la(13,n,t,a)).elementType=yt,e.type=yt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case mt:o=10;break e;case bt:o=9;break e;case vt:o=11;break e;case _t:o=14;break e;case wt:o=16,r=null;break e}E("130",null==e?e:typeof e,"")}return(t=la(o,n,t,a)).elementType=e,t.type=r,t.expirationTime=i,t}function fa(e,t,n,r){return(e=la(7,e,r,t)).expirationTime=n,e}function da(e,t,n,r){return e=la(8,e,r,t),t=0==(1&t)?pt:gt,e.elementType=t,e.type=t,e.expirationTime=n,e}function pa(e,t,n){return(e=la(6,e,null,t)).expirationTime=n,e}function ha(e,t,n){return(t=la(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ma(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:nt&&(e.latestPendingTime=t),va(t,e)}function ba(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:nt&&(e.latestSuspendedTime=t),va(t,e)}function ga(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function va(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,a=t.earliestPendingTime,i=t.latestPingedTime;0===(a=0!==a?a:i)&&(0===e||re&&(e=n),t.nextExpirationTimeToWorkOn=a,t.expirationTime=e}function ya(e,t){if(e&&e.defaultProps)for(var n in t=l({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var _a=(new w.Component).refs;function wa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:l({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var xa={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===yn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Bl(),a=fo(r=cl(r,e));a.payload=t,null!=n&&(a.callback=n),al(),ho(e,a),pl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Bl(),a=fo(r=cl(r,e));a.tag=io,a.payload=t,null!=n&&(a.callback=n),al(),ho(e,a),pl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Bl(),r=fo(n=cl(n,e));r.tag=oo,null!=t&&(r.callback=t),al(),ho(e,r),pl(e,n)}};function ka(e,t,n,r,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!vn(n,r)||!vn(a,i))}function Ca(e,t,n){var r=!1,a=Yr,i=t.contextType;return"object"==typeof i&&null!==i?i=ro(i):(a=Kr(t)?qr:Vr.current,i=(r=null!=(r=t.contextTypes))?Qr(e,a):Yr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=xa,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Da(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xa.enqueueReplaceState(t,t.state,null)}function Ea(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=_a;var i=t.contextType;"object"==typeof i&&null!==i?a.context=ro(i):(i=Kr(t)?qr:Vr.current,a.context=Qr(e,i)),null!==(i=e.updateQueue)&&(vo(e,i,n,a,r),a.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(wa(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&xa.enqueueReplaceState(a,a.state,null),null!==(i=e.updateQueue)&&(vo(e,i,n,a,r),a.state=e.memoizedState)),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Ta=Array.isArray;function Na(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&E("309"),r=n.stateNode),r||E("147",e);var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===_a&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}"string"!=typeof e&&E("284"),n._owner||E("290",e)}return e}function Ma(e,t){"textarea"!==e.type&&E("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Sa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t,n){return(e=ua(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)m?(b=h,h=null):b=h.sibling;var g=d(a,h,l[m],s);if(null===g){null===h&&(h=b);break}e&&h&&null===g.alternate&&t(a,h),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g,h=b}if(m===l.length)return n(a,h),u;if(null===h){for(;mm?(b=h,h=null):b=h.sibling;var v=d(a,h,g.value,s);if(null===v){h||(h=b);break}e&&h&&null===v.alternate&&t(a,h),o=i(v,o,m),null===c?u=v:c.sibling=v,c=v,h=b}if(g.done)return n(a,h),u;if(null===h){for(;!g.done;m++,g=l.next())null!==(g=f(a,g.value,s))&&(o=i(g,o,m),null===c?u=g:c.sibling=g,c=g);return u}for(h=r(a,h);!g.done;m++,g=l.next())null!==(g=p(h,a,m,g.value,s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach(function(e){return t(a,e)}),u}return function(e,r,i,l){var s="object"==typeof i&&null!==i&&i.type===dt&&null===i.key;s&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ct:e:{for(u=i.key,s=r;null!==s;){if(s.key===u){if(7===s.tag?i.type===dt:s.elementType===i.type){n(e,s.sibling),(r=a(s,i.type===dt?i.props.children:i.props)).ref=Na(e,s,i),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}i.type===dt?((r=fa(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=ca(i.type,i.key,i.props,null,e.mode,l)).ref=Na(e,r,i),l.return=e,e=l)}return o(e);case ft:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ha(i,e.mode,l)).return=e,e=r}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=pa(i,e.mode,l)).return=e,e=r),o(e);if(Ta(i))return h(e,r,i,l);if(kt(i))return m(e,r,i,l);if(u&&Ma(e,i),void 0===i&&!s)switch(e.tag){case 1:case 0:E("152",(l=e.type).displayName||l.name||"Component")}return n(e,r)}}var Ia=Sa(!0),Ra=Sa(!1),Oa={},Pa={current:Oa},La={current:Oa},Ba={current:Oa};function Aa(e){return e===Oa&&E("174"),e}function ja(e,t){Gr(Ba,t),Gr(La,e),Gr(Pa,Oa);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vr(null,"");break;default:t=vr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Hr(Pa),Gr(Pa,t)}function Ua(e){Hr(Pa),Hr(La),Hr(Ba)}function za(e){Aa(Ba.current);var t=Aa(Pa.current),n=vr(t,e.type);t!==n&&(Gr(La,e),Gr(Pa,n))}function Fa(e){La.current===e&&(Hr(Pa),Hr(La))}var Wa=0,Za=2,Ha=4,Ga=8,Ya=16,Va=32,$a=64,qa=128,Qa=lt.ReactCurrentDispatcher,Ka=0,Xa=null,Ja=null,ei=null,ti=null,ni=null,ri=null,ai=0,ii=null,oi=0,li=!1,si=null,ui=0;function ci(){E("321")}function fi(e,t){if(null===t)return!1;for(var n=0;nai&&(ai=c)):i=s.eagerReducer===e?s.eagerState:e(i,s.action),o=s,s=s.next}while(null!==s&&s!==r);u||(l=o,a=i),bn(i,t.memoizedState)||(Ai=!0),t.memoizedState=i,t.baseUpdate=l,t.baseState=a,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function vi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===ii?(ii={lastEffect:null}).lastEffect=e.next=e:null===(t=ii.lastEffect)?ii.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,ii.lastEffect=e),e}function yi(e,t,n,r){var a=hi();oi|=e,a.memoizedState=vi(t,n,void 0,void 0===r?null:r)}function _i(e,t,n,r){var a=mi();r=void 0===r?null:r;var i=void 0;if(null!==Ja){var o=Ja.memoizedState;if(i=o.destroy,null!==r&&fi(r,o.deps))return void vi(Wa,n,i,r)}oi|=e,a.memoizedState=vi(t,n,i,r)}function wi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xi(){}function ki(e,t,n){25>ui||E("301");var r=e.alternate;if(e===Xa||null!==r&&r===Xa)if(li=!0,e={expirationTime:Ka,action:n,eagerReducer:null,eagerState:null,next:null},null===si&&(si=new Map),void 0===(n=si.get(t)))si.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{al();var a=Bl(),i={expirationTime:a=cl(a,e),action:n,eagerReducer:null,eagerState:null,next:null},o=t.last;if(null===o)i.next=i;else{var l=o.next;null!==l&&(i.next=l),o.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=r(s,n);if(i.eagerReducer=r,i.eagerState=u,bn(u,s))return}catch(e){}pl(e,a)}}var Ci={readContext:ro,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useLayoutEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci},Di={readContext:ro,useCallback:function(e,t){return hi().memoizedState=[e,void 0===t?null:t],e},useContext:ro,useEffect:function(e,t){return yi(516,qa|$a,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yi(4,Ha|Va,wi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4,Ha|Va,e,t)},useMemo:function(e,t){var n=hi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ki.bind(null,Xa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},hi().memoizedState=e},useState:function(e){var t=hi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e}).dispatch=ki.bind(null,Xa,e),[t.memoizedState,e]},useDebugValue:xi},Ei={readContext:ro,useCallback:function(e,t){var n=mi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:ro,useEffect:function(e,t){return _i(516,qa|$a,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,_i(4,Ha|Va,wi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _i(4,Ha|Va,e,t)},useMemo:function(e,t){var n=mi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:gi,useRef:function(){return mi().memoizedState},useState:function(e){return gi(bi)},useDebugValue:xi},Ti=null,Ni=null,Mi=!1;function Si(e,t){var n=la(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ii(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ri(e){if(Mi){var t=Ni;if(t){var n=t;if(!Ii(e,t)){if(!(t=zr(n))||!Ii(e,t))return e.effectTag|=2,Mi=!1,void(Ti=e);Si(Ti,n)}Ti=e,Ni=Fr(t)}else e.effectTag|=2,Mi=!1,Ti=e}}function Oi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;Ti=e}function Pi(e){if(e!==Ti)return!1;if(!Mi)return Oi(e),Mi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Lr(t,e.memoizedProps))for(t=Ni;t;)Si(e,t),t=zr(t);return Oi(e),Ni=Ti?zr(e.stateNode):null,!0}function Li(){Ni=Ti=null,Mi=!1}var Bi=lt.ReactCurrentOwner,Ai=!1;function ji(e,t,n,r){t.child=null===e?Ra(t,null,n,r):Ia(t,e.child,n,r)}function Ui(e,t,n,r,a){n=n.render;var i=t.ref;return no(t,a),r=di(e,t,n,r,i,a),null===e||Ai?(t.effectTag|=1,ji(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),$i(e,t,a))}function zi(e,t,n,r,a,i){if(null===e){var o=n.type;return"function"!=typeof o||sa(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ca(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Fi(e,t,o,r,a,i))}return o=e.child,a=n?Vi(e,t,n):null!==(t=$i(e,t,n))?t.sibling:null}return $i(e,t,n)}}else Ai=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var a=Qr(t,Vr.current);if(no(t,n),a=di(null,t,r,e,a,n),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,pi(),Kr(r)){var i=!0;ta(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var o=r.getDerivedStateFromProps;"function"==typeof o&&wa(t,r,o,e),a.updater=xa,t.stateNode=a,a._reactInternalFiber=t,Ea(t,r,e,n),t=Gi(null,t,r,!0,i,n)}else t.tag=0,ji(null,t,a,n),t=t.child;return t;case 16:switch(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(a),t.type=e,a=t.tag=function(e){if("function"==typeof e)return sa(e)?1:0;if(null!=e){if((e=e.$$typeof)===vt)return 11;if(e===_t)return 14}return 2}(e),i=ya(e,i),o=void 0,a){case 0:o=Zi(null,t,e,i,n);break;case 1:o=Hi(null,t,e,i,n);break;case 11:o=Ui(null,t,e,i,n);break;case 14:o=zi(null,t,e,ya(e.type,i),r,n);break;default:E("306",e,"")}return o;case 0:return r=t.type,a=t.pendingProps,Zi(e,t,r,a=t.elementType===r?a:ya(r,a),n);case 1:return r=t.type,a=t.pendingProps,Hi(e,t,r,a=t.elementType===r?a:ya(r,a),n);case 3:return Yi(t),null===(r=t.updateQueue)&&E("282"),a=null!==(a=t.memoizedState)?a.element:null,vo(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===a?(Li(),t=$i(e,t,n)):(a=t.stateNode,(a=(null===e||null===e.child)&&a.hydrate)&&(Ni=Fr(t.stateNode.containerInfo),Ti=t,a=Mi=!0),a?(t.effectTag|=2,t.child=Ra(t,null,r,n)):(ji(e,t,r,n),Li()),t=t.child),t;case 5:return za(t),null===e&&Ri(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,Lr(r,a)?o=null:null!==i&&Lr(r,i)&&(t.effectTag|=16),Wi(e,t),1!==n&&1&t.mode&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ji(e,t,o,n),t=t.child),t;case 6:return null===e&&Ri(t),null;case 13:return Vi(e,t,n);case 4:return ja(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ia(t,null,r,n):ji(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Ui(e,t,r,a=t.elementType===r?a:ya(r,a),n);case 7:return ji(e,t,t.pendingProps,n),t.child;case 8:case 12:return ji(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,eo(t,i=a.value),null!==o){var l=o.value;if(0===(i=bn(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(o.children===a.children&&!$r.current){t=$i(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var s=l.contextDependencies;if(null!==s){o=l.child;for(var u=s.first;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=fo(n)).tag=oo,ho(l,u)),l.expirationTime=t&&(Ai=!0),e.contextDependencies=null}function ro(e,t){return Ji!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi?(null===Ki&&E("308"),Xi=t,Ki.contextDependencies={first:t,expirationTime:0}):Xi=Xi.next=t),e._currentValue}var ao=0,io=1,oo=2,lo=3,so=!1;function uo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function co(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function fo(e){return{expirationTime:e,tag:ao,payload:null,callback:null,next:null,nextEffect:null}}function po(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function ho(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,a=null;null===r&&(r=e.updateQueue=uo(e.memoizedState))}else r=e.updateQueue,a=n.updateQueue,null===r?null===a?(r=e.updateQueue=uo(e.memoizedState),a=n.updateQueue=uo(n.memoizedState)):r=e.updateQueue=co(a):null===a&&(a=n.updateQueue=co(r));null===a||r===a?po(r,t):null===r.lastUpdate||null===a.lastUpdate?(po(r,t),po(a,t)):(po(r,t),a.lastUpdate=t)}function mo(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=uo(e.memoizedState):bo(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function bo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=co(t)),t}function go(e,t,n,r,a,i){switch(n.tag){case io:return"function"==typeof(e=n.payload)?e.call(i,r,a):e;case lo:e.effectTag=-2049&e.effectTag|64;case ao:if(null==(a="function"==typeof(e=n.payload)?e.call(i,r,a):e))break;return l({},r,a);case oo:so=!0}return r}function vo(e,t,n,r,a){so=!1;for(var i=(t=bo(e,t)).baseState,o=null,l=0,s=t.firstUpdate,u=i;null!==s;){var c=s.expirationTime;ct?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?ma(e,t):tn&&ma(e,t)}va(0,e)}(e,a>r?a:r),Fo.current=null,r=void 0,1n?t:n)&&(Jo=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function ol(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Zo=e;e:{var a=t,i=Go,o=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Kr(t.type)&&Xr();break;case 3:Ua(),Jr(),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==a&&null!==a.child||(Pi(t),t.effectTag&=-3),Co(t);break;case 5:Fa(t);var s=Aa(Ba.current);if(i=t.type,null!==a&&null!=t.stateNode)Do(a,t,i,o,s),a.ref!==t.ref&&(t.effectTag|=128);else if(o){var u=Aa(Pa.current);if(Pi(t)){a=(o=t).stateNode;var c=o.type,f=o.memoizedProps,d=s;switch(a[ee]=o,a[te]=f,i=void 0,s=c){case"iframe":case"object":Wn("load",a);break;case"video":case"audio":for(c=0;c<_e.length;c++)Wn(_e[c],a);break;case"source":Wn("error",a);break;case"img":case"image":case"link":Wn("error",a),Wn("load",a);break;case"form":Wn("reset",a),Wn("submit",a);break;case"details":Wn("toggle",a);break;case"input":At(a,f),Wn("invalid",a),Sr(d,"onChange");break;case"select":a._wrapperState={wasMultiple:!!f.multiple},Wn("invalid",a),Sr(d,"onChange");break;case"textarea":pr(a,f),Wn("invalid",a),Sr(d,"onChange")}for(i in Nr(s,f),c=null,f)f.hasOwnProperty(i)&&(u=f[i],"children"===i?"string"==typeof u?a.textContent!==u&&(c=["children",u]):"number"==typeof u&&a.textContent!==""+u&&(c=["children",""+u]):U.hasOwnProperty(i)&&null!=u&&Sr(d,i));switch(s){case"input":it(a),zt(a,f,!0);break;case"textarea":it(a),mr(a);break;case"select":case"option":break;default:"function"==typeof f.onClick&&(a.onclick=Ir)}i=c,o.updateQueue=i,(o=null!==i)&&xo(t)}else{f=t,d=i,a=o,c=9===s.nodeType?s:s.ownerDocument,u===br.html&&(u=gr(d)),u===br.html?"script"===d?((a=c.createElement("div")).innerHTML="
-
-
-
-
-