rails_omnibar 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb8dc9106768dd42363729701b4590ff5a8f8276d675e5b408e9475d06f1e756
4
- data.tar.gz: fb4070d55e1ee60265dd7fba81506556b03d974edb6c95a2a9a6d22e4fcca40e
3
+ metadata.gz: 6bab607e6f67ce24f6bc14baa98c3a0e133db8ff0bbe8274d01c4adc3867b8cd
4
+ data.tar.gz: 5a8b5c888f650103a8f45a308599d79e61434af69c60339170a70f4e4f728b3f
5
5
  SHA512:
6
- metadata.gz: 6b3ca6606749745f045e671efa9119aebcc695dec2c55072bb2042877b402f734d44e6ac89fc30e5a96321a8e6d15188f7ce327d7eb821bba94839e5e48467a9
7
- data.tar.gz: 365ab2b1d105d7639828ba5bb1cc65c1a339f2ce5450a9740fd00559d7c793fc1d3ee5156924e211fa4e1a34748309e6f602423ea444a51f66ff2ac5c08af3a6
6
+ metadata.gz: d4a3e552c8a4488091be3ec8a1d34eda5fb4121f117636e7010ca7471c0c1734a342eea7ea8eb01650602ba79b2572787d759f6a0458bc0a7c0ecabe0986d04c
7
+ data.tar.gz: da1e081128a3e43e531a3581ec806af1ce53b3098ce83ef10b3c20e27e9bb6a80d0d127a20caa388959eca396044b2ecf73e70f19872ddebb28211994a63377f
@@ -8,7 +8,7 @@ jobs:
8
8
 
9
9
  strategy:
10
10
  matrix:
11
- ruby: [ '3.0', 'ruby-head' ]
11
+ ruby: [ '3.2', '3.3' ]
12
12
 
13
13
  steps:
14
14
  - uses: actions/checkout@v3
data/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## Unreleased
8
+
9
+ ## [1.9.0] - 2024-12-11
10
+
11
+ ### Added
12
+
13
+ - support for multiple omnibars on the same page
14
+
15
+ ### Fixed
16
+
17
+ - relaxed rails version requirement
18
+ - fixed some items generated from active admin resources being mislabeled
19
+
7
20
  ## [1.8.0] - 2024-07-06
8
21
 
9
22
  ### Added
data/Gemfile CHANGED
@@ -4,15 +4,16 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  group :development, :test do
7
- gem 'activeadmin', '~> 3.0' # to test activeadmin integration
7
+ gem 'activeadmin', '~> 4.0.0.beta13' # to test activeadmin integration
8
+ gem 'importmap-rails' # needed for activeadmin
8
9
  gem 'capybara', '~> 3.0'
9
10
  gem 'csv' # needed for activeadmin, standalone on Ruby >= 3.4
11
+ gem 'debug'
10
12
  gem 'devise', '~> 4.8' # to test auth feature
11
13
  gem 'factory_bot_rails', '~> 6.0'
12
14
  gem 'puma', '~> 6.0'
13
- gem 'rake', '~> 13.0'
14
- gem 'rspec-rails', '~> 5.0'
15
- gem 'sqlite3', '~> 1.4'
16
- gem 'sprockets-rails', '~> 3.4' # for activeadmin
17
- gem 'webdrivers', '~> 5.0'
15
+ gem 'rake', '~> 13.2'
16
+ gem 'rspec-rails', '~> 6.0'
17
+ gem 'selenium-webdriver', '~> 4.22'
18
+ gem 'sqlite3', '~> 2.1'
18
19
  end
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ task default: [:compile_js, :generate_spec_app, :spec]
10
10
 
11
11
  desc 'Compile the JavaScript'
12
12
  task :compile_js do
13
- sh 'npm run compile'
13
+ sh 'npm run build'
14
14
  end
15
15
 
16
16
  desc 'Generate a dummy rails app for testing'
@@ -24,6 +24,7 @@ task :generate_spec_app do
24
24
  --skip-action-text
25
25
  --skip-active-job
26
26
  --skip-active-storage
27
+ --skip-asset-pipeline
27
28
  --skip-bootsnap
28
29
  --skip-bundle
29
30
  --skip-git
@@ -54,6 +55,7 @@ task :dev_js do
54
55
  npm --prefix ../omnibar2 run build &&
55
56
  rm -rf node_modules/omnibar2 &&
56
57
  cp -r ../omnibar2 ./node_modules &&
58
+ rm -rf ./node_modules/omnibar2/node_modules &&
57
59
  rake compile_js
58
60
  SH
59
61
  end
data/bin/setup CHANGED
@@ -5,4 +5,4 @@ set -vx
5
5
 
6
6
  bundle install
7
7
  npm install
8
- npm run compile
8
+ npm run build
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see compiled.js.LICENSE.txt */
2
- (()=>{var e={320:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M13.2 2.24a.75.75 0 00.04 1.06l2.1 1.95H6.75a.75.75 0 000 1.5h8.59l-2.1 1.95a.75.75 0 101.02 1.1l3.5-3.25a.75.75 0 000-1.1l-3.5-3.25a.75.75 0 00-1.06.04zm-6.4 8a.75.75 0 00-1.06-.04l-3.5 3.25a.75.75 0 000 1.1l3.5 3.25a.75.75 0 101.02-1.1l-2.1-1.95h8.59a.75.75 0 000-1.5H4.66l2.1-1.95a.75.75 0 00.04-1.06z",clipRule:"evenodd"}))}));e.exports=o},483:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M1 12.5A4.5 4.5 0 005.5 17H15a4 4 0 001.866-7.539 3.504 3.504 0 00-4.504-4.272A4.5 4.5 0 004.06 8.235 4.502 4.502 0 001 12.5z"}))}));e.exports=o},439:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M7.84 1.804A1 1 0 018.82 1h2.36a1 1 0 01.98.804l.331 1.652a6.993 6.993 0 011.929 1.115l1.598-.54a1 1 0 011.186.447l1.18 2.044a1 1 0 01-.205 1.251l-1.267 1.113a7.047 7.047 0 010 2.228l1.267 1.113a1 1 0 01.206 1.25l-1.18 2.045a1 1 0 01-1.187.447l-1.598-.54a6.993 6.993 0 01-1.929 1.115l-.33 1.652a1 1 0 01-.98.804H8.82a1 1 0 01-.98-.804l-.331-1.652a6.993 6.993 0 01-1.929-1.115l-1.598.54a1 1 0 01-1.186-.447l-1.18-2.044a1 1 0 01.205-1.251l1.267-1.114a7.05 7.05 0 010-2.227L1.821 7.773a1 1 0 01-.206-1.25l1.18-2.045a1 1 0 011.187-.447l1.598.54A6.993 6.993 0 017.51 3.456l.33-1.652zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}));e.exports=o},269:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M3.25 3A2.25 2.25 0 001 5.25v9.5A2.25 2.25 0 003.25 17h13.5A2.25 2.25 0 0019 14.75v-9.5A2.25 2.25 0 0016.75 3H3.25zm.943 8.752a.75.75 0 01.055-1.06L6.128 9l-1.88-1.693a.75.75 0 111.004-1.114l2.5 2.25a.75.75 0 010 1.114l-2.5 2.25a.75.75 0 01-1.06-.055zM9.75 10.25a.75.75 0 000 1.5h2.5a.75.75 0 000-1.5h-2.5z",clipRule:"evenodd"}))}));e.exports=o},109:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M3 3.5A1.5 1.5 0 014.5 2h6.879a1.5 1.5 0 011.06.44l4.122 4.12A1.5 1.5 0 0117 7.622V16.5a1.5 1.5 0 01-1.5 1.5h-11A1.5 1.5 0 013 16.5v-13z"}))}));e.exports=o},228:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9.293 2.293a1 1 0 011.414 0l7 7A1 1 0 0117 11h-1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-3a1 1 0 00-1-1H9a1 1 0 00-1 1v3a1 1 0 01-1 1H5a1 1 0 01-1-1v-6H3a1 1 0 01-.707-1.707l7-7z",clipRule:"evenodd"}))}));e.exports=o},218:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"}))}));e.exports=o},331:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.94 6.94a.75.75 0 11-1.061-1.061 3 3 0 112.871 5.026v.345a.75.75 0 01-1.5 0v-.5c0-.72.57-1.172 1.081-1.287A1.5 1.5 0 108.94 6.94zM10 15a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))}));e.exports=o},358:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M15.98 1.804a1 1 0 00-1.96 0l-.24 1.192a1 1 0 01-.784.785l-1.192.238a1 1 0 000 1.962l1.192.238a1 1 0 01.785.785l.238 1.192a1 1 0 001.962 0l.238-1.192a1 1 0 01.785-.785l1.192-.238a1 1 0 000-1.962l-1.192-.238a1 1 0 01-.785-.785l-.238-1.192zM6.949 5.684a1 1 0 00-1.898 0l-.683 2.051a1 1 0 01-.633.633l-2.051.683a1 1 0 000 1.898l2.051.684a1 1 0 01.633.632l.683 2.051a1 1 0 001.898 0l.683-2.051a1 1 0 01.633-.633l2.051-.683a1 1 0 000-1.898l-2.051-.683a1 1 0 01-.633-.633L6.95 5.684zM13.949 13.684a1 1 0 00-1.898 0l-.184.551a1 1 0 01-.632.633l-.551.183a1 1 0 000 1.898l.551.183a1 1 0 01.633.633l.183.551a1 1 0 001.898 0l.184-.551a1 1 0 01.632-.633l.551-.183a1 1 0 000-1.898l-.551-.184a1 1 0 01-.633-.632l-.183-.551z"}))}));e.exports=o},496:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M10 8a3 3 0 100-6 3 3 0 000 6zM3.465 14.493a1.23 1.23 0 00.41 1.412A9.957 9.957 0 0010 18c2.31 0 4.438-.784 6.131-2.1.43-.333.604-.903.408-1.41a7.002 7.002 0 00-13.074.003z"}))}));e.exports=o},65:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M1 4.25a3.733 3.733 0 012.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0016.75 2H3.25A2.25 2.25 0 001 4.25zM1 7.25a3.733 3.733 0 012.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0016.75 5H3.25A2.25 2.25 0 001 7.25zM7 8a1 1 0 011 1 2 2 0 104 0 1 1 0 011-1h3.75A2.25 2.25 0 0119 10.25v5.5A2.25 2.25 0 0116.75 18H3.25A2.25 2.25 0 011 15.75v-5.5A2.25 2.25 0 013.25 8H7z"}))}));e.exports=o},505:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"}))}));e.exports=o},875:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),l={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},360:function(e,t){var n,r;void 0===(r="function"==typeof(n=e=>{"use strict";var t=(e,t)=>{if(e===x)return x;var n=e.target,r=n.length,o=e._indexes;o=o.slice(0,o.len).sort(((e,t)=>e-t));for(var l="",i=0,a=0,s=!1,u=(e=[],0);u<r;++u){var c=n[u];if(o[a]===u){if(++a,s||(s=!0,e.push(l),l=""),a===o.length){l+=c,e.push(t(l,i++)),l="",e.push(n.substr(u+1));break}}else s&&(s=!1,e.push(t(l,i++)),l="");l+=c}return e},n=e=>{"string"!=typeof e&&(e="");var t=u(e);return{target:e,_targetLower:t._lower,_targetLowerCodes:t.lowerCodes,_nextBeginningIndexes:x,_bitflags:t.bitflags,score:x,_indexes:[0],obj:x}},r=e=>{"string"!=typeof e&&(e=""),e=e.trim();var t=u(e),n=[];if(t.containsSpace){var r=e.split(/\s+/);r=[...new Set(r)];for(var o=0;o<r.length;o++)if(""!==r[o]){var l=u(r[o]);n.push({lowerCodes:l.lowerCodes,_lower:r[o].toLowerCase(),containsSpace:!1})}}return{lowerCodes:t.lowerCodes,bitflags:t.bitflags,containsSpace:t.containsSpace,_lower:t._lower,spaceSearches:n}},o=e=>{if(e.length>999)return n(e);var t=f.get(e);return void 0!==t||(t=n(e),f.set(e,t)),t},l=e=>{if(e.length>999)return r(e);var t=d.get(e);return void 0!==t||(t=r(e),d.set(e,t)),t},i=(e,t,n)=>{var r=[];r.total=t.length;var l=n&&n.limit||m;if(n&&n.key)for(var i=0;i<t.length;i++){var a=t[i];if(f=v(a,n.key)){y(f)||(f=o(f)),f.score=b,f._indexes.len=0;var s=f;if(s={target:s.target,_targetLower:"",_targetLowerCodes:x,_nextBeginningIndexes:x,_bitflags:0,score:f.score,_indexes:x,obj:a},r.push(s),r.length>=l)return r}}else if(n&&n.keys)for(i=0;i<t.length;i++){a=t[i];for(var u=new Array(n.keys.length),c=n.keys.length-1;c>=0;--c)(f=v(a,n.keys[c]))?(y(f)||(f=o(f)),f.score=b,f._indexes.len=0,u[c]=f):u[c]=x;if(u.obj=a,u.score=b,r.push(u),r.length>=l)return r}else for(i=0;i<t.length;i++){var f;if((f=t[i])&&(y(f)||(f=o(f)),f.score=b,f._indexes.len=0,r.push(f),r.length>=l))return r}return r},a=(e,t,n=!1)=>{if(!1===n&&e.containsSpace)return s(e,t);for(var r=e._lower,o=e.lowerCodes,l=o[0],i=t._targetLowerCodes,a=o.length,u=i.length,f=0,d=0,h=0;;){if(l===i[d]){if(p[h++]=d,++f===a)break;l=o[f]}if(++d>=u)return x}f=0;var v=!1,y=0,m=t._nextBeginningIndexes;m===x&&(m=t._nextBeginningIndexes=c(t.target));var b=0;if((d=0===p[0]?0:m[p[0]-1])!==u)for(;;)if(d>=u){if(f<=0)break;if(++b>200)break;--f,d=m[_[--y]]}else if(o[f]===i[d]){if(_[y++]=d,++f===a){v=!0;break}++d}else d=m[d];var g=t._targetLower.indexOf(r,p[0]),w=~g;if(w&&!v)for(var O=0;O<h;++O)p[O]=g+O;var C=!1;if(w&&(C=t._nextBeginningIndexes[g-1]===g),v)var E=_,S=y;else E=p,S=h;var M=0,k=0;for(O=1;O<a;++O)E[O]-E[O-1]!=1&&(M-=E[O],++k);if(M-=(E[a-1]-E[0]-(a-1)+12)*k,0!==E[0]&&(M-=E[0]*E[0]*.2),v){var R=1;for(O=m[0];O<u;O=m[O])++R;R>24&&(M*=10*(R-24))}else M*=1e3;for(w&&(M/=1+a*a*1),C&&(M/=1+a*a*1),M-=u-a,t.score=M,O=0;O<S;++O)t._indexes[O]=E[O];return t._indexes.len=S,t},s=(e,t)=>{for(var n=new Set,r=0,o=x,l=0,i=e.spaceSearches,s=0;s<i.length;++s){var u=i[s];if((o=a(u,t))===x)return x;r+=o.score,o._indexes[0]<l&&(r-=l-o._indexes[0]),l=o._indexes[0];for(var c=0;c<o._indexes.len;++c)n.add(o._indexes[c])}var f=a(e,t,!0);if(f!==x&&f.score>r)return f;o.score=r,s=0;for(let e of n)o._indexes[s++]=e;return o._indexes.len=s,o},u=e=>{for(var t=e.length,n=e.toLowerCase(),r=[],o=0,l=!1,i=0;i<t;++i){var a=r[i]=n.charCodeAt(i);32!==a?o|=1<<(a>=97&&a<=122?a-97:a>=48&&a<=57?26:a<=127?30:31):l=!0}return{lowerCodes:r,bitflags:o,containsSpace:l,_lower:n}},c=e=>{for(var t=e.length,n=(e=>{for(var t=e.length,n=[],r=0,o=!1,l=!1,i=0;i<t;++i){var a=e.charCodeAt(i),s=a>=65&&a<=90,u=s||a>=97&&a<=122||a>=48&&a<=57,c=s&&!o||!l||!u;o=s,l=u,c&&(n[r++]=i)}return n})(e),r=[],o=n[0],l=0,i=0;i<t;++i)o>i?r[i]=o:(o=n[++l],r[i]=void 0===o?t:o);return r},f=new Map,d=new Map,p=[],_=[],h=e=>{for(var t=b,n=e.length,r=0;r<n;++r){var o=e[r];if(o!==x){var l=o.score;l>t&&(t=l)}}return t===b?x:t},v=(e,t)=>{var n=e[t];if(void 0!==n)return n;var r=t;Array.isArray(t)||(r=t.split("."));for(var o=r.length,l=-1;e&&++l<o;)e=e[r[l]];return e},y=e=>"object"==typeof e,m=1/0,b=-m,g=[];g.total=0;var w,O,C,E,x=null,S=(w=[],O=0,E=e=>{for(var t=0,n=w[t],r=1;r<O;){var o=r+1;t=r,o<O&&w[o].score<w[r].score&&(t=o),w[t-1>>1]=w[t],r=1+(t<<1)}for(var l=t-1>>1;t>0&&n.score<w[l].score;l=(t=l)-1>>1)w[t]=w[l];w[t]=n},(C={}).add=e=>{var t=O;w[O++]=e;for(var n=t-1>>1;t>0&&e.score<w[n].score;n=(t=n)-1>>1)w[t]=w[n];w[t]=e},C.poll=e=>{if(0!==O){var t=w[0];return w[0]=w[--O],E(),t}},C.peek=e=>{if(0!==O)return w[0]},C.replaceTop=e=>{w[0]=e,E()},C);return{single:(e,t)=>{if("farzher"==e)return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!e||!t)return x;var n=l(e);y(t)||(t=o(t));var r=n.bitflags;return(r&t._bitflags)!==r?x:a(n,t)},go:(e,t,n)=>{if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:t?t[0]:x}];if(!e)return n&&n.all?i(e,t,n):g;var r=l(e),s=r.bitflags,u=(r.containsSpace,n&&n.threshold||b),c=n&&n.limit||m,f=0,d=0,p=t.length;if(n&&n.key)for(var _=n.key,w=0;w<p;++w){var O=t[w];(P=v(O,_))&&(y(P)||(P=o(P)),(s&P._bitflags)===s&&(T=a(r,P))!==x&&(T.score<u||(T={target:T.target,_targetLower:"",_targetLowerCodes:x,_nextBeginningIndexes:x,_bitflags:0,score:T.score,_indexes:T._indexes,obj:O},f<c?(S.add(T),++f):(++d,T.score>S.peek().score&&S.replaceTop(T)))))}else if(n&&n.keys){var C=n.scoreFn||h,E=n.keys,M=E.length;for(w=0;w<p;++w){O=t[w];for(var k=new Array(M),R=0;R<M;++R)_=E[R],(P=v(O,_))?(y(P)||(P=o(P)),(s&P._bitflags)!==s?k[R]=x:k[R]=a(r,P)):k[R]=x;k.obj=O;var A=C(k);A!==x&&(A<u||(k.score=A,f<c?(S.add(k),++f):(++d,A>S.peek().score&&S.replaceTop(k))))}}else for(w=0;w<p;++w){var P,T;(P=t[w])&&(y(P)||(P=o(P)),(s&P._bitflags)===s&&(T=a(r,P))!==x&&(T.score<u||(f<c?(S.add(T),++f):(++d,T.score>S.peek().score&&S.replaceTop(T)))))}if(0===f)return g;var j=new Array(f);for(w=f-1;w>=0;--w)j[w]=S.poll();return j.total=f+d,j},highlight:(e,n,r)=>{if("function"==typeof n)return t(e,n);if(e===x)return x;void 0===n&&(n="<b>"),void 0===r&&(r="</b>");var o="",l=0,i=!1,a=e.target,s=a.length,u=e._indexes;u=u.slice(0,u.len).sort(((e,t)=>e-t));for(var c=0;c<s;++c){var f=a[c];if(u[l]===c){if(i||(i=!0,o+=n),++l===u.length){o+=f+r+a.substr(c+1);break}}else i&&(i=!1,o+=r);o+=f}return o},prepare:n,indexes:e=>e._indexes.slice(0,e._indexes.len).sort(((e,t)=>e-t)),cleanup:()=>{f.clear(),d.clear(),p=[],_=[]}}})?n.apply(t,[]):n)||(e.exports=r)},736:(e,t,n)=>{"use strict";var r=n(655),o=n(661);const l={BLACK:"#000",BLUE:"#00f",DARKGRAY:"#ddd",GRAY:"#eee",GREEN:"#0f0",RED:"#f00",WHITE:"#fff"},i={all:"revert",borderColor:l.DARKGRAY,borderStyle:"solid",borderWidth:1,boxSizing:"border-box",fontSize:24,height:50,lineHeight:"24px",outline:0,paddingLeft:15,paddingRight:15,width:"100%"};class a extends o.PureComponent{render(){let e=this.props,{style:t}=e,n=r.__rest(e,["style"]);return o.createElement("input",Object.assign({type:"text",style:Object.assign({},i,t)},n))}}const s={all:"revert",borderBottomWidth:1,borderColor:l.DARKGRAY,borderLeftWidth:1,borderRightWidth:1,borderStyle:"solid",borderTopWidth:0,boxSizing:"border-box",color:l.BLACK,display:"block",fontSize:24,height:50,lineHeight:"50px",paddingLeft:15,paddingRight:15,textDecoration:"none",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"};function u(e){const{item:t,isHighlighted:n,isSelected:l,style:i}=e,a=r.__rest(e,["item","isHighlighted","isSelected","style"]),s=c(e);return o.createElement("a",Object.assign({href:t.url,style:s},a),t.title)}function c(e){const{isSelected:t,isHighlighted:n,style:r}=e,o=Object.assign({},s,r);return t&&(o.backgroundColor=l.GRAY),n&&(o.backgroundColor=l.DARKGRAY),o}class f extends o.PureComponent{constructor(){super(...arguments),this.state={isHighlighted:!1},this.handleMouseEnter=e=>{this.setState({isHighlighted:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},this.handleMouseLeave=e=>{this.setState({isHighlighted:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)}}render(){const e=this.props.item;return(this.props.children?this.props.children:u)({style:this.props.style,item:e,isSelected:this.props.isSelected,isHighlighted:this.state.isHighlighted,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.props.onClickItem})}}f.defaultProps={isSelected:!1};const d={all:"revert",position:"absolute",width:"100%",zIndex:2,listStyleType:"none",margin:0,padding:0,backgroundColor:l.WHITE};function p(e){const t=Object.assign({},d,e.style);function n(e,t){return e.bind(this,t)}return e.maxHeight&&(t.maxHeight=e.maxHeight,t.borderBottomWidth=1,t.borderBottomColor=l.GRAY,t.borderBottomStyle="solid",t.overflow="auto"),o.createElement("ul",{style:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},e.items.map(((t,r)=>o.createElement(f,{key:r,children:e.children,item:t,isSelected:e.selectedIndex===r,onMouseEnter:e.onMouseEnterItem&&n(e.onMouseEnterItem,r),onMouseLeave:e.onMouseLeaveItem&&n(e.onMouseLeaveItem,r),onClickItem:e.onClickItem}))))}function _(e){e.url&&(window.location.href=e.url)}class h extends o.PureComponent{constructor(e){super(e),this.state={displayResults:!1,hoveredIndex:-1,runningQuery:null,results:[],selectedIndex:0},this.query=e=>{this.props.extensions.length>0&&this.state.runningQuery!==e&&(this.props.onQueryStart&&this.props.onQueryStart(e),this.setState({runningQuery:e},(()=>r.__awaiter(this,void 0,void 0,(function*(){const t=yield function(e,t){const n=[];for(let r of t)"function"==typeof r&&n.push(r.call(null,e));return Promise.all(n).then((e=>e.reduce(((e,t)=>e.concat(t)),[])))}(e,this.props.extensions);this.state.runningQuery===e&&(this.setState({runningQuery:null,results:this.props.maxResults>0?t.slice(0,this.props.maxResults):t,displayResults:t.length>0,selectedIndex:t.length>0?Math.min(this.state.selectedIndex,t.length-1):0}),this.props.onQueryEnd&&this.props.onQueryEnd(e,t),this.props.onQuery&&this.props.onQuery(t))})))))},this.prev=()=>{this.setState((e=>{let t=e.selectedIndex-1;return t<0&&(t=e.results.length-1),{selectedIndex:t}}))},this.next=()=>{this.setState((e=>{let t=e.selectedIndex+1;return t>=e.results.length&&(t=0),{selectedIndex:t}}))},this.action=(e=!1)=>{const t=e&&this.state.hoveredIndex>-1?this.state.hoveredIndex:this.state.selectedIndex,n=this.state.results[t];(this.props.onAction||_).call(null,n)},this.handleChange=e=>{const t=e.target.value;t||this.props.showEmpty?this.query(t):this.reset()},this.handleKeyDown=e=>{switch(e.key){case"ArrowUp":this.prev(),e.preventDefault();break;case"ArrowDown":this.next(),e.preventDefault();break;case"Enter":this.action()}},this.handleMouseEnterItem=e=>{this.setState({hoveredIndex:e})},this.handleMouseLeave=()=>{this.setState({hoveredIndex:-1})},this.handleBlur=e=>{this.props.onBlur&&this.props.onBlur(e),setTimeout((()=>this.setState({displayResults:!1})),200)},this.handleFocus=e=>{0===this.state.results.length&&this.props.showEmpty&&this.query(""),this.props.onFocus&&this.props.onFocus(e),this.setState({displayResults:!0})},this.handleClickItem=e=>{e.preventDefault(),this.state.hoveredIndex>-1&&this.action(!0)},this.query=function(e,t){let n=null;return(...r)=>{const o=this;clearTimeout(n),n=setTimeout((()=>{n=null,e.apply(o,r)}),t)}}(this.query,this.props.inputDelay)}reset(){this.setState({results:[],runningQuery:null,displayResults:!1})}render(){let e=this.props,{children:t,render:n,maxResults:l,maxViewableResults:i,extensions:s,inputDelay:u,rootStyle:c,resultStyle:f,onQuery:d,onQueryStart:_,onQueryEnd:h,onQueryCancel:v,onAction:y,onFocus:m,onBlur:b,showEmpty:g}=e,w=r.__rest(e,["children","render","maxResults","maxViewableResults","extensions","inputDelay","rootStyle","resultStyle","onQuery","onQueryStart","onQueryEnd","onQueryCancel","onAction","onFocus","onBlur","showEmpty"]),O=i?50*i:null;return n||(n=t),o.createElement("div",{style:c},o.createElement(a,Object.assign({},w,{onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown})),this.state.displayResults&&o.createElement(p,{children:n,items:this.state.results,maxHeight:O,onClickItem:this.handleClickItem,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeave:this.handleMouseLeave,selectedIndex:this.state.selectedIndex,style:f}))}}h.defaultProps={children:null,extensions:[],inputDelay:100,loadingStyle:{},maxResults:null,maxViewableResults:null,render:null,resultStyle:{},rootStyle:{position:"relative"},showEmpty:!1},t.ZP=h,t.XS=c},661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>_,Component:()=>r.wA,Fragment:()=>r.HY,PureComponent:()=>s,StrictMode:()=>$,Suspense:()=>b,SuspenseList:()=>O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Y,cloneElement:()=>q,createContext:()=>r.kr,createElement:()=>r.az,createFactory:()=>W,createPortal:()=>S,createRef:()=>r.Vf,default:()=>ne,findDOMNode:()=>Q,flushSync:()=>G,forwardRef:()=>d,hydrate:()=>T,isValidElement:()=>z,lazy:()=>w,memo:()=>u,render:()=>P,startTransition:()=>J,unmountComponentAtNode:()=>V,unstable_batchedUpdates:()=>K,useCallback:()=>o.I4,useContext:()=>o.qp,useDebugValue:()=>o.Qb,useDeferredValue:()=>Z,useEffect:()=>o.d4,useErrorBoundary:()=>o.cO,useId:()=>o.Me,useImperativeHandle:()=>o.aP,useInsertionEffect:()=>ee,useLayoutEffect:()=>o.bt,useMemo:()=>o.Ye,useReducer:()=>o._Y,useRef:()=>o.sO,useState:()=>o.eJ,useSyncExternalStore:()=>te,useTransition:()=>X,version:()=>B});var r=n(400),o=n(396);function l(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function a(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function s(e){this.props=e}function u(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:i(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.az)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(s.prototype=new r.wA).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var c=r.YM.__b;r.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function t(t){var n=l({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=f,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var p=function(e,t){return null==e?null:(0,r.bR)((0,r.bR)(e).map(t))},_={map:p,forEach:p,count:function(e){return e?(0,r.bR)(e).length:0},only:function(e){var t=(0,r.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.bR},h=r.YM.__e;r.YM.__e=function(e,t,n,r){if(e.then)for(var o,l=t;l=l.__;)if((o=l.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);h(e,t,n,r)};var v=r.YM.unmount;function y(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=l({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return y(e,t,n)}))),e}function m(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return m(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function b(){this.__u=0,this.t=null,this.__b=null}function g(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function w(e){var t,n,o;function l(l){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return(0,r.az)(n,l)}return l.displayName="Lazy",l.__f=!0,l}function O(){this.u=null,this.o=null}r.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),v&&v(e)},(b.prototype=new r.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=g(r.__v),l=!1,i=function(){l||(l=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=m(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},s=!0===t.__h;r.__u++||s||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=y(this.__b,n,o.__O=o.__P)}this.__b=null}var l=t.__a&&(0,r.az)(r.HY,null,e.fallback);return l&&(l.__h=null),[(0,r.az)(r.HY,null,t.__a?null:e.children),l]};var C=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function E(e){return this.getChildContext=function(){return e.context},e.children}function x(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,r.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,r.sY)((0,r.az)(E,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function S(e,t){var n=(0,r.az)(x,{__v:e,i:t});return n.containerInfo=t,n}(O.prototype=new r.wA).__a=function(e){var t=this,n=g(t.__v),r=t.o.get(e);return r[0]++,function(o){var l=function(){t.props.revealOrder?(r.push(o),C(t,e,r)):o()};n?n(l):l()}},O.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,r.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},O.prototype.componentDidUpdate=O.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){C(e,n,t)}))};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,k=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,R="undefined"!=typeof document,A=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function P(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function T(e,t,n){return(0,r.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var j=r.YM.event;function N(){}function I(){return this.cancelBubble}function L(){return this.defaultPrevented}r.YM.event=function(e){return j&&(e=j(e)),e.persist=N,e.isPropagationStopped=I,e.isDefaultPrevented=L,e.nativeEvent=e};var D,H={configurable:!0,get:function(){return this.class}},F=r.YM.vnode;r.YM.vnode=function(e){var t=e.type,n=e.props,o=n;if("string"==typeof t){var l=-1===t.indexOf("-");for(var i in o={},n){var a=n[i];R&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!A(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():l&&k.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),o[i]&&(i="oninputCapture")),o[i]=a)}"select"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.bR)(n.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==t&&null!=o.defaultValue&&(o.value=(0,r.bR)(n.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),e.props=o,n.class!=n.className&&(H.enumerable="className"in n,null!=n.className&&(o.class=n.className),Object.defineProperty(o,"className",H))}e.$$typeof=M,F&&F(e)};var U=r.YM.__r;r.YM.__r=function(e){U&&U(e),D=e.__c};var Y={ReactCurrentDispatcher:{current:{readContext:function(e){return D.__n[e.__c].props.value}}}},B="17.0.2";function W(e){return r.az.bind(null,e)}function z(e){return!!e&&e.$$typeof===M}function q(e){return z(e)?r.Tm.apply(null,arguments):e}function V(e){return!!e.__k&&((0,r.sY)(null,e),!0)}function Q(e){return e&&(e.base||1===e.nodeType&&e)||null}var K=function(e,t){return e(t)},G=function(e,t){return e(t)},$=r.HY;function J(e){e()}function Z(e){return e}function X(){return[!1,J]}var ee=o.bt;function te(e,t){var n=t(),r=(0,o.eJ)({h:{__:n,v:t}}),l=r[0].h,i=r[1];return(0,o.bt)((function(){l.__=n,l.v=t,a(l.__,t())||i({h:l})}),[e,n,t]),(0,o.d4)((function(){return a(l.__,l.v())||i({h:l}),e((function(){a(l.__,l.v())||i({h:l})}))}),[e]),n}var ne={useState:o.eJ,useId:o.Me,useReducer:o._Y,useEffect:o.d4,useLayoutEffect:o.bt,useInsertionEffect:ee,useTransition:X,useDeferredValue:Z,useSyncExternalStore:te,startTransition:J,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:_,render:P,hydrate:T,unmountComponentAtNode:V,createPortal:S,createElement:r.az,createContext:r.kr,createFactory:W,cloneElement:q,createRef:r.Vf,Fragment:r.HY,isValidElement:z,findDOMNode:Q,Component:r.wA,PureComponent:s,memo:u,forwardRef:d,flushSync:G,unstable_batchedUpdates:K,StrictMode:$,Suspense:b,SuspenseList:O,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Y}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>y,Tm:()=>F,Vf:()=>v,YM:()=>o,ZB:()=>H,az:()=>_,bR:()=>x,h:()=>_,kr:()=>U,sY:()=>D,wA:()=>m});var r,o,l,i,a,s,u={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var o,l,i,a={};for(i in t)"key"==i?o=t[i]:"ref"==i?l=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return h(e,a,o,l,null)}function h(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++l:i};return null==i&&null!=o.vnode&&o.vnode(a),a}function v(){return{current:null}}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function g(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return g(e)}}function w(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!O.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||setTimeout)(O)}function O(){for(var e;O.__r=i.length;)e=i.sort((function(e,t){return e.__v.__b-t.__v.__b})),i=[],e.some((function(e){var t,n,r,o,l,i;e.__d&&(l=(o=(t=e).__v).__e,(i=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,P(i,o,r,t.__n,void 0!==i.ownerSVGElement,null!=o.__h?[l]:null,n,null==l?b(o):l,o.__h),T(n,o),o.__e!=l&&g(o)))}))}function C(e,t,n,r,o,l,i,a,s,f){var d,p,_,v,m,g,w,O=r&&r.__k||c,C=O.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?h(null,v,null,null,v):Array.isArray(v)?h(y,{children:v},null,null,null):v.__b>0?h(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(_=O[d])||_&&v.key==_.key&&v.type===_.type)O[d]=void 0;else for(p=0;p<C;p++){if((_=O[p])&&v.key==_.key&&v.type===_.type){O[p]=void 0;break}_=null}P(e,v,_=_||u,o,l,i,a,s,f),m=v.__e,(p=v.ref)&&_.ref!=p&&(w||(w=[]),_.ref&&w.push(_.ref,null,v),w.push(p,v.__c||m,v)),null!=m?(null==g&&(g=m),"function"==typeof v.type&&v.__k===_.__k?v.__d=s=E(v,s,e):s=S(e,v,_,O,m,s),"function"==typeof n.type&&(n.__d=s)):s&&_.__e==s&&s.parentNode!=e&&(s=b(_))}for(n.__e=g,d=C;d--;)null!=O[d]&&I(O[d],O[d]);if(w)for(d=0;d<w.length;d++)N(w[d],w[++d],w[++d])}function E(e,t,n){for(var r,o=e.__k,l=0;o&&l<o.length;l++)(r=o[l])&&(r.__=e,t="function"==typeof r.type?E(r,t,n):S(n,r,r,o,r.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(e,t)})):t.push(e)),t}function S(e,t,n,r,o,l){var i,a,s;if(void 0!==t.__d)i=t.__d,t.__d=void 0;else if(null==n||o!=l||null==o.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(o),i=null;else{for(a=l,s=0;(a=a.nextSibling)&&s<r.length;s+=1)if(a==o)break e;e.insertBefore(o,l),i=l}return void 0!==i?i:o.nextSibling}function M(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function k(e,t,n,r,o){var l;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||M(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||M(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])l=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?r||e.addEventListener(t,l?A:R,l):e.removeEventListener(t,l?A:R,l);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function R(e){this.l[e.type+!1](o.event?o.event(e):e)}function A(e){this.l[e.type+!0](o.event?o.event(e):e)}function P(e,t,n,r,l,i,a,s,u){var c,f,p,_,h,v,b,g,w,O,E,x,S,M,k,R=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(c=o.__b)&&c(t);try{e:if("function"==typeof R){if(g=t.props,w=(c=R.contextType)&&r[c.__c],O=c?w?w.props.value:c.__:r,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in R&&R.prototype.render?t.__c=f=new R(g,O):(t.__c=f=new m(g,O),f.constructor=R,f.render=L),w&&w.sub(f),f.props=g,f.state||(f.state={}),f.context=O,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=R.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,R.getDerivedStateFromProps(g,f.__s))),_=f.props,h=f.state,p)null==R.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==R.getDerivedStateFromProps&&g!==_&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,O),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,O)||t.__v===n.__v){for(f.props=g,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<f._sb.length;E++)f.__h.push(f._sb[E]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,O),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(_,h,v)}))}if(f.context=O,f.props=g,f.__v=t,f.__P=e,x=o.__r,S=0,"prototype"in R&&R.prototype.render){for(f.state=f.__s,f.__d=!1,x&&x(t),c=f.render(f.props,f.state,f.context),M=0;M<f._sb.length;M++)f.__h.push(f._sb[M]);f._sb=[]}else do{f.__d=!1,x&&x(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++S<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(_,h)),k=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(k)?k:[k],t,n,r,l,i,a,s,u),f.base=t.__e,t.__h=null,f.__h.length&&a.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=j(n.__e,t,n,r,l,i,a,u);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=i)&&(t.__e=s,t.__h=!!u,i[i.indexOf(s)]=null),o.__e(e,t,n)}}function T(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function j(e,t,n,o,l,i,a,s){var c,f,d,_=n.props,h=t.props,v=t.type,y=0;if("svg"===v&&(l=!0),null!=i)for(;y<i.length;y++)if((c=i[y])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,i[y]=null;break}if(null==e){if(null===v)return document.createTextNode(h);e=l?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,h.is&&h),i=null,s=!1}if(null===v)_===h||s&&e.data===h||(e.data=h);else{if(i=i&&r.call(e.childNodes),f=(_=n.props||u).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!s){if(null!=i)for(_={},y=0;y<e.attributes.length;y++)_[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var l;for(l in n)"children"===l||"key"===l||l in t||k(e,l,null,n[l],r);for(l in t)o&&"function"!=typeof t[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===t[l]||k(e,l,t[l],n[l],r)}(e,h,_,l,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,n,o,l&&"foreignObject"!==v,i,a,i?i[0]:n.__k&&b(n,0),s),null!=i)for(y=i.length;y--;)null!=i[y]&&p(i[y]);s||("value"in h&&void 0!==(y=h.value)&&(y!==e.value||"progress"===v&&!y||"option"===v&&y!==_.value)&&k(e,"value",y,_.value,!1),"checked"in h&&void 0!==(y=h.checked)&&y!==e.checked&&k(e,"checked",y,_.checked,!1))}return e}function N(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function I(e,t,n){var r,l;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||N(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(l=0;l<r.length;l++)r[l]&&I(r[l],t,n||"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function D(e,t,n){var l,i,a;o.__&&o.__(e,t),i=(l="function"==typeof n)?null:n&&n.__k||t.__k,a=[],P(t,e=(!l&&n||t).__k=_(y,null,[e]),i||u,u,void 0!==t.ownerSVGElement,!l&&n?[n]:i?null:t.firstChild?r.call(t.childNodes):null,a,!l&&n?n:i?i.__e:t.firstChild,l),T(a,e)}function H(e,t){D(e,t,H)}function F(e,t,n){var o,l,i,a=d({},e.props);for(i in t)"key"==i?o=t[i]:"ref"==i?l=t[i]:a[i]=t[i];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),h(e.type,a,o||e.key,l||e.ref,null)}function U(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=c.slice,o={__e:function(e,t,n,r){for(var o,l,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((l=o.constructor)&&null!=l.getDerivedStateFromError&&(o.setState(l.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},l=0,m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),w(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},m.prototype.render=y,i=[],O.__r=0,s=0},396:(e,t,n)=>{"use strict";n.d(t,{I4:()=>E,Me:()=>k,Qb:()=>S,Ye:()=>C,_Y:()=>m,aP:()=>O,bt:()=>g,cO:()=>M,d4:()=>b,eJ:()=>y,qp:()=>x,sO:()=>w});var r,o,l,i,a=n(400),s=0,u=[],c=[],f=a.YM.__b,d=a.YM.__r,p=a.YM.diffed,_=a.YM.__c,h=a.YM.unmount;function v(e,t){a.YM.__h&&a.YM.__h(o,e,s||t),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:c}),n.__[e]}function y(e){return s=1,m(I,e)}function m(e,t,n){var l=v(r++,2);if(l.t=e,!l.__c&&(l.__=[n?n(t):I(void 0,t),function(e){var t=l.__N?l.__N[0]:l.__[0],n=l.t(t,e);t!==n&&(l.__N=[n,l.__[1]],l.__c.setState({}))}],l.__c=o,!o.u)){o.u=!0;var i=o.shouldComponentUpdate;o.shouldComponentUpdate=function(e,t,n){if(!l.__c.__H)return!0;var r=l.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&l.__c.props===e)&&(!i||i.call(this,e,t,n))}}return l.__N||l.__}function b(e,t){var n=v(r++,3);!a.YM.__s&&N(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function g(e,t){var n=v(r++,4);!a.YM.__s&&N(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return s=5,C((function(){return{current:e}}),[])}function O(e,t,n){s=6,g((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function C(e,t){var n=v(r++,7);return N(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function E(e,t){return s=8,C((function(){return e}),t)}function x(e){var t=o.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function S(e,t){a.YM.useDebugValue&&a.YM.useDebugValue(t?t(e):e)}function M(e){var t=v(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function k(){var e=v(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function R(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(T),e.__H.__h.forEach(j),e.__H.__h=[]}catch(t){e.__H.__h=[],a.YM.__e(t,e.__v)}}a.YM.__b=function(e){o=null,f&&f(e)},a.YM.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(l===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=c,e.__N=e.i=void 0}))):(t.__h.forEach(T),t.__h.forEach(j),t.__h=[])),l=o},a.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&i===a.YM.requestAnimationFrame||((i=a.YM.requestAnimationFrame)||P)(R)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==c&&(e.__=e.__V),e.i=void 0,e.__V=c}))),l=o=null},a.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(T),e.__h=e.__h.filter((function(e){return!e.__||j(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.YM.__e(n,e.__v)}})),_&&_(e,t)},a.YM.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{T(e)}catch(e){t=e}})),n.__H=void 0,t&&a.YM.__e(t,n.__v))};var A="function"==typeof requestAnimationFrame;function P(e){var t,n=function(){clearTimeout(r),A&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);A&&(t=requestAnimationFrame(n))}function T(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function j(e){var t=o;e.__c=e.__(),o=t}function N(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function I(e,t){return"function"==typeof t?t(e):t}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},871:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function l(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=l;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0},983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(661),i=_(l),a=_(n(661)),s=_(n(697)),u=_(n(747)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(149)),f=n(112),d=_(f),p=n(871);function _(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",m=f.canUseDOM&&void 0!==a.default.createPortal,b=function(e){return document.createElement(e)},g=function(){return m?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var O=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,s=Array(l),c=0;c<l;c++)s[c]=arguments[c];return n=o=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),o.removePortal=function(){!m&&a.default.unmountComponentAtNode(o.node);var e=w(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=g()(o,i.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},h(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(m||(this.node=b("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!m&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var r=this.props,o=r.isOpen,l=r.portalClassName;e.portalClassName!==l&&(this.node.className=l);var i=n.prevParent,a=n.nextParent;a!==i&&(i.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||o)&&!m&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&m?(!this.node&&m&&(this.node=b("div")),g()(i.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(l.Component);O.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func},O.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},O.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(O),t.default=O},747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(661),a=v(n(697)),s=h(n(685)),u=v(n(338)),c=h(n(149)),f=h(n(409)),d=n(112),p=v(d),_=v(n(623));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(63);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},m=function(e){return"Tab"===e.code||9===e.keyCode},b=function(e){return"Escape"===e.code||27===e.keyCode},g=0,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,l=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;l&&f.remove(a.body,l),o&&f.remove(a.getElementsByTagName("html")[0],o),r&&g>0&&0==(g-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),_.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){m(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&b(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},l=r.base;return n.state.afterOpen&&(l=l+" "+r.afterOpen),n.state.beforeClose&&(l=l+" "+r.beforeClose),"string"==typeof t&&t?l+" "+t:l},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,l=e.parentSelector,i=l&&l().ownerDocument||document;o&&f.add(i.body,o),r&&f.add(i.getElementsByTagName("html")[0],r),n&&(g+=1,c.hide(t)),_.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,l=e.defaultStyles,i=e.children,a=n?{}:l.content,s=o?{}:l.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,i);return this.props.overlayElement(u,f)}}]),t}(i.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(p.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(p.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=w,e.exports=t.default},149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(i).forEach((function(e){return e.removeAttribute("aria-hidden")}))),i=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&l.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return i=t||i},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,l=s(e)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,l=s(e)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){i=null};var r,o=(r=n(473))&&r.__esModule?r:{default:r},l=n(112),i=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},63:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[l,i],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}l=i=null,a=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(a.length);for(var e=[l,i],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(623))&&r.__esModule?r:{default:r},l=void 0,i=void 0,a=[];function s(){0!==a.length&&a[a.length-1].focusContent()}o.default.subscribe((function(e,t){l||i||((l=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",s),(i=l.cloneNode()).addEventListener("focus",s)),(a=t).length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(l.parentElement&&l.parentElement.removeChild(l),i.parentElement&&i.parentElement.removeChild(i))}))},409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var l=document.body;for(var i in r)o(l,r[i]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,l="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(l,e),o.add(e)}));var o,l},t.remove=function(e,t){return o=e.classList,l="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(l,e),0===l[e]&&o.remove(e)}));var o,l}},685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=u,t.markForFocusLater=function(){l.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==l.length&&(t=l.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){l.length>0&&l.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",u))};var r,o=(r=n(845))&&r.__esModule?r:{default:r},l=[],i=null,a=!1;function s(){a=!0}function u(){if(a){if(a=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(875))&&r.__esModule?r:{default:r}).default,l=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=l},338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1],u=l();if(e===u){if(!i)return;r=s}if(s!==u||i||(r=a),a===u&&i&&(r=s),r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var f=n.indexOf(u);if(f>-1&&(f+=i?-1:1),void 0===(r=n[f]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(845))&&r.__esModule?r:{default:r};function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?l(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(i)};var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function l(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),l=o.getPropertyValue("display");return t?l!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):l===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),l(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(983))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>l,__asyncDelegator:()=>x,__asyncGenerator:()=>E,__asyncValues:()=>S,__await:()=>C,__awaiter:()=>_,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>j,__classPrivateFieldSet:()=>T,__createBinding:()=>v,__decorate:()=>a,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>o,__generator:()=>h,__importDefault:()=>A,__importStar:()=>R,__makeTemplateObject:()=>M,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>b,__rest:()=>i,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>g,__spreadArray:()=>O,__spreadArrays:()=>w,__values:()=>m});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,l=arguments.length,i=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(l<3?o(i):l>3?o(t,n,i):o(t,n))||i);return l>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,o,l){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,s=r.kind,u="getter"===s?"get":"setter"===s?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var _={};for(var h in r)_[h]="access"===h?{}:r[h];for(var h in r.access)_.access[h]=r.access[h];_.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");l.push(i(e||null))};var v=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[u],_);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(a=i(v.get))&&(f.get=a),(a=i(v.set))&&(f.set=a),(a=i(v.init))&&o.push(a)}else(a=i(v))&&("field"===s?o.push(a):f[u]=a)}c&&Object.defineProperty(c,r.name,f),d=!0}function c(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function _(e,t,n,r){return new(n||(n=Promise))((function(o,l){function i(e){try{s(r.next(e))}catch(e){l(e)}}function a(e){try{s(r.throw(e))}catch(e){l(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}s((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var l=arguments[t],i=0,a=l.length;i<a;i++,o++)r[o]=l[i];return r}function O(e,t,n){if(n||2===arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),l=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){l.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof C?Promise.resolve(n.value.v).then(s,u):c(l[0][2],n)}catch(e){c(l[0][3],e)}var n}function s(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),l.shift(),l.length&&a(l[0][0],l[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return k(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function T(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function j(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(400),t=0;function r(n,r,o,l,i){var a,s,u={};for(s in r)"ref"==s?a=r[s]:u[s]=r[s];var c={type:n,props:u,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--t,__source:i,__self:l};if("function"==typeof n&&(a=n.defaultProps))for(s in a)void 0===u[s]&&(u[s]=a[s]);return e.YM.vnode&&e.YM.vnode(c),c}var o=function(e){var t,n=e.selector,r=e.inline,o=e.clientSpecified,l=[],i=document.currentScript||(t=document.getElementsByTagName("script"))[t.length-1];if(!0===r){var a=i.parentNode;l.push(a)}return!0!==o||n||(n=function(e){var t=e.attributes,n=null;return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&"data-mount-in"===t[e].name&&(n=t[e].nodeValue)})),n}(i)),n&&[].forEach.call(document.querySelectorAll(n),(function(e){l.push(e)})),l};const l=function(t){var n=t;return{render:function(t){void 0===t&&(t={});var r=t.selector;void 0===r&&(r=null);var l=t.inline;void 0===l&&(l=!1);var i=t.clean;void 0===i&&(i=!1);var a=t.clientSpecified;void 0===a&&(a=!1);var s=t.defaultProps;void 0===s&&(s={});var u=o({selector:r,inline:l,clientSpecified:a}),c=function(){if(u.length>0){var t=o({selector:r,inline:l,clientSpecified:a});return function(t,n,r,o,l){n.forEach((function(n){var i=n;if(!i._habitat){i._habitat=!0;var a=function(e,t){void 0===t&&(t={});var n=e.attributes,r=Object.assign({},t);return Object.keys(n).forEach((function(e){if(n.hasOwnProperty(e)){var t=n[e].name;if(!t||"string"!=typeof t)return!1;var o=t.split(/(data-props?-)/).pop()||"";if(t!==(o=o.replace(/-([a-z])/gi,(function(e,t){return t.toUpperCase()})))){var l=n[e].nodeValue;r[o]=l}}})),[].forEach.call(e.getElementsByTagName("script"),(function(e){var t={};if(e.hasAttribute("type")){if("text/props"!==e.getAttribute("type")&&"application/json"!==e.getAttribute("type"))return;try{t=JSON.parse(e.innerHTML)}catch(e){throw new Error(e)}Object.assign(r,t)}})),r}(n,l)||l;return o&&(i.innerHTML=""),(0,e.sY)((0,e.h)(t,a),i,r)}}))}(n,t,null,i,s)}};c(),document.addEventListener("DOMContentLoaded",c),document.addEventListener("load",c)}}};var i,a=n(736),s=n(396),u=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i},c={background:"repeating-linear-gradient(90deg, #000F, #0004 50%, #000F)",backgroundClip:"text",backgroundPosition:"40000px",color:"#0001",transition:"background 100s ease-out, color 0.15s ease-in"},f=function(e,t){var n=(0,s.I4)((function(n){var r=n.metaKey,o=n.ctrlKey,l=n.key;(r||o)&&l.toLowerCase()==e&&(n.preventDefault(),t())}),[t,e]);(0,s.d4)((function(){return document.addEventListener("keydown",n),function(){return document.removeEventListener("keydown",n)}}),[n])},d=n(253),p=n.n(d),_=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_.apply(this,arguments)},h=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i},v=function(t,n){void 0===n&&(n=20);var o=h((0,s.eJ)(!1),2),l=o[0],i=o[1],a=h((0,s.eJ)(r(e.HY,{})),2),u=a[0],c=a[1];return{modal:(0,s.Ye)((function(){return r(p(),_({ariaHideApp:!1,isOpen:l,onRequestClose:function(){return i(!1)},style:b},{children:[r("span",_({onClick:function(){return i(!1)},style:{cursor:"pointer",position:"absolute",top:7,right:9,zIndex:m.zIndex+1}},{children:"╳"})),r("div",_({style:{padding:n}},{children:t||u}))]}))}),[u,l,i,t]),setBody:c,toggle:(0,s.I4)((function(){return i(!l)}),[i,l])}},y={zIndex:1001},m=_(_({},y),{maxWidth:640,maxHeight:640,margin:"auto",padding:"2px 0 2px 0"}),b={overlay:y,content:m},g=n(360),w=n.n(g),O=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e){function t(n){var r=e.call(this,n)||this;return r.name="YaamError",Object.setPrototypeOf(r,t.prototype),r}return O(t,e),t}(Error),E=function(e){if(e=e.replace(/\s+/g,""),!A.test(e))throw new C("invalid input");var t=new x,n=new Array,r=t;if(e.match(R).forEach((function(e){if("("===e){n.push(r);var t=new x;r.children.push(t),r=t}else if(")"===e){if(!n.length)throw new C("unbalanced parentheses `)`");r=n.pop()}else r.children.push(e)})),n.length)throw new C("unbalanced parentheses `(`");return t},x=function(){function e(){this.children=new Array}return e.prototype.calculate=function(){var e=this,t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],this.children,!0);if(t.length%2==0)throw new C("invalid Node ".concat(t));if(S.forEach((function(n){for(var r=t.length-2;r>0;r--)if(t[r]===n){var o=e.toNumber(t[r-1]),l=e.toNumber(t[r+1]),i=void 0;switch(n){case"+":i=o+l;break;case"-":i=o-l;break;case"*":i=o*l;break;case"/":i=o/l;break;case"%":case"%":i=o%l;break;case"^":case"**":i=Math.pow(o,l);break;default:throw new C("unhandled operator ".concat(n))}t.splice(r-1,3,i)}})),1!==t.length)throw new C("invalid Node ".concat(t));return this.toNumber(t[0])},e.prototype.toNumber=function(t){if(t instanceof e)return t.calculate();if("number"==typeof t)return t;if(k.test(t)){var n=t.split("e"),r=n[0],o=n[1],l=Number(r);if(!isNaN(l))return void 0===o?l:l*Math.pow(10,Number(o))}throw new C("invalid token ".concat(t))},e}(),S=["**","^","%","/","*","+","-"],M=new RegExp("(?:"+S.map((function(e){return e.replace(/(?=.)/g,"\\")})).join("|")+")"),k=/(?:(?:\d+\.\d+|\d+)(?:e[+-]?\d+)?)/,R=new RegExp("(?:[()]|".concat(M.source,"|").concat(k.source,")"),"g"),A=new RegExp("\n ^\n ".concat(R.source,"*\n ").concat(k.source,"\n ").concat(R.source,"*\n ").concat(M.source,"\n ").concat(R.source,"*\n ").concat(k.source,"\n ").concat(R.source,"*\n $\n ").replace(/\s+/g,"")),P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P.apply(this,arguments)},T=function(e){return function(t){return t?[]:e.items.filter((function(e){return e.suggested}))}},j=function(e){var t=e.commandPattern,n=e.queryPath,r=(0,s.Ye)((function(){return t&&new RegExp(t.source,t.options)}),[t]);return function(e){return t=void 0,o=void 0,i=function(){return function(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(t){switch(t.label){case 0:return e&&n&&(null==r?void 0:r.test(e))?[4,fetch("".concat(n,"&q=").concat(e))]:[2,[]];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}}))},new((l=void 0)||(l=Promise))((function(e,n){function r(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof l?n:new l((function(e){e(n)}))).then(r,a)}s((i=i.apply(t,o||[])).next())}));var t,o,l,i}},N=function(t){var n=t.items;return function(t){return t?w().go(t,n,{key:"title"}).map((function(t){return P(P({},t.obj),{title:r(e.HY,{children:w().highlight(t,(function(e){return r("span",P({style:I},{children:e}))}))})})})):[]}},I={textShadow:"-0.06ex 0 0 currentColor, 0.06ex 0 0 currentColor"},L=function(e){var t=e.calculator;return function(e){var n=t&&e?function(e,t){void 0===t&&(t={});try{return function(e){return E(e).calculate()}(e)}catch(e){return t.verbose&&console.log(e),null}}(e):null;return null!==n?[{title:String(n),type:"default"}]:new Array}},D="rails-omnibar",H=n(320),F=n(483),U=n(439),Y=n(269),B=n(109),W=n(228),z=n(331),q=n(218),V=n(358),Q=n(496),K=n(65),G=n(505),$=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$.apply(this,arguments)};document.addEventListener("DOMContentLoaded",(function(){l(J).render({selector:"#mount-rails-omnibar"})})),document.addEventListener("turbo:load",(function(){l(J).render({selector:"#mount-rails-omnibar"})}));var J=function(e){var t=v(),n=(0,s.I4)((function(){setTimeout((function(){var e=document.querySelector("[data-id=".concat(D,"]"));document.activeElement===e?null==e||e.blur():null==e||e.focus()}),100)}),[]);return f(e.hotkey,n),r(e.modal?X:Z,$({},e,{itemModal:t}))},Z=function(t){var n,o,l,i,f,d,p,_=function(e){return(0,s.Ye)((function(){return[T(e),j(e),N(e),L(e)]}),[e])}(t),h=(n=t.itemModal,(0,s.I4)((function(e){if(e)if(e.url)window.location.href=e.url;else if(e.modalHTML){var t=e.modalHTML;n.setBody(r("div",{dangerouslySetInnerHTML:{__html:t}})),n.toggle()}}),[n])),v=(l=(o=u((0,s.eJ)(!1),2))[0],i=o[1],f=u((0,s.eJ)(null),2),d=f[0],p=f[1],{style:l?c:{},startTimer:function(){d&&clearTimeout(d),p(setTimeout((function(){return i(!0)}),100))},stop:function(){d&&clearTimeout(d),i(!1)}});return r(e.HY,{children:[r(a.ZP,{"data-id":D,extensions:_,maxResults:t.maxResults,onAction:h,onQueryStart:function(){return v.startTimer()},onQueryEnd:function(){return v.stop()},placeholder:t.placeholder,children:function(e){return ee($($({},e),{modal:t.modal}))},showEmpty:!0,style:$($({},t.modal?ne:te),v.style)}),t.itemModal.modal]})},X=function(e){var t=v(r(Z,$({},e)),0),n=t.modal,o=t.toggle;return f(e.hotkey,o),n},ee=function(e){var t,n=e.item,o={onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick},l=(0,a.XS)(e),i=(t=n.icon)?"arrows"===t?H:"cloud"===t?F:"cog"===t?U:"dev"===t?Y:"document"===t?B:"home"===t?W:"question"===t?z:"search"===t?q:"sparkle"===t?V:"user"===t?Q:"wallet"===t?K:"x"===t?G:null:null;return r("div",$({},o,{style:$($({},l),e.modal?ne:te)},{children:[i&&r(i,{name:n.icon,style:re}),n.title]}))},te={height:36,fontSize:18,lineHeight:"".concat(36,"px")},ne=$($({},te),{border:0}),re={all:"revert",height:18,width:18,paddingRight:4.5,verticalAlign:"text-top"}})()})();
2
+ (()=>{var e={792:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),l={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},531:function(e,t){var n,r;void 0===(r="function"==typeof(n=e=>{"use strict";var t=(e,t)=>{if(e===S)return S;var n=e.target,r=n.length,o=e._indexes;o=o.slice(0,o.len).sort(((e,t)=>e-t));for(var l="",i=0,a=0,s=!1,u=(e=[],0);u<r;++u){var c=n[u];if(o[a]===u){if(++a,s||(s=!0,e.push(l),l=""),a===o.length){l+=c,e.push(t(l,i++)),l="",e.push(n.substr(u+1));break}}else s&&(s=!1,e.push(t(l,i++)),l="");l+=c}return e},n=e=>{"string"!=typeof e&&(e="");var t=u(e);return{target:e,_targetLower:t._lower,_targetLowerCodes:t.lowerCodes,_nextBeginningIndexes:S,_bitflags:t.bitflags,score:S,_indexes:[0],obj:S}},r=e=>{"string"!=typeof e&&(e=""),e=e.trim();var t=u(e),n=[];if(t.containsSpace){var r=e.split(/\s+/);r=[...new Set(r)];for(var o=0;o<r.length;o++)if(""!==r[o]){var l=u(r[o]);n.push({lowerCodes:l.lowerCodes,_lower:r[o].toLowerCase(),containsSpace:!1})}}return{lowerCodes:t.lowerCodes,bitflags:t.bitflags,containsSpace:t.containsSpace,_lower:t._lower,spaceSearches:n}},o=e=>{if(e.length>999)return n(e);var t=f.get(e);return void 0!==t||(t=n(e),f.set(e,t)),t},l=e=>{if(e.length>999)return r(e);var t=d.get(e);return void 0!==t||(t=r(e),d.set(e,t)),t},i=(e,t,n)=>{var r=[];r.total=t.length;var l=n&&n.limit||m;if(n&&n.key)for(var i=0;i<t.length;i++){var a=t[i];if(f=v(a,n.key)){y(f)||(f=o(f)),f.score=b,f._indexes.len=0;var s=f;if(s={target:s.target,_targetLower:"",_targetLowerCodes:S,_nextBeginningIndexes:S,_bitflags:0,score:f.score,_indexes:S,obj:a},r.push(s),r.length>=l)return r}}else if(n&&n.keys)for(i=0;i<t.length;i++){a=t[i];for(var u=new Array(n.keys.length),c=n.keys.length-1;c>=0;--c)(f=v(a,n.keys[c]))?(y(f)||(f=o(f)),f.score=b,f._indexes.len=0,u[c]=f):u[c]=S;if(u.obj=a,u.score=b,r.push(u),r.length>=l)return r}else for(i=0;i<t.length;i++){var f;if((f=t[i])&&(y(f)||(f=o(f)),f.score=b,f._indexes.len=0,r.push(f),r.length>=l))return r}return r},a=(e,t,n=!1)=>{if(!1===n&&e.containsSpace)return s(e,t);for(var r=e._lower,o=e.lowerCodes,l=o[0],i=t._targetLowerCodes,a=o.length,u=i.length,f=0,d=0,h=0;;){if(l===i[d]){if(p[h++]=d,++f===a)break;l=o[f]}if(++d>=u)return S}f=0;var v=!1,y=0,m=t._nextBeginningIndexes;m===S&&(m=t._nextBeginningIndexes=c(t.target));var b=0;if((d=0===p[0]?0:m[p[0]-1])!==u)for(;;)if(d>=u){if(f<=0)break;if(++b>200)break;--f,d=m[_[--y]]}else if(o[f]===i[d]){if(_[y++]=d,++f===a){v=!0;break}++d}else d=m[d];var g=t._targetLower.indexOf(r,p[0]),w=~g;if(w&&!v)for(var O=0;O<h;++O)p[O]=g+O;var C=!1;if(w&&(C=t._nextBeginningIndexes[g-1]===g),v)var E=_,x=y;else E=p,x=h;var k=0,M=0;for(O=1;O<a;++O)E[O]-E[O-1]!=1&&(k-=E[O],++M);if(k-=(E[a-1]-E[0]-(a-1)+12)*M,0!==E[0]&&(k-=E[0]*E[0]*.2),v){var R=1;for(O=m[0];O<u;O=m[O])++R;R>24&&(k*=10*(R-24))}else k*=1e3;for(w&&(k/=1+a*a*1),C&&(k/=1+a*a*1),k-=u-a,t.score=k,O=0;O<x;++O)t._indexes[O]=E[O];return t._indexes.len=x,t},s=(e,t)=>{for(var n=new Set,r=0,o=S,l=0,i=e.spaceSearches,s=0;s<i.length;++s){var u=i[s];if((o=a(u,t))===S)return S;r+=o.score,o._indexes[0]<l&&(r-=l-o._indexes[0]),l=o._indexes[0];for(var c=0;c<o._indexes.len;++c)n.add(o._indexes[c])}var f=a(e,t,!0);if(f!==S&&f.score>r)return f;o.score=r,s=0;for(let e of n)o._indexes[s++]=e;return o._indexes.len=s,o},u=e=>{for(var t=e.length,n=e.toLowerCase(),r=[],o=0,l=!1,i=0;i<t;++i){var a=r[i]=n.charCodeAt(i);32!==a?o|=1<<(a>=97&&a<=122?a-97:a>=48&&a<=57?26:a<=127?30:31):l=!0}return{lowerCodes:r,bitflags:o,containsSpace:l,_lower:n}},c=e=>{for(var t=e.length,n=(e=>{for(var t=e.length,n=[],r=0,o=!1,l=!1,i=0;i<t;++i){var a=e.charCodeAt(i),s=a>=65&&a<=90,u=s||a>=97&&a<=122||a>=48&&a<=57,c=s&&!o||!l||!u;o=s,l=u,c&&(n[r++]=i)}return n})(e),r=[],o=n[0],l=0,i=0;i<t;++i)o>i?r[i]=o:(o=n[++l],r[i]=void 0===o?t:o);return r},f=new Map,d=new Map,p=[],_=[],h=e=>{for(var t=b,n=e.length,r=0;r<n;++r){var o=e[r];if(o!==S){var l=o.score;l>t&&(t=l)}}return t===b?S:t},v=(e,t)=>{var n=e[t];if(void 0!==n)return n;var r=t;Array.isArray(t)||(r=t.split("."));for(var o=r.length,l=-1;e&&++l<o;)e=e[r[l]];return e},y=e=>"object"==typeof e,m=1/0,b=-m,g=[];g.total=0;var w,O,C,E,S=null,x=(w=[],O=0,E=e=>{for(var t=0,n=w[t],r=1;r<O;){var o=r+1;t=r,o<O&&w[o].score<w[r].score&&(t=o),w[t-1>>1]=w[t],r=1+(t<<1)}for(var l=t-1>>1;t>0&&n.score<w[l].score;l=(t=l)-1>>1)w[t]=w[l];w[t]=n},(C={}).add=e=>{var t=O;w[O++]=e;for(var n=t-1>>1;t>0&&e.score<w[n].score;n=(t=n)-1>>1)w[t]=w[n];w[t]=e},C.poll=e=>{if(0!==O){var t=w[0];return w[0]=w[--O],E(),t}},C.peek=e=>{if(0!==O)return w[0]},C.replaceTop=e=>{w[0]=e,E()},C);return{single:(e,t)=>{if("farzher"==e)return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!e||!t)return S;var n=l(e);y(t)||(t=o(t));var r=n.bitflags;return(r&t._bitflags)!==r?S:a(n,t)},go:(e,t,n)=>{if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:t?t[0]:S}];if(!e)return n&&n.all?i(e,t,n):g;var r=l(e),s=r.bitflags,u=(r.containsSpace,n&&n.threshold||b),c=n&&n.limit||m,f=0,d=0,p=t.length;if(n&&n.key)for(var _=n.key,w=0;w<p;++w){var O=t[w];(A=v(O,_))&&(y(A)||(A=o(A)),(s&A._bitflags)===s&&(N=a(r,A))!==S&&(N.score<u||(N={target:N.target,_targetLower:"",_targetLowerCodes:S,_nextBeginningIndexes:S,_bitflags:0,score:N.score,_indexes:N._indexes,obj:O},f<c?(x.add(N),++f):(++d,N.score>x.peek().score&&x.replaceTop(N)))))}else if(n&&n.keys){var C=n.scoreFn||h,E=n.keys,k=E.length;for(w=0;w<p;++w){O=t[w];for(var M=new Array(k),R=0;R<k;++R)_=E[R],(A=v(O,_))?(y(A)||(A=o(A)),(s&A._bitflags)!==s?M[R]=S:M[R]=a(r,A)):M[R]=S;M.obj=O;var P=C(M);P!==S&&(P<u||(M.score=P,f<c?(x.add(M),++f):(++d,P>x.peek().score&&x.replaceTop(M))))}}else for(w=0;w<p;++w){var A,N;(A=t[w])&&(y(A)||(A=o(A)),(s&A._bitflags)===s&&(N=a(r,A))!==S&&(N.score<u||(f<c?(x.add(N),++f):(++d,N.score>x.peek().score&&x.replaceTop(N)))))}if(0===f)return g;var T=new Array(f);for(w=f-1;w>=0;--w)T[w]=x.poll();return T.total=f+d,T},highlight:(e,n,r)=>{if("function"==typeof n)return t(e,n);if(e===S)return S;void 0===n&&(n="<b>"),void 0===r&&(r="</b>");var o="",l=0,i=!1,a=e.target,s=a.length,u=e._indexes;u=u.slice(0,u.len).sort(((e,t)=>e-t));for(var c=0;c<s;++c){var f=a[c];if(u[l]===c){if(i||(i=!0,o+=n),++l===u.length){o+=f+r+a.substr(c+1);break}}else i&&(i=!1,o+=r);o+=f}return o},prepare:n,indexes:e=>e._indexes.slice(0,e._indexes.len).sort(((e,t)=>e-t)),cleanup:()=>{f.clear(),d.clear(),p=[],_=[]}}})?n.apply(t,[]):n)||(e.exports=r)},410:(e,t,n)=>{"use strict";var r=n(635),o=n(402);const l={BLACK:"#000",BLUE:"#00f",DARKGRAY:"#ddd",GRAY:"#eee",GREEN:"#0f0",RED:"#f00",WHITE:"#fff"},i={all:"revert",borderColor:l.DARKGRAY,borderStyle:"solid",borderWidth:1,boxSizing:"border-box",fontSize:24,height:50,lineHeight:"24px",outline:0,paddingLeft:15,paddingRight:15,width:"100%"};class a extends o.PureComponent{render(){let e=this.props,{style:t}=e,n=r.__rest(e,["style"]);return o.createElement("input",Object.assign({type:"text",style:Object.assign({},i,t)},n))}}const s={all:"revert",borderBottomWidth:1,borderColor:l.DARKGRAY,borderLeftWidth:1,borderRightWidth:1,borderStyle:"solid",borderTopWidth:0,boxSizing:"border-box",color:l.BLACK,display:"block",fontSize:24,height:50,lineHeight:"50px",paddingLeft:15,paddingRight:15,textDecoration:"none",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"};function u(e){const{item:t,isHighlighted:n,isSelected:l,style:i}=e,a=r.__rest(e,["item","isHighlighted","isSelected","style"]),s=c(e);return o.createElement("a",Object.assign({href:t.url,style:s},a),t.title)}function c(e){const{isSelected:t,isHighlighted:n,style:r}=e,o=Object.assign({},s,r);return t&&(o.backgroundColor=l.GRAY),n&&(o.backgroundColor=l.DARKGRAY),o}class f extends o.PureComponent{constructor(){super(...arguments),this.state={isHighlighted:!1},this.handleMouseEnter=e=>{this.setState({isHighlighted:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},this.handleMouseLeave=e=>{this.setState({isHighlighted:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)}}render(){const e=this.props.item;return(this.props.children?this.props.children:u)({style:this.props.style,item:e,isSelected:this.props.isSelected,isHighlighted:this.state.isHighlighted,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.props.onClickItem})}}f.defaultProps={isSelected:!1};const d={all:"revert",position:"absolute",width:"100%",zIndex:2,listStyleType:"none",margin:0,padding:0,backgroundColor:l.WHITE};function p(e){const t=Object.assign({},d,e.style);function n(e,t){return e.bind(this,t)}return e.maxHeight&&(t.maxHeight=e.maxHeight,t.borderBottomWidth=1,t.borderBottomColor=l.GRAY,t.borderBottomStyle="solid",t.overflow="auto"),o.createElement("ul",{style:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},e.items.map(((t,r)=>o.createElement(f,{key:r,children:e.children,item:t,isSelected:e.selectedIndex===r,onMouseEnter:e.onMouseEnterItem&&n(e.onMouseEnterItem,r),onMouseLeave:e.onMouseLeaveItem&&n(e.onMouseLeaveItem,r),onClickItem:e.onClickItem}))))}function _(e){e.url&&(window.location.href=e.url)}class h extends o.PureComponent{constructor(e){super(e),this.state={displayResults:!1,hoveredIndex:-1,runningQuery:null,results:[],selectedIndex:0},this.query=e=>{this.props.extensions.length>0&&this.state.runningQuery!==e&&(this.props.onQueryStart&&this.props.onQueryStart(e),this.setState({runningQuery:e},(()=>r.__awaiter(this,void 0,void 0,(function*(){const t=yield function(e,t){const n=[];for(let r of t)"function"==typeof r&&n.push(r.call(null,e));return Promise.all(n).then((e=>e.reduce(((e,t)=>e.concat(t)),[])))}(e,this.props.extensions);this.state.runningQuery===e&&(this.setState({runningQuery:null,results:this.props.maxResults>0?t.slice(0,this.props.maxResults):t,displayResults:t.length>0,selectedIndex:t.length>0?Math.min(this.state.selectedIndex,t.length-1):0}),this.props.onQueryEnd&&this.props.onQueryEnd(e,t),this.props.onQuery&&this.props.onQuery(t))})))))},this.prev=()=>{this.setState((e=>{let t=e.selectedIndex-1;return t<0&&(t=e.results.length-1),{selectedIndex:t}}))},this.next=()=>{this.setState((e=>{let t=e.selectedIndex+1;return t>=e.results.length&&(t=0),{selectedIndex:t}}))},this.action=(e=!1)=>{const t=e&&this.state.hoveredIndex>-1?this.state.hoveredIndex:this.state.selectedIndex,n=this.state.results[t];(this.props.onAction||_).call(null,n)},this.handleChange=e=>{const t=e.target.value;t||this.props.showEmpty?this.query(t):this.reset()},this.handleKeyDown=e=>{switch(e.key){case"ArrowUp":this.prev(),e.preventDefault();break;case"ArrowDown":this.next(),e.preventDefault();break;case"Enter":this.action()}},this.handleMouseEnterItem=e=>{this.setState({hoveredIndex:e})},this.handleMouseLeave=()=>{this.setState({hoveredIndex:-1})},this.handleBlur=e=>{this.props.onBlur&&this.props.onBlur(e),setTimeout((()=>this.setState({displayResults:!1})),200)},this.handleFocus=e=>{0===this.state.results.length&&this.props.showEmpty&&this.query(""),this.props.onFocus&&this.props.onFocus(e),this.setState({displayResults:!0})},this.handleClickItem=e=>{e.preventDefault(),this.state.hoveredIndex>-1&&this.action(!0)},this.query=function(e,t){let n=null;return(...r)=>{const o=this;clearTimeout(n),n=setTimeout((()=>{n=null,e.apply(o,r)}),t)}}(this.query,this.props.inputDelay)}reset(){this.setState({results:[],runningQuery:null,displayResults:!1})}render(){let e=this.props,{children:t,render:n,maxResults:l,maxViewableResults:i,extensions:s,inputDelay:u,rootStyle:c,resultStyle:f,onQuery:d,onQueryStart:_,onQueryEnd:h,onQueryCancel:v,onAction:y,onFocus:m,onBlur:b,showEmpty:g}=e,w=r.__rest(e,["children","render","maxResults","maxViewableResults","extensions","inputDelay","rootStyle","resultStyle","onQuery","onQueryStart","onQueryEnd","onQueryCancel","onAction","onFocus","onBlur","showEmpty"]),O=i?50*i:null;return n||(n=t),o.createElement("div",{style:c},o.createElement(a,Object.assign({},w,{onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown})),this.state.displayResults&&o.createElement(p,{children:n,items:this.state.results,maxHeight:O,onClickItem:this.handleClickItem,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeave:this.handleMouseLeave,selectedIndex:this.state.selectedIndex,style:f}))}}h.defaultProps={children:null,extensions:[],inputDelay:100,loadingStyle:{},maxResults:null,maxViewableResults:null,render:null,resultStyle:{},rootStyle:{position:"relative"},showEmpty:!1},t.Ay=h,t.N_=c},402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>p,Component:()=>r.uA,Fragment:()=>r.FK,PureComponent:()=>a,StrictMode:()=>ee,Suspense:()=>m,SuspenseList:()=>w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>q,cloneElement:()=>G,createContext:()=>r.q6,createElement:()=>r.n,createFactory:()=>V,createPortal:()=>S,createRef:()=>r._3,default:()=>se,findDOMNode:()=>J,flushSync:()=>X,forwardRef:()=>f,hydrate:()=>T,isElement:()=>le,isFragment:()=>Q,isMemo:()=>z,isValidElement:()=>Z,lazy:()=>g,memo:()=>s,render:()=>N,startTransition:()=>te,unmountComponentAtNode:()=>Y,unstable_batchedUpdates:()=>$,useCallback:()=>o.hb,useContext:()=>o.NT,useDebugValue:()=>o.MN,useDeferredValue:()=>ne,useEffect:()=>o.vJ,useErrorBoundary:()=>o.Md,useId:()=>o.Bi,useImperativeHandle:()=>o.Yn,useInsertionEffect:()=>oe,useLayoutEffect:()=>o.Nf,useMemo:()=>o.Kr,useReducer:()=>o.WO,useRef:()=>o.li,useState:()=>o.J0,useSyncExternalStore:()=>ie,useTransition:()=>re,version:()=>K});var r=n(172),o=n(994);function l(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function a(e,t){this.props=e,this.context=t}function s(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:i(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.n)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(a.prototype=new r.uA).isPureReactComponent=!0,a.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var u=r.fF.__b;r.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),u&&u(e)};var c="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function f(e){function t(t){var n=l({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=c,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var d=function(e,t){return null==e?null:(0,r.v2)((0,r.v2)(e).map(t))},p={map:d,forEach:d,count:function(e){return e?(0,r.v2)(e).length:0},only:function(e){var t=(0,r.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.v2},_=r.fF.__e;r.fF.__e=function(e,t,n,r){if(e.then)for(var o,l=t;l=l.__;)if((o=l.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);_(e,t,n,r)};var h=r.fF.unmount;function v(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=l({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return v(e,t,n)}))),e}function y(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return y(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function m(){this.__u=0,this.t=null,this.__b=null}function b(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function g(e){var t,n,o;function l(l){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return(0,r.n)(n,l)}return l.displayName="Lazy",l.__f=!0,l}function w(){this.u=null,this.o=null}r.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),h&&h(e)},(m.prototype=new r.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=b(r.__v),l=!1,i=function(){l||(l=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=y(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},m.prototype.componentWillUnmount=function(){this.t=[]},m.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=v(this.__b,n,o.__O=o.__P)}this.__b=null}var l=t.__a&&(0,r.n)(r.FK,null,e.fallback);return l&&(l.__u&=-33),[(0,r.n)(r.FK,null,t.__a?null:e.children),l]};var O=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function C(e){return this.getChildContext=function(){return e.context},e.children}function E(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,r.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,r.XX)((0,r.n)(C,{context:t.context},e.__v),t.l)}function S(e,t){var n=(0,r.n)(E,{__v:e,i:t});return n.containerInfo=t,n}(w.prototype=new r.uA).__a=function(e){var t=this,n=b(t.__v),r=t.o.get(e);return r[0]++,function(o){var l=function(){t.props.revealOrder?(r.push(o),O(t,e,r)):o()};n?n(l):l()}},w.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,r.v2)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},w.prototype.componentDidUpdate=w.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){O(e,n,t)}))};var x="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,k=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,M=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,R=/[A-Z0-9]/g,P="undefined"!=typeof document,A=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function N(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function T(e,t,n){return(0,r.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.uA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var j=r.fF.event;function F(){}function D(){return this.cancelBubble}function L(){return this.defaultPrevented}r.fF.event=function(e){return j&&(e=j(e)),e.persist=F,e.isPropagationStopped=D,e.isDefaultPrevented=L,e.nativeEvent=e};var I,H={enumerable:!1,configurable:!0,get:function(){return this.class}},U=r.fF.vnode;r.fF.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={};for(var l in t){var i=t[l];if(!("value"===l&&"defaultValue"in t&&null==i||P&&"children"===l&&"noscript"===n||"class"===l||"className"===l)){var a=l.toLowerCase();"defaultValue"===l&&"value"in t&&null==t.value?l="value":"download"===l&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?l="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||A(t.type)?"onfocus"===a?l="onfocusin":"onblur"===a?l="onfocusout":M.test(l)?l=a:-1===n.indexOf("-")&&k.test(l)?l=l.replace(R,"-$&").toLowerCase():null===i&&(i=void 0):a=l="oninput","oninput"===a&&o[l=a]&&(l="oninputCapture"),o[l]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.v2)(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=(0,r.v2)(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",H)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=x,U&&U(e)};var W=r.fF.__r;r.fF.__r=function(e){W&&W(e),I=e.__c};var B=r.fF.diffed;r.fF.diffed=function(e){B&&B(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),I=null};var q={ReactCurrentDispatcher:{current:{readContext:function(e){return I.__n[e.__c].props.value}}}},K="17.0.2";function V(e){return r.n.bind(null,e)}function Z(e){return!!e&&e.$$typeof===x}function Q(e){return Z(e)&&e.type===r.FK}function z(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function G(e){return Z(e)?r.Ob.apply(null,arguments):e}function Y(e){return!!e.__k&&((0,r.XX)(null,e),!0)}function J(e){return e&&(e.base||1===e.nodeType&&e)||null}var $=function(e,t){return e(t)},X=function(e,t){return e(t)},ee=r.FK;function te(e){e()}function ne(e){return e}function re(){return[!1,te]}var oe=o.Nf,le=Z;function ie(e,t){var n=t(),r=(0,o.J0)({h:{__:n,v:t}}),l=r[0].h,i=r[1];return(0,o.Nf)((function(){l.__=n,l.v=t,ae(l)&&i({h:l})}),[e,n,t]),(0,o.vJ)((function(){return ae(l)&&i({h:l}),e((function(){ae(l)&&i({h:l})}))}),[e]),n}function ae(e){var t,n,r=e.v,o=e.__;try{var l=r();return!((t=o)===(n=l)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var se={useState:o.J0,useId:o.Bi,useReducer:o.WO,useEffect:o.vJ,useLayoutEffect:o.Nf,useInsertionEffect:oe,useTransition:re,useDeferredValue:ne,useSyncExternalStore:ie,startTransition:te,useRef:o.li,useImperativeHandle:o.Yn,useMemo:o.Kr,useCallback:o.hb,useContext:o.NT,useDebugValue:o.MN,version:"17.0.2",Children:p,render:N,hydrate:T,unmountComponentAtNode:Y,createPortal:S,createElement:r.n,createContext:r.q6,createFactory:V,cloneElement:G,createRef:r._3,Fragment:r.FK,isValidElement:Z,isElement:le,isFragment:Q,isMemo:z,findDOMNode:J,Component:r.uA,PureComponent:a,memo:s,forwardRef:f,flushSync:X,unstable_batchedUpdates:$,StrictMode:ee,Suspense:m,SuspenseList:w,lazy:g,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:q}},172:(e,t,n)=>{"use strict";n.d(t,{FK:()=>C,Ob:()=>V,Qv:()=>K,XX:()=>q,_3:()=>O,fF:()=>o,n:()=>g,q6:()=>Z,uA:()=>E,v2:()=>N});var r,o,l,i,a,s,u,c,f,d,p,_={},h=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n){var o,l,i,a={};for(i in t)"key"==i?o=t[i]:"ref"==i?l=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return w(e,a,o,l,null)}function w(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++l:i,__i:-1,__u:0};return null==i&&null!=o.vnode&&o.vnode(a),a}function O(){return{current:null}}function C(e){return e.children}function E(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function k(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!M.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||s)(M)}function M(){var e,t,n,r,l,a,s,c;for(i.sort(u);e=i.shift();)e.__d&&(t=i.length,r=void 0,a=(l=(n=e).__v).__e,s=[],c=[],n.__P&&((r=m({},l)).__v=l.__v+1,o.vnode&&o.vnode(r),L(n.__P,r,l,n.__n,void 0!==n.__P.ownerSVGElement,32&l.__u?[a]:null,s,null==a?S(l):a,!!(32&l.__u),c),r.__v=l.__v,r.__.__k[r.__i]=r,I(s,r,c),r.__e!=a&&x(r)),i.length>t&&i.sort(u));M.__r=0}function R(e,t,n,r,o,l,i,a,s,u,c){var f,d,p,v,y,m=r&&r.__k||h,b=t.length;for(n.__d=s,P(n,t,m),s=n.__d,f=0;f<b;f++)null!=(p=n.__k[f])&&"boolean"!=typeof p&&"function"!=typeof p&&(d=-1===p.__i?_:m[p.__i]||_,p.__i=f,L(e,p,d,o,l,i,a,s,u,c),v=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&U(d.ref,null,p),c.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),65536&p.__u||d.__k===p.__k?(s&&!s.isConnected&&(s=S(d)),s=A(p,s,e)):"function"==typeof p.type&&void 0!==p.__d?s=p.__d:v&&(s=v.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=s,n.__e=y}function P(e,t,n){var r,o,l,i,a,s=t.length,u=n.length,c=u,f=0;for(e.__k=[],r=0;r<s;r++)i=r+f,null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?w(null,o,null,null,null):y(o)?w(C,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?w(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=T(o,n,i,c),o.__i=a,l=null,-1!==a&&(c--,(l=n[a])&&(l.__u|=131072)),null==l||null===l.__v?(-1==a&&f--,"function"!=typeof o.type&&(o.__u|=65536)):a!==i&&(a===i+1?f++:a>i?c>s-i?f+=a-i:f--:a<i?a==i-1&&(f=a-i):f=0,a!==r+f&&(o.__u|=65536))):(l=n[i])&&null==l.key&&l.__e&&!(131072&l.__u)&&(l.__e==e.__d&&(e.__d=S(l)),W(l,l,!1),n[i]=null,c--);if(c)for(r=0;r<u;r++)null!=(l=n[r])&&!(131072&l.__u)&&(l.__e==e.__d&&(e.__d=S(l)),W(l,l))}function A(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=A(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(y(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function T(e,t,n,r){var o=e.key,l=e.type,i=n-1,a=n+1,s=t[n];if(null===s||s&&o==s.key&&l===s.type&&!(131072&s.__u))return n;if(r>(null==s||131072&s.__u?0:1))for(;i>=0||a<t.length;){if(i>=0){if((s=t[i])&&!(131072&s.__u)&&o==s.key&&l===s.type)return i;i--}if(a<t.length){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&l===s.type)return a;a++}}return-1}function j(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||v.test(t)?n:n+"px"}function F(e,t,n,r,o){var l;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||j(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||j(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])l=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?r?n.u=r.u:(n.u=c,e.addEventListener(t,l?d:f,l)):e.removeEventListener(t,l?d:f,l);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function D(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=c++;else if(t.t<n.u)return;return n(o.event?o.event(t):t)}}}function L(e,t,n,r,l,i,a,s,u,c){var f,d,p,_,h,v,b,g,w,O,S,x,k,M,P,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[s=t.__e=n.__e]),(f=o.__b)&&f(t);e:if("function"==typeof A)try{if(g=t.props,w=(f=A.contextType)&&r[f.__c],O=f?w?w.props.value:f.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(g,O):(t.__c=d=new E(g,O),d.constructor=A,d.render=B),w&&w.sub(d),d.props=g,d.state||(d.state={}),d.context=O,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,A.getDerivedStateFromProps(g,d.__s))),_=d.props,h=d.state,d.__v=t,p)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&g!==_&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,O),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,O)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,O),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(_,h,v)}))}if(d.context=O,d.props=g,d.__P=e,d.__e=!1,x=o.__r,k=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(t),f=d.render(d.props,d.state,d.context),M=0;M<d._sb.length;M++)d.__h.push(d._sb[M]);d._sb=[]}else do{d.__d=!1,x&&x(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=m(m({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(v=d.getSnapshotBeforeUpdate(_,h)),R(e,y(P=null!=f&&f.type===C&&null==f.key?f.props.children:f)?P:[P],t,n,r,l,i,a,s,u,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),b&&(d.__E=d.__=null)}catch(e){t.__v=null,u||null!=i?(t.__e=s,t.__u|=u?160:32,i[i.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),o.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=H(n.__e,t,n,r,l,i,a,u,c);(f=o.diffed)&&f(t)}function I(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)U(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function H(e,t,n,o,l,i,a,s,u){var c,f,d,p,h,v,m,g=n.props,w=t.props,O=t.type;if("svg"===O&&(l=!0),null!=i)for(c=0;c<i.length;c++)if((h=i[c])&&"setAttribute"in h==!!O&&(O?h.localName===O:3===h.nodeType)){e=h,i[c]=null;break}if(null==e){if(null===O)return document.createTextNode(w);e=l?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O,w.is&&w),i=null,s=!1}if(null===O)g===w||s&&e.data===w||(e.data=w);else{if(i=i&&r.call(e.childNodes),g=n.props||_,!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(h=e.attributes[c]).name]=h.value;for(c in g)h=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=h:"key"===c||c in w||F(e,c,null,h,l));for(c in w)h=w[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?f=h:"value"==c?v=h:"checked"==c?m=h:"key"===c||s&&"function"!=typeof h||g[c]===h||F(e,c,h,g[c],l);if(f)s||d&&(f.__html===d.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(d&&(e.innerHTML=""),R(e,y(p)?p:[p],t,n,o,l&&"foreignObject"!==O,i,a,i?i[0]:n.__k&&S(n,0),s,u),null!=i)for(c=i.length;c--;)null!=i[c]&&b(i[c]);s||(c="value",void 0!==v&&(v!==e[c]||"progress"===O&&!v||"option"===O&&v!==g[c])&&F(e,c,v,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&F(e,c,m,g[c],!1))}return e}function U(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function W(e,t,n){var r,l;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||U(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(l=0;l<r.length;l++)r[l]&&W(r[l],t,n||"function"!=typeof e.type);n||null==e.__e||b(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function B(e,t,n){return this.constructor(e,n)}function q(e,t,n){var l,i,a,s;o.__&&o.__(e,t),i=(l="function"==typeof n)?null:n&&n.__k||t.__k,a=[],s=[],L(t,e=(!l&&n||t).__k=g(C,null,[e]),i||_,_,void 0!==t.ownerSVGElement,!l&&n?[n]:i?null:t.firstChild?r.call(t.childNodes):null,a,!l&&n?n:i?i.__e:t.firstChild,l,s),I(a,e,s)}function K(e,t){q(e,t,K)}function V(e,t,n){var o,l,i,a,s=m({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?o=t[i]:"ref"==i?l=t[i]:s[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),w(e.type,s,o||e.key,l||e.ref,null)}function Z(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,k(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=h.slice,o={__e:function(e,t,n,r){for(var o,l,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((l=o.constructor)&&null!=l.getDerivedStateFromError&&(o.setState(l.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},l=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},E.prototype.render=C,i=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},M.__r=0,c=0,f=D(!1),d=D(!0),p=0},994:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>P,J0:()=>b,Kr:()=>S,MN:()=>M,Md:()=>R,NT:()=>k,Nf:()=>O,WO:()=>g,Yn:()=>E,hb:()=>x,li:()=>C,vJ:()=>w});var r,o,l,i,a=n(172),s=0,u=[],c=[],f=a.fF,d=f.__b,p=f.__r,_=f.diffed,h=f.__c,v=f.unmount,y=f.__;function m(e,t){f.__h&&f.__h(o,e,s||t),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:c}),n.__[e]}function b(e){return s=1,g(L,e)}function g(e,t,n){var l=m(r++,2);if(l.t=e,!l.__c&&(l.__=[n?n(t):L(void 0,t),function(e){var t=l.__N?l.__N[0]:l.__[0],n=l.t(t,e);t!==n&&(l.__N=[n,l.__[1]],l.__c.setState({}))}],l.__c=o,!o.u)){var i=function(e,t,n){if(!l.__c.__H)return!0;var r=l.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&l.__c.props===e)&&(!a||a.call(this,e,t,n))};o.u=!0;var a=o.shouldComponentUpdate,s=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}s&&s.call(this,e,t,n)},o.shouldComponentUpdate=i}return l.__N||l.__}function w(e,t){var n=m(r++,3);!f.__s&&D(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function O(e,t){var n=m(r++,4);!f.__s&&D(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function C(e){return s=5,S((function(){return{current:e}}),[])}function E(e,t,n){s=6,O((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function S(e,t){var n=m(r++,7);return D(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function x(e,t){return s=8,S((function(){return e}),t)}function k(e){var t=o.context[e.__c],n=m(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function M(e,t){f.useDebugValue&&f.useDebugValue(t?t(e):e)}function R(e){var t=m(r++,10),n=b();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function P(){var e=m(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function A(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(F),e.__H.__h=[]}catch(t){e.__H.__h=[],f.__e(t,e.__v)}}f.__b=function(e){o=null,d&&d(e)},f.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),y&&y(e,t)},f.__r=function(e){p&&p(e),r=0;var t=(o=e.__c).__H;t&&(l===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=c,e.__N=e.i=void 0}))):(t.__h.forEach(j),t.__h.forEach(F),t.__h=[],r=0)),l=o},f.diffed=function(e){_&&_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&i===f.requestAnimationFrame||((i=f.requestAnimationFrame)||T)(A)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==c&&(e.__=e.__V),e.i=void 0,e.__V=c}))),l=o=null},f.__c=function(e,t){t.some((function(e){try{e.__h.forEach(j),e.__h=e.__h.filter((function(e){return!e.__||F(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],f.__e(n,e.__v)}})),h&&h(e,t)},f.unmount=function(e){v&&v(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{j(e)}catch(e){t=e}})),n.__H=void 0,t&&f.__e(t,n.__v))};var N="function"==typeof requestAnimationFrame;function T(e){var t,n=function(){clearTimeout(r),N&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);N&&(t=requestAnimationFrame(n))}function j(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function F(e){var t=o;e.__c=e.__(),o=t}function D(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function L(e,t){return"function"==typeof t?t(e):t}},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},345:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function l(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=l;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0},720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(402),i=_(l),a=_(n(402)),s=_(n(556)),u=_(n(90)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(462)),f=n(834),d=_(f),p=n(345);function _(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",m=f.canUseDOM&&void 0!==a.default.createPortal,b=function(e){return document.createElement(e)},g=function(){return m?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var O=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,s=Array(l),c=0;c<l;c++)s[c]=arguments[c];return n=o=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),o.removePortal=function(){!m&&a.default.unmountComponentAtNode(o.node);var e=w(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=g()(o,i.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},h(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(m||(this.node=b("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!m&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var r=this.props,o=r.isOpen,l=r.portalClassName;e.portalClassName!==l&&(this.node.className=l);var i=n.prevParent,a=n.nextParent;a!==i&&(i.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||o)&&!m&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&m?(!this.node&&m&&(this.node=b("div")),g()(i.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(l.Component);O.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func},O.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},O.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(O),t.default=O},90:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(402),a=v(n(556)),s=h(n(791)),u=v(n(67)),c=h(n(462)),f=h(n(838)),d=n(834),p=v(d),_=v(n(628));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(727);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},m=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,l=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;l&&f.remove(a.body,l),o&&f.remove(a.getElementsByTagName("html")[0],o),r&&m>0&&0==(m-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),_.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},l=r.base;return n.state.afterOpen&&(l=l+" "+r.afterOpen),n.state.beforeClose&&(l=l+" "+r.beforeClose),"string"==typeof t&&t?l+" "+t:l},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,l=e.parentSelector,i=l&&l().ownerDocument||document;o&&f.add(i.body,o),r&&f.add(i.getElementsByTagName("html")[0],r),n&&(m+=1,c.hide(t)),_.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,l=e.defaultStyles,i=e.children,a=n?{}:l.content,s=o?{}:l.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,i);return this.props.overlayElement(u,f)}}]),t}(i.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(p.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(p.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=b,e.exports=t.default},462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(i).forEach((function(e){return e.removeAttribute("aria-hidden")}))),i=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&l.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return i=t||i},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,l=s(e)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,l=s(e)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){i=null};var r,o=(r=n(771))&&r.__esModule?r:{default:r},l=n(834),i=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[l,i],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}l=i=null,a=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(a.length);for(var e=[l,i],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(628))&&r.__esModule?r:{default:r},l=void 0,i=void 0,a=[];function s(){0!==a.length&&a[a.length-1].focusContent()}o.default.subscribe((function(e,t){l||i||((l=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",s),(i=l.cloneNode()).addEventListener("focus",s)),(a=t).length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(l.parentElement&&l.parentElement.removeChild(l),i.parentElement&&i.parentElement.removeChild(i))}))},838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var l=document.body;for(var i in r)o(l,r[i]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,l="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(l,e),o.add(e)}));var o,l},t.remove=function(e,t){return o=e.classList,l="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(l,e),0===l[e]&&o.remove(e)}));var o,l}},791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=u,t.markForFocusLater=function(){l.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==l.length&&(t=l.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){l.length>0&&l.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",u))};var r,o=(r=n(411))&&r.__esModule?r:{default:r},l=[],i=null,a=!1;function s(){a=!0}function u(){if(a){if(a=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(792))&&r.__esModule?r:{default:r}).default,l=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=l},67:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1],u=l();if(e===u){if(!i)return;r=s}if(s!==u||i||(r=a),a===u&&i&&(r=s),r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var f=n.indexOf(u);if(f>-1&&(f+=i?-1:1),void 0===(r=n[f]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(411))&&r.__esModule?r:{default:r};function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?l(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(i)};var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function l(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),l=o.getPropertyValue("display");return t?l!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):l===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),l(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(720))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},771:e=>{"use strict";e.exports=function(){}},635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>j,__assign:()=>l,__asyncDelegator:()=>S,__asyncGenerator:()=>E,__asyncValues:()=>x,__await:()=>C,__awaiter:()=>_,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>T,__classPrivateFieldSet:()=>N,__createBinding:()=>v,__decorate:()=>a,__disposeResources:()=>D,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>o,__generator:()=>h,__importDefault:()=>P,__importStar:()=>R,__makeTemplateObject:()=>k,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>b,__rest:()=>i,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>g,__spreadArray:()=>O,__spreadArrays:()=>w,__values:()=>m,default:()=>L});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,l=arguments.length,i=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(l<3?o(i):l>3?o(t,n,i):o(t,n))||i);return l>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,o,l){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,s=r.kind,u="getter"===s?"get":"setter"===s?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var _={};for(var h in r)_[h]="access"===h?{}:r[h];for(var h in r.access)_.access[h]=r.access[h];_.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");l.push(i(e||null))};var v=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[u],_);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(a=i(v.get))&&(f.get=a),(a=i(v.set))&&(f.set=a),(a=i(v.init))&&o.unshift(a)}else(a=i(v))&&("field"===s?o.unshift(a):f[u]=a)}c&&Object.defineProperty(c,r.name,f),d=!0}function c(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function _(e,t,n,r){return new(n||(n=Promise))((function(o,l){function i(e){try{s(r.next(e))}catch(e){l(e)}}function a(e){try{s(r.throw(e))}catch(e){l(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}s((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var l=arguments[t],i=0,a=l.length;i<a;i++,o++)r[o]=l[i];return r}function O(e,t,n){if(n||2===arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),l=[];return r={},i("next"),i("throw"),i("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),r[Symbol.asyncIterator]=function(){return this},r;function i(e,t){o[e]&&(r[e]=function(t){return new Promise((function(n,r){l.push([e,t,n,r])>1||a(e,t)}))},t&&(r[e]=t(r[e])))}function a(e,t){try{(n=o[e](t)).value instanceof C?Promise.resolve(n.value.v).then(s,u):c(l[0][2],n)}catch(e){c(l[0][3],e)}var n}function s(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),l.shift(),l.length&&a(l[0][0],l[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return M(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function N(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function T(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function j(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function D(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const L={__extends:o,__assign:l,__rest:i,__decorate:a,__param:s,__metadata:p,__awaiter:_,__generator:h,__createBinding:v,__exportStar:y,__values:m,__read:b,__spread:g,__spreadArrays:w,__spreadArray:O,__await:C,__asyncGenerator:E,__asyncDelegator:S,__asyncValues:x,__makeTemplateObject:k,__importStar:R,__importDefault:P,__classPrivateFieldGet:A,__classPrivateFieldSet:N,__classPrivateFieldIn:T,__addDisposableResource:j,__disposeResources:D}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(172),t=0;function r(n,r,o,l,i,a){var s,u,c={};for(u in r)"ref"==u?s=r[u]:c[u]=r[u];var f={type:n,props:c,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--t,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof n&&(s=n.defaultProps))for(u in s)void 0===c[u]&&(c[u]=s[u]);return e.fF.vnode&&e.fF.vnode(f),f}Array.isArray;var o,l=n(410),i=n(994),a={background:"repeating-linear-gradient(45deg, #000F, #000D 30%, #0003 50%, #000D 70%, #000F)",backgroundClip:"text",backgroundPosition:"40000px",color:"#0001",transition:"background 100s ease-out, color 0.15s ease-in"},s=function(e,t){var n=(0,i.hb)((function(n){var r=n.metaKey,o=n.ctrlKey,l=n.key;(r||o)&&l.toLowerCase()==e&&(n.preventDefault(),t())}),[t,e]);(0,i.vJ)((function(){return document.addEventListener("keydown",n),function(){return document.removeEventListener("keydown",n)}}),[n])},u=n(312),c=n.n(u),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)},d=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i},p=function(t,n){void 0===n&&(n=20);var o=d((0,i.J0)(!1),2),l=o[0],a=o[1],s=d((0,i.J0)(r(e.FK,{})),2),u=s[0],p=s[1];return{modal:(0,i.Kr)((function(){return r(c(),f({ariaHideApp:!1,isOpen:l,onRequestClose:function(){return a(!1)},style:v},{children:[r("span",f({onClick:function(){return a(!1)},style:{cursor:"pointer",position:"absolute",top:7,right:9,zIndex:h.zIndex+1}},{children:"╳"})),r("div",f({style:{padding:n}},{children:t||u}))]}))}),[u,l,a,t]),setBody:p,toggle:(0,i.hb)((function(){return a(!l)}),[a,l])}},_={zIndex:1001},h=f(f({},_),{maxWidth:640,maxHeight:640,margin:"auto",padding:"2px 0 2px 0"}),v={overlay:_,content:h},y=n(531),m=n.n(y),b=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(n){var r=e.call(this,n)||this;return r.name="YaamError",Object.setPrototypeOf(r,t.prototype),r}return b(t,e),t}(Error),w=function(e){if(e=e.replace(/\s+/g,""),!k.test(e))throw new g("invalid input");var t=new O,n=new Array,r=t;if(e.match(x).forEach((function(e){if("("===e){n.push(r);var t=new O;r.children.push(t),r=t}else if(")"===e){if(!n.length)throw new g("unbalanced parentheses `)`");r=n.pop()}else r.children.push(e)})),n.length)throw new g("unbalanced parentheses `(`");return t},O=function(){function e(){this.children=new Array}return e.prototype.calculate=function(){var e=this,t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],this.children,!0);if(t.length%2==0)throw new g("invalid Node ".concat(t));if(C.forEach((function(n){for(var r=t.length-2;r>0;r--)if(t[r]===n){var o=e.toNumber(t[r-1]),l=e.toNumber(t[r+1]),i=void 0;switch(n){case"+":i=o+l;break;case"-":i=o-l;break;case"*":i=o*l;break;case"/":i=o/l;break;case"%":case"%":i=o%l;break;case"^":case"**":i=Math.pow(o,l);break;default:throw new g("unhandled operator ".concat(n))}t.splice(r-1,3,i)}})),1!==t.length)throw new g("invalid Node ".concat(t));return this.toNumber(t[0])},e.prototype.toNumber=function(t){if(t instanceof e)return t.calculate();if("number"==typeof t)return t;if(S.test(t)){var n=t.split("e"),r=n[0],o=n[1],l=Number(r);if(!isNaN(l))return void 0===o?l:l*Math.pow(10,Number(o))}throw new g("invalid token ".concat(t))},e}(),C=["**","^","%","/","*","+","-"],E=new RegExp("(?:"+C.map((function(e){return e.replace(/(?=.)/g,"\\")})).join("|")+")"),S=/(?:(?:\d+\.\d+|\d+)(?:e[+-]?\d+)?)/,x=new RegExp("(?:[()]|".concat(E.source,"|").concat(S.source,")"),"g"),k=new RegExp("\n ^\n ".concat(x.source,"*\n ").concat(S.source,"\n ").concat(x.source,"*\n ").concat(E.source,"\n ").concat(x.source,"*\n ").concat(S.source,"\n ").concat(x.source,"*\n $\n ").replace(/\s+/g,"")),M=function(){return M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},M.apply(this,arguments)},R=function(e){return function(t){return t?[]:e.items.filter((function(e){return e.suggested}))}},P=function(e){var t=e.commandPattern,n=e.queryPath,r=(0,i.Kr)((function(){return t&&new RegExp(t.source,t.options)}),[t]);return function(e){return t=void 0,o=void 0,i=function(){return function(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(t){switch(t.label){case 0:return e&&n&&(null==r?void 0:r.test(e))?[4,fetch("".concat(n,"&q=").concat(e))]:[2,[]];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}}))},new((l=void 0)||(l=Promise))((function(e,n){function r(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof l?n:new l((function(e){e(n)}))).then(r,a)}s((i=i.apply(t,o||[])).next())}));var t,o,l,i}},A=function(t){var n=t.items;return function(t){return t?m().go(t,n,{key:"title"}).map((function(t){return M(M({},t.obj),{title:r(e.FK,{children:m().highlight(t,(function(e){return r("span",M({style:N},{children:e}))}))})})})):[]}},N={textShadow:"-0.06ex 0 0 currentColor, 0.06ex 0 0 currentColor"},T=function(e){var t=e.calculator;return function(e){var n=t&&e?function(e,t){void 0===t&&(t={});try{return function(e){return w(e).calculate()}(e)}catch(e){return t.verbose&&console.log(e),null}}(e):null;return null!==n?[{title:String(n),type:"default"}]:new Array}},j="rails-omnibar",F=n(402);function D({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",d:"M13.2 2.24a.75.75 0 0 0 .04 1.06l2.1 1.95H6.75a.75.75 0 0 0 0 1.5h8.59l-2.1 1.95a.75.75 0 1 0 1.02 1.1l3.5-3.25a.75.75 0 0 0 0-1.1l-3.5-3.25a.75.75 0 0 0-1.06.04Zm-6.4 8a.75.75 0 0 0-1.06-.04l-3.5 3.25a.75.75 0 0 0 0 1.1l3.5 3.25a.75.75 0 1 0 1.02-1.1l-2.1-1.95h8.59a.75.75 0 0 0 0-1.5H4.66l2.1-1.95a.75.75 0 0 0 .04-1.06Z",clipRule:"evenodd"}))}const L=F.forwardRef(D);function I({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M1 12.5A4.5 4.5 0 0 0 5.5 17H15a4 4 0 0 0 1.866-7.539 3.504 3.504 0 0 0-4.504-4.272A4.5 4.5 0 0 0 4.06 8.235 4.502 4.502 0 0 0 1 12.5Z"}))}const H=F.forwardRef(I);function U({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",d:"M7.84 1.804A1 1 0 0 1 8.82 1h2.36a1 1 0 0 1 .98.804l.331 1.652a6.993 6.993 0 0 1 1.929 1.115l1.598-.54a1 1 0 0 1 1.186.447l1.18 2.044a1 1 0 0 1-.205 1.251l-1.267 1.113a7.047 7.047 0 0 1 0 2.228l1.267 1.113a1 1 0 0 1 .206 1.25l-1.18 2.045a1 1 0 0 1-1.187.447l-1.598-.54a6.993 6.993 0 0 1-1.929 1.115l-.33 1.652a1 1 0 0 1-.98.804H8.82a1 1 0 0 1-.98-.804l-.331-1.652a6.993 6.993 0 0 1-1.929-1.115l-1.598.54a1 1 0 0 1-1.186-.447l-1.18-2.044a1 1 0 0 1 .205-1.251l1.267-1.114a7.05 7.05 0 0 1 0-2.227L1.821 7.773a1 1 0 0 1-.206-1.25l1.18-2.045a1 1 0 0 1 1.187-.447l1.598.54A6.992 6.992 0 0 1 7.51 3.456l.33-1.652ZM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",clipRule:"evenodd"}))}const W=F.forwardRef(U);function B({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",d:"M3.25 3A2.25 2.25 0 0 0 1 5.25v9.5A2.25 2.25 0 0 0 3.25 17h13.5A2.25 2.25 0 0 0 19 14.75v-9.5A2.25 2.25 0 0 0 16.75 3H3.25Zm.943 8.752a.75.75 0 0 1 .055-1.06L6.128 9l-1.88-1.693a.75.75 0 1 1 1.004-1.114l2.5 2.25a.75.75 0 0 1 0 1.114l-2.5 2.25a.75.75 0 0 1-1.06-.055ZM9.75 10.25a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5h-2.5Z",clipRule:"evenodd"}))}const q=F.forwardRef(B);function K({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M3 3.5A1.5 1.5 0 0 1 4.5 2h6.879a1.5 1.5 0 0 1 1.06.44l4.122 4.12A1.5 1.5 0 0 1 17 7.622V16.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 16.5v-13Z"}))}const V=F.forwardRef(K);function Z({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",d:"M9.293 2.293a1 1 0 0 1 1.414 0l7 7A1 1 0 0 1 17 11h-1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6H3a1 1 0 0 1-.707-1.707l7-7Z",clipRule:"evenodd"}))}const Q=F.forwardRef(Z);function z({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0ZM8.94 6.94a.75.75 0 1 1-1.061-1.061 3 3 0 1 1 2.871 5.026v.345a.75.75 0 0 1-1.5 0v-.5c0-.72.57-1.172 1.081-1.287A1.5 1.5 0 1 0 8.94 6.94ZM10 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const G=F.forwardRef(z);function Y({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z",clipRule:"evenodd"}))}const J=F.forwardRef(Y);function $({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M15.98 1.804a1 1 0 0 0-1.96 0l-.24 1.192a1 1 0 0 1-.784.785l-1.192.238a1 1 0 0 0 0 1.962l1.192.238a1 1 0 0 1 .785.785l.238 1.192a1 1 0 0 0 1.962 0l.238-1.192a1 1 0 0 1 .785-.785l1.192-.238a1 1 0 0 0 0-1.962l-1.192-.238a1 1 0 0 1-.785-.785l-.238-1.192ZM6.949 5.684a1 1 0 0 0-1.898 0l-.683 2.051a1 1 0 0 1-.633.633l-2.051.683a1 1 0 0 0 0 1.898l2.051.684a1 1 0 0 1 .633.632l.683 2.051a1 1 0 0 0 1.898 0l.683-2.051a1 1 0 0 1 .633-.633l2.051-.683a1 1 0 0 0 0-1.898l-2.051-.683a1 1 0 0 1-.633-.633L6.95 5.684ZM13.949 13.684a1 1 0 0 0-1.898 0l-.184.551a1 1 0 0 1-.632.633l-.551.183a1 1 0 0 0 0 1.898l.551.183a1 1 0 0 1 .633.633l.183.551a1 1 0 0 0 1.898 0l.184-.551a1 1 0 0 1 .632-.633l.551-.183a1 1 0 0 0 0-1.898l-.551-.184a1 1 0 0 1-.633-.632l-.183-.551Z"}))}const X=F.forwardRef($);function ee({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M10 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM3.465 14.493a1.23 1.23 0 0 0 .41 1.412A9.957 9.957 0 0 0 10 18c2.31 0 4.438-.784 6.131-2.1.43-.333.604-.903.408-1.41a7.002 7.002 0 0 0-13.074.003Z"}))}const te=F.forwardRef(ee);function ne({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M1 4.25a3.733 3.733 0 0 1 2.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0 0 16.75 2H3.25A2.25 2.25 0 0 0 1 4.25ZM1 7.25a3.733 3.733 0 0 1 2.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0 0 16.75 5H3.25A2.25 2.25 0 0 0 1 7.25ZM7 8a1 1 0 0 1 1 1 2 2 0 1 0 4 0 1 1 0 0 1 1-1h3.75A2.25 2.25 0 0 1 19 10.25v5.5A2.25 2.25 0 0 1 16.75 18H3.25A2.25 2.25 0 0 1 1 15.75v-5.5A2.25 2.25 0 0 1 3.25 8H7Z"}))}const re=F.forwardRef(ne);function oe({title:e,titleId:t,...n},r){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))}const le=F.forwardRef(oe);var ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ie.apply(this,arguments)},ae=function(){return document.querySelectorAll(".mount-rails-omnibar").forEach((function(t){var n=t.querySelector("script[type='application/json']");if(n){var o=JSON.parse(n.innerHTML);n.remove(),(0,e.XX)(r(se,ie({},o)),t)}}))};document.addEventListener("DOMContentLoaded",ae),document.addEventListener("turbo:load",ae);var se=function(e){var t=p(),n=(0,i.hb)((function(){setTimeout((function(){var e=document.querySelector("[data-id=".concat(j,"]"));document.activeElement===e?null==e||e.blur():null==e||e.focus()}),100)}),[]);return s(e.hotkey,n),r(e.modal?ce:ue,ie({},e,{itemModal:t}))},ue=function(t){var n,o,s,u,c,f,d=function(e){return(0,i.Kr)((function(){return[R(e),P(e),A(e),T(e)]}),[e])}(t),p=(n=t.itemModal,(0,i.hb)((function(e){if(e)if(e.url)window.location.href=e.url;else if(e.modalHTML){var t=e.modalHTML;n.setBody(r("div",{dangerouslySetInnerHTML:{__html:t}})),n.toggle()}}),[n])),_=(s=(o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i}((0,i.J0)(!1),2))[0],u=o[1],c=(0,i.li)(null),f=function(){c.current&&clearTimeout(c.current),c.current=null},(0,i.vJ)((function(){return function(){f()}}),[]),{style:s?a:{},startTimer:function(){f(),c.current=setTimeout((function(){return u(!0)}),100)},stop:function(){f(),u(!1)}});return r(e.FK,{children:[r(l.Ay,{"data-id":j,extensions:d,maxResults:t.maxResults,onAction:p,onQueryStart:function(){return _.startTimer()},onQueryEnd:function(){return _.stop()},placeholder:t.placeholder,children:function(e){return fe(ie(ie({},e),{modal:t.modal}))},showEmpty:!0,style:ie(ie({},t.modal?pe:de),_.style)}),t.itemModal.modal]})},ce=function(e){var t=p(r(ue,ie({},e)),0),n=t.modal,o=t.toggle;return s(e.hotkey,o),n},fe=function(e){var t,n=e.item,o={onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick},i=(0,l.N_)(e),a=(t=n.icon)?"arrows"===t?L:"cloud"===t?H:"cog"===t?W:"dev"===t?q:"document"===t?V:"home"===t?Q:"question"===t?G:"search"===t?J:"sparkle"===t?X:"user"===t?te:"wallet"===t?re:"x"===t?le:null:null;return r("div",ie({},o,{style:ie(ie({},i),e.modal?pe:de)},{children:[a&&r(a,{name:n.icon,style:_e}),n.title]}))},de={height:36,fontSize:18,lineHeight:"".concat(36,"px")},pe=ie(ie({},de),{border:0}),_e={all:"revert",height:18,width:18,paddingRight:4.5,verticalAlign:"text-top"}})()})();
@@ -1,19 +1,28 @@
1
1
  import React, {FunctionComponent, render} from "preact"
2
- import habitat from "preact-habitat"
3
2
  import Omnibar, {buildItemStyle} from "omnibar2"
4
3
  import {Globals} from "csstype"
5
- import {useDelayedLoadingStyle, useItemAction, useOmnibarExtensions} from "./hooks"
4
+ import {
5
+ useDelayedLoadingStyle,
6
+ useItemAction,
7
+ useOmnibarExtensions,
8
+ } from "./hooks"
6
9
  import {useHotkey, useModal, useToggleFocus} from "./hooks"
7
10
  import {AppArgs, INPUT_DATA_ID, Item, ModalArg} from "./types"
8
11
  import {iconClass} from "./icon"
9
12
 
10
- document.addEventListener("DOMContentLoaded", () => {
11
- habitat(App).render({selector: "#mount-rails-omnibar"})
12
- })
13
+ const mount = () =>
14
+ document.querySelectorAll(".mount-rails-omnibar").forEach((node) => {
15
+ const propScript = node.querySelector("script[type='application/json']")
16
+ if (!propScript) return
13
17
 
14
- document.addEventListener("turbo:load", () => {
15
- habitat(App).render({selector: "#mount-rails-omnibar"})
16
- })
18
+ const props = JSON.parse(propScript.innerHTML) as AppArgs
19
+ propScript.remove()
20
+ render(<App {...props} />, node)
21
+ })
22
+
23
+ document.addEventListener("DOMContentLoaded", mount)
24
+
25
+ document.addEventListener("turbo:load", mount)
17
26
 
18
27
  const App: FunctionComponent<AppArgs> = (args) => {
19
28
  const itemModal = useModal()
@@ -27,7 +36,7 @@ const App: FunctionComponent<AppArgs> = (args) => {
27
36
  const RailsOmnibar: FunctionComponent<AppArgs & ModalArg> = (args) => {
28
37
  const extensions = useOmnibarExtensions(args)
29
38
  const itemAction = useItemAction(args.itemModal)
30
- const loadingStyle = useDelayedLoadingStyle();
39
+ const loadingStyle = useDelayedLoadingStyle()
31
40
 
32
41
  return (
33
42
  <>
@@ -41,7 +50,10 @@ const RailsOmnibar: FunctionComponent<AppArgs & ModalArg> = (args) => {
41
50
  placeholder={args.placeholder}
42
51
  children={(props) => renderItem({...props, modal: args.modal})}
43
52
  showEmpty
44
- style={{...(args.modal ? MODAL_ROW_STYLE : ROW_STYLE), ...loadingStyle.style}}
53
+ style={{
54
+ ...(args.modal ? MODAL_ROW_STYLE : ROW_STYLE),
55
+ ...loadingStyle.style,
56
+ }}
45
57
  />
46
58
  {args.itemModal.modal}
47
59
  </>
@@ -59,12 +71,18 @@ const renderItem = (
59
71
  props: Omnibar.ResultRendererArgs<Item> & {modal: boolean}
60
72
  ) => {
61
73
  const {item, onMouseEnter, onMouseLeave, onClick} = props
62
- const handlers = {onMouseEnter, onMouseLeave, onClick} as Record<string, (e: any) => void>
74
+ const handlers = {onMouseEnter, onMouseLeave, onClick} as Record<
75
+ string,
76
+ (e: any) => void
77
+ >
63
78
  const style = buildItemStyle<Item>(props) as React.JSX.CSSProperties
64
79
  const Icon = iconClass(item.icon)
65
80
 
66
81
  return (
67
- <div {...handlers} style={{...style, ...(props.modal ? MODAL_ROW_STYLE : ROW_STYLE)}}>
82
+ <div
83
+ {...handlers}
84
+ style={{...style, ...(props.modal ? MODAL_ROW_STYLE : ROW_STYLE)}}
85
+ >
68
86
  {Icon && <Icon name={item.icon} style={ICON_STYLE} />}
69
87
  {item.title}
70
88
  </div>
@@ -1,24 +1,30 @@
1
- import {useState} from "preact/hooks"
1
+ import {useEffect, useRef, useState} from "preact/hooks"
2
2
 
3
3
  export const useDelayedLoadingStyle = () => {
4
4
  const [enabled, setEnabled] = useState(false)
5
- const [timer, setTimer] = useState<ReturnType<typeof setTimeout> | null>(null)
5
+ const timer = useRef<ReturnType<typeof setTimeout> | null>(null)
6
+ const clear = () => {
7
+ timer.current && clearTimeout(timer.current)
8
+ timer.current = null
9
+ }
6
10
 
7
11
  const startTimer = () => {
8
- if (timer) clearTimeout(timer)
9
- setTimer(setTimeout(() => setEnabled(true), 100))
12
+ clear()
13
+ timer.current = setTimeout(() => setEnabled(true), 100)
10
14
  }
11
15
 
12
16
  const stop = () => {
13
- if (timer) clearTimeout(timer)
17
+ clear()
14
18
  setEnabled(false)
15
19
  }
16
20
 
21
+ useEffect(() => () => { clear() }, [])
22
+
17
23
  return { style : enabled ? LOADING_STYLE : {}, startTimer, stop }
18
24
  }
19
25
 
20
26
  const LOADING_STYLE = {
21
- background: "repeating-linear-gradient(90deg, #000F, #0004 50%, #000F)",
27
+ background: "repeating-linear-gradient(45deg, #000F, #000D 30%, #0003 50%, #000D 70%, #000F)",
22
28
  backgroundClip: "text",
23
29
  backgroundPosition: "40000px",
24
30
  color: "#0001",
@@ -20,6 +20,7 @@ class RailsOmnibar
20
20
  next unless (res.controller.action_methods & ['index', :index]).any?
21
21
  next unless index = res.route_collection_path rescue next
22
22
  next unless label = res.menu_item&.label.presence
23
+ label = label.call if label.respond_to?(:call)
23
24
 
24
25
  title = [prefix, label, suffix].compact.join(' ')
25
26
  add_item(title: title, url: index, icon: icon, suggested: suggested)
@@ -3,7 +3,7 @@ class RailsOmnibar
3
3
  @context = context
4
4
  <<~HTML.html_safe
5
5
  <script src='#{urls.js_path}?v=#{RailsOmnibar::VERSION}' type='text/javascript'></script>
6
- <div id='mount-rails-omnibar'>
6
+ <div class='mount-rails-omnibar'>
7
7
  <script type="application/json">#{to_json}</script>
8
8
  </div>
9
9
  HTML
@@ -1,3 +1,3 @@
1
1
  class RailsOmnibar
2
- VERSION = '1.8.0'
2
+ VERSION = '1.9.0'
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "scripts": {
3
- "compile": "npx webpack",
3
+ "build": "npx webpack",
4
4
  "test": "bundle exec rake"
5
5
  },
6
6
  "dependencies": {
@@ -8,7 +8,6 @@
8
8
  "fuzzysort": "^2.0.4",
9
9
  "omnibar2": "^2.5.0",
10
10
  "preact": "^10.11.3",
11
- "preact-habitat": "^3.3.0",
12
11
  "react-modal": "^3.16.1",
13
12
  "yaam": "^1.1.1"
14
13
  },
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
19
19
  spec.required_ruby_version = '>= 2.7'
20
20
 
21
21
  spec.add_dependency 'js_regex'
22
- spec.add_dependency 'rails', ['>= 6.0', '< 8.0']
22
+ spec.add_dependency 'rails', ['>= 6.0']
23
23
  end
data/spec/rails_helper.rb CHANGED
@@ -3,7 +3,6 @@ require File.expand_path('dummy/config/environment', __dir__)
3
3
  require 'rspec/rails'
4
4
 
5
5
  require 'selenium/webdriver'
6
- require 'webdrivers/chromedriver'
7
6
 
8
7
  Capybara.server = :puma, { Silent: true }
9
8
 
@@ -7,7 +7,7 @@ describe RailsOmnibar do
7
7
  expect(User.pluck(:id).sort).to eq [1, 2] # sanity check
8
8
 
9
9
  visit main_app.root_path
10
- expect(page).to have_selector '#mount-rails-omnibar' # sanity check
10
+ expect(page).to have_selector '.mount-rails-omnibar' # sanity check
11
11
 
12
12
  # test visibility toggling with hotkey
13
13
  expect(page).not_to have_selector 'input'
@@ -32,6 +32,7 @@ describe RailsOmnibar do
32
32
  expect(page).to have_content 'important URL'
33
33
  expect(page).to have_content 'boring URL'
34
34
 
35
+ sleep 0.1
35
36
  type('ori')
36
37
  expect(page).not_to have_content 'important URL'
37
38
  expect(page).to have_content 'boring URL'
@@ -85,23 +86,19 @@ describe RailsOmnibar do
85
86
  auth = ->(controller) { controller.user_signed_in? || true }
86
87
  MyOmnibar.auth = auth
87
88
  expect(auth).to receive(:call).at_least(:once).and_call_original
88
- sleep 0.1 # not sure why this is needed ...
89
+ type('')
90
+ expect(page).not_to have_content '2'
89
91
  type('count users')
92
+ sleep 0.1
90
93
  expect(page).to have_content '2'
91
94
 
92
- # test activeadmin integration
93
- # stub sprockets so we don't need sassc etc.
94
- allow_any_instance_of(Sprockets::Rails::Helper)
95
- .to receive(:compute_asset_path)
96
- .and_return('')
97
-
98
95
  submit('Admin: Useroos')
99
96
  expect(page).to have_current_path('/admin/users')
100
97
  end
101
98
 
102
99
  it 'can have more than one omnibar' do
103
100
  visit main_app.root_path
104
- expect(page).to have_selector '#mount-rails-omnibar' # sanity check
101
+ expect(page).to have_selector '.mount-rails-omnibar' # sanity check
105
102
 
106
103
  expect(page).not_to have_selector 'input'
107
104
  send_keys([:meta, 'a']) # custom hotkey, c.f. other_omnibar_template.rb
@@ -4,11 +4,11 @@ gem 'rails_omnibar', path: __dir__ + '/../../'
4
4
  gem 'csv'
5
5
  gem 'devise'
6
6
  gem 'activeadmin'
7
+ gem 'activeadmin_assets'
7
8
 
8
9
  insert_into_file 'config/application.rb', <<~RUBY, after: /action_mailer.*\n/
9
10
  require 'action_mailer/railtie' # needed to make devise work
10
11
  require 'devise'
11
- require 'sprockets/railtie' # needed to make activeadmin work
12
12
  RUBY
13
13
 
14
14
  # https://github.com/activeadmin/activeadmin/pull/7235#issuecomment-1000823435
@@ -1,4 +1,4 @@
1
- MyOmnibar = RailsOmnibar.configure do |c|
1
+ MyOmnibar = Class.new(RailsOmnibar).configure do |c|
2
2
  c.modal = true
3
3
 
4
4
  c.add_item(title: 'important URL', url: 'https://www.disney.com', suggested: true)
@@ -1,5 +1,4 @@
1
- OtherOmnibar = Class.new(RailsOmnibar)
2
- OtherOmnibar.configure do |c|
1
+ OtherOmnibar = Class.new(RailsOmnibar).configure do |c|
3
2
  c.modal = true
4
3
 
5
4
  c.add_item(title: 'disney', url: 'https://www.disney.com', suggested: true)
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_omnibar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janosch Müller
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2024-07-06 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: js_regex
@@ -30,9 +31,6 @@ dependencies:
30
31
  - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '6.0'
33
- - - "<"
34
- - !ruby/object:Gem::Version
35
- version: '8.0'
36
34
  type: :runtime
37
35
  prerelease: false
38
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -40,10 +38,8 @@ dependencies:
40
38
  - - ">="
41
39
  - !ruby/object:Gem::Version
42
40
  version: '6.0'
43
- - - "<"
44
- - !ruby/object:Gem::Version
45
- version: '8.0'
46
41
  description: Omnibar for Rails
42
+ email:
47
43
  executables: []
48
44
  extensions: []
49
45
  extra_rdoc_files: []
@@ -108,6 +104,7 @@ homepage: https://github.com/jaynetics/rails_omnibar
108
104
  licenses:
109
105
  - MIT
110
106
  metadata: {}
107
+ post_install_message:
111
108
  rdoc_options: []
112
109
  require_paths:
113
110
  - lib
@@ -122,7 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
119
  - !ruby/object:Gem::Version
123
120
  version: '0'
124
121
  requirements: []
125
- rubygems_version: 3.6.0.dev
122
+ rubygems_version: 3.5.22
123
+ signing_key:
126
124
  specification_version: 4
127
125
  summary: Omnibar for Rails
128
126
  test_files: