rails_omnibar 1.2.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +6 -3
- data/javascript/compiled.js +1 -1
- data/javascript/src/app.tsx +43 -3
- data/javascript/src/hooks/use_hotkey.ts +3 -1
- data/javascript/src/hooks/use_modal.tsx +23 -5
- data/javascript/src/hooks/use_omnibar_extensions.tsx +18 -4
- data/javascript/src/icon.tsx +33 -0
- data/javascript/src/types.ts +2 -0
- data/lib/rails_omnibar/item/base.rb +36 -5
- data/lib/rails_omnibar/item/help.rb +9 -2
- data/lib/rails_omnibar/version.rb +1 -1
- data/package.json +3 -1
- data/spec/lib/rails_omnibar/item/base_spec.rb +22 -0
- data/spec/my_omnibar_template.rb +2 -2
- data/spec/system/rails_omnibar_spec.rb +6 -4
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58bef5bc2935441fe27b265c1fc5ddaedb8d9d18f9ad07fb2df28eb66c8b8d61
|
4
|
+
data.tar.gz: bcdbea365042314ea66c9ca9ef21bda0135ef4d602debc6fd32bae01ea8a8d04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eca968ef8faf45a8f0db990972c7b07e40a8d6e5b24d0bad20de850a1ecfb2d93aa11e22746de43127ccb670e07d2434bcc665b414c02dd2696e56f8c51cc57c
|
7
|
+
data.tar.gz: f60b18cb5e38f0b4811282dd945589b9064aa1446a53180b55818081a6769dd4b42aa75e0de022d280e7823a7a2c5330e65e93244ee17c264c39af88e5d9b1fa
|
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
|
+
## [1.3.1] - 2023-01-27
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- hotkeys (e.g. CMD+K) were not properly overridden in firefox
|
12
|
+
|
13
|
+
## [1.3.0] - 2023-01-27
|
14
|
+
|
15
|
+
### Added
|
16
|
+
|
17
|
+
- result icons
|
18
|
+
- suggested results feature
|
19
|
+
|
7
20
|
## [1.2.0] - 2023-01-23
|
8
21
|
|
9
22
|
### Added
|
data/README.md
CHANGED
@@ -42,7 +42,8 @@ Omnibar = RailsOmnibar.configure do |c|
|
|
42
42
|
c.hotkey = 't' # default is 'k'
|
43
43
|
|
44
44
|
# Add static items that can be found by fuzzy typing.
|
45
|
-
|
45
|
+
# "suggested" items will be displayed before user starts typing.
|
46
|
+
c.add_item(title: 'Important link', url: 'https://www.disney.com', suggested: true)
|
46
47
|
c.add_item(title: 'Important info', modal_html: '<b>You rock</b>')
|
47
48
|
|
48
49
|
# Add all backoffice URLs as searchable items
|
@@ -50,7 +51,8 @@ Omnibar = RailsOmnibar.configure do |c|
|
|
50
51
|
next unless route.defaults[:action] == 'index'
|
51
52
|
next unless name = route.name[/^backoffice_(.+)/, 1]
|
52
53
|
|
53
|
-
|
54
|
+
# items can have icons
|
55
|
+
c.add_item(title: name.humanize, url: route.format({}), icon: :cog)
|
54
56
|
end
|
55
57
|
|
56
58
|
# Add commands
|
@@ -114,6 +116,7 @@ MyOmnibar.add_items(
|
|
114
116
|
)
|
115
117
|
|
116
118
|
# Add ActiveAdmin index routes as searchable items
|
119
|
+
Admin::UsersController # trigger autoloading (use your own AA namespace)
|
117
120
|
ActiveAdmin.application.namespaces.first.resources.each do |res|
|
118
121
|
index = res.route_collection_path rescue next
|
119
122
|
title = res.menu_item&.label.presence || next
|
@@ -140,7 +143,7 @@ MyOmnibar.add_record_search(
|
|
140
143
|
example: 'U123',
|
141
144
|
model: User,
|
142
145
|
finder: ->(id) { User.find_by(admin: true, id: id) },
|
143
|
-
itemizer: ->(user) { { title: "Admin #{user.name}", url: admin_url(user) } }
|
146
|
+
itemizer: ->(user) { { title: "Admin #{user.name}", url: admin_url(user), icon: :user } }
|
144
147
|
)
|
145
148
|
|
146
149
|
# Custom search, plus mapping to multiple results
|
data/javascript/compiled.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
/*! For license information please see compiled.js.LICENSE.txt */
|
2
|
-
(()=>{var e={875:(e,t,n)=>{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},360:function(e,t){var n,o;void 0===(o="function"==typeof(n=e=>{"use strict";var t=(e,t)=>{if(e===E)return E;var n=e.target,o=n.length,r=e._indexes;r=r.slice(0,r.len).sort(((e,t)=>e-t));for(var i="",l=0,a=0,s=!1,u=(e=[],0);u<o;++u){var c=n[u];if(r[a]===u){if(++a,s||(s=!0,e.push(i),i=""),a===r.length){i+=c,e.push(t(i,l++)),i="",e.push(n.substr(u+1));break}}else s&&(s=!1,e.push(t(i,l++)),i="");i+=c}return e},n=e=>{"string"!=typeof e&&(e="");var t=u(e);return{target:e,_targetLower:t._lower,_targetLowerCodes:t.lowerCodes,_nextBeginningIndexes:E,_bitflags:t.bitflags,score:E,_indexes:[0],obj:E}},o=e=>{"string"!=typeof e&&(e=""),e=e.trim();var t=u(e),n=[];if(t.containsSpace){var o=e.split(/\s+/);o=[...new Set(o)];for(var r=0;r<o.length;r++)if(""!==o[r]){var i=u(o[r]);n.push({lowerCodes:i.lowerCodes,_lower:o[r].toLowerCase(),containsSpace:!1})}}return{lowerCodes:t.lowerCodes,bitflags:t.bitflags,containsSpace:t.containsSpace,_lower:t._lower,spaceSearches:n}},r=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},i=e=>{if(e.length>999)return o(e);var t=p.get(e);return void 0!==t||(t=o(e),p.set(e,t)),t},l=(e,t,n)=>{var o=[];o.total=t.length;var i=n&&n.limit||m;if(n&&n.key)for(var l=0;l<t.length;l++){var a=t[l];if(f=v(a,n.key)){y(f)||(f=r(f)),f.score=b,f._indexes.len=0;var s=f;if(s={target:s.target,_targetLower:"",_targetLowerCodes:E,_nextBeginningIndexes:E,_bitflags:0,score:f.score,_indexes:E,obj:a},o.push(s),o.length>=i)return o}}else if(n&&n.keys)for(l=0;l<t.length;l++){a=t[l];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=r(f)),f.score=b,f._indexes.len=0,u[c]=f):u[c]=E;if(u.obj=a,u.score=b,o.push(u),o.length>=i)return o}else for(l=0;l<t.length;l++){var f;if((f=t[l])&&(y(f)||(f=r(f)),f.score=b,f._indexes.len=0,o.push(f),o.length>=i))return o}return o},a=(e,t,n=!1)=>{if(!1===n&&e.containsSpace)return s(e,t);for(var o=e._lower,r=e.lowerCodes,i=r[0],l=t._targetLowerCodes,a=r.length,u=l.length,f=0,p=0,h=0;;){if(i===l[p]){if(d[h++]=p,++f===a)break;i=r[f]}if(++p>=u)return E}f=0;var v=!1,y=0,m=t._nextBeginningIndexes;m===E&&(m=t._nextBeginningIndexes=c(t.target));var b=0;if((p=0===d[0]?0:m[d[0]-1])!==u)for(;;)if(p>=u){if(f<=0)break;if(++b>200)break;--f,p=m[_[--y]]}else if(r[f]===l[p]){if(_[y++]=p,++f===a){v=!0;break}++p}else p=m[p];var g=t._targetLower.indexOf(o,d[0]),w=~g;if(w&&!v)for(var O=0;O<h;++O)d[O]=g+O;var C=!1;if(w&&(C=t._nextBeginningIndexes[g-1]===g),v)var S=_,x=y;else S=d,x=h;var M=0,k=0;for(O=1;O<a;++O)S[O]-S[O-1]!=1&&(M-=S[O],++k);if(M-=(S[a-1]-S[0]-(a-1)+12)*k,0!==S[0]&&(M-=S[0]*S[0]*.2),v){var P=1;for(O=m[0];O<u;O=m[O])++P;P>24&&(M*=10*(P-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<x;++O)t._indexes[O]=S[O];return t._indexes.len=x,t},s=(e,t)=>{for(var n=new Set,o=0,r=E,i=0,l=e.spaceSearches,s=0;s<l.length;++s){var u=l[s];if((r=a(u,t))===E)return E;o+=r.score,r._indexes[0]<i&&(o-=i-r._indexes[0]),i=r._indexes[0];for(var c=0;c<r._indexes.len;++c)n.add(r._indexes[c])}var f=a(e,t,!0);if(f!==E&&f.score>o)return f;r.score=o,s=0;for(let e of n)r._indexes[s++]=e;return r._indexes.len=s,r},u=e=>{for(var t=e.length,n=e.toLowerCase(),o=[],r=0,i=!1,l=0;l<t;++l){var a=o[l]=n.charCodeAt(l);32!==a?r|=1<<(a>=97&&a<=122?a-97:a>=48&&a<=57?26:a<=127?30:31):i=!0}return{lowerCodes:o,bitflags:r,containsSpace:i,_lower:n}},c=e=>{for(var t=e.length,n=(e=>{for(var t=e.length,n=[],o=0,r=!1,i=!1,l=0;l<t;++l){var a=e.charCodeAt(l),s=a>=65&&a<=90,u=s||a>=97&&a<=122||a>=48&&a<=57,c=s&&!r||!i||!u;r=s,i=u,c&&(n[o++]=l)}return n})(e),o=[],r=n[0],i=0,l=0;l<t;++l)r>l?o[l]=r:(r=n[++i],o[l]=void 0===r?t:r);return o},f=new Map,p=new Map,d=[],_=[],h=e=>{for(var t=b,n=e.length,o=0;o<n;++o){var r=e[o];if(r!==E){var i=r.score;i>t&&(t=i)}}return t===b?E:t},v=(e,t)=>{var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i<r;)e=e[o[i]];return e},y=e=>"object"==typeof e,m=1/0,b=-m,g=[];g.total=0;var w,O,C,S,E=null,x=(w=[],O=0,S=e=>{for(var t=0,n=w[t],o=1;o<O;){var r=o+1;t=o,r<O&&w[r].score<w[o].score&&(t=r),w[t-1>>1]=w[t],o=1+(t<<1)}for(var i=t-1>>1;t>0&&n.score<w[i].score;i=(t=i)-1>>1)w[t]=w[i];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],S(),t}},C.peek=e=>{if(0!==O)return w[0]},C.replaceTop=e=>{w[0]=e,S()},C);return{single:(e,t)=>{if("farzher"==e)return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!e||!t)return E;var n=i(e);y(t)||(t=r(t));var o=n.bitflags;return(o&t._bitflags)!==o?E:a(n,t)},go:(e,t,n)=>{if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:t?t[0]:E}];if(!e)return n&&n.all?l(e,t,n):g;var o=i(e),s=o.bitflags,u=(o.containsSpace,n&&n.threshold||b),c=n&&n.limit||m,f=0,p=0,d=t.length;if(n&&n.key)for(var _=n.key,w=0;w<d;++w){var O=t[w];(N=v(O,_))&&(y(N)||(N=r(N)),(s&N._bitflags)===s&&(T=a(o,N))!==E&&(T.score<u||(T={target:T.target,_targetLower:"",_targetLowerCodes:E,_nextBeginningIndexes:E,_bitflags:0,score:T.score,_indexes:T._indexes,obj:O},f<c?(x.add(T),++f):(++p,T.score>x.peek().score&&x.replaceTop(T)))))}else if(n&&n.keys){var C=n.scoreFn||h,S=n.keys,M=S.length;for(w=0;w<d;++w){O=t[w];for(var k=new Array(M),P=0;P<M;++P)_=S[P],(N=v(O,_))?(y(N)||(N=r(N)),(s&N._bitflags)!==s?k[P]=E:k[P]=a(o,N)):k[P]=E;k.obj=O;var R=C(k);R!==E&&(R<u||(k.score=R,f<c?(x.add(k),++f):(++p,R>x.peek().score&&x.replaceTop(k))))}}else for(w=0;w<d;++w){var N,T;(N=t[w])&&(y(N)||(N=r(N)),(s&N._bitflags)===s&&(T=a(o,N))!==E&&(T.score<u||(f<c?(x.add(T),++f):(++p,T.score>x.peek().score&&x.replaceTop(T)))))}if(0===f)return g;var A=new Array(f);for(w=f-1;w>=0;--w)A[w]=x.poll();return A.total=f+p,A},highlight:(e,n,o)=>{if("function"==typeof n)return t(e,n);if(e===E)return E;void 0===n&&(n="<b>"),void 0===o&&(o="</b>");var r="",i=0,l=!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[i]===c){if(l||(l=!0,r+=n),++i===u.length){r+=f+o+a.substr(c+1);break}}else l&&(l=!1,r+=o);r+=f}return r},prepare:n,indexes:e=>e._indexes.slice(0,e._indexes.len).sort(((e,t)=>e-t)),cleanup:()=>{f.clear(),p.clear(),d=[],_=[]}}})?n.apply(t,[]):n)||(e.exports=o)},736:(e,t,n)=>{"use strict";var o=n(655),r=n(661);const i="#ddd",l="#eee",a={borderColor:i,borderStyle:"solid",borderWidth:1,boxSizing:"border-box",fontSize:24,height:50,lineHeight:"24px",outline:0,paddingLeft:15,paddingRight:15,width:"100%"};class s extends r.PureComponent{render(){let e=this.props,{style:t}=e,n=o.__rest(e,["style"]);return r.createElement("input",Object.assign({type:"text",style:Object.assign({},a,t)},n))}}const u={borderBottomWidth:1,borderColor:i,borderLeftWidth:1,borderRightWidth:1,borderStyle:"solid",borderTopWidth:0,boxSizing:"border-box",color:"#000",display:"block",fontSize:24,height:50,lineHeight:"50px",paddingLeft:15,paddingRight:15,textDecoration:"none"};function c(e){const{item:t,isSelected:n,isHighlighted:a,style:s}=e,c=o.__rest(e,["item","isSelected","isHighlighted","style"]),f=Object.assign({},u,s);return n&&(f.backgroundColor=l),a&&(f.backgroundColor=i),r.createElement("a",Object.assign({href:t.url,style:f},c),t.title)}class f extends r.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:c)({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 p={position:"absolute",width:"100%",zIndex:2,listStyleType:"none",margin:0,padding:0,backgroundColor:"#fff"};function d(e){const t=Object.assign({},p,e.style);function n(e,t){return e.bind(this,t)}return e.maxHeight&&(t.maxHeight=e.maxHeight,t.borderBottomWidth=1,t.borderBottomColor=l,t.borderBottomStyle="solid",t.overflow="auto"),r.createElement("ul",{style:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},e.items.map(((t,o)=>r.createElement(f,{key:o,children:e.children,item:t,isSelected:e.selectedIndex===o,onMouseEnter:e.onMouseEnterItem&&n(e.onMouseEnterItem,o),onMouseLeave:e.onMouseLeaveItem&&n(e.onMouseLeaveItem,o),onClickItem:e.onClickItem}))))}function _(e){e.url&&(window.location.href=e.url)}class h extends r.PureComponent{constructor(e){super(e),this.state={displayResults:!1,hoveredIndex:-1,results:[],selectedIndex:0},this.query=e=>{this.props.extensions.length>0&&function(e,t){const n=[];for(let o of t)"function"==typeof o&&n.push(o.call(null,e));return Promise.all(n).then((e=>e.reduce(((e,t)=>e.concat(t)),[])))}(e,this.props.extensions).then((e=>{this.setState({results:this.props.maxResults>0?e.slice(0,this.props.maxResults):e,displayResults:e.length>0,selectedIndex:e.length>0?Math.min(this.state.selectedIndex,e.length-1):0}),this.props.onQuery&&this.props.onQuery(e)}))},this.prev=()=>{this.setState((e=>{const t=e.selectedIndex-1;if(t>=0)return{selectedIndex:t}}))},this.next=()=>{this.setState((e=>{const t=e.selectedIndex+1;if(t<e.results.length)return{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.keyCode){case 38:this.prev(),e.preventDefault();break;case 40:this.next(),e.preventDefault();break;case 13: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(...o)=>{const r=this;clearTimeout(n),n=setTimeout((()=>{n=null,e.apply(r,o)}),t)}}(this.query,this.props.inputDelay)}reset(){this.setState({results:[],displayResults:!1})}render(){let e=this.props,{children:t,render:n,maxResults:i,maxViewableResults:l,extensions:a,inputDelay:u,rootStyle:c,resultStyle:f,onQuery:p,onAction:_,onFocus:h,onBlur:v,showEmpty:y}=e,m=o.__rest(e,["children","render","maxResults","maxViewableResults","extensions","inputDelay","rootStyle","resultStyle","onQuery","onAction","onFocus","onBlur","showEmpty"]),b=l?50*l:null;return n||(n=t),r.createElement("div",{style:c},r.createElement(s,Object.assign({},m,{onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown})),this.state.displayResults&&r.createElement(d,{children:n,items:this.state.results,maxHeight:b,onClickItem:this.handleClickItem,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeave:this.handleMouseLeave,selectedIndex:this.state.selectedIndex,style:f}))}}h.defaultProps={children:null,extensions:[],inputDelay:100,maxResults:null,maxViewableResults:null,render:null,resultStyle:{},rootStyle:{position:"relative"},showEmpty:!1},t.ZP=h},661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>_,Component:()=>o.wA,Fragment:()=>o.HY,PureComponent:()=>s,StrictMode:()=>Q,Suspense:()=>b,SuspenseList:()=>O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Y,cloneElement:()=>V,createContext:()=>o.kr,createElement:()=>o.az,createFactory:()=>B,createPortal:()=>x,createRef:()=>o.Vf,default:()=>ne,findDOMNode:()=>$,flushSync:()=>J,forwardRef:()=>p,hydrate:()=>T,isValidElement:()=>q,lazy:()=>w,memo:()=>u,render:()=>N,startTransition:()=>G,unmountComponentAtNode:()=>z,unstable_batchedUpdates:()=>K,useCallback:()=>r.I4,useContext:()=>r.qp,useDebugValue:()=>r.Qb,useDeferredValue:()=>Z,useEffect:()=>r.d4,useErrorBoundary:()=>r.cO,useId:()=>r.Me,useImperativeHandle:()=>r.aP,useInsertionEffect:()=>ee,useLayoutEffect:()=>r.bt,useMemo:()=>r.Ye,useReducer:()=>r._Y,useRef:()=>r.sO,useState:()=>r.eJ,useSyncExternalStore:()=>te,useTransition:()=>X,version:()=>W});var o=n(400),r=n(396);function i(e,t){for(var n in t)e[n]=t[n];return e}function l(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])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,o=n==e.ref;return!o&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!o:l(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,o.az)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(s.prototype=new o.wA).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return l(this.props,e)||l(this.state,t)};var c=o.YM.__b;o.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 p(e){function t(t){var n=i({},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 d=function(e,t){return null==e?null:(0,o.bR)((0,o.bR)(e).map(t))},_={map:d,forEach:d,count:function(e){return e?(0,o.bR)(e).length:0},only:function(e){var t=(0,o.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:o.bR},h=o.YM.__e;o.YM.__e=function(e,t,n,o){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);h(e,t,n,o)};var v=o.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=i({},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,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,o.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function O(){this.u=null,this.o=null}o.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 o.wA).__c=function(e,t){var n=t.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=g(o.__v),i=!1,l=function(){i||(i=!0,n.__R=null,r?r(a):a())};n.__R=l;var a=function(){if(!--o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=m(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.t.pop();)t.forceUpdate()}},s=!0===t.__h;o.__u++||s||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=y(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&(0,o.az)(o.HY,null,e.fallback);return i&&(i.__h=null),[(0,o.az)(o.HY,null,t.__a?null:e.children),i]};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 S(e){return this.getChildContext=function(){return e.context},e.children}function E(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,o.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,o.sY)((0,o.az)(S,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function x(e,t){var n=(0,o.az)(E,{__v:e,i:t});return n.containerInfo=t,n}(O.prototype=new o.wA).__a=function(e){var t=this,n=g(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),C(t,e,o)):r()};n?n(i):i()}},O.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,o.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]/,P="undefined"!=typeof document,R=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function N(e,t,n){return null==t.__k&&(t.textContent=""),(0,o.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function T(e,t,n){return(0,o.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}o.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(o.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 A=o.YM.event;function j(){}function L(){return this.cancelBubble}function D(){return this.defaultPrevented}o.YM.event=function(e){return A&&(e=A(e)),e.persist=j,e.isPropagationStopped=L,e.isDefaultPrevented=D,e.nativeEvent=e};var I,H={configurable:!0,get:function(){return this.class}},U=o.YM.vnode;o.YM.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var l in r={},n){var a=n[l];P&&"children"===l&&"noscript"===t||"value"===l&&"defaultValue"in n&&null==a||("defaultValue"===l&&"value"in n&&null==n.value?l="value":"download"===l&&!0===a?a="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+t)&&!R(n.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():i&&k.test(l)?l=l.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(l)&&(l=l.toLowerCase(),r[l]&&(l="oninputCapture")),r[l]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(H.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",H))}e.$$typeof=M,U&&U(e)};var F=o.YM.__r;o.YM.__r=function(e){F&&F(e),I=e.__c};var Y={ReactCurrentDispatcher:{current:{readContext:function(e){return I.__n[e.__c].props.value}}}},W="17.0.2";function B(e){return o.az.bind(null,e)}function q(e){return!!e&&e.$$typeof===M}function V(e){return q(e)?o.Tm.apply(null,arguments):e}function z(e){return!!e.__k&&((0,o.sY)(null,e),!0)}function $(e){return e&&(e.base||1===e.nodeType&&e)||null}var K=function(e,t){return e(t)},J=function(e,t){return e(t)},Q=o.HY;function G(e){e()}function Z(e){return e}function X(){return[!1,G]}var ee=r.bt;function te(e,t){var n=t(),o=(0,r.eJ)({h:{__:n,v:t}}),i=o[0].h,l=o[1];return(0,r.bt)((function(){i.__=n,i.v=t,a(i.__,t())||l({h:i})}),[e,n,t]),(0,r.d4)((function(){return a(i.__,i.v())||l({h:i}),e((function(){a(i.__,i.v())||l({h:i})}))}),[e]),n}var ne={useState:r.eJ,useId:r.Me,useReducer:r._Y,useEffect:r.d4,useLayoutEffect:r.bt,useInsertionEffect:ee,useTransition:X,useDeferredValue:Z,useSyncExternalStore:te,startTransition:G,useRef:r.sO,useImperativeHandle:r.aP,useMemo:r.Ye,useCallback:r.I4,useContext:r.qp,useDebugValue:r.Qb,version:"17.0.2",Children:_,render:N,hydrate:T,unmountComponentAtNode:z,createPortal:x,createElement:o.az,createContext:o.kr,createFactory:B,cloneElement:V,createRef:o.Vf,Fragment:o.HY,isValidElement:q,findDOMNode:$,Component:o.wA,PureComponent:s,memo:u,forwardRef:p,flushSync:J,unstable_batchedUpdates:K,StrictMode:Q,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:()=>U,Vf:()=>v,YM:()=>r,ZB:()=>H,az:()=>_,bR:()=>E,h:()=>_,kr:()=>F,sY:()=>I,wA:()=>m});var o,r,i,l,a,s,u={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var r,i,l,a={};for(l in t)"key"==l?r=t[l]:"ref"==l?i=t[l]:a[l]=t[l];if(arguments.length>2&&(a.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===a[l]&&(a[l]=e.defaultProps[l]);return h(e,a,r,i,null)}function h(e,t,n,o,l){var a={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++i:l};return null==l&&null!=r.vnode&&r.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)&&l.push(e)&&!O.__r++||a!==r.debounceRendering)&&((a=r.debounceRendering)||setTimeout)(O)}function O(){for(var e;O.__r=l.length;)e=l.sort((function(e,t){return e.__v.__b-t.__v.__b})),l=[],e.some((function(e){var t,n,o,r,i,l;e.__d&&(i=(r=(t=e).__v).__e,(l=t.__P)&&(n=[],(o=p({},r)).__v=r.__v+1,N(l,r,o,t.__n,void 0!==l.ownerSVGElement,null!=r.__h?[i]:null,n,null==i?b(r):i,r.__h),T(n,r),r.__e!=i&&g(r)))}))}function C(e,t,n,o,r,i,l,a,s,f){var p,d,_,v,m,g,w,O=o&&o.__k||c,C=O.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(v=n.__k[p]=null==(v=t[p])||"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[p])||_&&v.key==_.key&&v.type===_.type)O[p]=void 0;else for(d=0;d<C;d++){if((_=O[d])&&v.key==_.key&&v.type===_.type){O[d]=void 0;break}_=null}N(e,v,_=_||u,r,i,l,a,s,f),m=v.__e,(d=v.ref)&&_.ref!=d&&(w||(w=[]),_.ref&&w.push(_.ref,null,v),w.push(d,v.__c||m,v)),null!=m?(null==g&&(g=m),"function"==typeof v.type&&v.__k===_.__k?v.__d=s=S(v,s,e):s=x(e,v,_,O,m,s),"function"==typeof n.type&&(n.__d=s)):s&&_.__e==s&&s.parentNode!=e&&(s=b(_))}for(n.__e=g,p=C;p--;)null!=O[p]&&L(O[p],O[p]);if(w)for(p=0;p<w.length;p++)j(w[p],w[++p],w[++p])}function S(e,t,n){for(var o,r=e.__k,i=0;r&&i<r.length;i++)(o=r[i])&&(o.__=e,t="function"==typeof o.type?S(o,t,n):x(n,o,o,r,o.__e,t));return t}function E(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,t)})):t.push(e)),t}function x(e,t,n,o,r,i){var l,a,s;if(void 0!==t.__d)l=t.__d,t.__d=void 0;else if(null==n||r!=i||null==r.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(r),l=null;else{for(a=i,s=0;(a=a.nextSibling)&&s<o.length;s+=1)if(a==r)break e;e.insertBefore(r,i),l=i}return void 0!==l?l:r.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,o,r){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||M(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||M(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o||e.addEventListener(t,i?R:P,i):e.removeEventListener(t,i?R:P,i);else if("dangerouslySetInnerHTML"!==t){if(r)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 P(e){this.l[e.type+!1](r.event?r.event(e):e)}function R(e){this.l[e.type+!0](r.event?r.event(e):e)}function N(e,t,n,o,i,l,a,s,u){var c,f,d,_,h,v,b,g,w,O,S,E,x,M,k,P=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,s=t.__e=n.__e,t.__h=null,l=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof P){if(g=t.props,w=(c=P.contextType)&&o[c.__c],O=c?w?w.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in P&&P.prototype.render?t.__c=f=new P(g,O):(t.__c=f=new m(g,O),f.constructor=P,f.render=D),w&&w.sub(f),f.props=g,f.state||(f.state={}),f.context=O,f.__n=o,d=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=P.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,P.getDerivedStateFromProps(g,f.__s))),_=f.props,h=f.state,d)null==P.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==P.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)})),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);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,E=r.__r,x=0,"prototype"in P&&P.prototype.render){for(f.state=f.__s,f.__d=!1,E&&E(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,E&&E(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++x<25);f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||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,o,i,l,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==l&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=A(n.__e,t,n,o,i,l,a,u);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=l)&&(t.__e=s,t.__h=!!u,l[l.indexOf(s)]=null),r.__e(e,t,n)}}function T(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function A(e,t,n,r,i,l,a,s){var c,f,p,_=n.props,h=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=l)for(;y<l.length;y++)if((c=l[y])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,l[y]=null;break}if(null==e){if(null===v)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,h.is&&h),l=null,s=!1}if(null===v)_===h||s&&e.data===h||(e.data=h);else{if(l=l&&o.call(e.childNodes),f=(_=n.props||u).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!s){if(null!=l)for(_={},y=0;y<e.attributes.length;y++)_[e.attributes[y].name]=e.attributes[y].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,o,r){var i;for(i in n)"children"===i||"key"===i||i in t||k(e,i,null,n[i],o);for(i in t)r&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||k(e,i,t[i],n[i],o)}(e,h,_,i,s),p)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,n,r,i&&"foreignObject"!==v,l,a,l?l[0]:n.__k&&b(n,0),s),null!=l)for(y=l.length;y--;)null!=l[y]&&d(l[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 j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function L(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||j(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&L(o[i],t,n||"function"!=typeof e.type);n||null==e.__e||d(e.__e),e.__=e.__e=e.__d=void 0}function D(e,t,n){return this.constructor(e,n)}function I(e,t,n){var i,l,a;r.__&&r.__(e,t),l=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],N(t,e=(!i&&n||t).__k=_(y,null,[e]),l||u,u,void 0!==t.ownerSVGElement,!i&&n?[n]:l?null:t.firstChild?o.call(t.childNodes):null,a,!i&&n?n:l?l.__e:t.firstChild,i),T(a,e)}function H(e,t){I(e,t,H)}function U(e,t,n){var r,i,l,a=p({},e.props);for(l in t)"key"==l?r=t[l]:"ref"==l?i=t[l]:a[l]=t[l];return arguments.length>2&&(a.children=arguments.length>3?o.call(arguments,2):n),h(e.type,a,r||e.key,i||e.ref,null)}function F(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,o;return this.getChildContext||(n=[],(o={})[t]=this,this.getChildContext=function(){return o},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}o=c.slice,r={__e:function(e,t,n,o){for(var r,i,l;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),l=r.__d),l)return r.__E=r}catch(t){e=t}throw e}},i=0,m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(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,l=[],O.__r=0,s=0},396:(e,t,n)=>{"use strict";n.d(t,{I4:()=>S,Me:()=>k,Qb:()=>x,Ye:()=>C,_Y:()=>m,aP:()=>O,bt:()=>g,cO:()=>M,d4:()=>b,eJ:()=>y,qp:()=>E,sO:()=>w});var o,r,i,l,a=n(400),s=0,u=[],c=[],f=a.YM.__b,p=a.YM.__r,d=a.YM.diffed,_=a.YM.__c,h=a.YM.unmount;function v(e,t){a.YM.__h&&a.YM.__h(r,e,s||t),s=0;var n=r.__H||(r.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:c}),n.__[e]}function y(e){return s=1,m(L,e)}function m(e,t,n){var i=v(o++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):L(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=r,!r.u)){r.u=!0;var l=r.shouldComponentUpdate;r.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!l||l.call(this,e,t,n);var r=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(r=!0)}})),!(!r&&i.__c.props===e)&&(!l||l.call(this,e,t,n))}}return i.__N||i.__}function b(e,t){var n=v(o++,3);!a.YM.__s&&j(n.__H,t)&&(n.__=e,n.i=t,r.__H.__h.push(n))}function g(e,t){var n=v(o++,4);!a.YM.__s&&j(n.__H,t)&&(n.__=e,n.i=t,r.__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(o++,7);return j(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function S(e,t){return s=8,C((function(){return e}),t)}function E(e){var t=r.context[e.__c],n=v(o++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(r)),t.props.value):e.__}function x(e,t){a.YM.useDebugValue&&a.YM.useDebugValue(t?t(e):e)}function M(e){var t=v(o++,10),n=y();return t.__=e,r.componentDidCatch||(r.componentDidCatch=function(e,o){t.__&&t.__(e,o),n[1](e)}),[n[0],function(){n[1](void 0)}]}function k(){var e=v(o++,11);if(!e.__){for(var t=r.__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 P(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(T),e.__H.__h.forEach(A),e.__H.__h=[]}catch(t){e.__H.__h=[],a.YM.__e(t,e.__v)}}a.YM.__b=function(e){r=null,f&&f(e)},a.YM.__r=function(e){p&&p(e),o=0;var t=(r=e.__c).__H;t&&(i===r?(t.__h=[],r.__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(A),t.__h=[])),i=r},a.YM.diffed=function(e){d&&d(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&l===a.YM.requestAnimationFrame||((l=a.YM.requestAnimationFrame)||N)(P)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==c&&(e.__=e.__V),e.i=void 0,e.__V=c}))),i=r=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.__||A(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 R="function"==typeof requestAnimationFrame;function N(e){var t,n=function(){clearTimeout(o),R&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);R&&(t=requestAnimationFrame(n))}function T(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function A(e){var t=r;e.__c=e.__(),r=t}function j(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}},703:(e,t,n)=>{"use strict";var o=n(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,l){if(l!==o){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:i,resetWarningCache:r};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 o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function l(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,l=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?l="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==l||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!==l?"\n "+l:"")+(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=o,t.componentWillReceiveProps=r),"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=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>l}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(661),l=_(i),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),p=_(f),d=n(871);function _(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 y=t.portalClassName="ReactModalPortal",m=t.bodyOpenClassName="ReactModal__Body--open",b=f.canUseDOM&&void 0!==a.default.createPortal,g=function(e){return document.createElement(e)},w=function(){return b?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var C=function(e){function t(){var e,n,r;h(this,t);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return n=r=v(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.removePortal=function(){!b&&a.default.unmountComponentAtNode(r.node);var e=O(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.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.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=w()(r,l.default.createElement(u.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},v(r,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),r(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(b||(this.node=g("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var o=this.props,r=o.isOpen,i=o.portalClassName;e.portalClassName!==i&&(this.node.className=i);var l=n.prevParent,a=n.nextParent;a!==l&&(l.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||r)&&!b&&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&&b?(!this.node&&b&&(this.node=g("div")),w()(l.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(i.Component);C.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(p.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.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},C.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:m,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 l.default.createElement("div",e,t)},contentElement:function(e,t){return l.default.createElement("div",e,t)}},C.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,d.polyfill)(C),t.default=C},747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(661),a=v(n(697)),s=h(n(685)),u=v(n(338)),c=h(n(149)),f=h(n(409)),p=n(112),d=v(p),_=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=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,o=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName,l=e.parentSelector,a=l&&l().ownerDocument||document;i&&f.remove(a.body,i),r&&f.remove(a.getElementsByTagName("html")[0],r),o&&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 o="object"===(void 0===t?"undefined":r(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],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),i(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,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,l=i&&i().ownerDocument||document;r&&f.add(l.body,r),o&&f.add(l.getElementsByTagName("html")[0],o),n&&(m+=1,c.hide(t)),_.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,l=e.children,a=n?{}:i.content,s=r?{}:i.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},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",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,l);return this.props.overlayElement(u,f)}}]),t}(l.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(d.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(d.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},149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l&&(l.removeAttribute?l.removeAttribute("aria-hidden"):null!=l.length?l.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(l).forEach((function(e){return e.removeAttribute("aria-hidden")}))),l=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return l=t||l},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){l=null};var o,r=(o=n(473))&&o.__esModule?o:{default:o},i=n(112),l=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||l;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.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=[i,l],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}i=l=null,a=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(a.length);for(var e=[i,l],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,r=(o=n(623))&&o.__esModule?o:{default:o},i=void 0,l=void 0,a=[];function s(){0!==a.length&&a[a.length-1].focusContent()}r.default.subscribe((function(e,t){i||l||((i=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),i.style.position="absolute",i.style.opacity="0",i.setAttribute("tabindex","0"),i.addEventListener("focus",s),(l=i.cloneNode()).addEventListener("focus",s)),(a=t).length>0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==l&&document.body.appendChild(l)):(i.parentElement&&i.parentElement.removeChild(i),l.parentElement&&l.parentElement.removeChild(l))}))},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)r(e,n[t]);var i=document.body;for(var l in o)r(i,o[l]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=u,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.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(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",u))};var o,r=(o=n(845))&&o.__esModule?o:{default:o},i=[],l=null,a=!1;function s(){a=!0}function u(){if(a){if(a=!1,!l)return;setTimeout((function(){l.contains(document.activeElement)||((0,r.default)(l)[0]||l).focus()}),0)}}},623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=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=[]},o=new n;t.default=o},112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(875))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,l=t.shiftKey,a=n[0],s=n[n.length-1],u=i();if(e===u){if(!l)return;o=s}if(s!==u||l||(o=a),a===u&&l&&(o=s),o)return t.preventDefault(),void o.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+=l?-1:1),void 0===(o=n[f]))return t.preventDefault(),void(o=l?s:a).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(845))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(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(r)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),o=n.getPropertyValue("display");return t?"contents"!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):"none"===o}catch(e){return console.warn("Failed to inspect element style"),!1}}function r(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&function(e,t){var r=e.nodeName.toLowerCase();return(n.test(r)&&!e.disabled||"a"===r&&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),o(t))return!1;t=t.parentNode}return!0}(e)}(e,!r)}e.exports=t.default},253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(983))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>w,__asyncGenerator:()=>g,__asyncValues:()=>O,__await:()=>b,__awaiter:()=>c,__classPrivateFieldGet:()=>M,__classPrivateFieldIn:()=>P,__classPrivateFieldSet:()=>k,__createBinding:()=>p,__decorate:()=>a,__exportStar:()=>d,__extends:()=>r,__generator:()=>f,__importDefault:()=>x,__importStar:()=>E,__makeTemplateObject:()=>C,__metadata:()=>u,__param:()=>s,__read:()=>h,__rest:()=>l,__spread:()=>v,__spreadArray:()=>m,__spreadArrays:()=>y,__values:()=>_});var 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 r(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)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function l(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function a(e,t,n,o){var r,i=arguments.length,l=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(l=(i<3?r(l):i>3?r(t,n,l):r(t,n))||l);return i>3&&l&&Object.defineProperty(t,n,l),l}function s(e,t){return function(n,o){t(n,o,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch(e){i(e)}}function a(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))}function f(e,t){var n,o,r,i,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(l=0)),l;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,o=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){l.label=a[1];break}if(6===a[0]&&l.label<r[1]){l.label=r[1],r=a;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(a);break}r[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var p=Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function d(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||p(t,e,n)}function _(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)l.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],l=0,a=i.length;l<a;l++,r++)o[r]=i[l];return o}function m(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o;function l(e){r[e]&&(o[e]=function(t){return new Promise((function(n,o){i.push([e,t,n,o])>1||a(e,t)}))})}function a(e,t){try{(n=r[e](t)).value instanceof b?Promise.resolve(n.value.v).then(s,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function w(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:b(e[o](t)),done:"return"===o}:r?r(t):t}:r}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=_(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,r){!function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}(o,r,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(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)&&p(t,e,n);return S(t,e),t}function x(e){return e&&e.__esModule?e:{default:e}}function M(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)}function k(e,t,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(e,n):r?r.value=n:t.set(e,n),n}function P(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(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.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 o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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 o(n,o,r,i,l){var a,s,u={};for(s in o)"ref"==s?a=o[s]:u[s]=o[s];var c={type:n,props:u,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--t,__source:l,__self:i};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 r=function(e){var t,n=e.selector,o=e.inline,r=e.clientSpecified,i=[],l=document.currentScript||(t=document.getElementsByTagName("script"))[t.length-1];if(!0===o){var a=l.parentNode;i.push(a)}return!0!==r||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}(l)),n&&[].forEach.call(document.querySelectorAll(n),(function(e){i.push(e)})),i};const i=function(t){var n=t;return{render:function(t){void 0===t&&(t={});var o=t.selector;void 0===o&&(o=null);var i=t.inline;void 0===i&&(i=!1);var l=t.clean;void 0===l&&(l=!1);var a=t.clientSpecified;void 0===a&&(a=!1);var s=t.defaultProps;void 0===s&&(s={});var u=r({selector:o,inline:i,clientSpecified:a}),c=function(){if(u.length>0){var t=r({selector:o,inline:i,clientSpecified:a});return function(t,n,o,r,i){n.forEach((function(n){var l=n;if(!l._habitat){l._habitat=!0;var a=function(e,t){void 0===t&&(t={});var n=e.attributes,o=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 r=t.split(/(data-props?-)/).pop()||"";if(t!==(r=r.replace(/-([a-z])/gi,(function(e,t){return t.toUpperCase()})))){var i=n[e].nodeValue;o[r]=i}}})),[].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(o,t)}})),o}(n,i)||i;return r&&(l.innerHTML=""),(0,e.sY)((0,e.h)(t,a),l,o)}}))}(n,t,null,l,s)}};c(),document.addEventListener("DOMContentLoaded",c),document.addEventListener("load",c)}}};var l,a=n(736),s=n(396),u=function(e,t){var n=(0,s.I4)((function(n){var o=n.metaKey,r=n.ctrlKey,i=n.key;(o||r)&&i.toLowerCase()==e&&t()}),[t,e]);(0,s.d4)((function(){return document.addEventListener("keydown",n),function(){return document.removeEventListener("keydown",n)}}),[n])},c=n(253),f=n.n(c),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},d=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)l.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},_=function(t){var n=d((0,s.eJ)(!1),2),r=n[0],i=n[1],l=d((0,s.eJ)(o(e.HY,{})),2),a=l[0],u=l[1];return{modal:(0,s.Ye)((function(){return o(f(),p({ariaHideApp:!1,isOpen:r,onRequestClose:function(){return i(!1)},style:{overlay:{zIndex:1001},content:{zIndex:1001}}},{children:[o("span",p({onClick:function(){return i(!1)},style:{cursor:"pointer",float:"right"}},{children:"╳"})),o("div",p({style:{visibility:"hidden"}},{children:"╳"})),t||a]}))}),[a,r,i,t]),setBody:u,toggle:(0,s.I4)((function(){return i(!r)}),[i,r])}},h=n(360),v=n.n(h),y=(l=function(e,t){return l=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])},l(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}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(n){var o=e.call(this,n)||this;return o.name="YaamError",Object.setPrototypeOf(o,t.prototype),o}return y(t,e),t}(Error),b=function(e){if(e=e.replace(/\s+/g,""),!E.test(e))throw new m("invalid input");var t=new g,n=new Array,o=t;if(e.match(S).forEach((function(e){if("("===e){n.push(o);var t=new g;o.children.push(t),o=t}else if(")"===e){if(!n.length)throw new m("unbalanced parentheses `)`");o=n.pop()}else o.children.push(e)})),n.length)throw new m("unbalanced parentheses `(`");return t},g=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 o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([],this.children,!0);if(t.length%2==0)throw new m("invalid Node ".concat(t));if(w.forEach((function(n){for(var o=t.length-2;o>0;o--)if(t[o]===n){var r=e.toNumber(t[o-1]),i=e.toNumber(t[o+1]),l=void 0;switch(n){case"+":l=r+i;break;case"-":l=r-i;break;case"*":l=r*i;break;case"/":l=r/i;break;case"%":case"%":l=r%i;break;case"^":case"**":l=Math.pow(r,i);break;default:throw new m("unhandled operator ".concat(n))}t.splice(o-1,3,l)}})),1!==t.length)throw new m("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(C.test(t)){var n=t.split("e"),o=n[0],r=n[1],i=Number(o);if(!isNaN(i))return void 0===r?i:i*Math.pow(10,Number(r))}throw new m("invalid token ".concat(t))},e}(),w=["**","^","%","/","*","+","-"],O=new RegExp("(?:"+w.map((function(e){return e.replace(/(?=.)/g,"\\")})).join("|")+")"),C=/(?:(?:\d+\.\d+|\d+)(?:e[+-]?\d+)?)/,S=new RegExp("(?:[()]|".concat(O.source,"|").concat(C.source,")"),"g"),E=new RegExp("\n ^\n ".concat(S.source,"*\n ").concat(C.source,"\n ").concat(S.source,"*\n ").concat(O.source,"\n ").concat(S.source,"*\n ").concat(C.source,"\n ").concat(S.source,"*\n $\n ").replace(/\s+/g,"")),x=function(){return x=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},x.apply(this,arguments)},M=function(e){var t=e.commandPattern,n=e.queryPath,o=(0,s.Ye)((function(){return t&&new RegExp(t.source,t.options)}),[t]);return function(e){return t=void 0,r=void 0,l=function(){return function(e,t){var n,o,r,i,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(l=0)),l;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,o=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){l.label=a[1];break}if(6===a[0]&&l.label<r[1]){l.label=r[1],r=a;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(a);break}r[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],o=0}finally{n=r=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 n&&(null==o?void 0:o.test(e))?[4,fetch("".concat(n,"&q=").concat(e))]:[2,[]];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}}))},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{s(l.next(e))}catch(e){n(e)}}function a(e){try{s(l.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,a)}s((l=l.apply(t,r||[])).next())}));var t,r,i,l}},k=function(t){var n=t.items;return function(t){return v().go(t,n,{key:"title"}).map((function(t){return x(x({},t.obj),{title:o(e.HY,{children:v().highlight(t,(function(e){return o("span",x({style:P},{children:e}))}))})})}))}},P={textShadow:"-0.06ex 0 0 currentColor, 0.06ex 0 0 currentColor"},R=function(e){var t=e.calculator;return function(e){var n=t?function(e,t){void 0===t&&(t={});try{return function(e){return b(e).calculate()}(e)}catch(e){return t.verbose&&console.log(e),null}}(e):null;return null!==n?[{title:String(n),type:"default"}]:new Array}},N="rails-omnibar",T=function(){return T=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},T.apply(this,arguments)};document.addEventListener("DOMContentLoaded",(function(){i(A).render({selector:"#mount-rails-omnibar"})}));var A=function(e){var t=_(),n=(0,s.I4)((function(){setTimeout((function(){var e=document.querySelector("[data-id=".concat(N,"]"));e&&document.activeElement===e?e.blur():e&&e.focus()}),100)}),[]);return u(e.hotkey,n),o(e.modal?L:j,T({},e,{itemModal:t}))},j=function(t){var n,r=function(e){return(0,s.Ye)((function(){return[M(e),k(e),R(e)]}),[e])}(t),i=(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(o("div",{dangerouslySetInnerHTML:{__html:t}})),n.toggle()}}),[n]));return o(e.HY,{children:[o(a.ZP,{"data-id":N,extensions:r,maxResults:t.maxResults,onAction:i,placeholder:t.placeholder}),t.itemModal.modal]})},L=function(e){var t=_(o(j,T({},e))),n=t.modal,r=t.toggle;return u(e.hotkey,r),n}})()})();
|
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===E)return E;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:E,_bitflags:t.bitflags,score:E,_indexes:[0],obj:E}},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:E,_nextBeginningIndexes:E,_bitflags:0,score:f.score,_indexes:E,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]=E;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 E}f=0;var v=!1,y=0,m=t._nextBeginningIndexes;m===E&&(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 x=_,S=y;else x=p,S=h;var M=0,k=0;for(O=1;O<a;++O)x[O]-x[O-1]!=1&&(M-=x[O],++k);if(M-=(x[a-1]-x[0]-(a-1)+12)*k,0!==x[0]&&(M-=x[0]*x[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]=x[O];return t._indexes.len=S,t},s=(e,t)=>{for(var n=new Set,r=0,o=E,l=0,i=e.spaceSearches,s=0;s<i.length;++s){var u=i[s];if((o=a(u,t))===E)return E;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!==E&&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!==E){var l=o.score;l>t&&(t=l)}}return t===b?E: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,x,E=null,S=(w=[],O=0,x=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],x(),t}},C.peek=e=>{if(0!==O)return w[0]},C.replaceTop=e=>{w[0]=e,x()},C);return{single:(e,t)=>{if("farzher"==e)return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!e||!t)return E;var n=l(e);y(t)||(t=o(t));var r=n.bitflags;return(r&t._bitflags)!==r?E:a(n,t)},go:(e,t,n)=>{if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:t?t[0]:E}];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&&(j=a(r,A))!==E&&(j.score<u||(j={target:j.target,_targetLower:"",_targetLowerCodes:E,_nextBeginningIndexes:E,_bitflags:0,score:j.score,_indexes:j._indexes,obj:O},f<c?(S.add(j),++f):(++d,j.score>S.peek().score&&S.replaceTop(j)))))}else if(n&&n.keys){var C=n.scoreFn||h,x=n.keys,M=x.length;for(w=0;w<p;++w){O=t[w];for(var k=new Array(M),R=0;R<M;++R)_=x[R],(A=v(O,_))?(y(A)||(A=o(A)),(s&A._bitflags)!==s?k[R]=E:k[R]=a(r,A)):k[R]=E;k.obj=O;var P=C(k);P!==E&&(P<u||(k.score=P,f<c?(S.add(k),++f):(++d,P>S.peek().score&&S.replaceTop(k))))}}else for(w=0;w<p;++w){var A,j;(A=t[w])&&(y(A)||(A=o(A)),(s&A._bitflags)===s&&(j=a(r,A))!==E&&(j.score<u||(f<c?(S.add(j),++f):(++d,j.score>S.peek().score&&S.replaceTop(j)))))}if(0===f)return g;var N=new Array(f);for(w=f-1;w>=0;--w)N[w]=S.poll();return N.total=f+d,N},highlight:(e,n,r)=>{if("function"==typeof n)return t(e,n);if(e===E)return E;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="#ddd",i="#eee",a={all:"revert",borderColor:l,borderStyle:"solid",borderWidth:1,boxSizing:"border-box",fontSize:24,height:50,lineHeight:"24px",outline:0,paddingLeft:15,paddingRight:15,width:"100%"};class s 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({},a,t)},n))}}const u={all:"revert",borderBottomWidth:1,borderColor:l,borderLeftWidth:1,borderRightWidth:1,borderStyle:"solid",borderTopWidth:0,boxSizing:"border-box",color:"#000",display:"block",fontSize:24,height:50,lineHeight:"50px",paddingLeft:15,paddingRight:15,textDecoration:"none"};function c(e){const{item:t,isHighlighted:n,isSelected:l,style:i}=e,a=r.__rest(e,["item","isHighlighted","isSelected","style"]),s=f(e);return o.createElement("a",Object.assign({href:t.url,style:s},a),t.title)}function f(e){const{isSelected:t,isHighlighted:n,style:r}=e,o=Object.assign({},u,r);return t&&(o.backgroundColor=i),n&&(o.backgroundColor=l),o}class d 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:c)({style:this.props.style,item:e,isSelected:this.props.isSelected,isHighlighted:this.state.isHighlighted,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.props.onClickItem})}}d.defaultProps={isSelected:!1};const p={all:"revert",position:"absolute",width:"100%",zIndex:2,listStyleType:"none",margin:0,padding:0,backgroundColor:"#fff"};function _(e){const t=Object.assign({},p,e.style);function n(e,t){return e.bind(this,t)}return e.maxHeight&&(t.maxHeight=e.maxHeight,t.borderBottomWidth=1,t.borderBottomColor=i,t.borderBottomStyle="solid",t.overflow="auto"),o.createElement("ul",{style:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},e.items.map(((t,r)=>o.createElement(d,{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 h(e){e.url&&(window.location.href=e.url)}class v extends o.PureComponent{constructor(e){super(e),this.state={displayResults:!1,hoveredIndex:-1,results:[],selectedIndex:0},this.query=e=>{this.props.extensions.length>0&&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).then((e=>{this.setState({results:this.props.maxResults>0?e.slice(0,this.props.maxResults):e,displayResults:e.length>0,selectedIndex:e.length>0?Math.min(this.state.selectedIndex,e.length-1):0}),this.props.onQuery&&this.props.onQuery(e)}))},this.prev=()=>{this.setState((e=>{const t=e.selectedIndex-1;if(t>=0)return{selectedIndex:t}}))},this.next=()=>{this.setState((e=>{const t=e.selectedIndex+1;if(t<e.results.length)return{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||h).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.keyCode){case 38:this.prev(),e.preventDefault();break;case 40:this.next(),e.preventDefault();break;case 13: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:[],displayResults:!1})}render(){let e=this.props,{children:t,render:n,maxResults:l,maxViewableResults:i,extensions:a,inputDelay:u,rootStyle:c,resultStyle:f,onQuery:d,onAction:p,onFocus:h,onBlur:v,showEmpty:y}=e,m=r.__rest(e,["children","render","maxResults","maxViewableResults","extensions","inputDelay","rootStyle","resultStyle","onQuery","onAction","onFocus","onBlur","showEmpty"]),b=i?50*i:null;return n||(n=t),o.createElement("div",{style:c},o.createElement(s,Object.assign({},m,{onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown})),this.state.displayResults&&o.createElement(_,{children:n,items:this.state.results,maxHeight:b,onClickItem:this.handleClickItem,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeave:this.handleMouseLeave,selectedIndex:this.state.selectedIndex,style:f}))}}v.defaultProps={children:null,extensions:[],inputDelay:100,maxResults:null,maxViewableResults:null,render:null,resultStyle:{},rootStyle:{position:"relative"},showEmpty:!1},t.ZP=v,t.XS=f},661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>_,Component:()=>r.wA,Fragment:()=>r.HY,PureComponent:()=>s,StrictMode:()=>Q,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:()=>$,flushSync:()=>J,forwardRef:()=>d,hydrate:()=>j,isValidElement:()=>z,lazy:()=>w,memo:()=>u,render:()=>A,startTransition:()=>G,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 x(e){return this.getChildContext=function(){return e.context},e.children}function E(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)(x,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function S(e,t){var n=(0,r.az)(E,{__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,P=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function A(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function j(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 N=r.YM.event;function T(){}function I(){return this.cancelBubble}function L(){return this.defaultPrevented}r.YM.event=function(e){return N&&(e=N(e)),e.persist=T,e.isPropagationStopped=I,e.isDefaultPrevented=L,e.nativeEvent=e};var D,H={configurable:!0,get:function(){return this.class}},U=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)&&!P(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,U&&U(e)};var F=r.YM.__r;r.YM.__r=function(e){F&&F(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 $(e){return e&&(e.base||1===e.nodeType&&e)||null}var K=function(e,t){return e(t)},J=function(e,t){return e(t)},Q=r.HY;function G(e){e()}function Z(e){return e}function X(){return[!1,G]}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:G,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:_,render:A,hydrate:j,unmountComponentAtNode:V,createPortal:S,createElement:r.az,createContext:r.kr,createFactory:W,cloneElement:q,createRef:r.Vf,Fragment:r.HY,isValidElement:z,findDOMNode:$,Component:r.wA,PureComponent:s,memo:u,forwardRef:d,flushSync:J,unstable_batchedUpdates:K,StrictMode:Q,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:()=>U,Vf:()=>v,YM:()=>o,ZB:()=>H,az:()=>_,bR:()=>E,h:()=>_,kr:()=>F,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,A(i,o,r,t.__n,void 0!==i.ownerSVGElement,null!=o.__h?[l]:null,n,null==l?b(o):l,o.__h),j(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}A(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=x(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++)T(w[d],w[++d],w[++d])}function x(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?x(r,t,n):S(n,r,r,o,r.__e,t));return t}function E(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(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?P:R,l):e.removeEventListener(t,l?P: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 P(e){this.l[e.type+!0](o.event?o.event(e):e)}function A(e,t,n,r,l,i,a,s,u){var c,f,p,_,h,v,b,g,w,O,x,E,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)})),x=0;x<f._sb.length;x++)f.__h.push(f._sb[x]);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,E=o.__r,S=0,"prototype"in R&&R.prototype.render){for(f.state=f.__s,f.__d=!1,E&&E(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,E&&E(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=N(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 j(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 N(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 T(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||T(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=[],A(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),j(a,e)}function H(e,t){D(e,t,H)}function U(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 F(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:()=>x,Me:()=>k,Qb:()=>S,Ye:()=>C,_Y:()=>m,aP:()=>O,bt:()=>g,cO:()=>M,d4:()=>b,eJ:()=>y,qp:()=>E,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&&T(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&&T(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 T(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function x(e,t){return s=8,C((function(){return e}),t)}function E(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(j),e.__H.__h.forEach(N),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(j),t.__h.forEach(N),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)||A)(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(j),e.__h=e.__h.filter((function(e){return!e.__||N(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{j(e)}catch(e){t=e}})),n.__H=void 0,t&&a.YM.__e(t,n.__v))};var P="function"==typeof requestAnimationFrame;function A(e){var t,n=function(){clearTimeout(r),P&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);P&&(t=requestAnimationFrame(n))}function j(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function N(e){var t=o;e.__c=e.__(),o=t}function T(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 instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 y=t.portalClassName="ReactModalPortal",m=t.bodyOpenClassName="ReactModal__Body--open",b=f.canUseDOM&&void 0!==a.default.createPortal,g=function(e){return document.createElement(e)},w=function(){return b?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var C=function(e){function t(){var e,n,o;h(this,t);for(var l=arguments.length,s=Array(l),c=0;c<l;c++)s[c]=arguments[c];return n=o=v(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),o.removePortal=function(){!b&&a.default.unmountComponentAtNode(o.node);var e=O(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=w()(o,i.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},v(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&&(b||(this.node=g("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(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)&&!b&&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&&b?(!this.node&&b&&(this.node=g("div")),w()(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);C.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},C.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:m,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)}},C.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)(C),t.default=C},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=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},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(o)};var n=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),r=n.getPropertyValue("display");return t?"contents"!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):"none"===r}catch(e){return console.warn("Failed to inspect element style"),!1}}function o(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var o=isNaN(t);return(o||t>=0)&&function(e,t){var o=e.nodeName.toLowerCase();return(n.test(o)&&!e.disabled||"a"===o&&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),r(t))return!1;t=t.parentNode}return!0}(e)}(e,!o)}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:()=>w,__asyncGenerator:()=>g,__asyncValues:()=>O,__await:()=>b,__awaiter:()=>c,__classPrivateFieldGet:()=>M,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>k,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>p,__extends:()=>o,__generator:()=>f,__importDefault:()=>S,__importStar:()=>E,__makeTemplateObject:()=>C,__metadata:()=>u,__param:()=>s,__read:()=>h,__rest:()=>i,__spread:()=>v,__spreadArray:()=>m,__spreadArrays:()=>y,__values:()=>_});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){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(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 f(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 d=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 p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function _(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 h(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 v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function y(){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 m(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 b(e){return this instanceof b?(this.v=e,this):new b(e)}function g(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 b?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 w(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:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=_(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 C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(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)&&d(t,e,n);return x(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function M(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 k(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 R(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=(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])},c=n(253),f=n.n(c),d=function(){return d=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},d.apply(this,arguments)},p=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},_=function(t,n){void 0===n&&(n=20);var o=p((0,s.eJ)(!1),2),l=o[0],i=o[1],a=p((0,s.eJ)(r(e.HY,{})),2),u=a[0],c=a[1];return{modal:(0,s.Ye)((function(){return r(f(),d({ariaHideApp:!1,isOpen:l,onRequestClose:function(){return i(!1)},style:y},{children:[r("span",d({onClick:function(){return i(!1)},style:{cursor:"pointer",position:"absolute",top:7,right:9,zIndex:v.zIndex+1}},{children:"╳"})),r("div",d({style:{padding:n}},{children:t||u}))]}))}),[u,l,i,t]),setBody:c,toggle:(0,s.I4)((function(){return i(!l)}),[i,l])}},h={zIndex:1001},v=d(d({},h),{maxWidth:640,maxHeight:640,margin:"auto",padding:"2px 0 2px 0"}),y={overlay:h,content:v},m=n(360),b=n.n(m),g=(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)}),w=function(e){function t(n){var r=e.call(this,n)||this;return r.name="YaamError",Object.setPrototypeOf(r,t.prototype),r}return g(t,e),t}(Error),O=function(e){if(e=e.replace(/\s+/g,""),!k.test(e))throw new w("invalid input");var t=new C,n=new Array,r=t;if(e.match(M).forEach((function(e){if("("===e){n.push(r);var t=new C;r.children.push(t),r=t}else if(")"===e){if(!n.length)throw new w("unbalanced parentheses `)`");r=n.pop()}else r.children.push(e)})),n.length)throw new w("unbalanced parentheses `(`");return t},C=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 w("invalid Node ".concat(t));if(x.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 w("unhandled operator ".concat(n))}t.splice(r-1,3,i)}})),1!==t.length)throw new w("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 w("invalid token ".concat(t))},e}(),x=["**","^","%","/","*","+","-"],E=new RegExp("(?:"+x.map((function(e){return e.replace(/(?=.)/g,"\\")})).join("|")+")"),S=/(?:(?:\d+\.\d+|\d+)(?:e[+-]?\d+)?)/,M=new RegExp("(?:[()]|".concat(E.source,"|").concat(S.source,")"),"g"),k=new RegExp("\n ^\n ".concat(M.source,"*\n ").concat(S.source,"\n ").concat(M.source,"*\n ").concat(E.source,"\n ").concat(M.source,"*\n ").concat(S.source,"\n ").concat(M.source,"*\n $\n ").replace(/\s+/g,"")),R=function(){return R=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},R.apply(this,arguments)},P=function(e){return function(t){return t?[]:e.items.filter((function(e){return e.suggested}))}},A=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}},j={textShadow:"-0.06ex 0 0 currentColor, 0.06ex 0 0 currentColor"},N=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 O(e).calculate()}(e)}catch(e){return t.verbose&&console.log(e),null}}(e):null;return null!==n?[{title:String(n),type:"default"}]:new Array}},T="rails-omnibar",I=n(320),L=n(439),D=n(483),H=n(269),U=n(109),F=n(228),Y=n(218),B=n(331),W=n(496),z=n(358),q=n(65),V=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(K).render({selector:"#mount-rails-omnibar"})}));var K=function(e){var t=_(),n=(0,s.I4)((function(){setTimeout((function(){var e=document.querySelector("[data-id=".concat(T,"]"));e&&document.activeElement===e?e.blur():e&&e.focus()}),100)}),[]);return u(e.hotkey,n),r(e.modal?Q:J,$({},e,{itemModal:t}))},J=function(t){var n,o=function(t){return(0,s.Ye)((function(){return[P(t),A(t),(n=t,o=n.items,function(t){return t?b().go(t,o,{key:"title"}).map((function(t){return R(R({},t.obj),{title:r(e.HY,{children:b().highlight(t,(function(e){return r("span",R({style:j},{children:e}))}))})})})):[]}),N(t)];var n,o}),[t])}(t),l=(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]));return r(e.HY,{children:[r(a.ZP,{"data-id":T,extensions:o,maxResults:t.maxResults,onAction:l,placeholder:t.placeholder,children:function(e){return G($($({},e),{modal:t.modal}))},showEmpty:!0,style:t.modal?X:Z}),t.itemModal.modal]})},Q=function(e){var t=_(r(J,$({},e)),0),n=t.modal,o=t.toggle;return u(e.hotkey,o),n},G=function(e){var t,n=e.item,o=(0,a.XS)(e),l=(t=n.icon)?"arrows"===t?I:"cog"===t?L:"cloud"===t?D:"dev"===t?H:"document"===t?U:"home"===t?F:"search"===t?Y:"question"===t?B:"user"===t?W:"sparkle"===t?z:"wallet"===t?q:"x"===t?V:null:null;return r("div",$({style:$($({},o),e.modal?X:Z)},{children:[l&&r(l,{name:n.icon,style:ee}),n.title]}))},Z={height:36,fontSize:18,lineHeight:"".concat(36,"px")},X=$($({},Z),{border:0}),ee={all:"revert",height:18,width:18,paddingRight:4.5,verticalAlign:"text-top"}})()})();
|
data/javascript/src/app.tsx
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import React, {FunctionComponent} from "preact"
|
1
|
+
import React, {FunctionComponent, render} from "preact"
|
2
2
|
import habitat from "preact-habitat"
|
3
|
-
import Omnibar from "omnibar2"
|
3
|
+
import Omnibar, {buildItemStyle} from "omnibar2"
|
4
4
|
import {useItemAction, useOmnibarExtensions} from "./hooks"
|
5
5
|
import {useHotkey, useModal, useToggleFocus} from "./hooks"
|
6
6
|
import {AppArgs, INPUT_DATA_ID, Item, ModalArg} from "./types"
|
7
|
+
import {iconClass} from "./icon"
|
7
8
|
|
8
9
|
document.addEventListener("DOMContentLoaded", () => {
|
9
10
|
habitat(App).render({selector: "#mount-rails-omnibar"})
|
@@ -30,6 +31,9 @@ const RailsOmnibar: FunctionComponent<AppArgs & ModalArg> = (args) => {
|
|
30
31
|
maxResults={args.maxResults}
|
31
32
|
onAction={itemAction}
|
32
33
|
placeholder={args.placeholder}
|
34
|
+
children={(props) => renderItem({...props, modal: args.modal})}
|
35
|
+
showEmpty
|
36
|
+
style={args.modal ? MODAL_ROW_STYLE : ROW_STYLE}
|
33
37
|
/>
|
34
38
|
{args.itemModal.modal}
|
35
39
|
</>
|
@@ -37,8 +41,44 @@ const RailsOmnibar: FunctionComponent<AppArgs & ModalArg> = (args) => {
|
|
37
41
|
}
|
38
42
|
|
39
43
|
const RailsOmnibarAsModal: FunctionComponent<AppArgs & ModalArg> = (args) => {
|
40
|
-
const {modal, toggle} = useModal(<RailsOmnibar {...args}
|
44
|
+
const {modal, toggle} = useModal(<RailsOmnibar {...args} />, 0)
|
41
45
|
useHotkey(args.hotkey, toggle)
|
42
46
|
|
43
47
|
return modal
|
44
48
|
}
|
49
|
+
|
50
|
+
const renderItem = (
|
51
|
+
props: Omnibar.ResultRendererArgs<Item> & {modal: boolean}
|
52
|
+
) => {
|
53
|
+
const {item} = props
|
54
|
+
const style = buildItemStyle<Item>(props) as React.JSX.CSSProperties
|
55
|
+
const Icon = iconClass(item.icon)
|
56
|
+
|
57
|
+
return (
|
58
|
+
<div style={{...style, ...(props.modal ? MODAL_ROW_STYLE : ROW_STYLE)}}>
|
59
|
+
{Icon && <Icon name={item.icon} style={ICON_STYLE} />}
|
60
|
+
{item.title}
|
61
|
+
</div>
|
62
|
+
)
|
63
|
+
}
|
64
|
+
|
65
|
+
const ROW_HEIGHT = 36
|
66
|
+
|
67
|
+
const ROW_STYLE = {
|
68
|
+
height: ROW_HEIGHT,
|
69
|
+
fontSize: ROW_HEIGHT / 2,
|
70
|
+
lineHeight: `${ROW_HEIGHT}px`,
|
71
|
+
}
|
72
|
+
|
73
|
+
const MODAL_ROW_STYLE = {
|
74
|
+
...ROW_STYLE,
|
75
|
+
border: 0,
|
76
|
+
}
|
77
|
+
|
78
|
+
const ICON_STYLE = {
|
79
|
+
all: "revert",
|
80
|
+
height: ROW_HEIGHT / 2,
|
81
|
+
width: ROW_HEIGHT / 2,
|
82
|
+
paddingRight: ROW_HEIGHT / 8,
|
83
|
+
verticalAlign: "text-top",
|
84
|
+
}
|
@@ -2,8 +2,10 @@ import {useCallback, useEffect} from "preact/hooks"
|
|
2
2
|
|
3
3
|
export const useHotkey = (hotkey: string, action: () => void) => {
|
4
4
|
const onKeyDown = useCallback(
|
5
|
-
(
|
5
|
+
(e: KeyboardEvent) => {
|
6
|
+
const {metaKey, ctrlKey, key} = e
|
6
7
|
if ((metaKey || ctrlKey) && key.toLowerCase() == hotkey) {
|
8
|
+
e.preventDefault()
|
7
9
|
action()
|
8
10
|
}
|
9
11
|
},
|
@@ -2,7 +2,7 @@ import React, {useCallback, useMemo, useState} from "preact/hooks"
|
|
2
2
|
import ReactModal from "react-modal"
|
3
3
|
import {ModalBag} from "../types"
|
4
4
|
|
5
|
-
export const useModal = (staticBody?: JSX.Element): ModalBag => {
|
5
|
+
export const useModal = (staticBody?: JSX.Element, padding = 20): ModalBag => {
|
6
6
|
const [open, setOpen] = useState(false)
|
7
7
|
const [body, setBody] = useState(<></>)
|
8
8
|
|
@@ -12,16 +12,21 @@ export const useModal = (staticBody?: JSX.Element): ModalBag => {
|
|
12
12
|
ariaHideApp={false}
|
13
13
|
isOpen={open}
|
14
14
|
onRequestClose={() => setOpen(false)}
|
15
|
-
style={
|
15
|
+
style={STYLE}
|
16
16
|
>
|
17
17
|
<span
|
18
18
|
onClick={() => setOpen(false)}
|
19
|
-
style={{
|
19
|
+
style={{
|
20
|
+
cursor: "pointer",
|
21
|
+
position: "absolute",
|
22
|
+
top: 7,
|
23
|
+
right: 9,
|
24
|
+
zIndex: CONTENT_STYLE.zIndex + 1,
|
25
|
+
}}
|
20
26
|
>
|
21
27
|
╳
|
22
28
|
</span>
|
23
|
-
<div style={{
|
24
|
-
{staticBody || body}
|
29
|
+
<div style={{padding}}>{staticBody || body}</div>
|
25
30
|
</ReactModal>
|
26
31
|
),
|
27
32
|
[body, open, setOpen, staticBody]
|
@@ -31,3 +36,16 @@ export const useModal = (staticBody?: JSX.Element): ModalBag => {
|
|
31
36
|
|
32
37
|
return {modal, setBody, toggle}
|
33
38
|
}
|
39
|
+
|
40
|
+
const OVERLAY_STYLE = {zIndex: 1001}
|
41
|
+
const CONTENT_STYLE = {
|
42
|
+
...OVERLAY_STYLE,
|
43
|
+
maxWidth: 640,
|
44
|
+
maxHeight: 640,
|
45
|
+
margin: "auto",
|
46
|
+
padding: "2px 0 2px 0",
|
47
|
+
}
|
48
|
+
const STYLE = {
|
49
|
+
overlay: OVERLAY_STYLE,
|
50
|
+
content: CONTENT_STYLE,
|
51
|
+
}
|
@@ -4,22 +4,36 @@ import fuzzysort from "fuzzysort"
|
|
4
4
|
import {tryCalculate} from "yaam"
|
5
5
|
|
6
6
|
export const useOmnibarExtensions = (args: AppArgs) => {
|
7
|
-
return useMemo(
|
7
|
+
return useMemo(
|
8
|
+
() => [
|
9
|
+
suggestedItems(args),
|
10
|
+
commands(args),
|
11
|
+
filteredItems(args),
|
12
|
+
calculator(args),
|
13
|
+
],
|
14
|
+
[args]
|
15
|
+
)
|
16
|
+
}
|
17
|
+
|
18
|
+
const suggestedItems = (args: AppArgs) => {
|
19
|
+
return (q: string) => (q ? [] : args.items.filter((e) => e.suggested))
|
8
20
|
}
|
9
21
|
|
10
22
|
const commands = ({commandPattern: p, queryPath}: AppArgs) => {
|
11
23
|
const commandRegexp = useMemo(() => p && new RegExp(p.source, p.options), [p])
|
12
24
|
|
13
25
|
return async (q: string) => {
|
14
|
-
if (!queryPath || !commandRegexp?.test(q)) return []
|
26
|
+
if (!q || !queryPath || !commandRegexp?.test(q)) return []
|
15
27
|
|
16
28
|
const response = await fetch(`${queryPath}&q=${q}`)
|
17
29
|
return await response.json()
|
18
30
|
}
|
19
31
|
}
|
20
32
|
|
21
|
-
const
|
33
|
+
const filteredItems = ({items}: AppArgs) => {
|
22
34
|
return (q: string) => {
|
35
|
+
if (!q) return []
|
36
|
+
|
23
37
|
const results = fuzzysort.go(q, items, {key: "title"})
|
24
38
|
return results.map((result) => ({
|
25
39
|
...result.obj, // Item
|
@@ -40,7 +54,7 @@ const staticWidthBoldStyle = {
|
|
40
54
|
|
41
55
|
const calculator = ({calculator}: AppArgs) => {
|
42
56
|
return (q: string) => {
|
43
|
-
const result = calculator ? tryCalculate(q) : null
|
57
|
+
const result = calculator && q ? tryCalculate(q) : null
|
44
58
|
if (result !== null) {
|
45
59
|
return [{title: String(result), type: "default" as Item["type"]}]
|
46
60
|
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import {
|
2
|
+
ArrowsRightLeftIcon,
|
3
|
+
Cog6ToothIcon,
|
4
|
+
CloudIcon,
|
5
|
+
CommandLineIcon,
|
6
|
+
DocumentIcon,
|
7
|
+
HomeIcon,
|
8
|
+
MagnifyingGlassIcon,
|
9
|
+
QuestionMarkCircleIcon,
|
10
|
+
UserIcon,
|
11
|
+
SparklesIcon,
|
12
|
+
WalletIcon,
|
13
|
+
XMarkIcon,
|
14
|
+
} from "@heroicons/react/20/solid"
|
15
|
+
|
16
|
+
export const iconClass = (name: string | null | undefined) => {
|
17
|
+
if (!name) return null
|
18
|
+
|
19
|
+
if (name === "arrows") return ArrowsRightLeftIcon
|
20
|
+
if (name === "cog") return Cog6ToothIcon
|
21
|
+
if (name === "cloud") return CloudIcon
|
22
|
+
if (name === "dev") return CommandLineIcon
|
23
|
+
if (name === "document") return DocumentIcon
|
24
|
+
if (name === "home") return HomeIcon
|
25
|
+
if (name === "search") return MagnifyingGlassIcon
|
26
|
+
if (name === "question") return QuestionMarkCircleIcon
|
27
|
+
if (name === "user") return UserIcon
|
28
|
+
if (name === "sparkle") return SparklesIcon
|
29
|
+
if (name === "wallet") return WalletIcon
|
30
|
+
if (name === "x") return XMarkIcon
|
31
|
+
|
32
|
+
return null
|
33
|
+
}
|
data/javascript/src/types.ts
CHANGED
@@ -1,21 +1,52 @@
|
|
1
1
|
class RailsOmnibar
|
2
2
|
module Item
|
3
3
|
class Base
|
4
|
-
attr_reader :title, :url, :modal_html, :type
|
4
|
+
attr_reader :title, :url, :icon, :modal_html, :suggested, :type
|
5
5
|
|
6
|
-
def initialize(title:, url: nil, modal_html: nil, type: :default)
|
7
|
-
title.class.in?([String, Symbol]) && title.present? || raise(ArgumentError, 'title: must be a String')
|
6
|
+
def initialize(title:, url: nil, icon: nil, modal_html: nil, suggested: false, type: :default)
|
8
7
|
url.present? && modal_html.present? && raise(ArgumentError, 'use EITHER url: OR modal_html:')
|
9
8
|
|
10
|
-
@title = title
|
9
|
+
@title = validate_title(title)
|
11
10
|
@url = url
|
11
|
+
@icon = validate_icon(icon)
|
12
12
|
@modal_html = modal_html
|
13
|
+
@suggested = !!suggested
|
13
14
|
@type = type
|
14
15
|
end
|
15
16
|
|
16
17
|
def as_json(*)
|
17
|
-
{ title: title, url: url, modalHTML: modal_html, type: type }
|
18
|
+
{ title: title, url: url, icon: icon, modalHTML: modal_html, suggested: suggested, type: type }
|
18
19
|
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def validate_title(title)
|
24
|
+
return title if title.class.in?([String, Symbol]) && title.present?
|
25
|
+
|
26
|
+
raise(ArgumentError, 'title: must be a String')
|
27
|
+
end
|
28
|
+
|
29
|
+
def validate_icon(icon)
|
30
|
+
return nil if icon.blank?
|
31
|
+
return icon.to_s if icon.to_s.in?(VALID_ICONS)
|
32
|
+
|
33
|
+
raise ArgumentError, "#{icon} not in valid icons: #{VALID_ICONS}"
|
34
|
+
end
|
35
|
+
|
36
|
+
VALID_ICONS = %w[
|
37
|
+
arrows
|
38
|
+
cloud
|
39
|
+
cog
|
40
|
+
dev
|
41
|
+
document
|
42
|
+
home
|
43
|
+
question
|
44
|
+
search
|
45
|
+
sparkle
|
46
|
+
user
|
47
|
+
wallet
|
48
|
+
x
|
49
|
+
]
|
19
50
|
end
|
20
51
|
end
|
21
52
|
end
|
@@ -6,8 +6,15 @@ class RailsOmnibar
|
|
6
6
|
|
7
7
|
module Item
|
8
8
|
class Help < Base
|
9
|
-
def initialize(title: '
|
10
|
-
super title: title, type: :help, modal_html: <<~HTML
|
9
|
+
def initialize(title: 'Help', for_commands:, custom_content: nil, icon: 'question', suggested: true)
|
10
|
+
super title: title, suggested: suggested, icon: icon, type: :help, modal_html: <<~HTML
|
11
|
+
<span>Usage:<span>
|
12
|
+
<ul>
|
13
|
+
<li>Type a few letters to get results</li>
|
14
|
+
<li>Use the arrow keys (↑/↓) on your keyboard to select a result</li>
|
15
|
+
<li>Hit Enter to open a result</li>
|
16
|
+
<li>Hit Escape to close</li>
|
17
|
+
</ul>
|
11
18
|
<span>Available actions:<span>
|
12
19
|
<ul>
|
13
20
|
#{custom_content&.then { |c| "<li>#{c}</li>" } }
|
data/package.json
CHANGED
@@ -4,8 +4,9 @@
|
|
4
4
|
"test": "bundle exec rake"
|
5
5
|
},
|
6
6
|
"dependencies": {
|
7
|
+
"@heroicons/react": "^2.0.14",
|
7
8
|
"fuzzysort": "^2.0.4",
|
8
|
-
"omnibar2": "^2.4.
|
9
|
+
"omnibar2": "^2.4.3",
|
9
10
|
"preact": "^10.11.3",
|
10
11
|
"preact-habitat": "^3.3.0",
|
11
12
|
"react-modal": "^3.16.1",
|
@@ -21,6 +22,7 @@
|
|
21
22
|
"babel-loader": "^8.2.4",
|
22
23
|
"ts-loader": "^9.4.2",
|
23
24
|
"tslib": "^2.4.1",
|
25
|
+
"typescript": "^4.9.4",
|
24
26
|
"webpack": "^5.70.0",
|
25
27
|
"webpack-cli": "^4.9.2"
|
26
28
|
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe RailsOmnibar::Item::Base do
|
4
|
+
describe '#icon=' do
|
5
|
+
it 'can be set' do
|
6
|
+
item = RailsOmnibar::Item::Base.new(title: 'foo', url: 'bar', icon: :cog)
|
7
|
+
expect(item.icon).to eq 'cog'
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'raises for unknown icons' do
|
11
|
+
expect do
|
12
|
+
RailsOmnibar::Item::Base.new(title: 'foo', url: 'bar', icon: :bog)
|
13
|
+
end.to raise_error ArgumentError
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'has VALID_ICONS matching the supported ones' do
|
17
|
+
js = RailsOmnibar::Engine.root.join('javascript/src/icon.tsx')
|
18
|
+
supported = File.read(js).scan(/name === "([^"]+)"/).flatten.compact
|
19
|
+
expect(supported).to contain_exactly(*RailsOmnibar::Item::Base::VALID_ICONS)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/my_omnibar_template.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
MyOmnibar = RailsOmnibar.configure do |c|
|
2
2
|
c.modal = true
|
3
3
|
|
4
|
-
c.add_item(title: 'important URL', url: 'https://www.disney.com')
|
4
|
+
c.add_item(title: 'important URL', url: 'https://www.disney.com', suggested: true)
|
5
5
|
c.add_item(title: 'boring URL', url: 'https://www.github.com')
|
6
6
|
|
7
7
|
c.add_record_search(pattern: /^u(\d+)/, model: User, example: 'u123')
|
@@ -20,7 +20,7 @@ MyOmnibar = RailsOmnibar.configure do |c|
|
|
20
20
|
c.add_search(
|
21
21
|
pattern: /^g (.+)/,
|
22
22
|
example: 'g kittens',
|
23
|
-
finder: ->(input) { %i[fake_result_1 fake_result_2
|
23
|
+
finder: ->(input) { %i[fake_result_1 fake_result_2] },
|
24
24
|
itemizer: ->(entry) do
|
25
25
|
[
|
26
26
|
{ title: entry, url: '/' },
|
@@ -21,14 +21,18 @@ describe RailsOmnibar do
|
|
21
21
|
send_keys([:meta, 'm']) # meta modifier (⌘) should also be supported
|
22
22
|
expect(page).to have_selector 'input'
|
23
23
|
|
24
|
+
# test suggested item functionality
|
25
|
+
expect(page).to have_content 'important URL'
|
26
|
+
expect(page).not_to have_content 'boring URL'
|
27
|
+
|
24
28
|
# test fuzzy search for static items
|
25
29
|
type('ou')
|
26
|
-
expect(page).to have_content 'boring URL'
|
27
30
|
expect(page).to have_content 'important URL'
|
31
|
+
expect(page).to have_content 'boring URL'
|
28
32
|
|
29
33
|
type('ori')
|
30
|
-
expect(page).to have_content 'boring URL'
|
31
34
|
expect(page).not_to have_content 'important URL'
|
35
|
+
expect(page).to have_content 'boring URL'
|
32
36
|
|
33
37
|
# test help modal
|
34
38
|
expect(page).not_to have_content 'Available actions'
|
@@ -70,8 +74,6 @@ describe RailsOmnibar do
|
|
70
74
|
expect(page).to have_content 'FAKE_RESULT_1'
|
71
75
|
expect(page).to have_content 'fake_result_2'
|
72
76
|
expect(page).to have_content 'FAKE_RESULT_2'
|
73
|
-
expect(page).to have_content 'fake_result_3'
|
74
|
-
expect(page).to have_content 'FAKE_RESULT_3'
|
75
77
|
|
76
78
|
# test custom command
|
77
79
|
type('count users')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_omnibar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janosch Müller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: js_regex
|
@@ -169,6 +169,7 @@ files:
|
|
169
169
|
- javascript/src/hooks/use_modal.tsx
|
170
170
|
- javascript/src/hooks/use_omnibar_extensions.tsx
|
171
171
|
- javascript/src/hooks/use_toggle_focus.ts
|
172
|
+
- javascript/src/icon.tsx
|
172
173
|
- javascript/src/index.ts
|
173
174
|
- javascript/src/types.ts
|
174
175
|
- lib/rails_omnibar.rb
|
@@ -186,6 +187,7 @@ files:
|
|
186
187
|
- rails_omnibar.gemspec
|
187
188
|
- spec/app_template.rb
|
188
189
|
- spec/lib/rails_omnibar/config_spec.rb
|
190
|
+
- spec/lib/rails_omnibar/item/base_spec.rb
|
189
191
|
- spec/lib/rails_omnibar/version_spec.rb
|
190
192
|
- spec/my_omnibar_template.rb
|
191
193
|
- spec/rails_helper.rb
|
@@ -219,6 +221,7 @@ summary: Omnibar for Rails
|
|
219
221
|
test_files:
|
220
222
|
- spec/app_template.rb
|
221
223
|
- spec/lib/rails_omnibar/config_spec.rb
|
224
|
+
- spec/lib/rails_omnibar/item/base_spec.rb
|
222
225
|
- spec/lib/rails_omnibar/version_spec.rb
|
223
226
|
- spec/my_omnibar_template.rb
|
224
227
|
- spec/rails_helper.rb
|