Mercurial > repos > fubar > jbrowse2
view x/static/js/3301.db457761.chunk.js @ 133:cec274db51c0 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 7d28252954cae9f8db5f8a85d8f29cb2865b504b-dirty
author | fubar |
---|---|
date | Fri, 18 Oct 2024 11:57:55 +0000 |
parents | 49f3d3878413 |
children |
line wrap: on
line source
/*! For license information please see 3301.db457761.chunk.js.LICENSE.txt */ "use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3301],{85120:(e,t,n)=>{n.d(t,{A:()=>re});var r=n(73123),i=Math.abs,a=String.fromCharCode,o=Object.assign;function l(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function s(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function f(e,t,n){return e.slice(t,n)}function d(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var b=1,v=1,y=0,g=0,m=0,w="";function _(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:b,column:v,length:o,return:""}}function S(e,t){return o(_("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return m=g>0?c(w,--g):0,v--,10===m&&(v=1,b--),m}function O(){return m=g<y?c(w,g++):0,v++,10===m&&(v=1,b++),m}function P(){return c(w,g)}function A(){return g}function x(e,t){return f(w,e,t)}function j(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function C(e){return b=v=1,y=d(w=e),g=0,[]}function E(e){return w="",e}function T(e){return l(x(g-1,R(91===e?e+2:40===e?e+1:e)))}function N(e){for(;(m=P())&&m<33;)O();return j(e)>2||j(m)>3?"":" "}function I(e,t){for(;--t&&O()&&!(m<48||m>102||m>57&&m<65||m>70&&m<97););return x(e,A()+(t<6&&32==P()&&32==O()))}function R(e){for(;O();)switch(m){case e:return g;case 34:case 39:34!==e&&39!==e&&R(m);break;case 40:41===e&&R(e);break;case 92:O()}return g}function M(e,t){for(;O()&&e+m!==57&&(e+m!==84||47!==P()););return"/*"+x(t,g-1)+"*"+a(47===e?e:O())}function L(e){for(;!j(P());)O();return x(e,g)}var D="-ms-",z="-moz-",V="-webkit-",$="comm",F="rule",B="decl",U="@keyframes";function H(e,t){for(var n="",r=p(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function W(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case B:return e.return=e.return||e.value;case $:return"";case U:return e.return=e.value+"{"+H(e.children,r)+"}";case F:e.value=e.props.join(",")}return d(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return E(G("",null,null,null,[""],e=C(e),0,[0],e))}function G(e,t,n,r,i,o,l,f,p){for(var b=0,v=0,y=l,g=0,m=0,w=0,_=1,S=1,x=1,j=0,C="",E=i,R=o,D=r,z=C;S;)switch(w=j,j=O()){case 40:if(108!=w&&58==c(z,y-1)){-1!=s(z+=u(T(j),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:z+=T(j);break;case 9:case 10:case 13:case 32:z+=N(w);break;case 92:z+=I(A()-1,7);continue;case 47:switch(P()){case 42:case 47:h(Q(M(O(),A()),t,n),p);break;default:z+="/"}break;case 123*_:f[b++]=d(z)*x;case 125*_:case 59:case 0:switch(j){case 0:case 125:S=0;case 59+v:-1==x&&(z=u(z,/\f/g,"")),m>0&&d(z)-y&&h(m>32?Y(z+";",r,n,y-1):Y(u(z," ","")+";",r,n,y-2),p);break;case 59:z+=";";default:if(h(D=q(z,t,n,b,v,i,f,C,E=[],R=[],y),o),123===j)if(0===v)G(z,t,D,D,E,o,y,f,R);else switch(99===g&&110===c(z,3)?100:g){case 100:case 108:case 109:case 115:G(e,D,D,r&&h(q(e,D,D,0,0,i,f,C,i,E=[],y),R),i,R,y,f,r?E:R);break;default:G(z,D,D,D,[""],R,0,f,R)}}b=v=m=0,_=x=1,C=z="",y=l;break;case 58:y=1+d(z),m=w;default:if(_<1)if(123==j)--_;else if(125==j&&0==_++&&125==k())continue;switch(z+=a(j),j*_){case 38:x=v>0?1:(z+="\f",-1);break;case 44:f[b++]=(d(z)-1)*x,x=1;break;case 64:45===P()&&(z+=T(O())),g=P(),v=y=d(C=z+=L(A())),j++;break;case 45:45===w&&2==d(z)&&(_=0)}}return o}function q(e,t,n,r,a,o,s,c,d,h,b){for(var v=a-1,y=0===a?o:[""],g=p(y),m=0,w=0,S=0;m<r;++m)for(var k=0,O=f(e,v+1,v=i(w=s[m])),P=e;k<g;++k)(P=l(w>0?y[k]+" "+O:u(O,/&\f/g,y[k])))&&(d[S++]=P);return _(e,t,n,0===a?F:c,d,h,b)}function Q(e,t,n){return _(e,t,n,$,a(m),f(e,2,-2),0)}function Y(e,t,n,r){return _(e,t,n,B,f(e,0,r),f(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,i=0;r=i,i=P(),38===r&&12===i&&(t[n]=1),!j(i);)O();return x(e,g)},J=new WeakMap,Z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var i=[],o=function(e,t){return E(function(e,t){var n=-1,r=44;do{switch(j(r)){case 0:38===r&&12===P()&&(t[n]=1),e[n]+=X(g-1,t,n);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===P()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=O());return e}(C(e),t))}(t,i),l=n.props,u=0,s=0;u<o.length;u++)for(var c=0;c<l.length;c++,s++)e.props[s]=i[u]?o[u].replace(/&\f/g,l[c]):l[c]+" "+o[u]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+z+e+D+e+e;case 6828:case 4268:return V+e+D+e+e;case 6165:return V+e+D+"flex-"+e+e;case 5187:return V+e+u(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return V+e+D+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return V+e+D+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+D+u(e,"shrink","negative")+e;case 5292:return V+e+D+u(e,"basis","preferred-size")+e;case 6060:return V+"box-"+u(e,"-grow","")+V+e+D+u(e,"grow","positive")+e;case 4554:return V+u(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+z+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~s(e,"stretch")?te(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,d(e)-3-(~s(e,"!important")&&10))){case 107:return u(e,":",":"+V)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===c(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return V+e+D+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+D+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+D+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+D+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=te(e.value,e.length);break;case U:return H([S(e,{value:u(e.value,"@","@"+V)})],r);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return H([S(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([S(e,{props:[u(t,/:(plac\w+)/,":"+V+"input-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,a,o=e.stylisPlugins||ne,l={},u=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;u.push(e)}));var s,c,f,d,h=[W,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],b=(c=[Z,ee].concat(o,h),f=p(c),function(e,t,n,r){for(var i="",a=0;a<f;a++)i+=c[a](e,t,n,r)||"";return i});a=function(e,t,n,r){s=n,H(K(e?e+"{"+t.styles+"}":t.styles),b),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new r.v({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:a};return v.sheet.hydrate(u),v}},39389:(e,t,n)=>{function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},90722:(e,t,n)=>{n.d(t,{C:()=>o,T:()=>s,_:()=>l,w:()=>u});var r=n(7552),i=n(85120),a=(n(53760),n(20387),r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null)),o=a.Provider,l=function(){return(0,r.useContext)(a)},u=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(a);return e(t,i,n)}))},s=r.createContext({})},64761:(e,t,n)=>{n.d(t,{AH:()=>s,i7:()=>c,mL:()=>u});var r=n(90722),i=n(7552),a=n(92005),o=n(20387),l=n(53760),u=(n(85120),n(806),(0,r.w)((function(e,t){var n=e.styles,u=(0,l.J)([n],void 0,i.useContext(r.T)),s=i.useRef();return(0,o.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),s.current=[n,r],function(){n.flush()}}),[t]),(0,o.i)((function(){var e=s.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==u.next&&(0,a.sk)(t,u.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",u,n,!1)}}),[t,u.name]),null})));function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.J)(t)}var c=function(){var e=s.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},53760:(e,t,n)=>{n.d(t,{J:()=>v});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(39389),a=!1,o=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!=typeof e},c=(0,i.A)((function(e){return u(e)?e:e.replace(o,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"},d="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function p(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return h={name:i.name,styles:i.styles,next:h},i.name;var o=n;if(void 0!==o.styles){var l=o.next;if(void 0!==l)for(;void 0!==l;)h={name:l.name,styles:l.styles,next:h},l=l.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=p(e,t,n[i])+";";else for(var o in n){var l=n[o];if("object"!=typeof l){var u=l;null!=t&&void 0!==t[u]?r+=o+"{"+t[u]+"}":s(u)&&(r+=c(o)+":"+f(o,u)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&a)throw new Error(d);if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var h=p(e,t,l);switch(o){case"animation":case"animationName":r+=c(o)+":"+h+";";break;default:r+=o+"{"+h+"}"}}else for(var b=0;b<l.length;b++)s(l[b])&&(r+=c(o)+":"+f(o,l[b])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var u=h,b=n(e);return h=u,p(e,t,b)}}var v=n;if(null==t)return v;var y=t[v];return void 0!==y?y:v}var h,b=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function v(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";h=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=p(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=p(n,t,e[o]),r&&(i+=a[o]);b.lastIndex=0;for(var l,u="";null!==(l=b.exec(i));)u+="-"+l[1];var s=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+u;return{name:s,styles:i,next:h}}},73123:(e,t,n)=>{n.d(t,{v:()=>r});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}()},20387:(e,t,n)=>{var r;n.d(t,{i:()=>l,s:()=>o});var i=n(7552),a=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,o=a||function(e){return e()},l=a||i.useLayoutEffect},92005:(e,t,n)=>{function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>a});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},16179:(e,t,n)=>{n.d(t,{qy:()=>a,rf:()=>o}),n(7552);var r=n(69743);n(69500);const i="function"==typeof(0,r.Dp)({}),a=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),o=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),l=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach((([t,r])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}}));let r={html:a(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...o(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},u="mui-ecs";(0,r.Dp)(i?({theme:e,enableColorScheme:t})=>l(e,t):({theme:e})=>(e=>{const t=l(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${u})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,r])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?n[i]={[`:root:not(:has(.${u}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${u}))`]:{colorScheme:r.palette?.mode}}})),t})(e))},4785:(e,t,n)=>{n.d(t,{b:()=>i}),n(7552);var r=n(53173);function i(e){return(0,r.b)(e)}n(69500)},46033:(e,t,n)=>{n.d(t,{A:()=>r});const r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},53954:(e,t,n)=>{n.d(t,{A:()=>r});const r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},55194:(e,t,n)=>{n.d(t,{A:()=>r});const r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},37231:(e,t,n)=>{n.d(t,{A:()=>r});const r={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},8998:(e,t,n)=>{n.d(t,{A:()=>r});const r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},21699:(e,t,n)=>{n.d(t,{Ay:()=>u,Qw:()=>l,UL:()=>o});var r=n(4705),i=n(28875);const a=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=(0,i.A)(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function o(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function l(e){return"dark"===e?a:[]}function u(e){const{palette:t={mode:"light"},opacity:n,overlays:i,...a}=e,u=(0,r.Ay)(t);return{palette:u,opacity:{...o(u.mode),...n},overlays:i||l(u.mode),...a}}},90841:(e,t,n)=>{function r(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}n.d(t,{A:()=>r})},4705:(e,t,n)=>{n.d(t,{Ay:()=>y});var r=n(51569),i=n(78745),a=n(72639);const o={black:"#000",white:"#fff"};var l=n(55194);const u={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var s=n(8998),c=n(37231),f=n(46033);const d={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var p=n(53954);const h={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.white,default:o.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},b={text:{primary:o.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:o.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function v(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,a.a)(e.main,i):"dark"===t&&(e.dark=(0,a.e$)(e.main,o)))}function y(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:y=.2,...g}=e,m=e.primary||function(e="light"){return"dark"===e?{main:f.A[200],light:f.A[50],dark:f.A[400]}:{main:f.A[700],light:f.A[400],dark:f.A[800]}}(t),w=e.secondary||function(e="light"){return"dark"===e?{main:u[200],light:u[50],dark:u[400]}:{main:u[500],light:u[300],dark:u[700]}}(t),_=e.error||function(e="light"){return"dark"===e?{main:s.A[500],light:s.A[300],dark:s.A[700]}:{main:s.A[700],light:s.A[400],dark:s.A[800]}}(t),S=e.info||function(e="light"){return"dark"===e?{main:d[400],light:d[300],dark:d[700]}:{main:d[700],light:d[500],dark:d[900]}}(t),k=e.success||function(e="light"){return"dark"===e?{main:p.A[400],light:p.A[300],dark:p.A[700]}:{main:p.A[800],light:p.A[500],dark:p.A[900]}}(t),O=e.warning||function(e="light"){return"dark"===e?{main:c.A[400],light:c.A[300],dark:c.A[700]}:{main:"#ed6c02",light:c.A[500],dark:c.A[900]}}(t);function P(e){return(0,a.eM)(e,b.text.primary)>=n?b.text.primary:h.text.primary}const A=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,r.A)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,r.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return v(e,"light",i,y),v(e,"dark",a,y),e.contrastText||(e.contrastText=P(e.main)),e},x={dark:b,light:h};return(0,i.A)({common:{...o},mode:t,primary:A({color:m,name:"primary"}),secondary:A({color:w,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:A({color:_,name:"error"}),warning:A({color:O,name:"warning"}),info:A({color:S,name:"info"}),success:A({color:k,name:"success"}),grey:l.A,contrastThreshold:n,getContrastText:P,augmentColor:A,tonalOffset:y,...x[t]},g)}},89022:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(4705),i=n(17405),a=n(86501);function o(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:(0,r.Ay)({...!0===n?{}:n.palette,mode:t})})}function l(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=(n?void 0:{light:!0}),defaultColorScheme:u=n?.mode,...s}=e,c=u||"light",f=l?.[c],d={...l,...n?{[c]:{..."boolean"!=typeof f&&f,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return(0,a.A)(e,...t);let r=n;"palette"in e||d[c]&&(!0!==d[c]?r=d[c].palette:"dark"===c&&(r={mode:"dark"}));const i=(0,a.A)({...e,palette:r},...t);return i.defaultColorScheme=c,i.colorSchemes=d,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==d.light&&d.light,palette:i.palette},o(i,"dark",d.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==d.dark&&d.dark,palette:i.palette},o(i,"light",d.light)),i}return n||"light"in d||"light"!==c||(d.light=!0),(0,i.A)({...s,colorSchemes:d,defaultColorScheme:c,..."boolean"!=typeof r&&r},...t)}},86501:(e,t,n)=>{n.d(t,{D:()=>v,A:()=>y});var r=n(51569),i=n(78745),a=n(94177),o=n(76795),l=n(72861),u=n(90841),s=n(4705),c=n(34558);function f(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const d=["none",f(0,2,1,-1,0,1,1,0,0,1,3,0),f(0,3,1,-2,0,2,2,0,0,1,5,0),f(0,3,3,-2,0,3,4,0,0,1,8,0),f(0,2,4,-1,0,4,5,0,0,1,10,0),f(0,3,5,-1,0,5,8,0,0,1,14,0),f(0,3,5,-1,0,6,10,0,0,1,18,0),f(0,4,5,-2,0,7,10,1,0,2,16,1),f(0,5,5,-3,0,8,10,1,0,3,14,2),f(0,5,6,-3,0,9,12,1,0,3,16,2),f(0,6,6,-3,0,10,14,1,0,4,18,3),f(0,6,7,-4,0,11,15,1,0,4,20,3),f(0,7,8,-4,0,12,17,2,0,5,22,4),f(0,7,8,-4,0,13,19,2,0,5,24,4),f(0,7,9,-4,0,14,21,2,0,5,26,4),f(0,8,9,-5,0,15,22,2,0,6,28,5),f(0,8,10,-5,0,16,24,2,0,6,30,5),f(0,8,11,-5,0,17,26,2,0,6,32,5),f(0,9,11,-5,0,18,28,2,0,7,34,6),f(0,9,12,-6,0,19,29,2,0,7,36,6),f(0,10,13,-6,0,20,31,3,0,8,38,7),f(0,10,13,-6,0,21,33,3,0,8,40,7),f(0,10,14,-6,0,22,35,3,0,8,42,7),f(0,11,14,-7,0,23,36,3,0,9,44,8),f(0,11,15,-7,0,24,38,3,0,9,46,8)];var p=n(94479);const h={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function b(e={},...t){const{breakpoints:n,mixins:f={},spacing:b,palette:v={},transitions:y={},typography:g={},shape:m,...w}=e;if(e.vars)throw new Error((0,r.A)(20));const _=(0,s.Ay)(v),S=(0,l.A)(e);let k=(0,i.A)(S,{mixins:(0,u.A)(S.breakpoints,f),palette:_,shadows:d.slice(),typography:(0,c.A)(_,g),transitions:(0,p.Ay)(y),zIndex:{...h}});return k=(0,i.A)(k,w),k=t.reduce(((e,t)=>(0,i.A)(e,t)),k),k.unstable_sxConfig={...a.A,...w?.unstable_sxConfig},k.unstable_sx=function(e){return(0,o.A)({sx:e,theme:this})},k}function v(...e){return b(...e)}const y=b},17405:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(51569),i=n(78745);function a(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}var o=n(81459),l=n(34901);function u(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const s=(e,t,n,r=[])=>{let i=e;t.forEach(((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])}))};function c(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};var l,u;return l=(e,t,l)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,u=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[r]:u}),s(a,e,`var(${r})`,l),s(o,e,`var(${r}, ${u})`,l)}},u=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach((([t,i])=>{(!u||u&&!u([...n,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...n,t],Array.isArray(i)?[...r,t]:r):l([...n,t],i,r))}))}(e),{css:i,vars:a,varsWithDefaults:o}}const f=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:o={},components:l,defaultColorScheme:u="light",...s}=e,{vars:f,css:d,varsWithDefaults:p}=c(s,t);let h=p;const b={},{[u]:v,...y}=o;if(Object.entries(y||{}).forEach((([e,n])=>{const{vars:r,css:a,varsWithDefaults:o}=c(n,t);h=(0,i.A)(h,o),b[e]={css:a,vars:r}})),v){const{css:e,vars:n,varsWithDefaults:r}=c(v,t);h=(0,i.A)(h,r),b[u]={css:e,vars:n}}function g(t,n){let r=a;if("class"===a&&(r=".%s"),"data"===a&&(r="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(r=`[${a}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=o[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...f};return Object.entries(b).forEach((([,{vars:t}])=>{e=(0,i.A)(e,t)})),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...d}),d);const{[i]:l,...u}=b;if(l){const{css:e}=l,t=o[i]?.palette?.mode,u=!r&&t?{colorScheme:t,...e}:{...e};a(n(i,{...u}),u)}return Object.entries(u).forEach((([e,{css:t}])=>{const i=o[e]?.palette?.mode,l=!r&&i?{colorScheme:i,...t}:{...t};a(n(e,{...l}),l)})),t}}};var d=n(94177),p=n(76795),h=n(72639),b=n(86501),v=n(21699),y=n(59542),g=n(80040);const m=e=>(t,n)=>{const r=e.colorSchemeSelector;let i=r;if("class"===r&&(i=".%s"),"data"===r&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const r={};return(0,g.A)(e.cssVarPrefix).forEach((e=>{r[e]=n[e],delete n[e]})),"media"===i?{":root":n,"@media (prefers-color-scheme: dark)":{":root":r}}:i?{[i.replace("%s",t)]:r,[`:root, ${i.replace("%s",t)}`]:n}:{":root":{...n,...r}}}if(i&&"media"!==i)return`:root, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{":root":n}};if(i)return i.replace("%s",String(t))}return":root"};function w(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let a=0;a<n.length;a++){const[o,l]=n[a];r=l,!(0,i.Q)(r)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||o.startsWith("unstable_")?delete t[o]:(0,i.Q)(l)&&(t[o]={...l},e(t[o]))}var r}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function _(e,t,n){!e[t]&&n&&(e[t]=n)}function S(e){return e&&e.startsWith("hsl")?(0,h.YL)(e):e}function k(e,t){`${t}Channel`in e||(e[`${t}Channel`]=(0,h.Me)(S(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const O=e=>{try{return e()}catch(e){}},P=(e="mui")=>a(e);function A(e,t,n,r){if(!t)return;t=!0===t?{}:t;const i="dark"===r?"dark":"light";if(!n)return void(e[r]=(0,v.Ay)({...t,palette:{mode:i,...t?.palette}}));const{palette:a,...o}=(0,b.A)({...n,palette:{mode:i,...t?.palette}});return e[r]={...t,palette:a,opacity:{...(0,v.UL)(i),...t?.opacity},overlays:t?.overlays||(0,v.Qw)(i)},o}function x(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:a,disableCssColorScheme:s=!1,cssVarPrefix:c="mui",shouldSkipGeneratingVar:b=y.A,colorSchemeSelector:v=(n.light&&n.dark?"media":void 0),...g}=e,x=Object.keys(n)[0],j=a||(n.light&&"light"!==x?"light":x),C=P(c),{[j]:E,light:T,dark:N,...I}=n,R={...I};let M=E;if(("dark"===j&&!("dark"in n)||"light"===j&&!("light"in n))&&(M=!0),!M)throw new Error((0,r.A)(21,j));const L=A(R,M,g,j);T&&!R.light&&A(R,T,void 0,"light"),N&&!R.dark&&A(R,N,void 0,"dark");let D={defaultColorScheme:j,...L,cssVarPrefix:c,colorSchemeSelector:v,getCssVar:C,colorSchemes:R,font:{...u(L.typography),...L.font},spacing:(z=g.spacing,"number"==typeof z?`${z}px`:"string"==typeof z||"function"==typeof z||Array.isArray(z)?z:"8px")};var z;Object.keys(D.colorSchemes).forEach((e=>{const t=D.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],i=n[2];return C(e,t[r][i])};var r;if("light"===t.mode&&(_(t.common,"background","#fff"),_(t.common,"onBackground","#000")),"dark"===t.mode&&(_(t.common,"background","#000"),_(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{r[e]||(r[e]={})})),"light"===t.mode){_(t.Alert,"errorColor",(0,h.Nd)(t.error.light,.6)),_(t.Alert,"infoColor",(0,h.Nd)(t.info.light,.6)),_(t.Alert,"successColor",(0,h.Nd)(t.success.light,.6)),_(t.Alert,"warningColor",(0,h.Nd)(t.warning.light,.6)),_(t.Alert,"errorFilledBg",n("palette-error-main")),_(t.Alert,"infoFilledBg",n("palette-info-main")),_(t.Alert,"successFilledBg",n("palette-success-main")),_(t.Alert,"warningFilledBg",n("palette-warning-main")),_(t.Alert,"errorFilledColor",O((()=>t.getContrastText(t.error.main)))),_(t.Alert,"infoFilledColor",O((()=>t.getContrastText(t.info.main)))),_(t.Alert,"successFilledColor",O((()=>t.getContrastText(t.success.main)))),_(t.Alert,"warningFilledColor",O((()=>t.getContrastText(t.warning.main)))),_(t.Alert,"errorStandardBg",(0,h.j4)(t.error.light,.9)),_(t.Alert,"infoStandardBg",(0,h.j4)(t.info.light,.9)),_(t.Alert,"successStandardBg",(0,h.j4)(t.success.light,.9)),_(t.Alert,"warningStandardBg",(0,h.j4)(t.warning.light,.9)),_(t.Alert,"errorIconColor",n("palette-error-main")),_(t.Alert,"infoIconColor",n("palette-info-main")),_(t.Alert,"successIconColor",n("palette-success-main")),_(t.Alert,"warningIconColor",n("palette-warning-main")),_(t.AppBar,"defaultBg",n("palette-grey-100")),_(t.Avatar,"defaultBg",n("palette-grey-400")),_(t.Button,"inheritContainedBg",n("palette-grey-300")),_(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),_(t.Chip,"defaultBorder",n("palette-grey-400")),_(t.Chip,"defaultAvatarColor",n("palette-grey-700")),_(t.Chip,"defaultIconColor",n("palette-grey-700")),_(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(t.LinearProgress,"primaryBg",(0,h.j4)(t.primary.main,.62)),_(t.LinearProgress,"secondaryBg",(0,h.j4)(t.secondary.main,.62)),_(t.LinearProgress,"errorBg",(0,h.j4)(t.error.main,.62)),_(t.LinearProgress,"infoBg",(0,h.j4)(t.info.main,.62)),_(t.LinearProgress,"successBg",(0,h.j4)(t.success.main,.62)),_(t.LinearProgress,"warningBg",(0,h.j4)(t.warning.main,.62)),_(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),_(t.Slider,"primaryTrack",(0,h.j4)(t.primary.main,.62)),_(t.Slider,"secondaryTrack",(0,h.j4)(t.secondary.main,.62)),_(t.Slider,"errorTrack",(0,h.j4)(t.error.main,.62)),_(t.Slider,"infoTrack",(0,h.j4)(t.info.main,.62)),_(t.Slider,"successTrack",(0,h.j4)(t.success.main,.62)),_(t.Slider,"warningTrack",(0,h.j4)(t.warning.main,.62));const e=(0,h.Y9)(t.background.default,.8);_(t.SnackbarContent,"bg",e),_(t.SnackbarContent,"color",O((()=>t.getContrastText(e)))),_(t.SpeedDialAction,"fabHoverBg",(0,h.Y9)(t.background.paper,.15)),_(t.StepConnector,"border",n("palette-grey-400")),_(t.StepContent,"border",n("palette-grey-400")),_(t.Switch,"defaultColor",n("palette-common-white")),_(t.Switch,"defaultDisabledColor",n("palette-grey-100")),_(t.Switch,"primaryDisabledColor",(0,h.j4)(t.primary.main,.62)),_(t.Switch,"secondaryDisabledColor",(0,h.j4)(t.secondary.main,.62)),_(t.Switch,"errorDisabledColor",(0,h.j4)(t.error.main,.62)),_(t.Switch,"infoDisabledColor",(0,h.j4)(t.info.main,.62)),_(t.Switch,"successDisabledColor",(0,h.j4)(t.success.main,.62)),_(t.Switch,"warningDisabledColor",(0,h.j4)(t.warning.main,.62)),_(t.TableCell,"border",(0,h.j4)((0,h.Cg)(t.divider,1),.88)),_(t.Tooltip,"bg",(0,h.Cg)(t.grey[700],.92))}if("dark"===t.mode){_(t.Alert,"errorColor",(0,h.j4)(t.error.light,.6)),_(t.Alert,"infoColor",(0,h.j4)(t.info.light,.6)),_(t.Alert,"successColor",(0,h.j4)(t.success.light,.6)),_(t.Alert,"warningColor",(0,h.j4)(t.warning.light,.6)),_(t.Alert,"errorFilledBg",n("palette-error-dark")),_(t.Alert,"infoFilledBg",n("palette-info-dark")),_(t.Alert,"successFilledBg",n("palette-success-dark")),_(t.Alert,"warningFilledBg",n("palette-warning-dark")),_(t.Alert,"errorFilledColor",O((()=>t.getContrastText(t.error.dark)))),_(t.Alert,"infoFilledColor",O((()=>t.getContrastText(t.info.dark)))),_(t.Alert,"successFilledColor",O((()=>t.getContrastText(t.success.dark)))),_(t.Alert,"warningFilledColor",O((()=>t.getContrastText(t.warning.dark)))),_(t.Alert,"errorStandardBg",(0,h.Nd)(t.error.light,.9)),_(t.Alert,"infoStandardBg",(0,h.Nd)(t.info.light,.9)),_(t.Alert,"successStandardBg",(0,h.Nd)(t.success.light,.9)),_(t.Alert,"warningStandardBg",(0,h.Nd)(t.warning.light,.9)),_(t.Alert,"errorIconColor",n("palette-error-main")),_(t.Alert,"infoIconColor",n("palette-info-main")),_(t.Alert,"successIconColor",n("palette-success-main")),_(t.Alert,"warningIconColor",n("palette-warning-main")),_(t.AppBar,"defaultBg",n("palette-grey-900")),_(t.AppBar,"darkBg",n("palette-background-paper")),_(t.AppBar,"darkColor",n("palette-text-primary")),_(t.Avatar,"defaultBg",n("palette-grey-600")),_(t.Button,"inheritContainedBg",n("palette-grey-800")),_(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),_(t.Chip,"defaultBorder",n("palette-grey-700")),_(t.Chip,"defaultAvatarColor",n("palette-grey-300")),_(t.Chip,"defaultIconColor",n("palette-grey-300")),_(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(t.LinearProgress,"primaryBg",(0,h.Nd)(t.primary.main,.5)),_(t.LinearProgress,"secondaryBg",(0,h.Nd)(t.secondary.main,.5)),_(t.LinearProgress,"errorBg",(0,h.Nd)(t.error.main,.5)),_(t.LinearProgress,"infoBg",(0,h.Nd)(t.info.main,.5)),_(t.LinearProgress,"successBg",(0,h.Nd)(t.success.main,.5)),_(t.LinearProgress,"warningBg",(0,h.Nd)(t.warning.main,.5)),_(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),_(t.Slider,"primaryTrack",(0,h.Nd)(t.primary.main,.5)),_(t.Slider,"secondaryTrack",(0,h.Nd)(t.secondary.main,.5)),_(t.Slider,"errorTrack",(0,h.Nd)(t.error.main,.5)),_(t.Slider,"infoTrack",(0,h.Nd)(t.info.main,.5)),_(t.Slider,"successTrack",(0,h.Nd)(t.success.main,.5)),_(t.Slider,"warningTrack",(0,h.Nd)(t.warning.main,.5));const e=(0,h.Y9)(t.background.default,.98);_(t.SnackbarContent,"bg",e),_(t.SnackbarContent,"color",O((()=>t.getContrastText(e)))),_(t.SpeedDialAction,"fabHoverBg",(0,h.Y9)(t.background.paper,.15)),_(t.StepConnector,"border",n("palette-grey-600")),_(t.StepContent,"border",n("palette-grey-600")),_(t.Switch,"defaultColor",n("palette-grey-300")),_(t.Switch,"defaultDisabledColor",n("palette-grey-600")),_(t.Switch,"primaryDisabledColor",(0,h.Nd)(t.primary.main,.55)),_(t.Switch,"secondaryDisabledColor",(0,h.Nd)(t.secondary.main,.55)),_(t.Switch,"errorDisabledColor",(0,h.Nd)(t.error.main,.55)),_(t.Switch,"infoDisabledColor",(0,h.Nd)(t.info.main,.55)),_(t.Switch,"successDisabledColor",(0,h.Nd)(t.success.main,.55)),_(t.Switch,"warningDisabledColor",(0,h.Nd)(t.warning.main,.55)),_(t.TableCell,"border",(0,h.Nd)((0,h.Cg)(t.divider,1),.68)),_(t.Tooltip,"bg",(0,h.Cg)(t.grey[700],.92))}k(t.background,"default"),k(t.background,"paper"),k(t.common,"background"),k(t.common,"onBackground"),k(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];n&&"object"==typeof n&&(n.main&&_(t[e],"mainChannel",(0,h.Me)(S(n.main))),n.light&&_(t[e],"lightChannel",(0,h.Me)(S(n.light))),n.dark&&_(t[e],"darkChannel",(0,h.Me)(S(n.dark))),n.contrastText&&_(t[e],"contrastTextChannel",(0,h.Me)(S(n.contrastText))),"text"===e&&(k(t[e],"primary"),k(t[e],"secondary")),"action"===e&&(n.active&&k(t[e],"active"),n.selected&&k(t[e],"selected")))}))})),D=t.reduce(((e,t)=>(0,i.A)(e,t)),D);const V={prefix:c,disableCssColorScheme:s,shouldSkipGeneratingVar:b,getSelector:m(D)},{vars:$,generateThemeVars:F,generateStyleSheets:B}=f(D,V);return D.vars=$,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach((([e,t])=>{D[e]=t})),D.generateThemeVars=F,D.generateStyleSheets=B,D.generateSpacing=function(){return(0,o.A)(g.spacing,(0,l.LX)(this))},D.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(v),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=b,D.unstable_sxConfig={...d.A,...g?.unstable_sxConfig},D.unstable_sx=function(e){return(0,p.A)({sx:e,theme:this})},D.toRuntimeSource=w,D}},94479:(e,t,n)=>{n.d(t,{Ay:()=>l,cz:()=>r,p0:()=>i});const r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return`${Math.round(e)}ms`}function o(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function l(e){const t={...r,...e.easing},n={...i,...e.duration};return{getAutoHeightDuration:o,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:l=0,...u}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:a(i)} ${o} ${"string"==typeof l?l:a(l)}`)).join(",")},...e,easing:t,duration:n}}},34558:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(78745);const i={textTransform:"uppercase"},a='"Roboto", "Helvetica", "Arial", sans-serif';function o(e,t){const{fontFamily:n=a,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:u=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:d,pxToRem:p,...h}="function"==typeof t?t(e):t,b=o/14,v=p||(e=>e/f*b+"rem"),y=(e,t,r,i,o)=>{return{fontFamily:n,fontWeight:e,fontSize:v(t),lineHeight:r,...n===a?{letterSpacing:(l=i/t,Math.round(1e5*l)/1e5+"em")}:{},...o,...d};var l},g={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(s,14,1.75,.4,i),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,i),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,r.A)({htmlFontSize:f,pxToRem:v,fontFamily:n,fontSize:o,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:s,fontWeightBold:c,...g},h,{clone:!1})}},23121:(e,t,n)=>{n.d(t,{A:()=>r});const r=(0,n(89022).A)()},80040:(e,t,n)=>{n.d(t,{A:()=>r});const r=e=>[...[...Array(25)].map(((t,n)=>`--${e?`${e}-`:""}overlays-${n}`)),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`]},28875:(e,t,n)=>{function r(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}n.d(t,{A:()=>r})},74988:(e,t,n)=>{n.d(t,{A:()=>r});const r="$$material"},55270:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(36674);const i=e=>(0,r.A)(e)&&"classes"!==e},59542:(e,t,n)=>{function r(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}n.d(t,{A:()=>r})},36674:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},51148:(e,t,n)=>{n.d(t,{Ay:()=>l});var r=n(15543),i=n(23121),a=n(74988),o=n(55270);const l=(0,r.Ay)({themeId:a.A,defaultTheme:i.A,rootShouldForwardProp:o.A})},15622:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(33283).A},58520:(e,t,n)=>{function r(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}n.d(t,{A:()=>r})},60129:(e,t,n)=>{n.d(t,{A:()=>i});const r={theme:void 0};function i(e){let t,n;return i=>{let a=t;return void 0!==a&&i.theme===n||(r.theme=i.theme,a=e(r),t=a,n=i.theme),a}}},53791:(e,t,n)=>{n.d(t,{Ay:()=>g,q_:()=>m});var r=n(6614),i=n(7552),a=n(39389),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=(0,a.A)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),u=n(90722),s=n(92005),c=n(53760),f=n(20387),d=l,p=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:p},b=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},v=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.SF)(t,n,r),(0,f.s)((function(){return(0,s.sk)(t,n,r)})),null},y=function e(t,n){var a,o,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==n&&(a=n.label,o=n.target);var d=b(t,n,l),p=d||h(f),y=!p("as");return function(){var g=arguments,m=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&m.push("label:"+a+";"),null==g[0]||void 0===g[0].raw)m.push.apply(m,g);else{m.push(g[0][0]);for(var w=g.length,_=1;_<w;_++)m.push(g[_],g[0][_])}var S=(0,u.w)((function(e,t,n){var r=y&&e.as||f,a="",l=[],b=e;if(null==e.theme){for(var g in b={},e)b[g]=e[g];b.theme=i.useContext(u.T)}"string"==typeof e.className?a=(0,s.Rk)(t.registered,l,e.className):null!=e.className&&(a=e.className+" ");var w=(0,c.J)(m.concat(l),t.registered,b);a+=t.key+"-"+w.name,void 0!==o&&(a+=" "+o);var _=y&&void 0===d?h(r):p,S={};for(var k in e)y&&"as"===k||_(k)&&(S[k]=e[k]);return S.className=a,n&&(S.ref=n),i.createElement(i.Fragment,null,i.createElement(v,{cache:t,serialized:w,isStringTag:"string"==typeof r}),i.createElement(r,S))}));return S.displayName=void 0!==a?a:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=f,S.__emotion_styles=m,S.__emotion_forwardProp=d,Object.defineProperty(S,"toString",{value:function(){return"."+o}}),S.withComponent=function(t,i){return e(t,(0,r.A)({},n,i,{shouldForwardProp:b(S,i,!0)})).apply(void 0,m)},S}}.bind();function g(e,t){return y(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){y[e]=y(e)}));const m=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},53173:(e,t,n)=>{n.d(t,{A:()=>u,b:()=>l});var r=n(7552),i=n(80007),a=n(69500);const o=r.createContext(void 0);function l({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?(0,i.A)(a.defaultProps,r):a.styleOverrides||a.variants?r:(0,i.A)(a,r)}({props:e,name:t,theme:{components:r.useContext(o)}})}const u=function({value:e,children:t}){return(0,a.jsx)(o.Provider,{value:e,children:t})}},43059:(e,t,n)=>{n.d(t,{EU:()=>s,NI:()=>u,iZ:()=>f,kW:()=>d,vf:()=>c,zu:()=>a});var r=n(78745),i=n(91939);const a={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${a[e]}px)`},l={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:a[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function u(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((o,u)=>{if((0,i.ob)(e.keys,u)){const e=(0,i.CT)(r.containerQueries?r:l,u);e&&(o[e]=n(t[u],u))}else if(Object.keys(e.values||a).includes(u))o[e.up(u)]=n(t[u],u);else{const e=u;o[e]=t[e]}return o}),{})}return n(t)}function s(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}function c(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function f(e,...t){const n=s(e),i=[n,...t].reduce(((e,t)=>(0,r.A)(e,t)),{});return c(Object.keys(n),i)}function d({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let a;return i.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}},72639:(e,t,n)=>{n.d(t,{Cg:()=>b,E2:()=>o,J1:()=>d,Me:()=>u,Nd:()=>y,Ob:()=>c,X0:()=>s,X4:()=>h,Y9:()=>_,YL:()=>f,a:()=>g,e$:()=>v,eM:()=>p,j4:()=>m,rP:()=>l,tL:()=>w});var r=n(51569),i=n(93801);function a(e,t=0,n=1){return(0,i.A)(e,t,n)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(o(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error((0,r.A)(9,e));let i,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),i=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error((0,r.A)(10,i))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:i}}const u=(e,t)=>{try{return(e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(t){return e}};function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function c(e){if(e.startsWith("#"))return e;const{values:t}=l(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`}function f(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function d(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(f(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){const n=d(e),r=d(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function b(e,t,n){try{return h(e,t)}catch(t){return e}}function v(e,t){if(e=l(e),t=a(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function y(e,t,n){try{return v(e,t)}catch(t){return e}}function g(e,t){if(e=l(e),t=a(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function m(e,t,n){try{return g(e,t)}catch(t){return e}}function w(e,t=.15){return d(e)>.5?v(e,t):g(e,t)}function _(e,t,n){try{return w(e,t)}catch(t){return e}}},92271:(e,t,n)=>{n.d(t,{A:()=>i});const r=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})};function i(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...a}=e,o=r(t),l=Object.keys(o);function u(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-i/100}${n})`}function c(e,r){const a=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[l[a]]?t[l[a]]:r)-i/100}${n})`}return{keys:l,values:o,up:u,down:s,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):u(e)},not:function(e){const t=l.indexOf(e);return 0===t?u(l[1]):t===l.length-1?s(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...a}}},15543:(e,t,n)=>{n.d(t,{Ay:()=>h});var r=n(53791),i=n(78745),a=n(72861),o=n(76795);const l=(0,a.A)();function u(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function s(e,t,n){return function(e){for(const t in e)return!1;return!0}(t)?n:t[e]||t}const c=Symbol("mui.processed_props");function f(e,t,n){if(c in e)return e[c];const r={...e,theme:s(t,e.theme,n)};return e[c]=r,r[c]=r,r}function d(e){return e?(t,n)=>n[e]:null}function p(e,t){const n="function"==typeof e?e(t):e;if(Array.isArray(n))return n.flatMap((e=>p(e,t)));if(Array.isArray(n?.variants)){const{variants:e,...r}=n;let i,a=r;e:for(let n=0;n<e.length;n+=1){const r=e[n];if("function"==typeof r.props){if(i??={...t,...t.ownerState,ownerState:t.ownerState},!r.props(i))continue}else for(const e in r.props)if(t[e]!==r.props[e]&&t.ownerState?.[e]!==r.props[e])continue e;Array.isArray(a)||(a=[a]),"function"==typeof r.style?(i??={...t,...t.ownerState,ownerState:t.ownerState},a.push(r.style(i))):a.push(r.style)}return a}return n}function h(e={}){const{themeId:t,defaultTheme:n=l,rootShouldForwardProp:a=u,slotShouldForwardProp:c=u}=e,h=e=>(0,o.A)(f(e,t,n));return h.__mui_systemSx=!0,(e,o={})=>{(0,r.q_)(e,(e=>e.filter((e=>!e?.__mui_systemSx))));const{name:l,slot:v,skipVariantsResolver:y,skipSx:g,overridesResolver:m=d(b(v)),...w}=o,_=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,S=g||!1;let k=u;"Root"===v||"root"===v?k=a:v?k=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const O=(0,r.Ay)(e,{shouldForwardProp:k,label:void 0,...w}),P=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.Q)(e)?r=>p(e,f(r,t,n)):e,A=(r,...i)=>{let a=P(r);const o=i?i.map(P):[];l&&m&&o.push((e=>{const r=s(t,e.theme,n);if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const i=r.components[l].styleOverrides,a={},o=f(e,t,n);for(const e in i)a[e]=p(i[e],o);return m(e,a)})),l&&!_&&o.push((e=>{const r=s(t,e.theme,n),i=r?.components?.[l]?.variants;return i?p({variants:i},f(e,t,n)):null})),S||o.push(h);const u=o.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=O(a,...o);return e.muiName&&(c.muiName=e.muiName),c};return O.withConfig&&(A.withConfig=O.withConfig),A}}function b(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}},81459:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(34901);function i(e=8,t=(0,r.LX)({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}},72861:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(78745),i=n(92271),a=n(91939);const o={borderRadius:4};var l=n(81459),u=n(76795),s=n(94177);function c(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const f=function(e={},...t){const{breakpoints:n={},palette:f={},spacing:d,shape:p={},...h}=e,b=(0,i.A)(n),v=(0,l.A)(d);let y=(0,r.A)({breakpoints:b,direction:"ltr",components:{},palette:{mode:"light",...f},spacing:v,shape:{...o,...p}},h);return y=(0,a.Ay)(y),y.applyStyles=c,y=t.reduce(((e,t)=>(0,r.A)(e,t)),y),y.unstable_sxConfig={...s.A,...h?.unstable_sxConfig},y.unstable_sx=function(e){return(0,u.A)({sx:e,theme:this})},y}},91939:(e,t,n)=>{function r(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}function i(e,t){return"@"===t||t.startsWith("@")&&(e.some((e=>t.startsWith(`@${e}`)))||!!t.match(/^@\d/))}function a(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function o(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}n.d(t,{Ay:()=>o,CT:()=>a,_S:()=>r,ob:()=>i})},99091:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(78745);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},34901:(e,t,n)=>{n.d(t,{LX:()=>h,MA:()=>p,_W:()=>b,Lc:()=>y,Ms:()=>g});var r=n(43059),i=n(39995),a=n(99091);const o={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},s=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!u[e])return[e];e=u[e]}const[t,n]=e.split(""),r=o[t],i=l[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})(t)),e[t])}(),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...c,...f];function p(e,t,n,r){const a=(0,i.Yn)(e,t,!0)??n;return"number"==typeof a||"string"==typeof a?e=>"string"==typeof e?e:"string"==typeof a?`calc(${e} * ${a})`:a*e:Array.isArray(a)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=a[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof a?a:()=>{}}function h(e){return p(e,"spacing",8)}function b(e,t){return"string"==typeof t||null==t?t:e(t)}function v(e,t){const n=h(e.theme);return Object.keys(e).map((i=>function(e,t,n,i){if(!t.includes(n))return null;const a=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=b(t,n),e)),{})}(s(n),i),o=e[n];return(0,r.NI)(e,o,a)}(e,t,i,n))).reduce(a.A,{})}function y(e){return v(e,c)}function g(e){return v(e,f)}function m(e){return v(e,d)}y.propTypes={},y.filterProps=c,g.propTypes={},g.filterProps=f,m.propTypes={},m.filterProps=d},39995:(e,t,n)=>{n.d(t,{Ay:()=>l,BO:()=>o,Yn:()=>a});var r=n(33283),i=n(43059);function a(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function o(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(i=t(i,r,e)),i}const l=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:l,transform:u}=e,s=e=>{if(null==e[t])return null;const s=e[t],c=a(e.theme,l)||{};return(0,i.NI)(e,s,(e=>{let i=o(c,u,e);return e===i&&"string"==typeof e&&(i=o(c,u,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return s.propTypes={},s.filterProps=[t],s}},94177:(e,t,n)=>{n.d(t,{A:()=>R});var r=n(34901),i=n(39995),a=n(99091);const o=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,a.A)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var l=n(43059);function u(e){return"number"!=typeof e?e:`${e}px solid`}function s(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const c=s("border",u),f=s("borderTop",u),d=s("borderRight",u),p=s("borderBottom",u),h=s("borderLeft",u),b=s("borderColor"),v=s("borderTopColor"),y=s("borderRightColor"),g=s("borderBottomColor"),m=s("borderLeftColor"),w=s("outline",u),_=s("outlineColor"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,l.NI)(e,e.borderRadius,n)}return null};S.propTypes={},S.filterProps=["borderRadius"],o(c,f,d,p,h,b,v,y,g,m,S,w,_);const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,l.NI)(e,e.gap,n)}return null};k.propTypes={},k.filterProps=["gap"];const O=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,l.NI)(e,e.columnGap,n)}return null};O.propTypes={},O.filterProps=["columnGap"];const P=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,l.NI)(e,e.rowGap,n)}return null};function A(e,t){return"grey"===t?t:e}function x(e){return e<=1&&0!==e?100*e+"%":e}P.propTypes={},P.filterProps=["rowGap"],o(k,O,P,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"})),o((0,i.Ay)({prop:"color",themeKey:"palette",transform:A}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:A}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:A}));const j=(0,i.Ay)({prop:"width",transform:x}),C=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||l.zu[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:x(t)}};return(0,l.NI)(e,e.maxWidth,t)}return null};C.filterProps=["maxWidth"];const E=(0,i.Ay)({prop:"minWidth",transform:x}),T=(0,i.Ay)({prop:"height",transform:x}),N=(0,i.Ay)({prop:"maxHeight",transform:x}),I=(0,i.Ay)({prop:"minHeight",transform:x}),R=((0,i.Ay)({prop:"size",cssProperty:"width",transform:x}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:x}),o(j,C,E,T,N,I,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:u},borderTop:{themeKey:"borders",transform:u},borderRight:{themeKey:"borders",transform:u},borderBottom:{themeKey:"borders",transform:u},borderLeft:{themeKey:"borders",transform:u},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:u},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:A},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:A},backgroundColor:{themeKey:"palette",transform:A},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:P},columnGap:{style:O},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:x},maxWidth:{style:C},minWidth:{transform:x},height:{transform:x},maxHeight:{transform:x},minHeight:{transform:x},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},76795:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(33283),i=n(99091),a=n(39995),o=n(43059),l=n(91939),u=n(94177);const s=function(){function e(e,t,n,i){const l={[e]:t,theme:n},u=i[e];if(!u)return{[e]:t};const{cssProperty:s=e,themeKey:c,transform:f,style:d}=u;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};const p=(0,a.Yn)(n,c)||{};return d?d(l):(0,o.NI)(l,t,(t=>{let n=(0,a.BO)(p,f,t);return t===n&&"string"==typeof t&&(n=(0,a.BO)(p,f,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===s?n:{[s]:n}}))}return function t(n){const{sx:r,theme:a={}}=n||{};if(!r)return null;const s=a.unstable_sxConfig??u.A;function c(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const u=(0,o.EU)(a.breakpoints),c=Object.keys(u);let f=u;return Object.keys(r).forEach((n=>{const l="function"==typeof(u=r[n])?u(a):u;var u;if(null!=l)if("object"==typeof l)if(s[n])f=(0,i.A)(f,e(n,l,a,s));else{const e=(0,o.NI)({theme:a},l,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,l)?f=(0,i.A)(f,e):f[n]=t({sx:l,theme:a})}else f=(0,i.A)(f,e(n,l,a,s))})),(0,l._S)(a,(0,o.vf)(c,f))}return Array.isArray(r)?r.map(c):c(r)}}();s.filterProps=["sx"];const c=s},23043:(e,t,n)=>{n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},33283:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(51569);function i(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},93801:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},70799:(e,t,n)=>{function r(e,t,n=void 0){const r={};for(const i in e){const a=e[i];let o="",l=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(o+=(!0===l?"":" ")+t(r),l=!1,n&&n[r]&&(o+=" "+n[r]))}r[i]=o}return r}n.d(t,{A:()=>r})},78745:(e,t,n)=>{function r(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function i(e){if(!r(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return r(e)&&r(t)&&Object.keys(t).forEach((l=>{r(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&r(e[l])?o[l]=a(e[l],t[l],n):n.clone?o[l]=r(t[l])?i(t[l]):t[l]:o[l]=t[l]})),o}n.d(t,{A:()=>a,Q:()=>r})},51569:(e,t,n)=>{function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},85693:(e,t,n)=>{n.d(t,{Ay:()=>a});var r=n(23043);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t,n="Mui"){const a=i[t];return a?`${n}-${a}`:`${r.A.generate(e)}-${t}`}},33761:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(85693);function i(e,t,n="Mui"){const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},80007:(e,t,n)=>{function r(e,t){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if("components"===a||"slots"===a)n[a]={...e[a],...n[a]};else if("componentsProps"===a||"slotProps"===a){const i=e[a],o=t[a];if(o)if(i){n[a]={...o};for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=e;n[a][t]=r(i[t],o[t])}}else n[a]=o;else n[a]=i||{}}else void 0===n[a]&&(n[a]=e[a])}return n}n.d(t,{A:()=>r})},35068:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function l(e,n,u){(u=u||{}).arrayMerge=u.arrayMerge||i,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(n);return s===Array.isArray(e)?s?u.arrayMerge(e,n,u):function(e,t,n){var i={};return n.isMergeableObject(e)&&a(e).forEach((function(t){i[t]=r(e[t],n)})),a(t).forEach((function(a){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(o(e,a)&&n.isMergeableObject(t[a])?i[a]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(a,n)(e[a],t[a],n):i[a]=r(t[a],n))})),i}(e,n,u):r(n,u)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var u=l;e.exports=u},78245:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(35451);function i(e){return("object"==typeof e&&null!==e&&"message"in e?e.message:`${e}`).replace(/\.$/,"")}class a{async getBufferFromResponse(e){const t=await e.arrayBuffer();return r.hp.from(t)}constructor(e,t={}){this.baseOverrides={},this.url=e;const n=t.fetch||globalThis.fetch.bind(globalThis);if(!n)throw new TypeError("no fetch function supplied, and none found in global environment");t.overrides&&(this.baseOverrides=t.overrides),this.fetchImplementation=n}async fetch(e,t){let n;try{n=await this.fetchImplementation(e,t)}catch(r){if(!`${r}`.includes("Failed to fetch"))throw new Error(`${i(r)} fetching ${e}`,{cause:r});console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);try{n=await this.fetchImplementation(e,{...t,cache:"reload"})}catch(t){throw new Error(`${i(t)} fetching ${e}`,{cause:t})}}return n}async read(e,t=0,n,r=0,i={}){const{headers:a={},signal:o,overrides:l={}}=i;n<1/0?a.range=`bytes=${r}-${r+n}`:n===1/0&&0!==r&&(a.range=`bytes=${r}-`);const u=await this.fetch(this.url,{...this.baseOverrides,...l,headers:{...a,...l.headers,...this.baseOverrides.headers},method:"GET",redirect:"follow",mode:"cors",signal:o});if(!u.ok)throw new Error(`HTTP ${u.status} fetching ${this.url}`);if(200===u.status&&0===r||206===u.status){const r=await this.getBufferFromResponse(u),i=r.copy(e,t,0,Math.min(n,r.length)),a=u.headers.get("content-range"),o=/\/(\d+)$/.exec(a||"");return(null==o?void 0:o[1])&&(this._stat={size:parseInt(o[1],10)}),{bytesRead:i,buffer:e}}if(200===u.status)throw new Error(`${this.url} fetch returned status 200, expected 206`);throw new Error(`HTTP ${u.status} fetching ${this.url}`)}async readFile(e={}){let t,n;"string"==typeof e?(t=e,n={}):(t=e.encoding,n=e,delete n.encoding);const{headers:r={},signal:i,overrides:a={}}=n,o=await this.fetch(this.url,{headers:r,method:"GET",redirect:"follow",mode:"cors",signal:i,...this.baseOverrides,...a});if(200!==o.status)throw new Error(`HTTP ${o.status} fetching ${this.url}`);if("utf8"===t)return o.text();if(t)throw new Error(`unsupported encoding: ${t}`);return this.getBufferFromResponse(o)}async stat(){if(!this._stat){const e=r.hp.allocUnsafe(10);if(await this.read(e,0,10,0),!this._stat)throw new Error(`unable to determine size of file at ${this.url}`)}return this._stat}async close(){}}},806:(e,t,n)=>{var r=n(76896),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?o:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var o=c(n);f&&(o=o.concat(f(n)));for(var l=u(t),b=u(n),v=0;v<o.length;++v){var y=o[v];if(!(a[y]||r&&r[y]||b&&b[y]||l&&l[y])){var g=d(n,y);try{s(t,y,g)}catch(e){}}}}return t}},29116:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,b=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,m=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case a:case l:case o:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case v:case b:case u:return e;default:return t}}case i:return t}}}function S(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=b,t.Portal=i,t.Profiler=l,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||_(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===s},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===b},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===o||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===m||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},76896:(e,t,n)=>{e.exports=n(29116)},8167:(e,t,n)=>{n.d(t,{P:()=>d});var r,i,a=n(7552),o=n(89059),l=n(77173),u="function"==typeof Symbol&&Symbol.for,s=null!==(i=null===(r=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===r?void 0:r.configurable)&&void 0!==i&&i,c=u?Symbol.for("react.forward_ref"):"function"==typeof a.forwardRef&&(0,a.forwardRef)((function(e){return null})).$$typeof,f=u?Symbol.for("react.memo"):"function"==typeof a.memo&&(0,a.memo)((function(e){return null})).$$typeof;function d(e,t){var n;if(f&&e.$$typeof===f)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if((0,o.P)())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,i=e,u=e.displayName||e.name;if(c&&e.$$typeof===c&&(r=!0,"function"!=typeof(i=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var d,h,b=function(e,t){return(0,l.q)((function(){return i(e,t)}),u)};return b.displayName=e.displayName,s&&Object.defineProperty(b,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(b.contextTypes=e.contextTypes),r&&(b=(0,a.forwardRef)(b)),b=(0,a.memo)(b),d=e,h=b,Object.keys(d).forEach((function(e){p[e]||Object.defineProperty(h,e,Object.getOwnPropertyDescriptor(d,e))})),b}var p={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0}},36422:(e,t,n)=>{n.r(t),n.d(t,{addDisposer:()=>K,addMiddleware:()=>Ee,applyAction:()=>we,applyPatch:()=>w,applySnapshot:()=>P,cast:()=>X,castFlowReturn:()=>It,castToReferenceSnapshot:()=>Z,castToSnapshot:()=>J,clone:()=>B,createActionTrackingMiddleware:()=>ve,createActionTrackingMiddleware2:()=>ge,decorate:()=>Te,destroy:()=>H,detach:()=>U,escapeJsonPath:()=>zt,flow:()=>Nt,getChildType:()=>y,getEnv:()=>G,getIdentifier:()=>D,getLivelinessChecking:()=>l,getMembers:()=>Y,getNodeId:()=>ee,getParent:()=>j,getParentOfType:()=>E,getPath:()=>N,getPathParts:()=>I,getPropertyMembers:()=>Q,getRelativePath:()=>F,getRoot:()=>T,getRunningActionContext:()=>Ie,getSnapshot:()=>A,getType:()=>v,hasParent:()=>x,hasParentOfType:()=>C,isActionContextChildOf:()=>Me,isActionContextThisOrChildOf:()=>Le,isAlive:()=>W,isArrayType:()=>en,isFrozenType:()=>$n,isIdentifierType:()=>Zn,isLateType:()=>Ln,isLiteralType:()=>Sn,isMapType:()=>Qt,isModelType:()=>ln,isOptionalType:()=>Tn,isPrimitiveType:()=>mn,isProtected:()=>O,isReferenceType:()=>Gn,isRefinementType:()=>On,isRoot:()=>R,isStateTreeNode:()=>Ye,isType:()=>pe,isUnionType:()=>xn,isValidReference:()=>V,joinJsonPath:()=>$t,onAction:()=>Se,onPatch:()=>g,onSnapshot:()=>m,process:()=>lt,protect:()=>S,recordActions:()=>_e,recordPatches:()=>_,resolveIdentifier:()=>L,resolvePath:()=>M,setLivelinessChecking:()=>o,setLivelynessChecking:()=>u,splitJsonPath:()=>Ft,t:()=>rr,toGenerator:()=>Mt,toGeneratorFunction:()=>Rt,tryReference:()=>z,tryResolve:()=>$,typecheck:()=>He,types:()=>rr,unescapeJsonPath:()=>Vt,unprotect:()=>k,walk:()=>q});var r,i=n(42489),a="warn";function o(e){a=e}function l(){return a}function u(e){o(e)}!function(e){e.afterCreate="afterCreate",e.afterAttach="afterAttach",e.afterCreationFinalization="afterCreationFinalization",e.beforeDetach="beforeDetach",e.beforeDestroy="beforeDestroy"}(r||(r={}));var s=function(e,t){return s=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])},s(e,t)};function c(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}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)};function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function p(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,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function v(e){return Xe(e,1),Je(e).type}function y(e,t){return Xe(e,1),Je(e).getChildType(t)}function g(e,t){return Xe(e,1),jt(),Je(e).onPatch(t)}function m(e,t){return Xe(e,1),jt(),Je(e).onSnapshot(t)}function w(e,t){Xe(e,1),xt(),Je(e).applyPatches(vt(t))}function _(e,t){Xe(e,1);var n,r={patches:[],inversePatches:[]},i={},a={get recording(){return!!n},get patches(){return i.patches||(i.patches=r.patches.slice()),i.patches},get reversedInversePatches(){return i.reversedInversePatches||(i.reversedInversePatches=r.inversePatches.slice().reverse()),i.reversedInversePatches},get inversePatches(){return i.inversePatches||(i.inversePatches=r.inversePatches.slice()),i.inversePatches},stop:function(){n&&(n(),n=void 0)},resume:function(){n||(n=g(e,(function(e,n){t&&!t(e,n,Ie())||(r.patches.push(e),r.inversePatches.push(n),i.patches=void 0,i.inversePatches=void 0,i.reversedInversePatches=void 0)})))},replay:function(t){w(t||e,r.patches)},undo:function(t){w(t||e,r.inversePatches.slice().reverse())}};return a.resume(),a}function S(e){Xe(e,1);var t=Je(e);if(!t.isRoot)throw dt("`protect` can only be invoked on root nodes");t.isProtectionEnabled=!0}function k(e){Xe(e,1);var t=Je(e);if(!t.isRoot)throw dt("`unprotect` can only be invoked on root nodes");t.isProtectionEnabled=!1}function O(e){return Je(e).isProtected}function P(e,t){return Xe(e,1),Je(e).applySnapshot(t)}function A(e,t){void 0===t&&(t=!0),Xe(e,1);var n=Je(e);return t?n.snapshot:n.type.getSnapshot(n,!1)}function x(e,t){void 0===t&&(t=1),Xe(e,1),Ct(0,0,0);for(var n=Je(e).parent;n;){if(0==--t)return!0;n=n.parent}return!1}function j(e,t){void 0===t&&(t=1),Xe(e,1),Ct(0,0,0);for(var n=t,r=Je(e).parent;r;){if(0==--n)return r.storedValue;r=r.parent}throw dt("Failed to find the parent of "+Je(e)+" at depth "+t)}function C(e,t){Xe(e,1),he(t,2);for(var n=Je(e).parent;n;){if(t.is(n.storedValue))return!0;n=n.parent}return!1}function E(e,t){Xe(e,1),he(t,2);for(var n=Je(e).parent;n;){if(t.is(n.storedValue))return n.storedValue;n=n.parent}throw dt("Failed to find the parent of "+Je(e)+" of a given type")}function T(e){return Xe(e,1),Je(e).root.storedValue}function N(e){return Xe(e,1),Je(e).path}function I(e){return Xe(e,1),Ft(Je(e).path)}function R(e){return Xe(e,1),Je(e).isRoot}function M(e,t){Xe(e,1),Et();var n=rt(Je(e),t);return n?n.value:void 0}function L(e,t,n){he(e,1),Xe(t,2),xt();var r=Je(t).root.identifierCache.resolve(e,er(n));return null==r?void 0:r.value}function D(e){return Xe(e,1),Je(e).identifier}function z(e,t){void 0===t&&(t=!0);try{var n=e();if(null==n)return;if(Ye(n))return t?W(n)?n:void 0:n;throw dt("The reference to be checked is not one of node, null or undefined")}catch(e){if(e instanceof Bn)return;throw e}}function V(e,t){void 0===t&&(t=!0);try{var n=e();if(null==n)return!1;if(Ye(n))return!t||W(n);throw dt("The reference to be checked is not one of node, null or undefined")}catch(e){if(e instanceof Bn)return!1;throw e}}function $(e,t){Xe(e,1),Et();var n=rt(Je(e),t,!1);if(void 0!==n)try{return n.value}catch(e){return}}function F(e,t){return Xe(e,1),Xe(t,2),nt(Je(e),Je(t))}function B(e,t){void 0===t&&(t=!0),Xe(e,1);var n=Je(e);return n.type.create(n.snapshot,!0===t?n.root.environment:!1===t?void 0:t)}function U(e){return Xe(e,1),Je(e).detach(),e}function H(e){Xe(e,1);var t=Je(e);t.isRoot?t.die():t.parent.removeChild(t.subpath)}function W(e){return Xe(e,1),Je(e).observableIsAlive}function K(e,t){return Xe(e,1),jt(),Je(e).addDisposer(t),t}function G(e){return Xe(e,1),Je(e).root.environment||ct}function q(e,t){Xe(e,1),jt();var n=Je(e);n.getChildren().forEach((function(e){Ye(e.storedValue)&&q(e.storedValue,t)})),t(n.storedValue)}function Q(e){var t;return xt(t=Ye(e)?v(e):e),{name:t.name,properties:f({},t.properties)}}function Y(e){var t=Je(e).type,n=f(f({},Q(t)),{actions:[],volatile:[],views:[],flowActions:[]});return Object.getOwnPropertyNames(e).forEach((function(t){if(!(t in n.properties)){var r=Object.getOwnPropertyDescriptor(e,t);r.get?(0,i.isComputedProp)(e,t)?n.views.push(t):n.volatile.push(t):(!0===r.value._isFlowAction&&n.flowActions.push(t),!0===r.value._isMSTAction?n.actions.push(t):(0,i.isObservableProp)(e,t)?n.volatile.push(t):n.views.push(t))}})),n}function X(e){return e}function J(e){return e}function Z(e){return e}function ee(e){return Xe(e,1),Je(e).nodeId}var te=function(){function e(e,t,n,r){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"environment",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_escapedSubpath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_subpath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_subpathUponDeath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pathUponDeath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storedValue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"aliveAtom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_state",{enumerable:!0,configurable:!0,writable:!0,value:We.INITIALIZING}),Object.defineProperty(this,"_hookSubscribers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pathAtom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.environment=r,this.baseSetParent(t,n)}return Object.defineProperty(e.prototype,"subpath",{get:function(){return this._subpath},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subpathUponDeath",{get:function(){return this._subpathUponDeath},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pathUponDeath",{get:function(){return this._pathUponDeath},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.type.getValue(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},set:function(e){var t=this.isAlive;this._state=e;var n=this.isAlive;this.aliveAtom&&t!==n&&this.aliveAtom.reportChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fireInternalHook",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._hookSubscribers&&this._hookSubscribers.emit(e,this,e)}}),Object.defineProperty(e.prototype,"registerHook",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._hookSubscribers||(this._hookSubscribers=new kt),this._hookSubscribers.register(e,t)}}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getReconciliationType",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.type}}),Object.defineProperty(e.prototype,"baseSetParent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._parent=e,this._subpath=t,this._escapedSubpath=void 0,this.pathAtom&&this.pathAtom.reportChanged()}}),Object.defineProperty(e.prototype,"path",{get:function(){return this.getEscapedPath(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getEscapedPath",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e&&(this.pathAtom||(this.pathAtom=(0,i.createAtom)("path")),this.pathAtom.reportObserved()),this.parent?(void 0===this._escapedSubpath&&(this._escapedSubpath=this._subpath?zt(this._subpath):""),this.parent.getEscapedPath(e)+"/"+this._escapedSubpath):""}}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return null===this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAlive",{get:function(){return this.state!==We.DEAD},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetaching",{get:function(){return this.state===We.DETACHING},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"observableIsAlive",{get:function(){return this.aliveAtom||(this.aliveAtom=(0,i.createAtom)("alive")),this.aliveAtom.reportObserved(),this.isAlive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseFinalizeCreation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.state===We.CREATED){if(this.parent){if(this.parent.state!==We.FINALIZED)return;this.fireHook(r.afterAttach)}this.state=We.FINALIZED,e&&e()}}}),Object.defineProperty(e.prototype,"baseFinalizeDeath",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._hookSubscribers&&this._hookSubscribers.clearAll(),this._subpathUponDeath=this._subpath,this._pathUponDeath=this.getEscapedPath(!1),this.baseSetParent(null,""),this.state=We.DEAD}}),Object.defineProperty(e.prototype,"baseAboutToDie",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.fireHook(r.beforeDestroy)}}),e}(),ne=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r,i)||this;try{o.storedValue=t.createNewInstance(a)}catch(e){throw o.state=We.DEAD,e}return o.state=We.CREATED,o.finalizeCreation(),o}return c(t,e),Object.defineProperty(t.prototype,"root",{get:function(){if(!this.parent)throw dt("This scalar node is not part of a tree");return this.parent.root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setParent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.parent!==e,r=this.subpath!==t;(n||r)&&(this.environment=void 0,this.baseSetParent(this.parent,t))}}),Object.defineProperty(t.prototype,"snapshot",{get:function(){return this.getSnapshot()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.type.getSnapshot(this)}}),Object.defineProperty(t.prototype,"toString",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=(this.isAlive?this.path:this.pathUponDeath)||"<root>";return this.type.name+"@"+e+(this.isAlive?"":" [dead]")}}),Object.defineProperty(t.prototype,"die",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isAlive&&this.state!==We.DETACHING&&(this.aboutToDie(),this.finalizeDeath())}}),Object.defineProperty(t.prototype,"finalizeCreation",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.baseFinalizeCreation()}}),Object.defineProperty(t.prototype,"aboutToDie",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.baseAboutToDie()}}),Object.defineProperty(t.prototype,"finalizeDeath",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.baseFinalizeDeath()}}),Object.defineProperty(t.prototype,"fireHook",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.fireInternalHook(e)}}),t}(te);ne.prototype.die=(0,i.action)(ne.prototype.die);var re,ie,ae=1,oe={onError:function(e){throw e}},le=function(e){function t(t,n,r,a,o){var l=e.call(this,t,n,r,a)||this;if(Object.defineProperty(l,"nodeId",{enumerable:!0,configurable:!0,writable:!0,value:++ae}),Object.defineProperty(l,"identifierAttribute",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"identifier",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"unnormalizedIdentifier",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"identifierCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"isProtectionEnabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(l,"middlewares",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"hasSnapshotPostProcessor",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(l,"_applyPatches",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"_applySnapshot",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"_autoUnbox",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(l,"_isRunningAction",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(l,"_hasSnapshotReaction",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(l,"_observableInstanceState",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(l,"_childNodes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"_initialSnapshot",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"_cachedInitialSnapshot",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"_cachedInitialSnapshotCreated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(l,"_snapshotComputed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"_snapshotUponDeath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(l,"_internalEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),l._snapshotComputed=(0,i.computed)((function(){return l.getSnapshot()})),l.unbox=l.unbox.bind(l),l._initialSnapshot=o,l.identifierAttribute=t.identifierAttribute,n||(l.identifierCache=new Ge),l._childNodes=t.initializeChildNodes(l,l._initialSnapshot),l.identifier=null,l.unnormalizedIdentifier=null,l.identifierAttribute&&l._initialSnapshot){var u=l._initialSnapshot[l.identifierAttribute];if(void 0===u){var s=l._childNodes[l.identifierAttribute];s&&(u=s.value)}if("string"!=typeof u&&"number"!=typeof u)throw dt("Instance identifier '"+l.identifierAttribute+"' for type '"+l.type.name+"' must be a string or a number");l.identifier=er(u),l.unnormalizedIdentifier=u}return n?n.root.identifierCache.addNodeToCache(l):l.identifierCache.addNodeToCache(l),l}return c(t,e),Object.defineProperty(t.prototype,"applyPatches",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.createObservableInstanceIfNeeded(),this._applyPatches(e)}}),Object.defineProperty(t.prototype,"applySnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.createObservableInstanceIfNeeded(),this._applySnapshot(e)}}),Object.defineProperty(t.prototype,"createObservableInstanceIfNeeded",{enumerable:!1,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=!0),0===this._observableInstanceState&&this.createObservableInstance(e)}}),Object.defineProperty(t.prototype,"createObservableInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n,i,a;void 0===e&&(e=!0),this._observableInstanceState=1;for(var o=[],l=this.parent;l&&0===l._observableInstanceState;)o.unshift(l),l=l.parent;try{for(var u=p(o),s=u.next();!s.done;s=u.next())(h=s.value).createObservableInstanceIfNeeded(!1)}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=this.type;try{this.storedValue=c.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,c.finalizeNewInstance(this,this.storedValue)}catch(e){throw this.state=We.DEAD,e}finally{this._isRunningAction=!1}if(this._observableInstanceState=2,this._snapshotComputed.trackAndCompute(),this.isRoot&&this._addSnapshotReaction(),this._childNodes=ct,this.state=We.CREATED,e){this.fireHook(r.afterCreate),this.finalizeCreation();try{for(var f=p(o.reverse()),d=f.next();!d.done;d=f.next()){var h;(h=d.value).fireHook(r.afterCreate),h.finalizeCreation()}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}}}}),Object.defineProperty(t.prototype,"root",{get:function(){var e=this.parent;return e?e.root:this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearParent",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.parent){this.fireHook(r.beforeDetach);var e=this.state;this.state=We.DETACHING;var t=this.root,n=t.environment,i=t.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=n,this.identifierCache=i}finally{this.state=e}}}}),Object.defineProperty(t.prototype,"setParent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=e!==this.parent,i=t!==this.subpath;(n||i)&&(n?(this.environment=void 0,e.root.identifierCache.mergeCache(this),this.baseSetParent(e,t),this.fireHook(r.afterAttach)):i&&this.baseSetParent(this.parent,t))}}),Object.defineProperty(t.prototype,"fireHook",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;this.fireInternalHook(e);var n=this.storedValue&&"object"==typeof this.storedValue&&this.storedValue[e];"function"==typeof n&&(i._allowStateChangesInsideComputed?(0,i._allowStateChangesInsideComputed)((function(){n.apply(t.storedValue)})):n.apply(this.storedValue))}}),Object.defineProperty(t.prototype,"snapshot",{get:function(){return this.hasSnapshotPostProcessor&&this.createObservableInstanceIfNeeded(),this._snapshotComputed.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.isAlive?2===this._observableInstanceState?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath}}),Object.defineProperty(t.prototype,"_getActualSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.type.getSnapshot(this)}}),Object.defineProperty(t.prototype,"_getCachedInitialSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(!this._cachedInitialSnapshotCreated){var e=this.type,t=this._childNodes,n=this._initialSnapshot;this._cachedInitialSnapshot=e.processInitialSnapshot(t,n),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot}}),Object.defineProperty(t.prototype,"isRunningAction",{enumerable:!1,configurable:!0,writable:!0,value:function(){return!!this._isRunningAction||!this.isRoot&&this.parent.isRunningAction()}}),Object.defineProperty(t.prototype,"assertAlive",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n=l();if(!this.isAlive&&"ignore"!==n){var r=this._getAssertAliveError(e);switch(n){case"error":throw dt(r);case"warn":t=r,console.warn(new Error("[mobx-state-tree] "+t))}}}}),Object.defineProperty(t.prototype,"_getAssertAliveError",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.getEscapedPath(!1)||this.pathUponDeath||"",n=e.subpath&&zt(e.subpath)||"",r=e.actionContext||Pe();r&&"action"!==r.type&&r.parentActionEvent&&(r=r.parentActionEvent);var i="";return r&&null!=r.name&&(i=(r&&r.context&&N(r.context)||t)+"."+r.name+"()"),"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+t+"', Subpath: '"+n+"', Action: '"+i+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."}}),Object.defineProperty(t.prototype,"getChildNode",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.assertAlive({subpath:e}),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildNode(this,e):this._childNodes[e]}finally{this._autoUnbox=!0}}}),Object.defineProperty(t.prototype,"getChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.assertAlive(ct),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildren(this):at(this._childNodes)}finally{this._autoUnbox=!0}}}),Object.defineProperty(t.prototype,"getChildType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.type.getChildType(e)}}),Object.defineProperty(t.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"assertWritable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.assertAlive(e),!this.isRunningAction()&&this.isProtected)throw dt("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")}}),Object.defineProperty(t.prototype,"removeChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.type.removeChild(this,e)}}),Object.defineProperty(t.prototype,"unbox",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e?(this.assertAlive({subpath:e.subpath||e.subpathUponDeath}),this._autoUnbox?e.value:e):e}}),Object.defineProperty(t.prototype,"toString",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=(this.isAlive?this.path:this.pathUponDeath)||"<root>",t=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+e+t+(this.isAlive?"":" [dead]")}}),Object.defineProperty(t.prototype,"finalizeCreation",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.baseFinalizeCreation((function(){var t,n;try{for(var i=p(e.getChildren()),a=i.next();!a.done;a=i.next())a.value.finalizeCreation()}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}e.fireInternalHook(r.afterCreationFinalization)}))}}),Object.defineProperty(t.prototype,"detach",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(!this.isAlive)throw dt("Error while detaching, node is not alive.");this.clearParent()}}),Object.defineProperty(t.prototype,"preboot",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this._applyPatches=Ce(this.storedValue,"@APPLY_PATCHES",(function(t){t.forEach((function(t){if(t.path){var n=Ft(t.path);it(e,n.slice(0,-1)).applyPatchLocally(n[n.length-1],t)}else e.type.applySnapshot(e,t.value)}))})),this._applySnapshot=Ce(this.storedValue,"@APPLY_SNAPSHOT",(function(t){if(t!==e.snapshot)return e.type.applySnapshot(e,t)})),_t(this.storedValue,"$treenode",this),_t(this.storedValue,"toJSON",et)}}),Object.defineProperty(t.prototype,"die",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isAlive&&this.state!==We.DETACHING&&(this.aboutToDie(),this.finalizeDeath())}}),Object.defineProperty(t.prototype,"aboutToDie",{enumerable:!1,configurable:!0,writable:!0,value:function(){0!==this._observableInstanceState&&(this.getChildren().forEach((function(e){e.aboutToDie()})),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))}}),Object.defineProperty(t.prototype,"finalizeDeath",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.getChildren().forEach((function(e){e.finalizeDeath()})),this.root.identifierCache.notifyDied(this);var e=this.snapshot;this._snapshotUponDeath=e,this._internalEventsClearAll(),this.baseFinalizeDeath()}}),Object.defineProperty(t.prototype,"onSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",e)}}),Object.defineProperty(t.prototype,"emitSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._internalEventsEmit("snapshot",e)}}),Object.defineProperty(t.prototype,"onPatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._internalEventsRegister("patch",e)}}),Object.defineProperty(t.prototype,"emitPatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(this._internalEventsHasSubscribers("patch")){var n=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var a in i)e[a]=i[a]}return e}({},e,{path:t.path.substr(this.path.length)+"/"+e.path}),r=h(function(e){if(!("oldValue"in e))throw dt("Patches without `oldValue` field cannot be inversed");return[Lt(e),Dt(e)]}(n),2),i=r[0],a=r[1];this._internalEventsEmit("patch",i,a)}this.parent&&this.parent.emitPatch(e,t)}}),Object.defineProperty(t.prototype,"hasDisposer",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._internalEventsHas("dispose",e)}}),Object.defineProperty(t.prototype,"addDisposer",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.hasDisposer(e))throw dt("cannot add a disposer when it is already registered for execution");this._internalEventsRegister("dispose",e,!0)}}),Object.defineProperty(t.prototype,"removeDisposer",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!this._internalEventsHas("dispose",e))throw dt("cannot remove a disposer which was never registered for execution");this._internalEventsUnregister("dispose",e)}}),Object.defineProperty(t.prototype,"removeMiddleware",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.middlewares){var t=this.middlewares.indexOf(e);t>=0&&this.middlewares.splice(t,1)}}}),Object.defineProperty(t.prototype,"addMiddleWare",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this;void 0===t&&(t=!0);var r={handler:e,includeHooks:t};return this.middlewares?this.middlewares.push(r):this.middlewares=[r],function(){n.removeMiddleware(r)}}}),Object.defineProperty(t.prototype,"applyPatchLocally",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.assertWritable({subpath:e}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,e,t)}}),Object.defineProperty(t.prototype,"_addSnapshotReaction",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;if(!this._hasSnapshotReaction){var t=(0,i.reaction)((function(){return e.snapshot}),(function(t){return e.emitSnapshot(t)}),oe);this.addDisposer(t),this._hasSnapshotReaction=!0}}}),Object.defineProperty(t.prototype,"_internalEventsHasSubscribers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!this._internalEvents&&this._internalEvents.hasSubscribers(e)}}),Object.defineProperty(t.prototype,"_internalEventsRegister",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){return void 0===n&&(n=!1),this._internalEvents||(this._internalEvents=new kt),this._internalEvents.register(e,t,n)}}),Object.defineProperty(t.prototype,"_internalEventsHas",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return!!this._internalEvents&&this._internalEvents.has(e,t)}}),Object.defineProperty(t.prototype,"_internalEventsUnregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._internalEvents&&this._internalEvents.unregister(e,t)}}),Object.defineProperty(t.prototype,"_internalEventsEmit",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this._internalEvents&&(t=this._internalEvents).emit.apply(t,b([e],n))}}),Object.defineProperty(t.prototype,"_internalEventsClear",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._internalEvents&&this._internalEvents.clear(e)}}),Object.defineProperty(t.prototype,"_internalEventsClearAll",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._internalEvents&&this._internalEvents.clearAll()}}),t}(te);le.prototype.createObservableInstance=(0,i.action)(le.prototype.createObservableInstance),le.prototype.detach=(0,i.action)(le.prototype.detach),le.prototype.die=(0,i.action)(le.prototype.die),function(e){e[e.String=1]="String",e[e.Number=2]="Number",e[e.Boolean=4]="Boolean",e[e.Date=8]="Date",e[e.Literal=16]="Literal",e[e.Array=32]="Array",e[e.Map=64]="Map",e[e.Object=128]="Object",e[e.Frozen=256]="Frozen",e[e.Optional=512]="Optional",e[e.Reference=1024]="Reference",e[e.Identifier=2048]="Identifier",e[e.Late=4096]="Late",e[e.Refinement=8192]="Refinement",e[e.Union=16384]="Union",e[e.Null=32768]="Null",e[e.Undefined=65536]="Undefined",e[e.Integer=131072]="Integer",e[e.Custom=262144]="Custom",e[e.SnapshotProcessor=524288]="SnapshotProcessor",e[e.Lazy=1048576]="Lazy",e[e.Finite=2097152]="Finite",e[e.Float=4194304]="Float"}(ie||(ie={}));var ue="cannotDetermine",se=Symbol("$type"),ce=function(){function e(e){Object.defineProperty(this,re,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"C",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"S",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"T",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"N",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isType",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e}return Object.defineProperty(e.prototype,"create",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return Ue(this,e),this.instantiate(null,"",t,e).value}}),Object.defineProperty(e.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw dt("unimplemented method")}}),Object.defineProperty(e.prototype,"isAssignableFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e===this}}),Object.defineProperty(e.prototype,"validate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(Ze(e)){var n=v(e);return this.isAssignableFrom(n)?$e():Fe(t,e)}return this.isValidSnapshot(e,t)}}),Object.defineProperty(e.prototype,"is",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return 0===this.validate(e,[{path:"",type:this}]).length}}),Object.defineProperty(e.prototype,"Type",{get:function(){throw dt("Factory.Type should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.Type`")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"TypeWithoutSTN",{get:function(){throw dt("Factory.TypeWithoutSTN should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.TypeWithoutSTN`")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SnapshotType",{get:function(){throw dt("Factory.SnapshotType should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.SnapshotType`")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CreationType",{get:function(){throw dt("Factory.CreationType should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.CreationType`")},enumerable:!1,configurable:!0}),e}();re=se,ce.prototype.create=(0,i.action)(ce.prototype.create);var fe=function(e){function t(t){var n=e.call(this,t)||this;return Object.defineProperty(n,"identifierAttribute",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n}return c(t,e),Object.defineProperty(t.prototype,"create",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){return void 0===t&&(t=this.getDefaultSnapshot()),e.prototype.create.call(this,t,n)}}),Object.defineProperty(t.prototype,"getValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.createObservableInstanceIfNeeded(),e.storedValue}}),Object.defineProperty(t.prototype,"isMatchingSnapshotId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return!e.identifierAttribute||e.identifier===er(t[e.identifierAttribute])}}),Object.defineProperty(t.prototype,"tryToReconcileNode",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return!(e.isDetaching||e.snapshot!==t&&(!Ye(t)||Je(t)!==e)&&(e.type!==this||!gt(t)||Ye(t)||!this.isMatchingSnapshotId(e,t)||(e.applySnapshot(t),0)))}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){if(this.tryToReconcileNode(e,t))return e.setParent(n,r),e;if(e.die(),Ye(t)&&this.isAssignableFrom(v(t))){var i=Je(t);return i.setParent(n,r),i}return this.instantiate(n,r,void 0,t)}}),Object.defineProperty(t.prototype,"getSubTypes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return null}}),t}(ce);fe.prototype.create=(0,i.action)(fe.prototype.create);var de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"createNewInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e}}),Object.defineProperty(t.prototype,"getValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.storedValue}}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.storedValue}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){if(!e.isDetaching&&e.type===this&&e.storedValue===t)return e;var i=this.instantiate(n,r,void 0,t);return e.die(),i}}),Object.defineProperty(t.prototype,"getSubTypes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return null}}),t}(ce);function pe(e){return"object"==typeof e&&e&&!0===e.isType}function he(e,t){xt()}var be=new Map;function ve(e){return function(t,n,r){switch(t.type){case"action":if(e.filter&&!0!==e.filter(t))return n(t);var i=e.onStart(t);e.onResume(t,i),be.set(t.id,{call:t,context:i,async:!1});try{var a=n(t);return e.onSuspend(t,i),!1===be.get(t.id).async&&(be.delete(t.id),e.onSuccess(t,i,a)),a}catch(n){throw be.delete(t.id),e.onFail(t,i,n),n}case"flow_spawn":return(o=be.get(t.rootId)).async=!0,n(t);case"flow_resume":case"flow_resume_error":var o=be.get(t.rootId);e.onResume(t,o.context);try{return n(t)}finally{e.onSuspend(t,o.context)}case"flow_throw":return o=be.get(t.rootId),be.delete(t.rootId),e.onFail(t,o.context,t.args[0]),n(t);case"flow_return":return o=be.get(t.rootId),be.delete(t.rootId),e.onSuccess(t,o.context,t.args[0]),n(t)}}}var ye=function(){function e(e,t){Object.defineProperty(this,"hooks",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"call",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"flowsPending",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"running",{enumerable:!0,configurable:!0,writable:!0,value:!0}),e&&e.onStart(t)}return Object.defineProperty(e.prototype,"finish",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.running&&(this.running=!1,this.hooks&&this.hooks.onFinish(this.call,e))}}),Object.defineProperty(e.prototype,"incFlowsPending",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.flowsPending++}}),Object.defineProperty(e.prototype,"decFlowsPending",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.flowsPending--}}),Object.defineProperty(e.prototype,"hasFlowsPending",{get:function(){return this.flowsPending>0},enumerable:!1,configurable:!0}),e}();function ge(e){var t=new Map;return function(n,r){var i=n.parentActionEvent?t.get(n.parentActionEvent.id):void 0;if("action"===n.type){var a=f(f({},n),{env:i&&i.call.env,parentCall:i&&i.call}),o=!e.filter||e.filter(a),l=new ye(o?e:void 0,a);t.set(n.id,l);var u=void 0;try{u=r(n)}catch(e){throw t.delete(n.id),l.finish(e),e}return l.hasFlowsPending||(t.delete(n.id),l.finish()),u}if(!i)return r(n);switch(n.type){case"flow_spawn":return i.incFlowsPending(),r(n);case"flow_resume":case"flow_resume_error":return r(n);case"flow_throw":var s=n.args[0];try{return r(n)}finally{i.decFlowsPending(),i.hasFlowsPending||(t.delete(n.parentActionEvent.id),i.finish(s))}case"flow_return":try{return r(n)}finally{i.decFlowsPending(),i.hasFlowsPending||(t.delete(n.parentActionEvent.id),i.finish())}}}}function me(e){return{$MST_UNSERIALIZABLE:!0,type:e}}function we(e,t){Xe(e,1),xt(),(0,i.runInAction)((function(){vt(t).forEach((function(t){return function(e,t){var n=$(e,t.path||"");if(!n)throw dt("Invalid action path: "+(t.path||""));var r=Je(n);if("@APPLY_PATCHES"===t.name)return w.call(null,n,t.args[0]);if("@APPLY_SNAPSHOT"===t.name)return P.call(null,n,t.args[0]);if("function"!=typeof n[t.name])throw dt("Action '"+t.name+"' does not exist in '"+r.path+"'");return n[t.name].apply(n,t.args?t.args.map((function(e){return(t=e)&&"object"==typeof t&&"$MST_DATE"in t?new Date(t.$MST_DATE):t;var t})):[])}(e,t)}))}))}function _e(e,t){Xe(e,1);var n,r=[],i=function(e){(!t||t(e,Ie()))&&r.push(e)},a={actions:r,get recording(){return!!n},stop:function(){n&&(n(),n=void 0)},resume:function(){n||(n=Se(e,i))},replay:function(e){we(e,r)}};return a.resume(),a}function Se(e,t,n){return void 0===n&&(n=!1),Xe(e,1),Ee(e,(function(r,i){if("action"===r.type&&r.id===r.rootId){var a=Je(r.context),o={name:r.name,path:nt(Je(e),a),args:r.args.map((function(e,t){return function(e,t,n,r){if(r instanceof Date)return{$MST_DATE:r.getTime()};if(mt(r))return r;if(Ye(r))return me("[MSTNode: "+v(r).name+"]");if("function"==typeof r)return me("[function]");if("object"==typeof r&&!yt(r)&&!bt(r))return me("[object "+(r&&r.constructor&&r.constructor.name||"Complex Object")+"]");try{return JSON.stringify(r),r}catch(e){return me(""+e)}}(0,r.name,0,e)}))};if(n){var l=i(r);return t(o),l}return t(o),i(r)}return i(r)}))}var ke,Oe=1;function Pe(){return ke}function Ae(){return Oe++}function xe(e,t){var n=Je(e.context);"action"===e.type&&n.assertAlive({actionContext:e});var a=n._isRunningAction;n._isRunningAction=!0;var o=ke;ke=e;try{return function(e,t,n){var a=new Ne(e,n);if(a.isEmpty)return(0,i.action)(n).apply(null,t.args);var o=null;return function e(t){var l=a.getNextMiddleware(),u=l&&l.handler;return u?!l.includeHooks&&r[t.name]?e(t):(u(t,(function(t,n){o=e(t),n&&(o=n(o))}),(function(e){o=e})),o):(0,i.action)(n).apply(null,t.args)}(t)}(n,e,t)}finally{ke=o,n._isRunningAction=a}}function je(e){if(e)return"action"===e.type?e:e.parentActionEvent}function Ce(e,t,n){var r=function(){var r=Ae(),i=ke,a=je(i);return xe({type:"action",name:t,id:r,args:Ot(arguments),context:e,tree:T(e),rootId:i?i.rootId:r,parentId:i?i.id:0,allParentIds:i?b(i.allParentIds,[i.id]):[],parentEvent:i,parentActionEvent:a},n)};return r._isMSTAction=!0,r._isFlowAction=n._isFlowAction,r}function Ee(e,t,n){return void 0===n&&(n=!0),Je(e).addMiddleWare(t,n)}function Te(e,t,n){void 0===n&&(n=!0);var r={handler:e,includeHooks:n};return t.$mst_middleware=t.$mst_middleware||[],t.$mst_middleware.push(r),t}var Ne=function(){function e(e,t){Object.defineProperty(this,"arrayIndex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"inArrayIndex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"middlewares",{enumerable:!0,configurable:!0,writable:!0,value:[]}),t.$mst_middleware&&this.middlewares.push(t.$mst_middleware);for(var n=e;n;)n.middlewares&&this.middlewares.push(n.middlewares),n=n.parent}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getNextMiddleware",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.middlewares[this.arrayIndex];if(e)return e[this.inArrayIndex++]||(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())}}),e}();function Ie(){for(var e=Pe();e&&"action"!==e.type;)e=e.parentActionEvent;return e}function Re(e,t,n){for(var r="number"==typeof t?t:t.id,i=n?e:e.parentActionEvent;i;){if(i.id===r)return!0;i=i.parentActionEvent}return!1}function Me(e,t){return Re(e,t,!1)}function Le(e,t){return Re(e,t,!0)}function De(e){return"function"==typeof e?"<function"+(e.name?" "+e.name:"")+">":Ye(e)?"<"+e+">":"`"+function(e){try{return JSON.stringify(e)}catch(e){return"<Unserializable: "+e+">"}}(e)+"`"}function ze(e){var t=e.value,n=e.context[e.context.length-1].type,r=e.context.map((function(e){return e.path})).filter((function(e){return e.length>0})).join("/"),i=r.length>0?'at path "/'+r+'" ':"",a=Ye(t)?"value of type "+Je(t).type.name+":":mt(t)?"value":"snapshot",o=n&&Ye(t)&&n.is(Je(t).snapshot);return""+i+a+" "+De(t)+" is not assignable "+(n?"to type: `"+n.name+"`":"")+(e.message?" ("+e.message+")":"")+(n?mn(n)||mt(t)?".":", expected an instance of `"+n.name+"` or a snapshot like `"+n.describe()+"` instead."+(o?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function Ve(e,t,n){return e.concat([{path:t,type:n}])}function $e(){return st}function Fe(e,t,n){return[{context:e,value:t,message:n}]}function Be(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function Ue(e,t){"undefined"!=typeof process&&He(e,t)}function He(e,t){var n=e.validate(t,[{path:"",type:e}]);if(n.length>0)throw dt(function(e,t,n){var r;if(0!==n.length)return"Error while converting "+(((r=De(t)).length<280?r:r.substring(0,272)+"......"+r.substring(r.length-8))+" to `")+e.name+"`:\n\n "+n.map(ze).join("\n ")}(e,t,n))}var We,Ke=0,Ge=function(){function e(){Object.defineProperty(this,"cacheId",{enumerable:!0,configurable:!0,writable:!0,value:Ke++}),Object.defineProperty(this,"cache",{enumerable:!0,configurable:!0,writable:!0,value:i.observable.map()}),Object.defineProperty(this,"lastCacheModificationPerId",{enumerable:!0,configurable:!0,writable:!0,value:i.observable.map()})}return Object.defineProperty(e.prototype,"updateLastCacheModificationPerId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.lastCacheModificationPerId.get(e);this.lastCacheModificationPerId.set(e,void 0===t?1:t+1)}}),Object.defineProperty(e.prototype,"getLastCacheModificationPerId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.lastCacheModificationPerId.get(e)||0;return this.cacheId+"-"+t}}),Object.defineProperty(e.prototype,"addNodeToCache",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(void 0===t&&(t=!0),e.identifierAttribute){var n=e.identifier;this.cache.has(n)||this.cache.set(n,i.observable.array([],ft));var r=this.cache.get(n);if(-1!==r.indexOf(e))throw dt("Already registered");r.push(e),t&&this.updateLastCacheModificationPerId(n)}}}),Object.defineProperty(e.prototype,"mergeCache",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;(0,i.values)(e.identifierCache.cache).forEach((function(e){return e.forEach((function(e){t.addNodeToCache(e)}))}))}}),Object.defineProperty(e.prototype,"notifyDied",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.identifierAttribute){var t=e.identifier,n=this.cache.get(t);n&&(n.remove(e),n.length||this.cache.delete(t),this.updateLastCacheModificationPerId(e.identifier))}}}),Object.defineProperty(e.prototype,"splitCache",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var n=this,r=new e,a=t.path+"/";return(0,i.entries)(this.cache).forEach((function(e){for(var i=h(e,2),o=i[0],l=i[1],u=!1,s=l.length-1;s>=0;s--){var c=l[s];c!==t&&0!==c.path.indexOf(a)||(r.addNodeToCache(c,!1),l.splice(s,1),l.length||n.cache.delete(o),u=!0)}u&&n.updateLastCacheModificationPerId(o)})),r}}),Object.defineProperty(e.prototype,"has",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.cache.get(t);return!!n&&n.some((function(t){return e.isAssignableFrom(t.type)}))}}),Object.defineProperty(e.prototype,"resolve",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.cache.get(t);if(!n)return null;var r=n.filter((function(t){return e.isAssignableFrom(t.type)}));switch(r.length){case 0:return null;case 1:return r[0];default:throw dt("Cannot resolve a reference to type '"+e.name+"' with id: '"+t+"' unambigously, there are multiple candidates: "+r.map((function(e){return e.path})).join(", "))}}}),e}();function qe(e,t,n,r,i){var a=Ze(i);if(a){if(a.parent)throw dt("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(t?t.path:"")+"/"+n+"', but it lives already at '"+a.path+"'");return t&&a.setParent(t,n),a}return new le(e,t,n,r,i)}function Qe(e,t,n,r,i){return new ne(e,t,n,r,i)}function Ye(e){return!(!e||!e.$treenode)}function Xe(e,t){xt()}function Je(e){if(!Ye(e))throw dt("Value "+e+" is no MST Node");return e.$treenode}function Ze(e){return e&&e.$treenode||null}function et(){return Je(this).snapshot}!function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CREATED=1]="CREATED",e[e.FINALIZED=2]="FINALIZED",e[e.DETACHING=3]="DETACHING",e[e.DEAD=4]="DEAD"}(We||(We={}));var tt=function(e){return".."};function nt(e,t){if(e.root!==t.root)throw dt("Cannot calculate relative path: objects '"+e+"' and '"+t+"' are not part of the same object tree");for(var n=Ft(e.path),r=Ft(t.path),i=0;i<n.length&&n[i]===r[i];i++);return n.slice(i).map(tt).join("/")+$t(r.slice(i))}function rt(e,t,n){return void 0===n&&(n=!0),it(e,Ft(t),n)}function it(e,t,n){void 0===n&&(n=!0);var r=e;try{for(var i=0;i<t.length;i++){var a=t[i];if(".."===a){if(r=r.parent)continue}else{if("."===a)continue;if(r){if(r instanceof ne){var o=r.value;Ye(o)&&(r=Je(o))}if(r instanceof le&&r.getChildType(a)&&(r=r.getChildNode(a)))continue}}throw dt("Could not resolve '"+a+"' in path '"+($t(t.slice(0,i))||"/")+"' while resolving '"+$t(t)+"'")}}catch(e){if(!n)return;throw e}return r}function at(e){if(!e)return st;var t=Object.keys(e);if(!t.length)return st;var n=new Array(t.length);return t.forEach((function(t,r){n[r]=e[t]})),n}var ot="See https://github.com/mobxjs/mobx-state-tree/issues/399 for more information. Note that the middleware event types starting with `process` now start with `flow`.";function lt(e){return At("process","`process()` has been renamed to `flow()`. "+ot),Nt(e)}var ut=Object.toString(),st=Object.freeze([]),ct=Object.freeze({}),ft=(0,i._getGlobalState)().useProxies?{deep:!1}:{deep:!1,proxy:!1};function dt(e){return void 0===e&&(e="Illegal state"),new Error("[mobx-state-tree] "+e)}function pt(e){return e}Object.freeze(ft);var ht=Number.isInteger;function bt(e){return Array.isArray(e)||(0,i.isObservableArray)(e)}function vt(e){return e?bt(e)?e:[e]:st}function yt(e){var t;if(null===e||"object"!=typeof e)return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===ut}function gt(e){return!(null===e||"object"!=typeof e||e instanceof Date||e instanceof RegExp)}function mt(e,t){return void 0===t&&(t=!0),null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e||t&&e instanceof Date}function wt(e){return"function"!=typeof e}function _t(e,t,n){!function(e,t,n){(0,i.isObservableObject)(e)?(0,i.defineProperty)(e,t,n):Object.defineProperty(e,t,n)}(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}var St=function(){function e(){Object.defineProperty(this,"handlers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}return Object.defineProperty(e.prototype,"hasSubscribers",{get:function(){return this.handlers.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this;return void 0===t&&(t=!1),t?this.handlers.unshift(e):this.handlers.push(e),function(){n.unregister(e)}}}),Object.defineProperty(e.prototype,"has",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.handlers.indexOf(e)>=0}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.handlers.indexOf(e);t>=0&&this.handlers.splice(t,1)}}),Object.defineProperty(e.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.handlers.length=0}}),Object.defineProperty(e.prototype,"emit",{enumerable:!1,configurable:!0,writable:!0,value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.handlers.slice().forEach((function(t){return t.apply(void 0,b(e))}))}}),e}(),kt=function(){function e(){Object.defineProperty(this,"eventHandlers",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Object.defineProperty(e.prototype,"hasSubscribers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.eventHandlers&&this.eventHandlers[e];return!!t&&t.hasSubscribers}}),Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){void 0===n&&(n=!1),this.eventHandlers||(this.eventHandlers={});var r=this.eventHandlers[e];return r||(r=this.eventHandlers[e]=new St),r.register(t,n)}}),Object.defineProperty(e.prototype,"has",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.eventHandlers&&this.eventHandlers[e];return!!n&&n.has(t)}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.eventHandlers&&this.eventHandlers[e];n&&n.unregister(t)}}),Object.defineProperty(e.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.eventHandlers&&delete this.eventHandlers[e]}}),Object.defineProperty(e.prototype,"clearAll",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.eventHandlers=void 0}}),Object.defineProperty(e.prototype,"emit",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.eventHandlers&&this.eventHandlers[e];i&&(t=i).emit.apply(t,b(n))}}),e}();function Ot(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return t}function Pt(e,t){return 0===e.indexOf(t)}var At=function(e,t){};function xt(e,t,n,r){}function jt(e,t){}function Ct(e,t,n,r){}function Et(e,t,n){void 0===n&&(n=!0)}function Tt(e){"function"==typeof queueMicrotask?queueMicrotask(e):"function"==typeof setImmediate?setImmediate(e):setTimeout(e,1)}function Nt(e){return function(e,t){var n=function(){var r=Ae(),i=Pe();if(!i)throw dt("a mst flow must always have a parent context");var a=je(i);if(!a)throw dt("a mst flow must always have a parent action context");var o={name:e,id:r,tree:i.tree,context:i.context,parentId:i.id,allParentIds:b(i.allParentIds,[i.id]),rootId:i.rootId,parentEvent:i,parentActionEvent:a},l=arguments;function u(e,t,r){return e.$mst_middleware=n.$mst_middleware,xe(f(f({},o),{type:t,args:[r]}),e)}return new Promise((function(e,r){var i,a=function(){i=t.apply(null,arguments),s(void 0)};function s(e){var t;try{var n=u((function(e){t=i.next(e)}),"flow_resume",e);n instanceof Error&&(t=i.throw(n))}catch(e){return void Tt((function(){u((function(t){r(e)}),"flow_throw",e)}))}d(t)}function c(e){var t;try{u((function(e){t=i.throw(e)}),"flow_resume_error",e)}catch(e){return void Tt((function(){u((function(t){r(e)}),"flow_throw",e)}))}d(t)}function d(t){if(!t.done){if(!t.value||"function"!=typeof t.value.then)throw dt("Only promises can be yielded to `async`, got: "+t);return t.value.then(s,c)}Tt((function(){u((function(t){e(t)}),"flow_return",t.value)}))}a.$mst_middleware=n.$mst_middleware,xe(f(f({},o),{type:"flow_spawn",args:Ot(l)}),a)}))};return n._isFlowAction=!0,n}(e.name,e)}function It(e){return e}function Rt(e){return function(){var t,n=[];for(t=0;t<arguments.length;t++)n[t]=arguments[t];return d(this,(function(t){switch(t.label){case 0:return[4,e.apply(void 0,b(n))];case 1:return[2,t.sent()]}}))}}function Mt(e){return d(this,(function(t){switch(t.label){case 0:return[4,e];case 1:return[2,t.sent()]}}))}function Lt(e){switch(e.op){case"add":return{op:"add",path:e.path,value:e.value};case"remove":return{op:"remove",path:e.path};case"replace":return{op:"replace",path:e.path,value:e.value}}}function Dt(e){switch(e.op){case"add":return{op:"remove",path:e.path};case"remove":return{op:"add",path:e.path,value:e.oldValue};case"replace":return{op:"replace",path:e.path,value:e.oldValue}}}function zt(e){return 1==("number"==typeof e)?""+e:-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Vt(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function $t(e){if(0===e.length)return"";var t=function(e){return e.map(zt).join("/")};return"."===e[0]||".."===e[0]?t(e):"/"+t(e)}function Ft(e){var t=e.split("/").map(Vt);if(!(""===e||"."===e||".."===e||Pt(e,"/")||Pt(e,"./")||Pt(e,"../")))throw dt("a json path must be either rooted, empty or relative, but got '"+e+"'");return""===t[0]&&t.shift(),t}At.ids={};var Bt,Ut=Symbol("$preProcessorFailed"),Ht=function(e){function t(t,n,r){var i=e.call(this,r||t.name)||this;return Object.defineProperty(i,"_subtype",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(i,"_processors",{enumerable:!0,configurable:!0,writable:!0,value:n}),i}return c(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return this._subtype.flags|ie.SnapshotProcessor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"snapshotProcessor("+this._subtype.describe()+")"}}),Object.defineProperty(t.prototype,"preProcessSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._processors.preProcessor?this._processors.preProcessor.call(null,e):e}}),Object.defineProperty(t.prototype,"preProcessSnapshotSafe",{enumerable:!1,configurable:!0,writable:!0,value:function(e){try{return this.preProcessSnapshot(e)}catch(e){return Ut}}}),Object.defineProperty(t.prototype,"postProcessSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._processors.postProcessor?this._processors.postProcessor.call(null,e,t.storedValue):e}}),Object.defineProperty(t.prototype,"_fixNode",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;!function(e,t){for(var n,r,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];try{for(var o=p(i),l=o.next();!l.done;l=o.next()){var u=l.value;e[u]=t[u].bind(t)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(e.type,this,"create"),e instanceof le&&(e.hasSnapshotPostProcessor=!!this._processors.postProcessor);var n=e.getSnapshot;e.getSnapshot=function(){return t.postProcessSnapshot(n.call(e),e)},xn(this._subtype)||(e.getReconciliationType=function(){return t})}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=Ye(r)?r:this.preProcessSnapshot(r),a=this._subtype.instantiate(e,t,n,i);return this._fixNode(a),a}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=this._subtype.reconcile(e,Ye(t)?t:this.preProcessSnapshot(t),n,r);return i!==e&&this._fixNode(i),i}}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=!0);var n=this._subtype.getSnapshot(e);return t?this.postProcessSnapshot(n,e):n}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.preProcessSnapshotSafe(e);return n===Ut?Fe(t,e,"Failed to preprocess value"):this._subtype.validate(n,t)}}),Object.defineProperty(t.prototype,"getSubTypes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._subtype}}),Object.defineProperty(t.prototype,"is",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=pe(e)?this._subtype:Ye(e)?A(e,!1):this.preProcessSnapshotSafe(e);return t!==Ut&&0===this._subtype.validate(t,[{path:"",type:this._subtype}]).length}}),Object.defineProperty(t.prototype,"isAssignableFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._subtype.isAssignableFrom(e)}}),Object.defineProperty(t.prototype,"isMatchingSnapshotId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(!(this._subtype instanceof fe))return!1;var n=this.preProcessSnapshot(t);return this._subtype.isMatchingSnapshotId(e,n)}}),t}(ce),Wt="Map.put can only be used to store complex values that have an identifier type attribute";function Kt(e,t){var n,r,i=e.getSubTypes();if(i===ue)return!1;if(i){var a=vt(i);try{for(var o=p(a),l=o.next();!l.done;l=o.next())if(!Kt(l.value,t))return!1}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}return e instanceof on&&t.push(e),!0}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.YES=1]="YES",e[e.NO=2]="NO"}(Bt||(Bt={}));var Gt=function(e){function t(t,n){return e.call(this,t,i.observable.ref.enhancer,n)||this}return c(t,e),Object.defineProperty(t.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return e.prototype.get.call(this,""+t)}}),Object.defineProperty(t.prototype,"has",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return e.prototype.has.call(this,""+t)}}),Object.defineProperty(t.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return e.prototype.delete.call(this,""+t)}}),Object.defineProperty(t.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){return e.prototype.set.call(this,""+t,n)}}),Object.defineProperty(t.prototype,"put",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!e)throw dt("Map.put cannot be used to set empty values");if(Ye(e)){var t=Je(e);if(null===t.identifier)throw dt(Wt);return this.set(t.identifier,e),e}if(gt(e)){var n=Je(this),r=n.type;if(r.identifierMode!==Bt.YES)throw dt(Wt);var i=e[r.mapIdentifierAttribute];if(!tr(i)){var a=this.put(r.getChildType().create(e,n.environment));return this.put(A(a))}var o=er(i);return this.set(o,e),this.get(o)}throw dt("Map.put can only be used to store complex values")}}),t}(i.ObservableMap),qt=function(e){function t(t,n,r){void 0===r&&(r=[]);var i=e.call(this,t)||this;return Object.defineProperty(i,"_subType",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(i,"identifierMode",{enumerable:!0,configurable:!0,writable:!0,value:Bt.UNKNOWN}),Object.defineProperty(i,"mapIdentifierAttribute",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(i,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Map}),Object.defineProperty(i,"hookInitializers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),i._determineIdentifierMode(),i.hookInitializers=r,i}return c(t,e),Object.defineProperty(t.prototype,"hooks",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var n=this.hookInitializers.length>0?this.hookInitializers.concat(e):[e];return new t(this.name,this._subType,n)}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return this._determineIdentifierMode(),qe(this,e,t,n,r)}}),Object.defineProperty(t.prototype,"_determineIdentifierMode",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.identifierMode===Bt.UNKNOWN){var e=[];if(Kt(this._subType,e)){var t=e.reduce((function(e,t){if(!t.identifierAttribute)return e;if(e&&e!==t.identifierAttribute)throw dt("The objects in a map should all have the same identifier attribute, expected '"+e+"', but child of type '"+t.name+"' declared attribute '"+t.identifierAttribute+"' as identifier");return t.identifierAttribute}),void 0);t?(this.identifierMode=Bt.YES,this.mapIdentifierAttribute=t):this.identifierMode=Bt.NO}}}}),Object.defineProperty(t.prototype,"initializeChildNodes",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t={});var n=e.type._subType,r={};return Object.keys(t).forEach((function(i){r[i]=n.instantiate(e,i,void 0,t[i])})),r}}),Object.defineProperty(t.prototype,"createNewInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return new Gt(e,this.name)}}),Object.defineProperty(t.prototype,"finalizeNewInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){(0,i._interceptReads)(t,e.unbox),e.type.hookInitializers.forEach((function(e){var n=e(t);Object.keys(n).forEach((function(e){var r=n[e],i=Ce(t,e,r);_t(t,e,i)}))})),(0,i.intercept)(t,this.willChange),(0,i.observe)(t,this.didChange)}}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.name}}),Object.defineProperty(t.prototype,"getChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return(0,i.values)(e.storedValue)}}),Object.defineProperty(t.prototype,"getChildNode",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=e.storedValue.get(""+t);if(!n)throw dt("Not a child "+t);return n}}),Object.defineProperty(t.prototype,"willChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Je(e.object),n=e.name;t.assertWritable({subpath:n});var r=t.type,i=r._subType;switch(e.type){case"update":var a=e.newValue;if(a===e.object.get(n))return null;Ue(i,a),e.newValue=i.reconcile(t.getChildNode(n),e.newValue,t,n),r.processIdentifier(n,e.newValue);break;case"add":Ue(i,e.newValue),e.newValue=i.instantiate(t,n,void 0,e.newValue),r.processIdentifier(n,e.newValue)}return e}}),Object.defineProperty(t.prototype,"processIdentifier",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(this.identifierMode===Bt.YES&&t instanceof le){var n=t.identifier;if(n!==e)throw dt("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+n+"', but expected: '"+e+"'")}}}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t={};return e.getChildren().forEach((function(e){t[e.subpath]=e.snapshot})),t}}),Object.defineProperty(t.prototype,"processInitialSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].getSnapshot()})),t}}),Object.defineProperty(t.prototype,"didChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Je(e.object);switch(e.type){case"update":return void t.emitPatch({op:"replace",path:zt(e.name),value:e.newValue.snapshot,oldValue:e.oldValue?e.oldValue.snapshot:void 0},t);case"add":return void t.emitPatch({op:"add",path:zt(e.name),value:e.newValue.snapshot,oldValue:void 0},t);case"delete":var n=e.oldValue.snapshot;return e.oldValue.die(),void t.emitPatch({op:"remove",path:zt(e.name),oldValue:n},t)}}}),Object.defineProperty(t.prototype,"applyPatchLocally",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r=e.storedValue;switch(n.op){case"add":case"replace":r.set(t,n.value);break;case"remove":r.delete(t)}}}),Object.defineProperty(t.prototype,"applySnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){Ue(this,t);var n=e.storedValue,r={};if(Array.from(n.keys()).forEach((function(e){r[e]=!1})),t)for(var i in t)n.set(i,t[i]),r[""+i]=!0;Object.keys(r).forEach((function(e){!1===r[e]&&n.delete(e)}))}}),Object.defineProperty(t.prototype,"getChildType",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._subType}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this;return yt(e)?Be(Object.keys(e).map((function(r){return n._subType.validate(e[r],Ve(t,r,n._subType))}))):Fe(t,e,"Value is not a plain object")}}),Object.defineProperty(t.prototype,"getDefaultSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(){return ct}}),Object.defineProperty(t.prototype,"removeChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e.storedValue.delete(t)}}),t}(fe);function Qt(e){return pe(e)&&(e.flags&ie.Map)>0}qt.prototype.applySnapshot=(0,i.action)(qt.prototype.applySnapshot);var Yt=function(e){function t(t,n,r){void 0===r&&(r=[]);var i=e.call(this,t)||this;return Object.defineProperty(i,"_subType",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(i,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Array}),Object.defineProperty(i,"hookInitializers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),i.hookInitializers=r,i}return c(t,e),Object.defineProperty(t.prototype,"hooks",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var n=this.hookInitializers.length>0?this.hookInitializers.concat(e):[e];return new t(this.name,this._subType,n)}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return qe(this,e,t,n,r)}}),Object.defineProperty(t.prototype,"initializeChildNodes",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=[]);var n=e.type._subType,r={};return t.forEach((function(t,i){var a=""+i;r[a]=n.instantiate(e,a,void 0,t)})),r}}),Object.defineProperty(t.prototype,"createNewInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=f(f({},ft),{name:this.name});return i.observable.array(at(e),t)}}),Object.defineProperty(t.prototype,"finalizeNewInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){(0,i._getAdministration)(t).dehancer=e.unbox,e.type.hookInitializers.forEach((function(e){var n=e(t);Object.keys(n).forEach((function(e){var r=n[e],i=Ce(t,e,r);_t(t,e,i)}))})),(0,i.intercept)(t,this.willChange),(0,i.observe)(t,this.didChange)}}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.name}}),Object.defineProperty(t.prototype,"getChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.storedValue.slice()}}),Object.defineProperty(t.prototype,"getChildNode",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=Number(t);if(n<e.storedValue.length)return e.storedValue[n];throw dt("Not a child: "+t)}}),Object.defineProperty(t.prototype,"willChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Je(e.object);t.assertWritable({subpath:""+e.index});var n=t.type._subType,r=t.getChildren();switch(e.type){case"update":if(e.newValue===e.object[e.index])return null;var i=Xt(t,n,[r[e.index]],[e.newValue],[e.index]);if(!i)return null;e.newValue=i[0];break;case"splice":var a=e.index,o=e.removedCount,l=e.added,u=Xt(t,n,r.slice(a,a+o),l,l.map((function(e,t){return a+t})));if(!u)return null;e.added=u;for(var s=a+o;s<r.length;s++)r[s].setParent(t,""+(s+l.length-o))}return e}}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.getChildren().map((function(e){return e.snapshot}))}}),Object.defineProperty(t.prototype,"processInitialSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push(e[n].getSnapshot())})),t}}),Object.defineProperty(t.prototype,"didChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Je(e.object);switch(e.type){case"update":return void t.emitPatch({op:"replace",path:""+e.index,value:e.newValue.snapshot,oldValue:e.oldValue?e.oldValue.snapshot:void 0},t);case"splice":for(var n=e.removedCount-1;n>=0;n--)t.emitPatch({op:"remove",path:""+(e.index+n),oldValue:e.removed[n].snapshot},t);for(n=0;n<e.addedCount;n++)t.emitPatch({op:"add",path:""+(e.index+n),value:t.getChildNode(""+(e.index+n)).snapshot,oldValue:void 0},t);return}}}),Object.defineProperty(t.prototype,"applyPatchLocally",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r=e.storedValue,i="-"===t?r.length:Number(t);switch(n.op){case"replace":r[i]=n.value;break;case"add":r.splice(i,0,n.value);break;case"remove":r.splice(i,1)}}}),Object.defineProperty(t.prototype,"applySnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){Ue(this,t),e.storedValue.replace(t)}}),Object.defineProperty(t.prototype,"getChildType",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._subType}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this;return bt(e)?Be(e.map((function(e,r){return n._subType.validate(e,Ve(t,""+r,n._subType))}))):Fe(t,e,"Value is not an array")}}),Object.defineProperty(t.prototype,"getDefaultSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(){return st}}),Object.defineProperty(t.prototype,"removeChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e.storedValue.splice(Number(t),1)}}),t}(fe);function Xt(e,t,n,r,i){for(var a,o=!0,l=0;;l++){var u=l<=r.length-1,s=n[l],c=u?r[l]:void 0,f=""+i[l];if(((a=c)instanceof ne||a instanceof le)&&(c=c.storedValue),!s&&!u)break;if(u)if(s)if(Zt(s,c))n[l]=Jt(t,e,f,c,s);else{for(var d=void 0,p=l;p<n.length;p++)if(Zt(n[p],c)){d=n.splice(p,1)[0];break}o=!1,h=Jt(t,e,f,c,d),n.splice(l,0,h)}else{if(Ye(c)&&Je(c).parent===e)throw dt("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+e.path+"/"+f+"', but it lives already at '"+Je(c).path+"'");o=!1;var h=Jt(t,e,f,c);n.splice(l,0,h)}else o=!1,n.splice(l,1),s instanceof le&&s.createObservableInstanceIfNeeded(),s.die(),l--}return o?null:n}function Jt(e,t,n,r,i){Ue(e,r);var a=function(){if(Ye(r)){var a=Je(r);if(a.assertAlive(ct),null!==a.parent&&a.parent===t)return a.setParent(t,n),a}return i?e.reconcile(i,r,t,n):e.instantiate(t,n,void 0,r)}();return i&&i!==a&&(i instanceof le&&i.createObservableInstanceIfNeeded(),i.die()),a}function Zt(e,t){if(!e.isAlive)return!1;if(Ye(t)){var n=Je(t);return n.isAlive&&n===e}if(e.snapshot===t)return!0;if(!(e instanceof le))return!1;var r=e.getReconciliationType();return null!==e.identifier&&e.identifierAttribute&&yt(t)&&r.is(t)&&r.isMatchingSnapshotId(e,t)}function en(e){return pe(e)&&(e.flags&ie.Array)>0}Yt.prototype.applySnapshot=(0,i.action)(Yt.prototype.applySnapshot);var tn="preProcessSnapshot",nn="postProcessSnapshot";function rn(){return Je(this).toString()}var an={name:"AnonymousModel",properties:{},initializers:st};var on=function(e){function t(t){var n,i,a,o=e.call(this,t.name||an.name)||this;return Object.defineProperty(o,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Object}),Object.defineProperty(o,"initializers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"properties",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"preProcessor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"postProcessor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"propertyNames",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"named",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return o.cloneAndEnhance({name:e})}}),Object.defineProperty(o,"props",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return o.cloneAndEnhance({properties:e})}}),Object.defineProperty(o,"preProcessSnapshot",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=o.preProcessor;return t?o.cloneAndEnhance({preProcessor:function(n){return t(e(n))}}):o.cloneAndEnhance({preProcessor:e})}}),Object.defineProperty(o,"postProcessSnapshot",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=o.postProcessor;return t?o.cloneAndEnhance({postProcessor:function(n){return e(t(n))}}):o.cloneAndEnhance({postProcessor:e})}}),Object.assign(o,an,t),o.properties=(n=o.properties,i=Object.keys(n),a=new Set,i.forEach((function(e){if(a.has(e))throw dt(e+" is declared twice in the model. Model should not contain the same keys");a.add(e)})),i.reduce((function(e,t){if(t in r)throw dt("Hook '"+t+"' was defined as property. Hooks should be defined as part of the actions");var i=Object.getOwnPropertyDescriptor(n,t);if("get"in i)throw dt("Getters are not supported as properties. Please use views instead");var a=i.value;if(null==a)throw dt("The default value of an attribute cannot be null or undefined as the type cannot be inferred. Did you mean `types.maybe(someType)`?");if(mt(a))e[t]=Cn(function(e){switch(typeof e){case"string":return sn;case"number":return cn;case"boolean":return hn;case"object":if(e instanceof Date)return gn}throw dt("Cannot determine primitive type from value "+e)}(a),a);else if(a instanceof qt)e[t]=Cn(a,{});else if(a instanceof Yt)e[t]=Cn(a,[]);else if(!pe(a))throw dt("Invalid type definition for property '"+t+"', cannot infer a type from a value like '"+a+"' ("+typeof a+")");return e}),f({},n))),o.properties,o.propertyNames=Object.keys(o.properties),o.identifierAttribute=o._getIdentifierAttribute(),o}return c(t,e),Object.defineProperty(t.prototype,"_getIdentifierAttribute",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=void 0;return this.forAllProps((function(t,n){if(n.flags&ie.Identifier){if(e)throw dt("Cannot define property '"+t+"' as object identifier, property '"+e+"' is already defined as identifier property");e=t}})),e}}),Object.defineProperty(t.prototype,"cloneAndEnhance",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return new t({name:e.name||this.name,properties:Object.assign({},this.properties,e.properties),initializers:this.initializers.concat(e.initializers||[]),preProcessor:e.preProcessor||this.preProcessor,postProcessor:e.postProcessor||this.postProcessor})}}),Object.defineProperty(t.prototype,"actions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return this.cloneAndEnhance({initializers:[function(n){return t.instantiateActions(n,e(n)),n}]})}}),Object.defineProperty(t.prototype,"instantiateActions",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(!yt(t))throw dt("actions initializer should return a plain object containing actions");Object.keys(t).forEach((function(n){if(n===tn)throw dt("Cannot define action '"+tn+"', it should be defined using 'type.preProcessSnapshot(fn)' instead");if(n===nn)throw dt("Cannot define action '"+nn+"', it should be defined using 'type.postProcessSnapshot(fn)' instead");var i=t[n],a=e[n];if(n in r&&a){var o=i;i=function(){a.apply(null,arguments),o.apply(null,arguments)}}var l=i.$mst_middleware,u=i.bind(t);u._isFlowAction=i._isFlowAction||!1,u.$mst_middleware=l;var s=Ce(e,n,u);t[n]=s,_t(e,n,s)}))}}),Object.defineProperty(t.prototype,"volatile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if("function"!=typeof e)throw dt("You passed an "+typeof e+" to volatile state as an argument, when function is expected");return this.cloneAndEnhance({initializers:[function(n){return t.instantiateVolatileState(n,e(n)),n}]})}}),Object.defineProperty(t.prototype,"instantiateVolatileState",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(!yt(t))throw dt("volatile state initializer should return a plain object containing state");(0,i.set)(e,t)}}),Object.defineProperty(t.prototype,"extend",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return this.cloneAndEnhance({initializers:[function(n){var r=e(n),i=r.actions,a=r.views,o=r.state,l=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(r,["actions","views","state"]);for(var u in l)throw dt("The `extend` function should return an object with a subset of the fields 'actions', 'views' and 'state'. Found invalid key '"+u+"'");return o&&t.instantiateVolatileState(n,o),a&&t.instantiateViews(n,a),i&&t.instantiateActions(n,i),n}]})}}),Object.defineProperty(t.prototype,"views",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return this.cloneAndEnhance({initializers:[function(n){return t.instantiateViews(n,e(n)),n}]})}}),Object.defineProperty(t.prototype,"instantiateViews",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(!yt(t))throw dt("views initializer should return a plain object containing views");Object.getOwnPropertyNames(t).forEach((function(n){var r,a=Object.getOwnPropertyDescriptor(t,n);if("get"in a)(0,i.defineProperty)(e,n,a),(0,i.makeObservable)(e,((r={})[n]=i.computed,r));else{if("function"!=typeof a.value)throw dt("A view member should either be a function or getter based property");_t(e,n,a.value)}}))}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return qe(this,e,t,n,Ye(r)?r:this.applySnapshotPreProcessor(r))}}),Object.defineProperty(t.prototype,"initializeChildNodes",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t={});var n=e.type,r={};return n.forAllProps((function(n,i){r[n]=i.instantiate(e,n,void 0,t[n])})),r}}),Object.defineProperty(t.prototype,"createNewInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=f(f({},ft),{name:this.name});return i.observable.object(e,ct,t)}}),Object.defineProperty(t.prototype,"finalizeNewInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){_t(t,"toString",rn),this.forAllProps((function(n){(0,i._interceptReads)(t,n,e.unbox)})),this.initializers.reduce((function(e,t){return t(e)}),t),(0,i.intercept)(t,this.willChange),(0,i.observe)(t,this.didChange)}}),Object.defineProperty(t.prototype,"willChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e,n=Je(t.object),r=t.name;n.assertWritable({subpath:r});var i=n.type.properties[r];return i&&(Ue(i,t.newValue),t.newValue=i.reconcile(n.getChildNode(r),t.newValue,n,r)),t}}),Object.defineProperty(t.prototype,"didChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e,n=Je(t.object);if(n.type.properties[t.name]){var r=t.oldValue?t.oldValue.snapshot:void 0;n.emitPatch({op:"replace",path:zt(t.name),value:t.newValue.snapshot,oldValue:r},n)}}}),Object.defineProperty(t.prototype,"getChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,n=[];return this.forAllProps((function(r){n.push(t.getChildNode(e,r))})),n}}),Object.defineProperty(t.prototype,"getChildNode",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n;if(!(t in this.properties))throw dt("Not a value property: "+t);var r=(0,i._getAdministration)(e.storedValue,t),a=null===(n=r.raw)||void 0===n?void 0:n.call(r);if(!a)throw dt("Node not available for property "+t);return a}}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this;void 0===t&&(t=!0);var r={};return this.forAllProps((function(t,a){try{(0,i.getAtom)(e.storedValue,t).reportObserved()}catch(e){throw dt(t+" property is declared twice")}r[t]=n.getChildNode(e,t).snapshot})),t?this.applySnapshotPostProcessor(r):r}}),Object.defineProperty(t.prototype,"processInitialSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].getSnapshot()})),this.applySnapshotPostProcessor(t)}}),Object.defineProperty(t.prototype,"applyPatchLocally",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){if("replace"!==n.op&&"add"!==n.op)throw dt("object does not support operation "+n.op);e.storedValue[t]=n.value}}),Object.defineProperty(t.prototype,"applySnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){Ue(this,t);var n=this.applySnapshotPreProcessor(t);this.forAllProps((function(t){e.storedValue[t]=n[t]}))}}),Object.defineProperty(t.prototype,"applySnapshotPreProcessor",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.preProcessor;return t?t.call(null,e):e}}),Object.defineProperty(t.prototype,"applySnapshotPostProcessor",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.postProcessor;return t?t.call(null,e):e}}),Object.defineProperty(t.prototype,"getChildType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return Et(),this.properties[e]}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r=this.applySnapshotPreProcessor(e);return yt(r)?Be(this.propertyNames.map((function(e){return n.properties[e].validate(r[e],Ve(t,e,n.properties[e]))}))):Fe(t,r,"Value is not a plain object")}}),Object.defineProperty(t.prototype,"forAllProps",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;this.propertyNames.forEach((function(n){return e(n,t.properties[n])}))}}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return"{ "+this.propertyNames.map((function(t){return t+": "+e.properties[t].describe()})).join("; ")+" }"}}),Object.defineProperty(t.prototype,"getDefaultSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(){return ct}}),Object.defineProperty(t.prototype,"removeChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e.storedValue[t]=void 0}}),t}(fe);function ln(e){return pe(e)&&(e.flags&ie.Object)>0}on.prototype.applySnapshot=(0,i.action)(on.prototype.applySnapshot);var un=function(e){function t(t,n,r,i){void 0===i&&(i=pt);var a=e.call(this,t)||this;return Object.defineProperty(a,"flags",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(a,"checker",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(a,"initializer",{enumerable:!0,configurable:!0,writable:!0,value:i}),a.flags=n,a}return c(t,e),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.name}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return Qe(this,e,t,n,r)}}),Object.defineProperty(t.prototype,"createNewInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.initializer(e)}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return mt(e)&&this.checker(e)?$e():Fe(t,e,"Value is not a "+("Date"===this.name?"Date or a unix milliseconds timestamp":this.name))}}),t}(de),sn=new un("string",ie.String,(function(e){return"string"==typeof e})),cn=new un("number",ie.Number,(function(e){return"number"==typeof e})),fn=new un("integer",ie.Integer,(function(e){return ht(e)})),dn=new un("float",ie.Float,(function(e){return t=e,Number(t)===t&&t%1!=0;var t})),pn=new un("finite",ie.Finite,(function(e){return t=e,Number.isFinite(t);var t})),hn=new un("boolean",ie.Boolean,(function(e){return"boolean"==typeof e})),bn=new un("null",ie.Null,(function(e){return null===e})),vn=new un("undefined",ie.Undefined,(function(e){return void 0===e})),yn=new un("Date",ie.Date,(function(e){return"number"==typeof e||e instanceof Date}),(function(e){return e instanceof Date?e:new Date(e)}));yn.getSnapshot=function(e){return e.storedValue.getTime()};var gn=yn;function mn(e){return pe(e)&&(e.flags&(ie.String|ie.Number|ie.Integer|ie.Boolean|ie.Date))>0}var wn=function(e){function t(t){var n=e.call(this,JSON.stringify(t))||this;return Object.defineProperty(n,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(n,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Literal}),n.value=t,n}return c(t,e),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return Qe(this,e,t,n,r)}}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return JSON.stringify(this.value)}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return mt(e)&&e===this.value?$e():Fe(t,e,"Value is not a literal "+JSON.stringify(this.value))}}),t}(de);function _n(e){return new wn(e)}function Sn(e){return pe(e)&&(e.flags&ie.Literal)>0}var kn=function(e){function t(t,n,r,i){var a=e.call(this,t)||this;return Object.defineProperty(a,"_subtype",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(a,"_predicate",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(a,"_message",{enumerable:!0,configurable:!0,writable:!0,value:i}),a}return c(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return this._subtype.flags|ie.Refinement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.name}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return this._subtype.instantiate(e,t,n,r)}}),Object.defineProperty(t.prototype,"isAssignableFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._subtype.isAssignableFrom(e)}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._subtype.validate(e,t);if(n.length>0)return n;var r=Ye(e)?Je(e).snapshot:e;return this._predicate(r)?$e():Fe(t,e,this._message(e))}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return this._subtype.reconcile(e,t,n,r)}}),Object.defineProperty(t.prototype,"getSubTypes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._subtype}}),t}(ce);function On(e){return(e.flags&ie.Refinement)>0}var Pn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return Object.defineProperty(i,"_types",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(i,"_dispatcher",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(i,"_eager",{enumerable:!0,configurable:!0,writable:!0,value:!0}),r=f({eager:!0,dispatcher:void 0},r),i._dispatcher=r.dispatcher,r.eager||(i._eager=!1),i}return c(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){var e=ie.Union;return this._types.forEach((function(t){e|=t.flags})),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAssignableFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._types.some((function(t){return t.isAssignableFrom(e)}))}}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"("+this._types.map((function(e){return e.describe()})).join(" | ")+")"}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=this.determineType(r,void 0);if(!i)throw dt("No matching type for union "+this.describe());return i.instantiate(e,t,n,r)}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=this.determineType(t,e.getReconciliationType());if(!i)throw dt("No matching type for union "+this.describe());return i.reconcile(e,t,n,r)}}),Object.defineProperty(t.prototype,"determineType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._dispatcher?this._dispatcher(e):t?t.is(e)?t:this._types.filter((function(e){return e!==t})).find((function(t){return t.is(e)})):this._types.find((function(t){return t.is(e)}))}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(this._dispatcher)return this._dispatcher(e).validate(e,t);for(var n=[],r=0,i=0;i<this._types.length;i++){var a=this._types[i].validate(e,t);if(0===a.length){if(this._eager)return $e();r++}else n.push(a)}return 1===r?$e():Fe(t,e,"No type is applicable for the union").concat(Be(n))}}),Object.defineProperty(t.prototype,"getSubTypes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._types}}),t}(ce);function An(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=pe(e)?void 0:e,i=pe(e)?b([e],t):t,a="("+i.map((function(e){return e.name})).join(" | ")+")";return new Pn(a,i,r)}function xn(e){return(e.flags&ie.Union)>0}var jn=function(e){function t(t,n,r){var i=e.call(this,t.name)||this;return Object.defineProperty(i,"_subtype",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(i,"_defaultValue",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(i,"optionalValues",{enumerable:!0,configurable:!0,writable:!0,value:r}),i}return c(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return this._subtype.flags|ie.Optional},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._subtype.describe()+"?"}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){if(this.optionalValues.indexOf(r)>=0){var i=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate(e,t,n,i)}return this._subtype.instantiate(e,t,n,r)}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return this._subtype.reconcile(e,this.optionalValues.indexOf(t)<0&&this._subtype.is(t)?t:this.getDefaultInstanceOrSnapshot(),n,r)}}),Object.defineProperty(t.prototype,"getDefaultInstanceOrSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e="function"==typeof this._defaultValue?this._defaultValue():this._defaultValue;return"function"==typeof this._defaultValue&&Ue(this,e),e}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.optionalValues.indexOf(e)>=0?$e():this._subtype.validate(e,t)}}),Object.defineProperty(t.prototype,"isAssignableFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._subtype.isAssignableFrom(e)}}),Object.defineProperty(t.prototype,"getSubTypes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._subtype}}),t}(ce);function Cn(e,t,n){return function(e,t){if("function"!=typeof t&&Ye(t))throw dt("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead");he()}(0,t),new jn(e,t,n||En)}var En=[void 0];function Tn(e){return pe(e)&&(e.flags&ie.Optional)>0}var Nn=Cn(vn,void 0),In=Cn(bn,null);function Rn(e){return he(),An(e,Nn)}var Mn=function(e){function t(t,n){var r=e.call(this,t)||this;return Object.defineProperty(r,"_definition",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(r,"_subType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r}return c(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|ie.Late},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getSubType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!this._subType){var t=void 0;try{t=this._definition()}catch(e){if(!(e instanceof ReferenceError))throw e;t=void 0}if(e&&void 0===t)throw dt("Late type seems to be used too early, the definition (still) returns undefined");t&&(this._subType=t)}return this._subType}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return this.getSubType(!0).instantiate(e,t,n,r)}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return this.getSubType(!0).reconcile(e,t,n,r)}}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.getSubType(!1);return e?e.name:"<uknown late type>"}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.getSubType(!1);return n?n.validate(e,t):$e()}}),Object.defineProperty(t.prototype,"isAssignableFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.getSubType(!1);return!!t&&t.isAssignableFrom(e)}}),Object.defineProperty(t.prototype,"getSubTypes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.getSubType(!1)||ue}}),t}(ce);function Ln(e){return pe(e)&&(e.flags&ie.Late)>0}var Dn=function(e){function t(t,n){var r=e.call(this,t)||this;return Object.defineProperty(r,"options",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(r,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Lazy}),Object.defineProperty(r,"loadedType",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(r,"pendingNodeList",{enumerable:!0,configurable:!0,writable:!0,value:i.observable.array()}),(0,i.when)((function(){return r.pendingNodeList.length>0&&r.pendingNodeList.some((function(e){return e.isAlive&&r.options.shouldLoadPredicate(e.parent?e.parent.value:null)}))}),(function(){r.options.loadType().then((0,i.action)((function(e){r.loadedType=e,r.pendingNodeList.forEach((function(e){e.parent&&r.loadedType&&e.parent.applyPatches([{op:"replace",path:"/"+e.subpath,value:e.snapshot}])}))})))})),r}return c(t,e),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"<lazy "+this.name+">"}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var a=this;if(this.loadedType)return this.loadedType.instantiate(e,t,n,r);var o=Qe(this,e,t,n,r);return this.pendingNodeList.push(o),(0,i.when)((function(){return!o.isAlive}),(function(){return a.pendingNodeList.splice(a.pendingNodeList.indexOf(o),1)})),o}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.loadedType?this.loadedType.validate(e,t):wt(e)?$e():Fe(t,e,"Value is not serializable and cannot be lazy")}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r,i){return this.loadedType?(t.die(),this.loadedType.instantiate(r,i,r.environment,n)):e.prototype.reconcile.call(this,t,n,r,i)}}),t}(de),zn=function(e){function t(t){var n=e.call(this,t?"frozen("+t.name+")":"frozen")||this;return Object.defineProperty(n,"subType",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(n,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Frozen}),n}return c(t,e),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"<any immutable value>"}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return Qe(this,e,t,n,r)}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return wt(e)?this.subType?this.subType.validate(e,t):$e():Fe(t,e,"Value is not serializable and cannot be frozen")}}),t}(de),Vn=new zn;function $n(e){return pe(e)&&(e.flags&ie.Frozen)>0}var Fn=function(){function e(e,t){if(Object.defineProperty(this,"targetType",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"identifier",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resolvedReference",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),tr(e))this.identifier=e;else{if(!Ye(e))throw dt("Can only store references to tree nodes or identifiers, got: '"+e+"'");var n=Je(e);if(!n.identifierAttribute)throw dt("Can only store references with a defined identifier attribute.");var r=n.unnormalizedIdentifier;if(null==r)throw dt("Can only store references to tree nodes with a defined identifier.");this.identifier=r}}return Object.defineProperty(e.prototype,"updateResolvedReference",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=er(this.identifier),n=e.root,r=n.identifierCache.getLastCacheModificationPerId(t);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==r){var i=this.targetType,a=n.identifierCache.resolve(i,t);if(!a)throw new Bn("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+e.path+")");this.resolvedReference={node:a,lastCacheModification:r}}}}),Object.defineProperty(e.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!1,configurable:!0}),e}(),Bn=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return c(t,e),t}(Error),Un=function(e){function t(t,n){var r=e.call(this,"reference("+t.name+")")||this;return Object.defineProperty(r,"targetType",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(r,"onInvalidated",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(r,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Reference}),r}return c(t,e),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.name}}),Object.defineProperty(t.prototype,"isAssignableFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.targetType.isAssignableFrom(e)}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return tr(e)?$e():Fe(t,e,"Value is not a valid identifier, which is a string or a number")}}),Object.defineProperty(t.prototype,"fireInvalidated",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=t.parent;if(i&&i.isAlive){var a=i.storedValue;a&&this.onInvalidated({cause:e,parent:a,invalidTarget:r?r.storedValue:void 0,invalidId:n,replaceRef:function(e){w(t.root.storedValue,{op:"replace",value:e,path:t.path})},removeRef:function(){ln(i.type)?this.replaceRef(void 0):w(t.root.storedValue,{op:"remove",path:t.path})}})}}}),Object.defineProperty(t.prototype,"addTargetNodeWatcher",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,i=this.getValue(e);if(i){var a=Je(i),o=function(i,o){var l=function(e){switch(e){case r.beforeDestroy:return"destroy";case r.beforeDetach:return"detach";default:return}}(o);l&&n.fireInvalidated(l,e,t,a)},l=a.registerHook(r.beforeDetach,o),u=a.registerHook(r.beforeDestroy,o);return function(){l(),u()}}}}),Object.defineProperty(t.prototype,"watchTargetNodeForInvalidations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var i=this;if(this.onInvalidated){var a;e.registerHook(r.beforeDestroy,(function(){a&&a()}));var o=function(r){a&&a();var o=e.parent,l=o&&o.storedValue;o&&o.isAlive&&l&&((n?n.get(t,l):e.root.identifierCache.has(i.targetType,er(t)))?a=i.addTargetNodeWatcher(e,t):r||i.fireInvalidated("invalidSnapshotReference",e,t,null))};e.state===We.FINALIZED?o(!0):(e.isRoot||e.root.registerHook(r.afterCreationFinalization,(function(){e.parent&&e.parent.createObservableInstanceIfNeeded()})),e.registerHook(r.afterAttach,(function(){o(!1)})))}}}),t}(de),Hn=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),Object.defineProperty(t.prototype,"getValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.isAlive)return e.storedValue.resolvedValue}}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.storedValue.identifier}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=Ye(r)?D(r):r,a=new Fn(r,this.targetType),o=Qe(this,e,t,n,a);return a.node=o,this.watchTargetNodeForInvalidations(o,i,void 0),o}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){if(!e.isDetaching&&e.type===this){var i=Ye(t),a=e.storedValue;if(!i&&a.identifier===t||i&&a.resolvedValue===t)return e.setParent(n,r),e}var o=this.instantiate(n,r,void 0,t);return e.die(),o}}),t}(Un),Wn=function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return Object.defineProperty(i,"options",{enumerable:!0,configurable:!0,writable:!0,value:n}),i}return c(t,e),Object.defineProperty(t.prototype,"getValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.isAlive)return this.options.get(e.storedValue,e.parent?e.parent.storedValue:null)}}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.storedValue}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=Ye(r)?this.options.set(r,e?e.storedValue:null):r,a=Qe(this,e,t,n,i);return this.watchTargetNodeForInvalidations(a,i,this.options),a}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=Ye(t)?this.options.set(t,e?e.storedValue:null):t;if(!e.isDetaching&&e.type===this&&e.storedValue===i)return e.setParent(n,r),e;var a=this.instantiate(n,r,void 0,i);return e.die(),a}}),t}(Un);function Kn(e,t){he();var n=t||void 0,r=t?t.onInvalidated:void 0;return n&&(n.get||n.set)?new Wn(e,{get:n.get,set:n.set},r):new Hn(e,r)}function Gn(e){return(e.flags&ie.Reference)>0}var qn=function(e){function t(t,n){var r=e.call(this,t)||this;return Object.defineProperty(r,"validType",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(r,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Identifier}),r}return c(t,e),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){if(!(e&&e.type instanceof on))throw dt("Identifier types can only be instantiated as direct child of a model type");return Qe(this,e,t,n,r)}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){if(e.storedValue!==t)throw dt("Tried to change identifier from '"+e.storedValue+"' to '"+t+"'. Changing identifiers is not allowed.");return e.setParent(n,r),e}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return typeof e!==this.validType?Fe(t,e,"Value is not a valid "+this.describe()+", expected a "+this.validType):$e()}}),t}(de),Qn=function(e){function t(){var t=e.call(this,"identifier","string")||this;return Object.defineProperty(t,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Identifier}),t}return c(t,e),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"identifier"}}),t}(qn),Yn=function(e){function t(){return e.call(this,"identifierNumber","number")||this}return c(t,e),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.storedValue}}),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"identifierNumber"}}),t}(qn),Xn=new Qn,Jn=new Yn;function Zn(e){return pe(e)&&(e.flags&ie.Identifier)>0}function er(e){return""+e}function tr(e){return"string"==typeof e||"number"==typeof e}var nr=function(e){function t(t){var n=e.call(this,t.name)||this;return Object.defineProperty(n,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(n,"flags",{enumerable:!0,configurable:!0,writable:!0,value:ie.Custom}),n}return c(t,e),Object.defineProperty(t.prototype,"describe",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.name}}),Object.defineProperty(t.prototype,"isValidSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(this.options.isTargetType(e))return $e();var n=this.options.getValidationMessage(e);return n?Fe(t,e,"Invalid value for type '"+this.name+"': "+n):$e()}}),Object.defineProperty(t.prototype,"getSnapshot",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.options.toSnapshot(e.storedValue)}}),Object.defineProperty(t.prototype,"instantiate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return Qe(this,e,t,n,this.options.isTargetType(r)?r:this.options.fromSnapshot(r,e&&e.root.environment))}}),Object.defineProperty(t.prototype,"reconcile",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=!this.options.isTargetType(t);if(!e.isDetaching&&e.type===this&&(i?t===e.snapshot:t===e.storedValue))return e.setParent(n,r),e;var a=i?this.options.fromSnapshot(t,n.root.environment):t,o=this.instantiate(n,r,void 0,a);return e.die(),o}}),t}(de),rr={enumeration:function(e,t){var n="string"==typeof e?t:e,r=An.apply(void 0,b(n.map((function(e){return _n(""+e)}))));return"string"==typeof e&&(r.name=e),r},model:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="string"==typeof e[0]?e.shift():"AnonymousModel",r=e.shift()||{};return new on({name:n,properties:r})},compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="string"==typeof e[0],r=n?e[0]:"AnonymousModel";return n&&e.shift(),e.reduce((function(e,t){return e.cloneAndEnhance({name:e.name+"_"+t.name,properties:t.properties,initializers:t.initializers,preProcessor:function(n){return t.applySnapshotPreProcessor(e.applySnapshotPreProcessor(n))},postProcessor:function(n){return t.applySnapshotPostProcessor(e.applySnapshotPostProcessor(n))}})})).named(r)},custom:function(e){return new nr(e)},reference:Kn,safeReference:function(e,t){var n=Kn(e,f(f({},t),{onInvalidated:function(e){t&&t.onInvalidated&&t.onInvalidated(e),e.removeRef()}}));return t&&!1===t.acceptsUndefined?n:Rn(n)},union:An,optional:Cn,literal:_n,maybe:Rn,maybeNull:function(e){return he(),An(e,In)},refinement:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="string"==typeof e[0]?e.shift():pe(e[0])?e[0].name:null,r=e[0],i=e[1],a=e[2]?e[2]:function(e){return"Value does not respect the refinement predicate"};return he(),Et(),new kn(n,r,i,a)},string:sn,boolean:hn,number:cn,integer:fn,float:dn,finite:pn,Date:gn,map:function(e){return new qt("Map<string, "+e.name+">",e)},array:function(e){return he(),new Yt(e.name+"[]",e)},frozen:function(e){return 0===arguments.length?Vn:pe(e)?new zn(e):Cn(Vn,e)},identifier:Xn,identifierNumber:Jn,late:function(e,t){var n="string"==typeof e?e:"late("+e.toString()+")";return new Mn(n,"string"==typeof e?t:e)},lazy:function(e,t){return new Dn(e,t)},undefined:vn,null:bn,snapshotProcessor:function(e,t,n){return he(),new Ht(e,t,n)}}},42489:(e,t,n)=>{function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.r(t),n.d(t,{$mobx:()=>K,FlowCancellationError:()=>vn,ObservableMap:()=>_r,ObservableSet:()=>Or,Reaction:()=>Et,_allowStateChanges:()=>Qe,_allowStateChangesInsideComputed:()=>qt,_allowStateReadsEnd:()=>ht,_allowStateReadsStart:()=>pt,_autoAction:()=>Gt,_endAction:()=>qe,_getAdministration:()=>Kr,_getGlobalState:()=>_t,_interceptReads:()=>On,_isComputingDerivation:()=>lt,_resetGlobalState:()=>St,_startAction:()=>Ge,action:()=>Kt,autorun:()=>Yt,comparer:()=>Y,computed:()=>$e,configure:()=>sn,createAtom:()=>Q,defineProperty:()=>Vn,entries:()=>Rn,extendObservable:()=>cn,flow:()=>wn,flowResult:()=>Sn,get:()=>zn,getAtom:()=>Wr,getDebugName:()=>Gr,getDependencyTree:()=>fn,getObserverTree:()=>pn,has:()=>Dn,intercept:()=>Pn,isAction:()=>Qt,isBoxedObservable:()=>Ze,isComputed:()=>xn,isComputedProp:()=>jn,isFlow:()=>kn,isFlowCancellationError:()=>yn,isObservable:()=>En,isObservableArray:()=>yr,isObservableMap:()=>Sr,isObservableObject:()=>Nr,isObservableProp:()=>Tn,isObservableSet:()=>Pr,keys:()=>Nn,makeAutoObservable:()=>ar,makeObservable:()=>rr,observable:()=>Le,observe:()=>Fn,onBecomeObserved:()=>nn,onBecomeUnobserved:()=>rn,onReactionError:()=>Tt,override:()=>ee,ownKeys:()=>$n,reaction:()=>Zt,remove:()=>Ln,runInAction:()=>qt,set:()=>Mn,spy:()=>Dt,toJS:()=>Hn,trace:()=>Wn,transaction:()=>Kn,untracked:()=>ct,values:()=>In,when:()=>Gn});var i={};function a(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:i}var o=Object.assign,l=Object.getOwnPropertyDescriptor,u=Object.defineProperty,s=Object.prototype,c=[];Object.freeze(c);var f={};Object.freeze(f);var d="undefined"!=typeof Proxy,p=Object.toString();function h(){d||r("Proxy not available")}function b(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var v=function(){};function y(e){return"function"==typeof e}function g(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function m(e){return null!==e&&"object"==typeof e}function w(e){if(!m(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===p}function _(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function S(e,t,n){u(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function k(e,t,n){u(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function O(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return m(e)&&!0===e[n]}}function P(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function A(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var x=void 0!==Object.getOwnPropertySymbols,j="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:x?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function C(e){return null===e?null:"object"==typeof e?""+e:e}function E(e,t){return s.hasOwnProperty.call(e,t)}var T=Object.getOwnPropertyDescriptors||function(e){var t={};return j(e).forEach((function(n){t[n]=l(e,n)})),t};function N(e,t){return!!(e&t)}function I(e,t,n){return n?e|=t:e&=~t,e}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M(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,F(r.key),r)}}function L(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(null,arguments)}function V(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$(e,t)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function F(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var B=Symbol("mobx-stored-annotations");function U(e){return Object.assign((function(t,n){if(W(n))return e.decorate_20223_(t,n);H(t,n,e)}),e)}function H(e,t,n){E(e,B)||S(e,B,z({},e[B])),function(e){return e.annotationType_===Z}(n)||(e[B][t]=n)}function W(e){return"object"==typeof e&&"string"==typeof e.kind}var K=Symbol("mobx administration"),G=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=tt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return jt(this)},t.reportChanged=function(){At(),Ct(this),xt()},t.toString=function(){return this.name_},L(e,[{key:"isBeingObserved",get:function(){return N(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=I(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return N(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=I(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return N(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=I(this.flags_,e.diffValueMask_,1===t)}}])}();G.isBeingObservedMask_=1,G.isPendingUnobservationMask_=2,G.diffValueMask_=4;var q=O("Atom",G);function Q(e,t,n){void 0===t&&(t=v),void 0===n&&(n=v);var r=new G(e);return t!==v&&nn(r,t),n!==v&&rn(r,n),r}var Y={identity:function(e,t){return e===t},structural:function(e,t){return Yr(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return Yr(e,t,1)}};function X(e,t,n){return En(e)?e:Array.isArray(e)?Le.array(e,{name:n}):w(e)?Le.object(e,void 0,{name:n}):P(e)?Le.map(e,{name:n}):A(e)?Le.set(e,{name:n}):"function"!=typeof e||Qt(e)||kn(e)?e:_(e)?wn(e):Gt(n,e)}function J(e){return e}var Z="override",ee=U({annotationType_:Z,make_:function(e,t){return 0},extend_:function(e,t,n,i){r("'"+this.annotationType_+"' can only be used with 'makeObservable'")},decorate_20223_:function(e,t){console.warn("'"+this.annotationType_+"' cannot be used with decorators - this is a no-op")}});function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re,decorate_20223_:ie}}function ne(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Qt(n.value))return 1;var a=ae(e,this,t,n,!1);return u(r,t,a),2}function re(e,t,n,r){var i=ae(e,this,t,n);return e.defineProperty_(t,i,r)}function ie(e,t){var n=t.kind,i=t.name,a=t.addInitializer,o=this;if("field"!=n){var l,u,s,c,f,d;if("method"==n)return Qt(e)||(u=e,e=We(null!=(s=null==(c=o.options_)?void 0:c.name)?s:i.toString(),u,null!=(f=null==(d=o.options_)?void 0:d.autoAction)&&f)),null!=(l=this.options_)&&l.bound&&a((function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t})),e;r("Cannot apply '"+o.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):\n'"+o.annotationType_+"' can only be used on properties with a function value.")}else a((function(){H(this,i,o)}))}function ae(e,t,n,r,i){var a,o,l,u,s,c,f,d;void 0===i&&(i=wt.safeDescriptors),d=r,t.annotationType_,d.value;var p,h=r.value;return null!=(a=t.options_)&&a.bound&&(h=h.bind(null!=(p=e.proxy_)?p:e.target_)),{value:We(null!=(o=null==(l=t.options_)?void 0:l.name)?o:n.toString(),h,null!=(u=null==(s=t.options_)?void 0:s.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function oe(e,t){return{annotationType_:e,options_:t,make_:le,extend_:ue,decorate_20223_:se}}function le(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!E(e.target_,t)||!kn(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(kn(n.value))return 1;var a=ce(e,this,0,n,!1,!1);return u(r,t,a),2}function ue(e,t,n,r){var i,a=ce(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,a,r)}function se(e,t){var n,r=t.name,i=t.addInitializer;return kn(e)||(e=wn(e)),null!=(n=this.options_)&&n.bound&&i((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function ce(e,t,n,r,i,a){var o;void 0===a&&(a=wt.safeDescriptors),o=r,t.annotationType_,o.value;var l,u=r.value;return kn(u)||(u=wn(u)),i&&((u=u.bind(null!=(l=e.proxy_)?l:e.target_)).isMobXFlow=!0),{value:u,configurable:!a||e.isPlainObject_,enumerable:!1,writable:!a}}function fe(e,t){return{annotationType_:e,options_:t,make_:de,extend_:pe,decorate_20223_:he}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function pe(e,t,n,r){return i=n,this.annotationType_,i.get,e.defineComputedProperty_(t,z({},this.options_,{get:n.get,set:n.set}),r);var i}function he(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=Cr(this)[K],i=z({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new et(i))})),function(){return this[K].getObservablePropValue_(r)}}function be(e,t){return{annotationType_:e,options_:t,make_:ve,extend_:ye,decorate_20223_:ge}}function ve(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ye(e,t,n,r){var i,a;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(i=null==(a=this.options_)?void 0:a.enhancer)?i:X,r)}function ge(e,t){var n=this,r=t.kind,i=t.name,a=new WeakSet;function o(e,t){var r,o,l=Cr(e)[K],u=new Je(t,null!=(r=null==(o=n.options_)?void 0:o.enhancer)?r:X,"ObservableObject."+i.toString(),!1);l.values_.set(i,u),a.add(e)}if("accessor"==r)return{get:function(){return a.has(this)||o(this,e.get.call(this)),this[K].getObservablePropValue_(i)},set:function(e){return a.has(this)||o(this,e),this[K].setObservablePropValue_(i,e)},init:function(e){return a.has(this)||o(this,e),e}}}var me="true",we=_e();function _e(e){return{annotationType_:me,options_:e,make_:Se,extend_:ke,decorate_20223_:Oe}}function Se(e,t,n,r){var i,a,o,l;if(n.get)return $e.make_(e,t,n,r);if(n.set){var s=We(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!wt.safeDescriptors||e.isPlainObject_,set:s})?0:2:(u(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&"function"==typeof n.value)return _(n.value)?(null!=(l=this.options_)&&l.autoBind?wn.bound:wn).make_(e,t,n,r):(null!=(o=this.options_)&&o.autoBind?Gt.bound:Gt).make_(e,t,n,r);var c,f=!1===(null==(i=this.options_)?void 0:i.deep)?Le.ref:Le;return"function"==typeof n.value&&null!=(a=this.options_)&&a.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),f.make_(e,t,n,r)}function ke(e,t,n,r){var i,a,o;return n.get?$e.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!wt.safeDescriptors||e.isPlainObject_,set:We(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(o=e.proxy_)?o:e.target_)),(!1===(null==(a=this.options_)?void 0:a.deep)?Le.ref:Le).extend_(e,t,n,r))}function Oe(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var Pe={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ae(e){return e||Pe}Object.freeze(Pe);var xe=be("observable"),je=be("observable.ref",{enhancer:J}),Ce=be("observable.shallow",{enhancer:function(e,t,n){return null==e||Nr(e)||yr(e)||Sr(e)||Pr(e)?e:Array.isArray(e)?Le.array(e,{name:n,deep:!1}):w(e)?Le.object(e,void 0,{name:n,deep:!1}):P(e)?Le.map(e,{name:n,deep:!1}):A(e)?Le.set(e,{name:n,deep:!1}):void 0}}),Ee=be("observable.struct",{enhancer:function(e,t){return Yr(e,t)?t:e}}),Te=U(xe);function Ne(e){return!0===e.deep?X:!1===e.deep?J:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:X;var t,n,r}function Ie(e,t,n){return W(t)?xe.decorate_20223_(e,t):g(t)?void H(e,t,xe):En(e)?e:w(e)?Le.object(e,t,n):Array.isArray(e)?Le.array(e,t):P(e)?Le.map(e,t):A(e)?Le.set(e,t):"object"==typeof e&&null!==e?e:Le.box(e,t)}o(Ie,Te);var Re,Me,Le=o(Ie,{box:function(e,t){var n=Ae(t);return new Je(e,Ne(n),n.name,!0,n.equals)},array:function(e,t){var n=Ae(t);return(!1===wt.useProxies||!1===n.proxy?Hr:cr)(e,Ne(n),n.name)},map:function(e,t){var n=Ae(t);return new _r(e,Ne(n),n.name)},set:function(e,t){var n=Ae(t);return new Or(e,Ne(n),n.name)},object:function(e,t,n){return qr((function(){return cn(!1===wt.useProxies||!1===(null==n?void 0:n.proxy)?Cr({},n):function(e,t){var n,r;return h(),null!=(r=(n=(e=Cr(e,t))[K]).proxy_)?r:n.proxy_=new Proxy(e,Yn)}({},n),e,t)}))},ref:U(je),shallow:U(Ce),deep:Te,struct:U(Ee)}),De="computed",ze=fe(De),Ve=fe("computed.struct",{equals:Y.structural}),$e=function(e,t){if(W(t))return ze.decorate_20223_(e,t);if(g(t))return H(e,t,ze);if(w(e))return U(fe(De,e));var n=w(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new et(n)};Object.assign($e,ze),$e.struct=U(Ve);var Fe=0,Be=1,Ue=null!=(Re=null==(Me=l((function(){}),"name"))?void 0:Me.configurable)&&Re,He={value:"action",configurable:!0,writable:!1,enumerable:!1};function We(e,t,n,r){function i(){return Ke(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},Ue&&(He.value=e,u(i,"name",He)),i}function Ke(e,t,n,r,i){var a=Ge(0,t);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{qe(a)}}function Ge(e,t,n,r){var i=wt.trackingDerivation,a=!t||!i;At();var o=wt.allowStateChanges;a&&(ft(),o=Ye(!0));var l={runAsAction_:a,prevDerivation_:i,prevAllowStateChanges_:o,prevAllowStateReads_:pt(!0),notifySpy_:!1,startTime_:0,actionId_:Be++,parentActionId_:Fe};return Fe=l.actionId_,l}function qe(e){Fe!==e.actionId_&&r(30),Fe=e.parentActionId_,void 0!==e.error_&&(wt.suppressReactionErrors=!0),Xe(e.prevAllowStateChanges_),ht(e.prevAllowStateReads_),xt(),e.runAsAction_&&dt(e.prevDerivation_),wt.suppressReactionErrors=!1}function Qe(e,t){var n=Ye(e);try{return t()}finally{Xe(n)}}function Ye(e){var t=wt.allowStateChanges;return wt.allowStateChanges=e,t}function Xe(e){wt.allowStateChanges=e}var Je=function(e){function t(t,n,r,i,a){var o;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===a&&(a=Y.default),(o=e.call(this,r)||this).enhancer=void 0,o.name_=void 0,o.equals=void 0,o.hasUnreportedChange_=!1,o.interceptors_=void 0,o.changeListeners_=void 0,o.value_=void 0,o.dehancer=void 0,o.enhancer=n,o.name_=r,o.equals=a,o.value_=n(t,void 0,r),o}V(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==wt.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(Xn(this)){var t=Zn(this,{object:this,type:lr,newValue:e});if(!t)return wt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?wt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),er(this)&&nr(this,{type:lr,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Jn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:lr,newValue:this.value_,oldValue:void 0}),tr(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return C(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(G),Ze=O("ObservableValue",Je),et=function(){function e(e){this.dependenciesState_=tt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=tt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new it(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=nt.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=We("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?Y.structural:Y.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===tt.UP_TO_DATE_&&(e.lowestObserverState_=tt.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===tt.UP_TO_DATE_&&(e.dependenciesState_=tt.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing&&r(32,this.name_,this.derivation),0!==wt.inBatch||0!==this.observers_.size||this.keepAlive_){if(jt(this),ot(this)){var e=wt.trackingContext;this.keepAlive_&&!e&&(wt.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==tt.STALE_&&(e.lowestObserverState_=tt.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===tt.POSSIBLY_STALE_?t.dependenciesState_=tt.STALE_:t.dependenciesState_===tt.UP_TO_DATE_&&(e.lowestObserverState_=tt.UP_TO_DATE_)})))}(this),wt.trackingContext=e}}else ot(this)&&(this.warnAboutUntrackedRead_(),At(),this.value_=this.computeValue_(!1),xt());var t=this.value_;if(at(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&r(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===tt.NOT_TRACKING_,n=this.computeValue_(!0),r=t||at(e)||at(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=Ye(!1);if(e)t=ut(this,this.derivation,this.scope_);else if(!0===wt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new it(e)}return Xe(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(st(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Yt((function(){var a=n.get();if(!r||t){var o=ft();e({observableKind:"computed",debugObjectName:n.name_,type:lr,object:n,newValue:a,oldValue:i}),dt(o)}r=!1,i=a}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return C(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},L(e,[{key:"isComputing",get:function(){return N(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=I(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return N(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=I(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return N(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=I(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return N(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=I(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return N(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=I(this.flags_,e.diffValueMask_,1===t)}}])}();et.isComputingMask_=1,et.isRunningSetterMask_=2,et.isBeingObservedMask_=4,et.isPendingUnobservationMask_=8,et.diffValueMask_=16;var tt,nt,rt=O("ComputedValue",et);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(tt||(tt={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(nt||(nt={}));var it=function(e){this.cause=void 0,this.cause=e};function at(e){return e instanceof it}function ot(e){switch(e.dependenciesState_){case tt.UP_TO_DATE_:return!1;case tt.NOT_TRACKING_:case tt.STALE_:return!0;case tt.POSSIBLY_STALE_:for(var t=pt(!0),n=ft(),r=e.observing_,i=r.length,a=0;a<i;a++){var o=r[a];if(rt(o)){if(wt.disableErrorBoundaries)o.get();else try{o.get()}catch(e){return dt(n),ht(t),!0}if(e.dependenciesState_===tt.STALE_)return dt(n),ht(t),!0}}return bt(e),dt(n),ht(t),!1}}function lt(){return null!==wt.trackingDerivation}function ut(e,t,n){var r=pt(!0);bt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++wt.runId;var i,a=wt.trackingDerivation;if(wt.trackingDerivation=e,wt.inBatch++,!0===wt.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new it(e)}return wt.inBatch--,wt.trackingDerivation=a,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=tt.UP_TO_DATE_,i=0,a=e.unboundDepsCount_,o=0;o<a;o++){var l=n[o];0===l.diffValue&&(l.diffValue=1,i!==o&&(n[i]=l),i++),l.dependenciesState_>r&&(r=l.dependenciesState_)}for(n.length=i,e.newObserving_=null,a=t.length;a--;){var u=t[a];0===u.diffValue&&Ot(u,e),u.diffValue=0}for(;i--;){var s=n[i];1===s.diffValue&&(s.diffValue=0,kt(s,e))}r!==tt.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ht(r),i}function st(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Ot(t[n],e);e.dependenciesState_=tt.NOT_TRACKING_}function ct(e){var t=ft();try{return e()}finally{dt(t)}}function ft(){var e=wt.trackingDerivation;return wt.trackingDerivation=null,e}function dt(e){wt.trackingDerivation=e}function pt(e){var t=wt.allowStateReads;return wt.allowStateReads=e,t}function ht(e){wt.allowStateReads=e}function bt(e){if(e.dependenciesState_!==tt.UP_TO_DATE_){e.dependenciesState_=tt.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=tt.UP_TO_DATE_}}var vt=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],yt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},gt=!0,mt=!1,wt=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(gt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new yt).version&&(gt=!1),gt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new yt):(setTimeout((function(){mt||r(35)}),1),new yt)}();function _t(){return wt}function St(){var e=new yt;for(var t in e)-1===vt.indexOf(t)&&(wt[t]=e[t]);wt.allowStateChanges=!wt.enforceActions}function kt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Ot(e,t){e.observers_.delete(t),0===e.observers_.size&&Pt(e)}function Pt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,wt.pendingUnobservations.push(e))}function At(){wt.inBatch++}function xt(){if(0==--wt.inBatch){Rt();for(var e=wt.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof et&&n.suspend_())}wt.pendingUnobservations=[]}}function jt(e){var t=wt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&wt.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&wt.inBatch>0&&Pt(e),!1)}function Ct(e){e.lowestObserverState_!==tt.STALE_&&(e.lowestObserverState_=tt.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===tt.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=tt.STALE_})))}var Et=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=tt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=nt.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,wt.pendingReactions.push(this),Rt())},t.runReaction_=function(){if(!this.isDisposed){At(),this.isScheduled=!1;var e=wt.trackingContext;if(wt.trackingContext=this,ot(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}wt.trackingContext=e,xt()}},t.track=function(e){if(!this.isDisposed){At(),this.isRunning=!0;var t=wt.trackingContext;wt.trackingContext=this;var n=ut(this,e,void 0);wt.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&st(this),at(n)&&this.reportExceptionInDerivation_(n.cause),xt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(wt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";wt.suppressReactionErrors||console.error(n,e),wt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(At(),st(this),xt()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[K]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},L(e,[{key:"isDisposed",get:function(){return N(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=I(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return N(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=I(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return N(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=I(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return N(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=I(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return N(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=I(this.flags_,e.diffValueMask_,1===t)}}])}();function Tt(e){return wt.globalReactionErrorHandlers.push(e),function(){var t=wt.globalReactionErrorHandlers.indexOf(e);t>=0&&wt.globalReactionErrorHandlers.splice(t,1)}}Et.isDisposedMask_=1,Et.isScheduledMask_=2,Et.isTrackPendingMask_=4,Et.isRunningMask_=8,Et.diffValueMask_=16;var Nt=100,It=function(e){return e()};function Rt(){wt.inBatch>0||wt.isRunningReactions||It(Mt)}function Mt(){wt.isRunningReactions=!0;for(var e=wt.pendingReactions,t=0;e.length>0;){++t===Nt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}wt.isRunningReactions=!1}var Lt=O("Reaction",Et);function Dt(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var zt="action",Vt="autoAction",$t="<unnamed action>",Ft=te(zt),Bt=te("action.bound",{bound:!0}),Ut=te(Vt,{autoAction:!0}),Ht=te("autoAction.bound",{autoAction:!0,bound:!0});function Wt(e){return function(t,n){return y(t)?We(t.name||$t,t,e):y(n)?We(t,n,e):W(n)?(e?Ut:Ft).decorate_20223_(t,n):g(n)?H(t,n,e?Ut:Ft):g(t)?U(te(e?Vt:zt,{name:t,autoAction:e})):void 0}}var Kt=Wt(!1);Object.assign(Kt,Ft);var Gt=Wt(!0);function qt(e){return Ke(e.name,!1,e,this,void 0)}function Qt(e){return y(e)&&!0===e.isMobxAction}function Yt(e,t){var n,r,i,a;void 0===t&&(t=f);var o,l=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var u=Jt(t),s=!1;o=new Et(l,(function(){s||(s=!0,u((function(){s=!1,o.isDisposed||o.track(c)})))}),t.onError,t.requiresObservable)}else o=new Et(l,(function(){this.track(c)}),t.onError,t.requiresObservable);function c(){e(o)}return null!=(i=t)&&null!=(i=i.signal)&&i.aborted||o.schedule_(),o.getDisposer_(null==(a=t)?void 0:a.signal)}Object.assign(Gt,Ut),Kt.bound=U(Bt),Gt.bound=U(Ht);var Xt=function(e){return e()};function Jt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Xt}function Zt(e,t,n){var r,i,a;void 0===n&&(n=f);var o,l,u,s=null!=(r=n.name)?r:"Reaction",c=Kt(s,n.onError?(o=n.onError,l=t,function(){try{return l.apply(this,arguments)}catch(e){o.call(this,e)}}):t),d=!n.scheduler&&!n.delay,p=Jt(n),h=!0,b=!1,v=n.compareStructural?Y.structural:n.equals||Y.default,y=new Et(s,(function(){h||d?g():b||(b=!0,p(g))}),n.onError,n.requiresObservable);function g(){if(b=!1,!y.isDisposed){var t=!1,r=u;y.track((function(){var n=Qe(!1,(function(){return e(y)}));t=h||!v(u,n),u=n})),(h&&n.fireImmediately||!h&&t)&&c(u,r,y),h=!1}}return null!=(i=n)&&null!=(i=i.signal)&&i.aborted||y.schedule_(),y.getDisposer_(null==(a=n)?void 0:a.signal)}var en="onBO",tn="onBUO";function nn(e,t,n){return an(en,e,t,n)}function rn(e,t,n){return an(tn,e,t,n)}function an(e,t,n,r){var i="function"==typeof r?Wr(t,n):Wr(t),a=y(r)?r:n,o=e+"L";return i[o]?i[o].add(a):i[o]=new Set([a]),function(){var e=i[o];e&&(e.delete(a),0===e.size&&delete i[o])}}var on="never",ln="always",un="observed";function sn(e){!0===e.isolateGlobalState&&function(){if((wt.pendingReactions.length||wt.inBatch||wt.isRunningReactions)&&r(36),mt=!0,gt){var e=a();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),wt=new yt}}();var t,n,i=e.useProxies,o=e.enforceActions;if(void 0!==i&&(wt.useProxies=i===ln||i!==on&&"undefined"!=typeof Proxy),"ifavailable"===i&&(wt.verifyProxies=!0),void 0!==o){var l=o===ln?ln:o===un;wt.enforceActions=l,wt.allowStateChanges=!0!==l&&l!==ln}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(wt[t]=!!e[t])})),wt.allowStateReads=!wt.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=It,It=function(e){return t((function(){return n(e)}))})}function cn(e,t,n,r){var i=T(t);return qr((function(){var t=Cr(e,r)[K];j(i).forEach((function(e){t.extend_(e,i[e],!n||!(e in n)||n[e])}))})),e}function fn(e,t){return dn(Wr(e,t))}function dn(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(dn)),n}function pn(e,t){return hn(Wr(e,t))}function hn(e){var t={name:e.name_};return function(e){return e.observers_&&e.observers_.size>0}(e)&&(t.observers=Array.from(function(e){return e.observers_}(e)).map(hn)),t}var bn=0;function vn(){this.message="FLOW_CANCELLED"}function yn(e){return e instanceof vn}vn.prototype=Object.create(Error.prototype);var gn=oe("flow"),mn=oe("flow.bound",{bound:!0}),wn=Object.assign((function(e,t){if(W(t))return gn.decorate_20223_(e,t);if(g(t))return H(e,t,gn);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++bn,a=Kt(r+" - runid: "+i+" - init",n).apply(this,t),o=void 0,l=new Promise((function(t,n){var l=0;function u(e){var t;o=void 0;try{t=Kt(r+" - runid: "+i+" - yield "+l++,a.next).call(a,e)}catch(e){return n(e)}c(t)}function s(e){var t;o=void 0;try{t=Kt(r+" - runid: "+i+" - yield "+l++,a.throw).call(a,e)}catch(e){return n(e)}c(t)}function c(e){if(!y(null==e?void 0:e.then))return e.done?t(e.value):(o=Promise.resolve(e.value)).then(u,s);e.then(c,n)}e=n,u(void 0)}));return l.cancel=Kt(r+" - runid: "+i+" - cancel",(function(){try{o&&_n(o);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(v,v),_n(n),e(new vn)}catch(t){e(t)}})),l};return i.isMobXFlow=!0,i}),gn);function _n(e){y(e.cancel)&&e.cancel()}function Sn(e){return e}function kn(e){return!0===(null==e?void 0:e.isMobXFlow)}function On(e,t,n){var r;return Sr(e)||yr(e)||Ze(e)?r=Kr(e):Nr(e)&&(r=Kr(e,t)),r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0}}function Pn(e,t,n){return y(n)?function(e,t,n){return Kr(e,t).intercept_(n)}(e,t,n):function(e,t){return Kr(e).intercept_(t)}(e,t)}function An(e,t){if(void 0===t)return rt(e);if(!1===Nr(e))return!1;if(!e[K].values_.has(t))return!1;var n=Wr(e,t);return rt(n)}function xn(e){return An(e)}function jn(e,t){return An(e,t)}function Cn(e,t){return!!e&&(void 0!==t?!!Nr(e)&&e[K].values_.has(t):Nr(e)||!!e[K]||q(e)||Lt(e)||rt(e))}function En(e){return Cn(e)}function Tn(e,t){return Cn(e,t)}function Nn(e){return Nr(e)?e[K].keys_():Sr(e)||Pr(e)?Array.from(e.keys()):yr(e)?e.map((function(e,t){return t})):void r(5)}function In(e){return Nr(e)?Nn(e).map((function(t){return e[t]})):Sr(e)?Nn(e).map((function(t){return e.get(t)})):Pr(e)?Array.from(e.values()):yr(e)?e.slice():void r(6)}function Rn(e){return Nr(e)?Nn(e).map((function(t){return[t,e[t]]})):Sr(e)?Nn(e).map((function(t){return[t,e.get(t)]})):Pr(e)?Array.from(e.entries()):yr(e)?e.map((function(e,t){return[t,e]})):void r(7)}function Mn(e,t,n){if(2!==arguments.length||Pr(e))Nr(e)?e[K].set_(t,n):Sr(e)?e.set(t,n):Pr(e)?e.add(t):yr(e)?("number"!=typeof t&&(t=parseInt(t,10)),t<0&&r("Invalid index: '"+t+"'"),At(),t>=e.length&&(e.length=t+1),e[t]=n,xt()):r(8);else{At();var i=t;try{for(var a in i)Mn(e,a,i[a])}finally{xt()}}}function Ln(e,t){Nr(e)?e[K].delete_(t):Sr(e)||Pr(e)?e.delete(t):yr(e)?("number"!=typeof t&&(t=parseInt(t,10)),e.splice(t,1)):r(9)}function Dn(e,t){return Nr(e)?e[K].has_(t):Sr(e)||Pr(e)?e.has(t):yr(e)?t>=0&&t<e.length:void r(10)}function zn(e,t){if(Dn(e,t))return Nr(e)?e[K].get_(t):Sr(e)?e.get(t):yr(e)?e[t]:void r(11)}function Vn(e,t,n){if(Nr(e))return e[K].defineProperty_(t,n);r(39)}function $n(e){if(Nr(e))return e[K].ownKeys_();r(38)}function Fn(e,t,n,r){return y(n)?function(e,t,n,r){return Kr(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return Kr(e).observe_(t,n)}(e,t,n)}function Bn(e,t,n){return e.set(t,n),n}function Un(e,t){if(null==e||"object"!=typeof e||e instanceof Date||!En(e))return e;if(Ze(e)||rt(e))return Un(e.get(),t);if(t.has(e))return t.get(e);if(yr(e)){var n=Bn(t,e,new Array(e.length));return e.forEach((function(e,r){n[r]=Un(e,t)})),n}if(Pr(e)){var r=Bn(t,e,new Set);return e.forEach((function(e){r.add(Un(e,t))})),r}if(Sr(e)){var i=Bn(t,e,new Map);return e.forEach((function(e,n){i.set(n,Un(e,t))})),i}var a=Bn(t,e,{});return $n(e).forEach((function(n){s.propertyIsEnumerable.call(e,n)&&(a[n]=Un(e[n],t))})),a}function Hn(e,t){return Un(e,new Map)}function Wn(){}function Kn(e,t){void 0===t&&(t=void 0),At();try{return e.apply(t)}finally{xt()}}function Gn(e,t,n){return 1===arguments.length||t&&"object"==typeof t?function(e,t){var n,r,i;if(null!=t&&null!=(n=t.signal)&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var a=new Promise((function(n,a){var o,l=qn(e,n,z({},t,{onError:a}));r=function(){l(),a(new Error("WHEN_CANCELLED"))},i=function(){l(),a(new Error("WHEN_ABORTED"))},null==t||null==(o=t.signal)||null==o.addEventListener||o.addEventListener("abort",i)})).finally((function(){var e;return null==t||null==(e=t.signal)||null==e.removeEventListener?void 0:e.removeEventListener("abort",i)}));return a.cancel=r,a}(e,t):qn(e,t,n||{})}function qn(e,t,n){var r;if("number"==typeof n.timeout){var i=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[K].isDisposed){if(o(),!n.onError)throw i;n.onError(i)}}),n.timeout)}n.name="When";var a=We("When-effect",t),o=Yt((function(t){Qe(!1,e)&&(t.dispose(),r&&clearTimeout(r),a())}),n);return o}function Qn(e){return e[K]}wn.bound=U(mn);var Yn={has:function(e,t){return Qn(e).has_(t)},get:function(e,t){return Qn(e).get_(t)},set:function(e,t,n){var r;return!!g(t)&&(null==(r=Qn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!g(t)&&(null==(n=Qn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=Qn(e).defineProperty_(t,n))||r},ownKeys:function(e){return Qn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function Xn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Jn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),b((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Zn(e,t){var n=ft();try{for(var i=[].concat(e.interceptors_||[]),a=0,o=i.length;a<o&&((t=i[a](t))&&!t.type&&r(14),t);a++);return t}finally{dt(n)}}function er(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function tr(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),b((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function nr(e,t){var n=ft(),r=e.changeListeners_;if(r){for(var i=0,a=(r=r.slice()).length;i<a;i++)r[i](t);dt(n)}}function rr(e,t,n){return qr((function(){var r=Cr(e,n)[K];null!=t||(t=function(e){return E(e,B)||S(e,B,z({},e[B])),e[B]}(e)),j(t).forEach((function(e){return r.make_(e,t[e])}))})),e}var ir=Symbol("mobx-keys");function ar(e,t,n){return w(e)?cn(e,e,t,n):(qr((function(){var r=Cr(e,n)[K];if(!e[ir]){var i=Object.getPrototypeOf(e),a=new Set([].concat(j(e),j(i)));a.delete("constructor"),a.delete(K),S(i,ir,a)}e[ir].forEach((function(e){return r.make_(e,!t||!(e in t)||t[e])}))})),e)}var or="splice",lr="update",ur={get:function(e,t){var n=e[K];return t===K?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?E(fr,t)?fr[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[K];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},sr=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new G(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return Jn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),tr(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Ur(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=c),Xn(this)){var a=Zn(this,{object:this.proxy_,type:or,index:e,removedCount:t,added:n});if(!a)return c;t=a.removedCount,n=a.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var o=n.length-t;this.updateArrayLength_(i,o)}var l=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,l),this.dehanceValues_(l)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),a=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var o=0;o<n.length;o++)this.values_[e+o]=n[o];for(var l=0;l<a.length;l++)this.values_[e+n.length+l]=a[l];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=er(this),a=i||r?{observableKind:"array",object:this.proxy_,type:lr,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&nr(this,a)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=er(this),a=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:or,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&nr(this,a)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var i=n[e];if(Xn(this)){var a=Zn(this,{type:lr,object:this.proxy_,index:e,newValue:t});if(!a)return;t=a.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else{for(var o=new Array(e+1-n.length),l=0;l<o.length-1;l++)o[l]=void 0;o[o.length-1]=t,this.spliceWithArray_(n.length,0,o)}},e}();function cr(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),h(),qr((function(){var i=new sr(n,t,r,!1);k(i.values_,K,i);var a=new Proxy(i.values_,ur);return i.proxy_=a,e&&e.length&&i.spliceWithArray_(0,0,e),a}))}var fr={clear:function(){return this.splice(0)},replace:function(e){var t=this[K];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=this[K];switch(arguments.length){case 0:return[];case 1:return a.spliceWithArray_(e);case 2:return a.spliceWithArray_(e,t)}return a.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[K].spliceWithArray_(e,t,n)},push:function(){for(var e=this[K],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[K].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[K],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return wt.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){wt.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[K],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function dr(e,t){"function"==typeof Array.prototype[e]&&(fr[e]=t(e))}function pr(e){return function(){var t=this[K];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function hr(e){return function(t,n){var r=this,i=this[K];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function br(e){return function(){var t=this,n=this[K];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}dr("at",pr),dr("concat",pr),dr("flat",pr),dr("includes",pr),dr("indexOf",pr),dr("join",pr),dr("lastIndexOf",pr),dr("slice",pr),dr("toString",pr),dr("toLocaleString",pr),dr("toSorted",pr),dr("toSpliced",pr),dr("with",pr),dr("every",hr),dr("filter",hr),dr("find",hr),dr("findIndex",hr),dr("findLast",hr),dr("findLastIndex",hr),dr("flatMap",hr),dr("forEach",hr),dr("map",hr),dr("some",hr),dr("toReversed",hr),dr("reduce",br),dr("reduceRight",br);var vr=O("ObservableArrayAdministration",sr);function yr(e){return m(e)&&vr(e[K])}var gr={},mr="add",wr="delete",_r=function(){function e(e,t,n){var i=this;void 0===t&&(t=X),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[K]=gr,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,y(Map)||r(18),qr((function(){i.keysAtom_=Q("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!wt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Je(this.has_(e),J,"ObservableMap.key?",!1);this.hasMap_.set(e,r),rn(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Xn(this)){var r=Zn(this,{type:n?lr:mr,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,Xn(this)&&!Zn(this,{type:wr,object:this,name:e}))return!1;if(this.has_(e)){var n=er(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:wr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return Kn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&nr(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==wt.UNCHANGED){var r=er(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:lr,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&nr(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,Kn((function(){var r,i=new Je(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=er(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:mr,object:this,name:e,newValue:t}:null;r&&nr(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Zr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return Zr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=D(this);!(n=r()).done;){var i=n.value,a=i[0],o=i[1];e.call(t,o,a,this)}},t.merge=function(e){var t=this;return Sr(e)&&(e=new Map(e)),Kn((function(){var n,i,a;w(e)?function(e){var t=Object.keys(e);if(!x)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return s.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):P(e)?(n=e,i=Object.getPrototypeOf(n),a=Object.getPrototypeOf(i),null!==Object.getPrototypeOf(a)&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;Kn((function(){ct((function(){for(var t,n=D(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return Kn((function(){for(var n,i=function(e){if(P(e)||Sr(e))return e;if(Array.isArray(e))return new Map(e);if(w(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),a=new Map,o=!1,l=D(t.data_.keys());!(n=l()).done;){var u=n.value;if(!i.has(u))if(t.delete(u))o=!0;else{var s=t.data_.get(u);a.set(u,s)}}for(var c,f=D(i.entries());!(c=f()).done;){var d=c.value,p=d[0],h=d[1],b=t.data_.has(p);if(t.set(p,h),t.data_.has(p)){var v=t.data_.get(p);a.set(p,v),b||(o=!0)}}if(!o)if(t.data_.size!==a.size)t.keysAtom_.reportChanged();else for(var y=t.data_.keys(),g=a.keys(),m=y.next(),_=g.next();!m.done;){if(m.value!==_.value){t.keysAtom_.reportChanged();break}m=y.next(),_=g.next()}t.data_=a})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return tr(this,e)},t.intercept_=function(e){return Jn(this,e)},L(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Sr=O("ObservableMap",_r),kr={},Or=function(){function e(e,t,n){var i=this;void 0===t&&(t=X),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[K]=kr,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,y(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},qr((function(){i.atom_=Q(i.name_),e&&i.replace(e)}))}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;Kn((function(){ct((function(){for(var t,n=D(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=D(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,Xn(this)&&!Zn(this,{type:mr,object:this,newValue:e}))return this;if(!this.has(e)){Kn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=er(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:mr,object:this,newValue:e}:null;n&&nr(this,r)}return this},t.delete=function(e){var t=this;if(Xn(this)&&!Zn(this,{type:wr,object:this,oldValue:e}))return!1;if(this.has(e)){var n=er(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:wr,object:this,oldValue:e}:null;return Kn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&nr(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Zr({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return Zr({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.intersection=function(e){return A(e)&&!Pr(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return A(e)&&!Pr(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return A(e)&&!Pr(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return A(e)&&!Pr(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Pr(e)&&(e=new Set(e)),Kn((function(){Array.isArray(e)||A(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return tr(this,e)},t.intercept_=function(e){return Jn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},L(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Pr=O("ObservableSet",Or),Ar=Object.create(null),xr="remove",jr=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=we),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new G("ObservableObject.keys"),this.isPlainObject_=w(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof et)return n.set(t),!0;if(Xn(this)){var r=Zn(this,{type:lr,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==wt.UNCHANGED){var i=er(this),a=i?{type:lr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&nr(this,a)}return!0},t.get_=function(e){return wt.trackingDerivation&&!E(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),E(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!wt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Je(e in this.target_,J,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[B])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==s;){var a=l(i,e);if(a){var o=t.make_(this,e,a,i);if(0===o)return;if(1===o)break}i=Object.getPrototypeOf(i)}Ir(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Ir(this,0,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{At();var r=this.delete_(e);if(!r)return r;if(Xn(this)){var i=Zn(this,{object:this.proxy_||this.target_,name:e,type:mr,newValue:t.value});if(!i)return null;var a=i.newValue;t.value!==a&&(t=z({},t,{value:a}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else u(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{xt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{At();var i=this.delete_(e);if(!i)return i;if(Xn(this)){var a=Zn(this,{object:this.proxy_||this.target_,name:e,type:mr,newValue:t});if(!a)return null;t=a.newValue}var o=Tr(e),l={configurable:!wt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.target_,e,l))return!1}else u(this.target_,e,l);var s=new Je(t,n,"ObservableObject.key",!1);this.values_.set(e,s),this.notifyPropertyAddition_(e,s.value_)}finally{xt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{At();var r=this.delete_(e);if(!r)return r;if(Xn(this)&&!Zn(this,{object:this.proxy_||this.target_,name:e,type:mr,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Tr(e),a={configurable:!wt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,a))return!1}else u(this.target_,e,a);this.values_.set(e,new et(t)),this.notifyPropertyAddition_(e,void 0)}finally{xt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!E(this.target_,e))return!0;if(Xn(this)&&!Zn(this,{object:this.proxy_||this.target_,name:e,type:xr}))return null;try{var n;At();var r,i=er(this),a=this.values_.get(e),o=void 0;if(!a&&i&&(o=null==(r=l(this.target_,e))?void 0:r.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof Je&&(o=a.value_),Ct(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var u={type:xr,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:o,name:e};i&&nr(this,u)}}finally{xt()}return!0},t.observe_=function(e,t){return tr(this,e)},t.intercept_=function(e){return Jn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=er(this);if(r){var i=r?{type:mr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&nr(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),j(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Cr(e,t){var n;if(E(e,K))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new jr(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:_e(e):void 0}(t));return S(e,K,i),e}var Er=O("ObservableObjectAdministration",jr);function Tr(e){return Ar[e]||(Ar[e]={get:function(){return this[K].getObservablePropValue_(e)},set:function(t){return this[K].setObservablePropValue_(e,t)}})}function Nr(e){return!!m(e)&&Er(e[K])}function Ir(e,t,n){var r;null==(r=e.target_[B])||delete r[n]}var Rr,Mr,Lr=Fr(0),Dr=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),zr=0,Vr=function(){};Rr=Vr,Mr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Rr.prototype,Mr):void 0!==Rr.prototype.__proto__?Rr.prototype.__proto__=Mr:Rr.prototype=Mr;var $r=function(e){function t(t,n,r,i){var a;return void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),a=e.call(this)||this,qr((function(){var e=new sr(r,n,i,!0);e.proxy_=a,k(a,K,e),t&&t.length&&a.spliceWithArray(0,0,t),Dr&&Object.defineProperty(a,"0",Lr)})),a}V(t,e);var n=t.prototype;return n.concat=function(){this[K].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return yr(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return Zr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},L(t,[{key:"length",get:function(){return this[K].getArrayLength_()},set:function(e){this[K].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Vr);function Fr(e){return{enumerable:!1,configurable:!0,get:function(){return this[K].get_(e)},set:function(t){this[K].set_(e,t)}}}function Br(e){u($r.prototype,""+e,Fr(e))}function Ur(e){if(e>zr){for(var t=zr;t<e+100;t++)Br(t);zr=e}}function Hr(e,t,n){return new $r(e,t,n)}function Wr(e,t){if("object"==typeof e&&null!==e){if(yr(e))return void 0!==t&&r(23),e[K].atom_;if(Pr(e))return e.atom_;if(Sr(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,Gr(e)),n}if(Nr(e)){if(!t)return r(26);var i=e[K].values_.get(t);return i||r(27,t,Gr(e)),i}if(q(e)||rt(e)||Lt(e))return e}else if(y(e)&&Lt(e[K]))return e[K];r(28)}function Kr(e,t){return e||r(29),void 0!==t?Kr(Wr(e,t)):q(e)||rt(e)||Lt(e)||Sr(e)||Pr(e)?e:e[K]?e[K]:void r(24,e)}function Gr(e,t){var n;if(void 0!==t)n=Wr(e,t);else{if(Qt(e))return e.name;n=Nr(e)||Sr(e)||Pr(e)?Kr(e):Wr(e)}return n.name_}function qr(e){var t=ft(),n=Ye(!0);At();try{return e()}finally{xt(),Xe(n),dt(t)}}Object.entries(fr).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&S($r.prototype,t,n)})),Ur(1e3);var Qr=s.toString;function Yr(e,t,n){return void 0===n&&(n=-1),Xr(e,t,n)}function Xr(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var a=typeof e;if("function"!==a&&"object"!==a&&"object"!=typeof t)return!1;var o=Qr.call(e);if(o!==Qr.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=Jr(e),t=Jr(t);var l="[object Array]"===o;if(!l){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,s=t.constructor;if(u!==s&&!(y(u)&&u instanceof u&&y(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),l){if((c=e.length)!==t.length)return!1;for(;c--;)if(!Xr(e[c],t[c],n-1,r,i))return!1}else{var f,d=Object.keys(e);if(c=d.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!E(t,f=d[c])||!Xr(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function Jr(e){return yr(e)?e.slice():P(e)||Sr(e)||A(e)||Pr(e)?Array.from(e.entries()):e}function Zr(e){return e[Symbol.iterator]=ei,e}function ei(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===a()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Dt,extras:{getDebugName:Gr},$mobx:K})},45555:(e,t,n)=>{var r=n(7552),i=n(13754);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function b(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new b(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new b(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new b(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new b(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new b(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new b(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function m(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,g);v[t]=new b(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,g);v[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,g);v[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),x=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var L,D=Object.assign;function z(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var V=!1;function $(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(1!==o||1!==l)do{if(o--,0>--l||i[o]!==a[l]){var u="\n"+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=o&&0<=l);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function F(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return $(e.type,!1);case 11:return $(e.type.render,!1);case 1:return $(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case S:return"Portal";case P:return"Profiler";case O:return"StrictMode";case C:return"Suspense";case E:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case x:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return B(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&m(e,"checked",t,!1)}function J(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function be(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=be(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function me(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Oe=null;function Pe(e){if(e=mi(e)){if("function"!=typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=_i(t),Se(e.stateNode,e.type,t))}}function Ae(e){ke?Oe?Oe.push(e):Oe=[e]:ke=e}function xe(){if(ke){var e=ke,t=Oe;if(Oe=ke=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function je(e,t){return e(t)}function Ce(){}var Ee=!1;function Te(e,t,n){if(Ee)return e(t,n);Ee=!0;try{return je(e,t,n)}finally{Ee=!1,(null!==ke||null!==Oe)&&(Ce(),xe())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=_i(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ie=!1;if(c)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ce){Ie=!1}function Me(e,t,n,r,i,a,o,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Le=!1,De=null,ze=!1,Ve=null,$e={onError:function(e){Le=!0,De=e}};function Fe(e,t,n,r,i,a,o,l,u){Le=!1,De=null,Me.apply($e,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(Be(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return He(i),e;if(o===r)return He(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l){for(u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,Qe=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Xe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null,ot=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2,st=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var l=o&~i;0!==l?r=ft(l):0!=(a&=o)&&(r=ft(a))}else 0!=(o=n&~i)?r=ft(o):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function bt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var mt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,St,kt,Ot,Pt,At=!1,xt=[],jt=null,Ct=null,Et=null,Tt=new Map,Nt=new Map,It=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Lt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=mi(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Dt(e){var t=gi(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Pt(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=mi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Vt(e,t,n){zt(e)&&n.delete(t)}function $t(){At=!1,null!==jt&&zt(jt)&&(jt=null),null!==Ct&&zt(Ct)&&(Ct=null),null!==Et&&zt(Et)&&(Et=null),Tt.forEach(Vt),Nt.forEach(Vt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,$t)))}function Bt(e){function t(t){return Ft(t,e)}if(0<xt.length){Ft(xt[0],e);for(var n=1;n<xt.length;n++){var r=xt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&Ft(jt,e),null!==Ct&&Ft(Ct,e),null!==Et&&Ft(Et,e),Tt.forEach(t),Nt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Dt(n),null===n.blockedOn&&It.shift()}var Ut=w.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var i=mt,a=Ut.transition;Ut.transition=null;try{mt=1,Gt(e,t,n,r)}finally{mt=i,Ut.transition=a}}function Kt(e,t,n,r){var i=mt,a=Ut.transition;Ut.transition=null;try{mt=4,Gt(e,t,n,r)}finally{mt=i,Ut.transition=a}}function Gt(e,t,n,r){if(Ht){var i=Qt(e,t,n,r);if(null===i)Hr(e,t,r,qt,n),Mt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return jt=Lt(jt,e,t,n,r,i),!0;case"dragenter":return Ct=Lt(Ct,e,t,n,r,i),!0;case"mouseover":return Et=Lt(Et,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Tt.set(a,Lt(Tt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Nt.set(a,Lt(Nt.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var a=mi(i);if(null!==a&&_t(a),null===(a=Qt(e,t,n,r))&&Hr(e,t,r,qt,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var qt=null;function Qt(e,t,n,r){if(qt=null,null!==(e=gi(e=_e(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,ln,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(sn),fn=D({},sn,{view:0,detail:0}),dn=an(fn),pn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(on=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=on=0,un=e),on)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=an(pn),bn=an(D({},pn,{dataTransfer:0})),vn=an(D({},fn,{relatedTarget:0})),yn=an(D({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=D({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mn=an(gn),wn=an(D({},sn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Pn(){return On}var An=D({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),xn=an(An),jn=an(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=an(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),En=an(D({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=D({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=an(Tn),In=[9,13,27,32],Rn=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Mn,Dn=c&&(!Rn||Mn&&8<Mn&&11>=Mn),zn=String.fromCharCode(32),Vn=!1;function $n(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Wn(e,t,n,r){Ae(r),0<(t=Kr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Gn=null;function qn(e){zr(e,0)}function Qn(e){if(G(wi(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),Gn=Kn=null)}function nr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];Wn(t,Gn,e,_e(e)),Te(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function ar(e,t){if("click"===e)return Qn(t)}function or(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!lr(e[i],t[i]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=cr(n,a);var o=cr(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var br=c&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,mr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;mr||null==vr||vr!==q(r)||(r="selectionStart"in(r=vr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ur(gr,r)||(gr=r,0<(r=Kr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},kr={},Or={};function Pr(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Or)return kr[e]=n[t];return e}c&&(Or=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Ar=Pr("animationend"),xr=Pr("animationiteration"),jr=Pr("animationstart"),Cr=Pr("transitionend"),Er=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(e,t){Er.set(e,t),u(t,[e])}for(var Ir=0;Ir<Tr.length;Ir++){var Rr=Tr[Ir];Nr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Nr(Ar,"onAnimationEnd"),Nr(xr,"onAnimationIteration"),Nr(jr,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Cr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,l,u,s){if(Fe.apply(this,arguments),Le){if(!Le)throw Error(a(198));var c=De;Le=!1,De=null,ze||(ze=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==a&&i.isPropagationStopped())break e;Dr(i,l,s),a=u}else for(o=0;o<r.length;o++){if(u=(l=r[o]).instance,s=l.currentTarget,l=l.listener,u!==a&&i.isPropagationStopped())break e;Dr(i,l,s),a=u}}}if(ze)throw e=Ve,ze=!1,Ve=null,e}function Vr(e,t){var n=t[bi];void 0===n&&(n=t[bi]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function $r(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Fr]){e[Fr]=!0,o.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||$r(t,!1,e),$r(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,$r("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Yt(t)){case 1:var i=Wt;break;case 4:i=Kt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==l;){if(null===(o=gi(l)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}l=l.parentNode}}r=r.return}Te((function(){var r=a,i=_e(n),o=[];e:{var l=Er.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=xn;break;case"focusin":s="focus",u=vn;break;case"focusout":s="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Cn;break;case Ar:case xr:case jr:u=yn;break;case Cr:u=En;break;case"scroll":u=dn;break;case"wheel":u=Nn;break;case"copy":case"cut":case"paste":u=mn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=jn}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var b=(p=h).stateNode;if(5===p.tag&&null!==b&&(p=b,null!==d&&null!=(b=Ne(h,d))&&c.push(Wr(h,b,p))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,i),o.push({event:l,listeners:c}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!gi(s)&&!s[hi])&&(u||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?gi(s):null)&&(s!==(f=Be(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,b="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=jn,b="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:wi(u),p=null==s?l:wi(s),(l=new c(b,h+"leave",u,n,i)).target=f,l.relatedTarget=p,b=null,gi(i)===r&&((c=new c(d,h+"enter",s,n,i)).target=p,c.relatedTarget=f,b=c),f=b,u&&s)e:{for(d=s,h=0,p=c=u;p;p=Gr(p))h++;for(p=0,b=d;b;b=Gr(b))p++;for(;0<h-p;)c=Gr(c),h--;for(;0<p-h;)d=Gr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gr(c),d=Gr(d)}c=null}else c=null;null!==u&&qr(o,l,u,c,!1),null!==s&&null!==f&&qr(o,f,s,c,!0)}if("select"===(u=(l=r?wi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Yn;else if(Hn(l))if(Xn)v=or;else{v=ir;var y=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ar);switch(v&&(v=v(e,r))?Wn(o,v,n,i):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ee(l,"number",l.value)),y=r?wi(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(vr=y,yr=r,gr=null);break;case"focusout":gr=yr=vr=null;break;case"mousedown":mr=!0;break;case"contextmenu":case"mouseup":case"dragend":mr=!1,wr(o,n,i);break;case"selectionchange":if(br)break;case"keydown":case"keyup":wr(o,n,i)}var g;if(Rn)e:{switch(e){case"compositionstart":var m="onCompositionStart";break e;case"compositionend":m="onCompositionEnd";break e;case"compositionupdate":m="onCompositionUpdate";break e}m=void 0}else Bn?$n(e,n)&&(m="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(m="onCompositionStart");m&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==m?"onCompositionEnd"===m&&Bn&&(g=en()):(Jt="value"in(Xt=i)?Xt.value:Xt.textContent,Bn=!0)),0<(y=Kr(r,m)).length&&(m=new wn(m,e,null,n,i),o.push({event:m,listeners:y}),(g||null!==(g=Fn(n)))&&(m.data=g))),(g=Ln?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(Vn=!0,zn);case"textInput":return(e=t.data)===zn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Rn&&$n(e,t)?(e=en(),Zt=Jt=Xt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Kr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g)}zr(o,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ne(e,n))&&r.unshift(Wr(e,a,i)),null!=(a=Ne(e,t))&&r.push(Wr(e,a,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,i?null!=(u=Ne(n,a))&&o.unshift(Wr(n,u,l)):i||null!=(u=Ne(n,a))&&o.push(Wr(n,u,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,ai="function"==typeof Promise?Promise:void 0,oi="function"==typeof queueMicrotask?queueMicrotask:void 0!==ai?function(e){return ai.resolve(null).then(e).catch(li)}:ri;function li(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Bt(t)}function si(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,pi="__reactProps$"+fi,hi="__reactContainer$"+fi,bi="__reactEvents$"+fi,vi="__reactListeners$"+fi,yi="__reactHandles$"+fi;function gi(e){var t=e[di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[di])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function mi(e){return!(e=e[di]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function _i(e){return e[pi]||null}var Si=[],ki=-1;function Oi(e){return{current:e}}function Pi(e){0>ki||(e.current=Si[ki],Si[ki]=null,ki--)}function Ai(e,t){ki++,Si[ki]=e.current,e.current=t}var xi={},ji=Oi(xi),Ci=Oi(!1),Ei=xi;function Ti(e,t){var n=e.type.contextTypes;if(!n)return xi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ni(e){return null!=e.childContextTypes}function Ii(){Pi(Ci),Pi(ji)}function Ri(e,t,n){if(ji.current!==xi)throw Error(a(168));Ai(ji,t),Ai(Ci,n)}function Mi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,U(e)||"Unknown",i));return D({},n,r)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xi,Ei=ji.current,Ai(ji,e),Ai(Ci,Ci.current),!0}function Di(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mi(e,t,Ei),r.__reactInternalMemoizedMergedChildContext=e,Pi(Ci),Pi(ji),Ai(ji,e)):Pi(Ci),Ai(Ci,n)}var zi=null,Vi=!1,$i=!1;function Fi(e){null===zi?zi=[e]:zi.push(e)}function Bi(){if(!$i&&null!==zi){$i=!0;var e=0,t=mt;try{var n=zi;for(mt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zi=null,Vi=!1}catch(t){throw null!==zi&&(zi=zi.slice(e+1)),Ge(Ze,Bi),t}finally{mt=t,$i=!1}}return null}var Ui=[],Hi=0,Wi=null,Ki=0,Gi=[],qi=0,Qi=null,Yi=1,Xi="";function Ji(e,t){Ui[Hi++]=Ki,Ui[Hi++]=Wi,Wi=e,Ki=t}function Zi(e,t,n){Gi[qi++]=Yi,Gi[qi++]=Xi,Gi[qi++]=Qi,Qi=e;var r=Yi;e=Xi;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yi=1<<32-ot(t)+i|n<<i|r,Xi=a+e}else Yi=1<<a|n<<i|r,Xi=e}function ea(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function ta(e){for(;e===Wi;)Wi=Ui[--Hi],Ui[Hi]=null,Ki=Ui[--Hi],Ui[Hi]=null;for(;e===Qi;)Qi=Gi[--qi],Gi[qi]=null,Xi=Gi[--qi],Gi[qi]=null,Yi=Gi[--qi],Gi[qi]=null}var na=null,ra=null,ia=!1,aa=null;function oa(e,t){var n=Ts(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=si(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qi?{id:Yi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ts(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function ua(e){return!(!(1&e.mode)||128&e.flags)}function sa(e){if(ia){var t=ra;if(t){var n=t;if(!la(e,t)){if(ua(e))throw Error(a(418));t=si(n.nextSibling);var r=na;t&&la(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function fa(e){if(e!==na)return!1;if(!ia)return ca(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(ua(e))throw da(),Error(a(418));for(;t;)oa(e,t),t=si(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=si(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?si(e.stateNode.nextSibling):null;return!0}function da(){for(var e=ra;e;)e=si(e.nextSibling)}function pa(){ra=na=null,ia=!1}function ha(e){null===aa?aa=[e]:aa.push(e)}var ba=w.ReactCurrentBatchConfig;function va(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ya(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ga(e){return(0,e._init)(e._payload)}function ma(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Is(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ds(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===k?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===N&&ga(a)===t.type)?((r=i(t,n.props)).ref=va(e,t,n),r.return=e,r):((r=Rs(n.type,n.key,n.props,null,e.mode,r)).ref=va(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Ms(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ds(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Rs(t.type,t.key,t.props,null,e.mode,n)).ref=va(e,null,t),n.return=e,n;case S:return(t=zs(t,e.mode,n)).return=e,t;case N:return d(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Ms(t,e.mode,n,null)).return=e,t;ya(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?s(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case N:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||M(n))return null!==i?null:f(e,t,n,r,null);ya(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return s(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case N:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||M(r))return f(t,e=e.get(n)||null,r,i,null);ya(t,r)}return null}function b(i,a,l,u){for(var s=null,c=null,f=a,b=a=0,v=null;null!==f&&b<l.length;b++){f.index>b?(v=f,f=null):v=f.sibling;var y=p(i,f,l[b],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,b),null===c?s=y:c.sibling=y,c=y,f=v}if(b===l.length)return n(i,f),ia&&Ji(i,b),s;if(null===f){for(;b<l.length;b++)null!==(f=d(i,l[b],u))&&(a=o(f,a,b),null===c?s=f:c.sibling=f,c=f);return ia&&Ji(i,b),s}for(f=r(i,f);b<l.length;b++)null!==(v=h(f,i,b,l[b],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?b:v.key),a=o(v,a,b),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),ia&&Ji(i,b),s}function v(i,l,u,s){var c=M(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,b=l,v=l=0,y=null,g=u.next();null!==b&&!g.done;v++,g=u.next()){b.index>v?(y=b,b=null):y=b.sibling;var m=p(i,b,g.value,s);if(null===m){null===b&&(b=y);break}e&&b&&null===m.alternate&&t(i,b),l=o(m,l,v),null===f?c=m:f.sibling=m,f=m,b=y}if(g.done)return n(i,b),ia&&Ji(i,v),c;if(null===b){for(;!g.done;v++,g=u.next())null!==(g=d(i,g.value,s))&&(l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return ia&&Ji(i,v),c}for(b=r(i,b);!g.done;v++,g=u.next())null!==(g=h(b,i,v,g.value,s))&&(e&&null!==g.alternate&&b.delete(null===g.key?v:g.key),l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return e&&b.forEach((function(e){return t(i,e)})),ia&&Ji(i,v),c}return function e(r,a,o,u){if("object"==typeof o&&null!==o&&o.type===k&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case _:e:{for(var s=o.key,c=a;null!==c;){if(c.key===s){if((s=o.type)===k){if(7===c.tag){n(r,c.sibling),(a=i(c,o.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===N&&ga(s)===c.type){n(r,c.sibling),(a=i(c,o.props)).ref=va(r,c,o),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===k?((a=Ms(o.props.children,r.mode,u,o.key)).return=r,r=a):((u=Rs(o.type,o.key,o.props,null,r.mode,u)).ref=va(r,a,o),u.return=r,r=u)}return l(r);case S:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=zs(o,r.mode,u)).return=r,r=a}return l(r);case N:return e(r,a,(c=o._init)(o._payload),u)}if(te(o))return b(r,a,o,u);if(M(o))return v(r,a,o,u);ya(r,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Ds(o,r.mode,u)).return=r,r=a),l(r)):n(r,a)}}var wa=ma(!0),_a=ma(!1),Sa=Oi(null),ka=null,Oa=null,Pa=null;function Aa(){Pa=Oa=ka=null}function xa(e){var t=Sa.current;Pi(Sa),e._currentValue=t}function ja(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t){ka=e,Pa=Oa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ml=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(Pa!==e)if(e={context:e,memoizedValue:t,next:null},null===Oa){if(null===ka)throw Error(a(308));Oa=e,ka.dependencies={lanes:0,firstContext:e}}else Oa=Oa.next=e;return t}var Ta=null;function Na(e){null===Ta?Ta=[e]:Ta.push(e)}function Ia(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Na(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ra(e,r)}function Ra(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ma=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Da(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function za(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ju){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ra(e,n)}return null===(i=r.interleaved)?(t.next=t,Na(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ra(e,n)}function $a(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Fa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ba(e,t,n,r){var i=e.updateQueue;Ma=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,s=u.next;u.next=null,null===o?a=s:o.next=s,o=u;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u)}if(null!==a){var f=i.baseState;for(o=0,c=s=u=null,l=a;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,b=l;switch(d=t,p=n,b.tag){case 1:if("function"==typeof(h=b.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=b.payload)?h.call(p,f,d):h))break e;f=D({},f,d);break e;case 2:Ma=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,o|=d;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(d=l).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Lu|=o,e.lanes=o,e.memoizedState=f}}function Ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var Ha={},Wa=Oi(Ha),Ka=Oi(Ha),Ga=Oi(Ha);function qa(e){if(e===Ha)throw Error(a(174));return e}function Qa(e,t){switch(Ai(Ga,t),Ai(Ka,e),Ai(Wa,Ha),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Pi(Wa),Ai(Wa,t)}function Ya(){Pi(Wa),Pi(Ka),Pi(Ga)}function Xa(e){qa(Ga.current);var t=qa(Wa.current),n=ue(t,e.type);t!==n&&(Ai(Ka,e),Ai(Wa,n))}function Ja(e){Ka.current===e&&(Pi(Wa),Pi(Ka))}var Za=Oi(0);function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var to=[];function no(){for(var e=0;e<to.length;e++)to[e]._workInProgressVersionPrimary=null;to.length=0}var ro=w.ReactCurrentDispatcher,io=w.ReactCurrentBatchConfig,ao=0,oo=null,lo=null,uo=null,so=!1,co=!1,fo=0,po=0;function ho(){throw Error(a(321))}function bo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function vo(e,t,n,r,i,o){if(ao=o,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ro.current=null===e||null===e.memoizedState?Zo:el,e=n(r,i),co){o=0;do{if(co=!1,fo=0,25<=o)throw Error(a(301));o+=1,uo=lo=null,t.updateQueue=null,ro.current=tl,e=n(r,i)}while(co)}if(ro.current=Jo,t=null!==lo&&null!==lo.next,ao=0,uo=lo=oo=null,so=!1,t)throw Error(a(300));return e}function yo(){var e=0!==fo;return fo=0,e}function go(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===uo?oo.memoizedState=uo=e:uo=uo.next=e,uo}function mo(){if(null===lo){var e=oo.alternate;e=null!==e?e.memoizedState:null}else e=lo.next;var t=null===uo?oo.memoizedState:uo.next;if(null!==t)uo=t,lo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(lo=e).memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},null===uo?oo.memoizedState=uo=e:uo=uo.next=e}return uo}function wo(e,t){return"function"==typeof t?t(e):t}function _o(e){var t=mo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=lo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var u=l=null,s=null,c=o;do{var f=c.lane;if((ao&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,l=r):s=s.next=d,oo.lanes|=f,Lu|=f}c=c.next}while(null!==c&&c!==o);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(ml=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,oo.lanes|=o,Lu|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function So(e){var t=mo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);lr(o,t.memoizedState)||(ml=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ko(){}function Oo(e,t){var n=oo,r=mo(),i=t(),o=!lr(r.memoizedState,i);if(o&&(r.memoizedState=i,ml=!0),r=r.queue,Lo(xo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==uo&&1&uo.memoizedState.tag){if(n.flags|=2048,To(9,Ao.bind(null,n,r,i,t),void 0,null),null===Cu)throw Error(a(349));30&ao||Po(n,t,i)}return i}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ao(e,t,n,r){t.value=n,t.getSnapshot=r,jo(t)&&Co(e)}function xo(e,t,n){return n((function(){jo(t)&&Co(e)}))}function jo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Co(e){var t=Ra(e,1);null!==t&&ns(t,e,1,-1)}function Eo(e){var t=go();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:e},t.queue=e,e=e.dispatch=qo.bind(null,oo,e),[t.memoizedState,e]}function To(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function No(){return mo().memoizedState}function Io(e,t,n,r){var i=go();oo.flags|=e,i.memoizedState=To(1|t,n,void 0,void 0===r?null:r)}function Ro(e,t,n,r){var i=mo();r=void 0===r?null:r;var a=void 0;if(null!==lo){var o=lo.memoizedState;if(a=o.destroy,null!==r&&bo(r,o.deps))return void(i.memoizedState=To(t,n,a,r))}oo.flags|=e,i.memoizedState=To(1|t,n,a,r)}function Mo(e,t){return Io(8390656,8,e,t)}function Lo(e,t){return Ro(2048,8,e,t)}function Do(e,t){return Ro(4,2,e,t)}function zo(e,t){return Ro(4,4,e,t)}function Vo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $o(e,t,n){return n=null!=n?n.concat([e]):null,Ro(4,4,Vo.bind(null,t,e),n)}function Fo(){}function Bo(e,t){var n=mo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Uo(e,t){var n=mo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&bo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ho(e,t,n){return 21&ao?(lr(n,t)||(n=bt(),oo.lanes|=n,Lu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ml=!0),e.memoizedState=n)}function Wo(e,t){var n=mt;mt=0!==n&&4>n?n:4,e(!0);var r=io.transition;io.transition={};try{e(!1),t()}finally{mt=n,io.transition=r}}function Ko(){return mo().memoizedState}function Go(e,t,n){var r=ts(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qo(e)?Yo(t,n):null!==(n=Ia(e,t,n,r))&&(ns(n,e,r,es()),Xo(n,t,r))}function qo(e,t,n){var r=ts(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qo(e))Yo(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,lr(l,o)){var u=t.interleaved;return null===u?(i.next=i,Na(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Ia(e,t,i,r))&&(ns(n,e,r,i=es()),Xo(n,t,r))}}function Qo(e){var t=e.alternate;return e===oo||null!==t&&t===oo}function Yo(e,t){co=so=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xo(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Jo={readContext:Ea,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useInsertionEffect:ho,useLayoutEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useMutableSource:ho,useSyncExternalStore:ho,useId:ho,unstable_isNewReconciler:!1},Zo={readContext:Ea,useCallback:function(e,t){return go().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:Mo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Io(4194308,4,Vo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Io(4194308,4,e,t)},useInsertionEffect:function(e,t){return Io(4,2,e,t)},useMemo:function(e,t){var n=go();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=go();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Go.bind(null,oo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},go().memoizedState=e},useState:Eo,useDebugValue:Fo,useDeferredValue:function(e){return go().memoizedState=e},useTransition:function(){var e=Eo(!1),t=e[0];return e=Wo.bind(null,e[1]),go().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oo,i=go();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Cu)throw Error(a(349));30&ao||Po(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Mo(xo.bind(null,r,o,e),[e]),r.flags|=2048,To(9,Ao.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=go(),t=Cu.identifierPrefix;if(ia){var n=Xi;t=":"+t+"R"+(n=(Yi&~(1<<32-ot(Yi)-1)).toString(32)+n),0<(n=fo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=po++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ea,useCallback:Bo,useContext:Ea,useEffect:Lo,useImperativeHandle:$o,useInsertionEffect:Do,useLayoutEffect:zo,useMemo:Uo,useReducer:_o,useRef:No,useState:function(){return _o(wo)},useDebugValue:Fo,useDeferredValue:function(e){return Ho(mo(),lo.memoizedState,e)},useTransition:function(){return[_o(wo)[0],mo().memoizedState]},useMutableSource:ko,useSyncExternalStore:Oo,useId:Ko,unstable_isNewReconciler:!1},tl={readContext:Ea,useCallback:Bo,useContext:Ea,useEffect:Lo,useImperativeHandle:$o,useInsertionEffect:Do,useLayoutEffect:zo,useMemo:Uo,useReducer:So,useRef:No,useState:function(){return So(wo)},useDebugValue:Fo,useDeferredValue:function(e){var t=mo();return null===lo?t.memoizedState=e:Ho(t,lo.memoizedState,e)},useTransition:function(){return[So(wo)[0],mo().memoizedState]},useMutableSource:ko,useSyncExternalStore:Oo,useId:Ko,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),i=ts(e),a=za(r,i);a.payload=t,null!=n&&(a.callback=n),null!==(t=Va(e,a,i))&&(ns(t,e,i,r),$a(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),i=ts(e),a=za(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Va(e,a,i))&&(ns(t,e,i,r),$a(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),i=za(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Va(e,i,r))&&(ns(t,e,r,n),$a(t,e,r))}};function al(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(i,a))}function ol(e,t,n){var r=!1,i=xi,a=t.contextType;return"object"==typeof a&&null!==a?a=Ea(a):(i=Ni(t)?Ei:ji.current,a=(r=null!=(r=t.contextTypes))?Ti(e,i):xi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function ul(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},La(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=Ea(a):(a=Ni(t)?Ei:ji.current,i.context=Ti(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rl(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&il.enqueueReplaceState(i,i.state,null),Ba(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var dl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=za(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hu||(Hu=!0,Wu=r),fl(0,t)},n}function hl(e,t,n){(n=za(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function bl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dl;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ps.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=za(-1,1)).tag=2,Va(n,t,1))),n.lanes|=1),e)}var gl=w.ReactCurrentOwner,ml=!1;function wl(e,t,n,r){t.child=null===e?_a(t,null,n,r):wa(t,e.child,n,r)}function _l(e,t,n,r,i){n=n.render;var a=t.ref;return Ca(t,i),r=vo(e,t,n,r,a,i),n=yo(),null===e||ml?(ia&&n&&ea(t),t.flags|=1,wl(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hl(e,t,i))}function Sl(e,t,n,r,i){if(null===e){var a=n.type;return"function"!=typeof a||Ns(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rs(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,kl(e,t,a,r,i))}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)return Hl(e,t,i)}return t.flags|=1,(e=Is(a,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(ml=!1,t.pendingProps=r=a,!(e.lanes&i))return t.lanes=e.lanes,Hl(e,t,i);131072&e.flags&&(ml=!0)}}return Al(e,t,n,r,i)}function Ol(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ai(Iu,Nu),Nu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ai(Iu,Nu),Nu|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ai(Iu,Nu),Nu|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ai(Iu,Nu),Nu|=r;return wl(e,t,i,n),t.child}function Pl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,i){var a=Ni(n)?Ei:ji.current;return a=Ti(t,a),Ca(t,i),n=vo(e,t,n,r,a,i),r=yo(),null===e||ml?(ia&&r&&ea(t),t.flags|=1,wl(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hl(e,t,i))}function xl(e,t,n,r,i){if(Ni(n)){var a=!0;Li(t)}else a=!1;if(Ca(t,i),null===t.stateNode)Ul(e,t),ol(t,n,r),ul(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?Ea(s):Ti(t,s=Ni(n)?Ei:ji.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||u!==s)&&ll(t,o,r,s),Ma=!1;var d=t.memoizedState;o.state=d,Ba(t,r,o,i),u=t.memoizedState,l!==r||d!==u||Ci.current||Ma?("function"==typeof c&&(rl(t,n,c,r),u=t.memoizedState),(l=Ma||al(t,n,l,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Da(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nl(t.type,l),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?Ea(u):Ti(t,u=Ni(n)?Ei:ji.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==f||d!==u)&&ll(t,o,r,u),Ma=!1,d=t.memoizedState,o.state=d,Ba(t,r,o,i);var h=t.memoizedState;l!==f||d!==h||Ci.current||Ma?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(s=Ma||al(t,n,s,r,d,h,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return jl(e,t,n,r,a,i)}function jl(e,t,n,r,i,a){Pl(e,t);var o=!!(128&t.flags);if(!r&&!o)return i&&Di(t,n,!1),Hl(e,t,a);r=t.stateNode,gl.current=t;var l=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,i&&Di(t,n,!0),t.child}function Cl(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),Qa(e,t.containerInfo)}function El(e,t,n,r,i){return pa(),ha(i),t.flags|=256,wl(e,t,n,r),t.child}var Tl,Nl,Il,Rl,Ml={dehydrated:null,treeContext:null,retryLane:0};function Ll(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dl(e,t,n){var r,i=t.pendingProps,o=Za.current,l=!1,u=!!(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ai(Za,1&o),null===e)return sa(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=i.children,e=i.fallback,l?(i=t.mode,l=t.child,u={mode:"hidden",children:u},1&i||null===l?l=Ls(u,i,0,null):(l.childLanes=0,l.pendingProps=u),e=Ms(e,i,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ll(n),t.memoizedState=Ml,e):zl(t,u));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,l){if(n)return 256&t.flags?(t.flags&=-257,Vl(e,t,l,r=cl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ls({mode:"visible",children:r.children},i,0,null),(o=Ms(o,i,l,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&wa(t,e.child,null,l),t.child.memoizedState=Ll(l),t.memoizedState=Ml,o);if(!(1&t.mode))return Vl(e,t,l,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Vl(e,t,l,r=cl(o=Error(a(419)),r,void 0))}if(u=!!(l&e.childLanes),ml||u){if(null!==(r=Cu)){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|l)?0:i)&&i!==o.retryLane&&(o.retryLane=i,Ra(e,i),ns(r,e,i,-1))}return bs(),Vl(e,t,l,r=cl(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=xs.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ra=si(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(Gi[qi++]=Yi,Gi[qi++]=Xi,Gi[qi++]=Qi,Yi=e.id,Xi=e.overflow,Qi=t),(t=zl(t,r.children)).flags|=4096,t)}(e,t,u,i,r,o,n);if(l){l=i.fallback,u=t.mode,r=(o=e.child).sibling;var s={mode:"hidden",children:i.children};return 1&u||t.child===o?(i=Is(o,s)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=s,t.deletions=null),null!==r?l=Is(r,l):(l=Ms(l,u,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,u=null===(u=e.child.memoizedState)?Ll(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Ml,i}return e=(l=e.child).sibling,i=Is(l,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zl(e,t){return(t=Ls({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vl(e,t,n,r){return null!==r&&ha(r),wa(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $l(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ja(e.return,t,n)}function Fl(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Bl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),2&(r=Za.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$l(e,n,t);else if(19===e.tag)$l(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ai(Za,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===eo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fl(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===eo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fl(t,!0,n,null,a);break;case"together":Fl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ul(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lu|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Is(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Is(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wl(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gl(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Ni(t.type)&&Ii(),Kl(t),null;case 3:return r=t.stateNode,Ya(),Pi(Ci),Pi(ji),no(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(os(aa),aa=null))),Nl(e,t),Kl(t),null;case 5:Ja(t);var i=qa(Ga.current);if(n=t.type,null!==e&&null!=t.stateNode)Il(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Kl(t),null}if(e=qa(Wa.current),fa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[di]=t,r[pi]=o,e=!!(1&t.mode),n){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(i=0;i<Mr.length;i++)Vr(Mr[i],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":Y(r,o),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Vr("invalid",r);break;case"textarea":ie(r,o),Vr("invalid",r)}for(var u in ge(n,o),i=null,o)if(o.hasOwnProperty(u)){var s=o[u];"children"===u?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&Jr(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&Jr(r.textContent,s,e),i=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Vr("scroll",r)}switch(n){case"input":K(r),Z(r,o,!0);break;case"textarea":K(r),oe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[di]=t,e[pi]=r,Tl(e,t,!1,!1),t.stateNode=e;e:{switch(u=me(n,r),n){case"dialog":Vr("cancel",e),Vr("close",e),i=r;break;case"iframe":case"object":case"embed":Vr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mr.length;i++)Vr(Mr[i],e);i=r;break;case"source":Vr("error",e),i=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),i=r;break;case"details":Vr("toggle",e),i=r;break;case"input":Y(e,r),i=Q(e,r),Vr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=D({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Vr("invalid",e)}for(o in ge(n,i),s=i)if(s.hasOwnProperty(o)){var c=s[o];"style"===o?ve(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===o?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(l.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Vr("scroll",e):null!=c&&m(e,o,c,u))}switch(n){case"input":K(e),Z(e,r,!1);break;case"textarea":K(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)Rl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=qa(Ga.current),qa(Wa.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[di]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[di]=t,t.stateNode=r}return Kl(t),null;case 13:if(Pi(Za),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&1&t.mode&&!(128&t.flags))da(),pa(),t.flags|=98560,o=!1;else if(o=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[di]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),o=!1}else null!==aa&&(os(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Za.current?0===Ru&&(Ru=3):bs())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return Ya(),Nl(e,t),null===e&&Br(t.stateNode.containerInfo),Kl(t),null;case 10:return xa(t.type._context),Kl(t),null;case 19:if(Pi(Za),null===(o=t.memoizedState))return Kl(t),null;if(r=!!(128&t.flags),null===(u=o.rendering))if(r)Wl(o,!1);else{if(0!==Ru||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=eo(e))){for(t.flags|=128,Wl(o,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ai(Za,1&Za.current|2),t.child}e=e.sibling}null!==o.tail&&Xe()>Bu&&(t.flags|=128,r=!0,Wl(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=eo(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!u.alternate&&!ia)return Kl(t),null}else 2*Xe()-o.renderingStartTime>Bu&&1073741824!==n&&(t.flags|=128,r=!0,Wl(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=o.last)?n.sibling=u:t.child=u,o.last=u)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Xe(),t.sibling=null,n=Za.current,Ai(Za,r?1&n|2:1&n),t):(Kl(t),null);case 22:case 23:return fs(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Nu)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function ql(e,t){switch(ta(t),t.tag){case 1:return Ni(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ya(),Pi(Ci),Pi(ji),no(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(Pi(Za),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Pi(Za),null;case 4:return Ya(),null;case 10:return xa(t.type._context),null;case 22:case 23:return fs(),null;default:return null}}Tl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Nl=function(){},Il=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qa(Wa.current);var a,o=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),o=[];break;case"select":i=D({},i,{value:void 0}),r=D({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&u[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(o||(o=[]),o.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(o=o||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(o=o||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Vr("scroll",e),o||u===s||(o=[])):(o=o||[]).push(c,s))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Rl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ql=!1,Yl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Jl=null;function Zl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Os(e,t,n)}else n.current=null}function eu(e,t,n){try{n()}catch(n){Os(e,t,n)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&eu(t,n,a)}i=i.next}while(i!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[di],delete t[pi],delete t[bi],delete t[vi],delete t[yi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ou(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ou(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}var cu=null,fu=!1;function du(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Yl||Zl(n,t);case 6:var r=cu,i=fu;cu=null,du(e,t,n),fu=i,null!==(cu=r)&&(fu?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(fu?(e=cu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Bt(e)):ui(cu,n.stateNode));break;case 4:r=cu,i=fu,cu=n.stateNode.containerInfo,fu=!0,du(e,t,n),cu=r,fu=i;break;case 0:case 11:case 14:case 15:if(!Yl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(2&a||4&a)&&eu(n,t,o),i=i.next}while(i!==r)}du(e,t,n);break;case 1:if(!Yl&&(Zl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Os(n,t,e)}du(e,t,n);break;case 21:du(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,du(e,t,n),Yl=r):du(e,t,n);break;default:du(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=js.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function bu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,fu=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===cu)throw Error(a(160));pu(o,l,i),cu=null,fu=!1;var s=i.alternate;null!==s&&(s.return=null),i.return=null}catch(e){Os(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bu(t,e),yu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(t){Os(e,e.return,t)}try{nu(5,e,e.return)}catch(t){Os(e,e.return,t)}}break;case 1:bu(t,e),yu(e),512&r&&null!==n&&Zl(n,n.return);break;case 5:if(bu(t,e),yu(e),512&r&&null!==n&&Zl(n,n.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(t){Os(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,l=null!==n?n.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===o.type&&null!=o.name&&X(i,o),me(u,l);var c=me(u,o);for(l=0;l<s.length;l+=2){var f=s[l],d=s[l+1];"style"===f?ve(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):m(i,f,d,c)}switch(u){case"input":J(i,o);break;case"textarea":ae(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?ne(i,!!o.multiple,h,!1):p!==!!o.multiple&&(null!=o.defaultValue?ne(i,!!o.multiple,o.defaultValue,!0):ne(i,!!o.multiple,o.multiple?[]:"",!1))}i[pi]=o}catch(t){Os(e,e.return,t)}}break;case 6:if(bu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){Os(e,e.return,t)}}break;case 3:if(bu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Os(e,e.return,t)}break;case 4:default:bu(t,e),yu(e);break;case 13:bu(t,e),yu(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(Fu=Xe())),4&r&&hu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Yl=(c=Yl)||f,bu(t,e),Yl=c):bu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Jl=e,f=e.child;null!==f;){for(d=Jl=f;null!==Jl;){switch(h=(p=Jl).child,p.tag){case 0:case 11:case 14:case 15:nu(4,p,p.return);break;case 1:Zl(p,p.return);var b=p.stateNode;if("function"==typeof b.componentWillUnmount){r=p,n=p.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(e){Os(r,n,e)}}break;case 5:Zl(p,p.return);break;case 22:if(null!==p.memoizedState){_u(d);continue}}null!==h?(h.return=p,Jl=h):_u(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(u=d.stateNode,l=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=be("display",l))}catch(t){Os(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Os(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:bu(t,e),yu(e),4&r&&hu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ou(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(de(i,""),r.flags&=-33),su(e,lu(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;uu(e,lu(e),o);break;default:throw Error(a(161))}}catch(t){Os(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gu(e,t,n){Jl=e,mu(e,t,n)}function mu(e,t,n){for(var r=!!(1&e.mode);null!==Jl;){var i=Jl,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Ql;if(!o){var l=i.alternate,u=null!==l&&null!==l.memoizedState||Yl;l=Ql;var s=Yl;if(Ql=o,(Yl=u)&&!s)for(Jl=i;null!==Jl;)u=(o=Jl).child,22===o.tag&&null!==o.memoizedState?Su(i):null!==u?(u.return=o,Jl=u):Su(i);for(;null!==a;)Jl=a,mu(a,t,n),a=a.sibling;Jl=i,Ql=l,Yl=s}wu(e)}else 8772&i.subtreeFlags&&null!==a?(a.return=i,Jl=a):wu(e)}}function wu(e){for(;null!==Jl;){var t=Jl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Yl||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Yl)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Ua(t,o,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ua(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Bt(d)}}}break;default:throw Error(a(163))}Yl||512&t.flags&&iu(t)}catch(e){Os(t,t.return,e)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function _u(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function Su(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(e){Os(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Os(t,i,e)}}var a=t.return;try{iu(t)}catch(e){Os(t,a,e)}break;case 5:var o=t.return;try{iu(t)}catch(e){Os(t,o,e)}}}catch(e){Os(t,t.return,e)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var ku,Ou=Math.ceil,Pu=w.ReactCurrentDispatcher,Au=w.ReactCurrentOwner,xu=w.ReactCurrentBatchConfig,ju=0,Cu=null,Eu=null,Tu=0,Nu=0,Iu=Oi(0),Ru=0,Mu=null,Lu=0,Du=0,zu=0,Vu=null,$u=null,Fu=0,Bu=1/0,Uu=null,Hu=!1,Wu=null,Ku=null,Gu=!1,qu=null,Qu=0,Yu=0,Xu=null,Ju=-1,Zu=0;function es(){return 6&ju?Xe():-1!==Ju?Ju:Ju=Xe()}function ts(e){return 1&e.mode?2&ju&&0!==Tu?Tu&-Tu:null!==ba.transition?(0===Zu&&(Zu=bt()),Zu):0!==(e=mt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function ns(e,t,n,r){if(50<Yu)throw Yu=0,Xu=null,Error(a(185));yt(e,n,r),2&ju&&e===Cu||(e===Cu&&(!(2&ju)&&(Du|=n),4===Ru&&ls(e,Tu)),rs(e,r),1===n&&0===ju&&!(1&t.mode)&&(Bu=Xe()+500,Vi&&Bi()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),l=1<<o,u=i[o];-1===u?l&n&&!(l&r)||(i[o]=pt(l,t)):u<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=dt(e,e===Cu?Tu:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Vi=!0,Fi(e)}(us.bind(null,e)):Fi(us.bind(null,e)),oi((function(){!(6&ju)&&Bi()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Cs(n,is.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function is(e,t){if(Ju=-1,Zu=0,6&ju)throw Error(a(327));var n=e.callbackNode;if(Ss()&&e.callbackNode!==n)return null;var r=dt(e,e===Cu?Tu:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=vs(e,r);else{t=r;var i=ju;ju|=2;var o=hs();for(Cu===e&&Tu===t||(Uu=null,Bu=Xe()+500,ds(e,t));;)try{gs();break}catch(t){ps(e,t)}Aa(),Pu.current=o,ju=i,null!==Eu?t=0:(Cu=null,Tu=0,t=Ru)}if(0!==t){if(2===t&&0!==(i=ht(e))&&(r=i,t=as(e,i)),1===t)throw n=Mu,ds(e,0),ls(e,r),rs(e,Xe()),n;if(6===t)ls(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!lr(a(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=vs(e,r),2===t&&(o=ht(e),0!==o&&(r=o,t=as(e,o))),1!==t)))throw n=Mu,ds(e,0),ls(e,r),rs(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:_s(e,$u,Uu);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Fu+500-Xe())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_s.bind(null,e,$u,Uu),t);break}_s(e,$u,Uu);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-ot(r);o=1<<l,(l=t[l])>i&&(i=l),r&=~o}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ou(r/1960))-r)){e.timeoutHandle=ri(_s.bind(null,e,$u,Uu),r);break}_s(e,$u,Uu);break;default:throw Error(a(329))}}}return rs(e,Xe()),e.callbackNode===n?is.bind(null,e):null}function as(e,t){var n=Vu;return e.current.memoizedState.isDehydrated&&(ds(e,t).flags|=256),2!==(e=vs(e,t))&&(t=$u,$u=n,null!==t&&os(t)),e}function os(e){null===$u?$u=e:$u.push.apply($u,e)}function ls(e,t){for(t&=~zu,t&=~Du,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function us(e){if(6&ju)throw Error(a(327));Ss();var t=dt(e,0);if(!(1&t))return rs(e,Xe()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=as(e,r))}if(1===n)throw n=Mu,ds(e,0),ls(e,t),rs(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_s(e,$u,Uu),rs(e,Xe()),null}function ss(e,t){var n=ju;ju|=1;try{return e(t)}finally{0===(ju=n)&&(Bu=Xe()+500,Vi&&Bi())}}function cs(e){null!==qu&&0===qu.tag&&!(6&ju)&&Ss();var t=ju;ju|=1;var n=xu.transition,r=mt;try{if(xu.transition=null,mt=1,e)return e()}finally{mt=r,xu.transition=n,!(6&(ju=t))&&Bi()}}function fs(){Nu=Iu.current,Pi(Iu)}function ds(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Eu)for(n=Eu.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ii();break;case 3:Ya(),Pi(Ci),Pi(ji),no();break;case 5:Ja(r);break;case 4:Ya();break;case 13:case 19:Pi(Za);break;case 10:xa(r.type._context);break;case 22:case 23:fs()}n=n.return}if(Cu=e,Eu=e=Is(e.current,null),Tu=Nu=t,Ru=0,Mu=null,zu=Du=Lu=0,$u=Vu=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(r=(n=Ta[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Ta=null}return e}function ps(e,t){for(;;){var n=Eu;try{if(Aa(),ro.current=Jo,so){for(var r=oo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}so=!1}if(ao=0,uo=lo=oo=null,co=!1,fo=0,Au.current=null,null===n||null===n.return){Ru=1,Mu=t,Eu=null;break}e:{var o=e,l=n.return,u=n,s=t;if(t=Tu,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=u,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,yl(h,l,u,0,t),1&h.mode&&bl(o,c,t),s=c;var b=(t=h).updateQueue;if(null===b){var v=new Set;v.add(s),t.updateQueue=v}else b.add(s);break e}if(!(1&t)){bl(o,c,t),bs();break e}s=Error(a(426))}else if(ia&&1&u.mode){var y=vl(l);if(null!==y){!(65536&y.flags)&&(y.flags|=256),yl(y,l,u,0,t),ha(sl(s,u));break e}}o=s=sl(s,u),4!==Ru&&(Ru=2),null===Vu?Vu=[o]:Vu.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Fa(o,pl(0,s,t));break e;case 1:u=s;var g=o.type,m=o.stateNode;if(!(128&o.flags||"function"!=typeof g.getDerivedStateFromError&&(null===m||"function"!=typeof m.componentDidCatch||null!==Ku&&Ku.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t,Fa(o,hl(o,u,t));break e}}o=o.return}while(null!==o)}ws(n)}catch(e){t=e,Eu===n&&null!==n&&(Eu=n=n.return);continue}break}}function hs(){var e=Pu.current;return Pu.current=Jo,null===e?Jo:e}function bs(){0!==Ru&&3!==Ru&&2!==Ru||(Ru=4),null===Cu||!(268435455&Lu)&&!(268435455&Du)||ls(Cu,Tu)}function vs(e,t){var n=ju;ju|=2;var r=hs();for(Cu===e&&Tu===t||(Uu=null,ds(e,t));;)try{ys();break}catch(t){ps(e,t)}if(Aa(),ju=n,Pu.current=r,null!==Eu)throw Error(a(261));return Cu=null,Tu=0,Ru}function ys(){for(;null!==Eu;)ms(Eu)}function gs(){for(;null!==Eu&&!Qe();)ms(Eu)}function ms(e){var t=ku(e.alternate,e,Nu);e.memoizedProps=e.pendingProps,null===t?ws(e):Eu=t,Au.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=ql(n,t)))return n.flags&=32767,void(Eu=n);if(null===e)return Ru=6,void(Eu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gl(n,t,Nu)))return void(Eu=n);if(null!==(t=t.sibling))return void(Eu=t);Eu=t=e}while(null!==t);0===Ru&&(Ru=5)}function _s(e,t,n){var r=mt,i=xu.transition;try{xu.transition=null,mt=1,function(e,t,n,r){do{Ss()}while(null!==qu);if(6&ju)throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===Cu&&(Eu=Cu=null,Tu=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Gu||(Gu=!0,Cs(tt,(function(){return Ss(),null}))),o=!!(15990&n.flags),15990&n.subtreeFlags||o){o=xu.transition,xu.transition=null;var l=mt;mt=1;var u=ju;ju|=4,Au.current=null,function(e,t){if(ei=Ht,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var l=0,u=-1,s=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(u=l+i),d!==o||0!==r&&3!==d.nodeType||(s=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===i&&(u=l),p===o&&++f===r&&(s=l),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var b=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==b){var v=b.memoizedProps,y=b.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:nl(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){Os(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}b=tu,tu=!1}(e,n),vu(n,e),hr(ti),Ht=!!ei,ti=ei=null,e.current=n,gu(n,e,i),Ye(),ju=u,mt=l,xu.transition=o}else e.current=n;if(Gu&&(Gu=!1,qu=e,Qu=i),0===(o=e.pendingLanes)&&(Ku=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rs(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Hu)throw Hu=!1,e=Wu,Wu=null,e;!!(1&Qu)&&0!==e.tag&&Ss(),1&(o=e.pendingLanes)?e===Xu?Yu++:(Yu=0,Xu=e):Yu=0,Bi()}(e,t,n,r)}finally{xu.transition=i,mt=r}return null}function Ss(){if(null!==qu){var e=wt(Qu),t=xu.transition,n=mt;try{if(xu.transition=null,mt=16>e?16:e,null===qu)var r=!1;else{if(e=qu,qu=null,Qu=0,6&ju)throw Error(a(331));var i=ju;for(ju|=4,Jl=e.current;null!==Jl;){var o=Jl,l=o.child;if(16&Jl.flags){var u=o.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Jl=c;null!==Jl;){var f=Jl;switch(f.tag){case 0:case 11:case 15:nu(8,f,o)}var d=f.child;if(null!==d)d.return=f,Jl=d;else for(;null!==Jl;){var p=(f=Jl).sibling,h=f.return;if(au(f),f===c){Jl=null;break}if(null!==p){p.return=h,Jl=p;break}Jl=h}}}var b=o.alternate;if(null!==b){var v=b.child;if(null!==v){b.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(null!==v)}}Jl=o}}if(2064&o.subtreeFlags&&null!==l)l.return=o,Jl=l;else e:for(;null!==Jl;){if(2048&(o=Jl).flags)switch(o.tag){case 0:case 11:case 15:nu(9,o,o.return)}var g=o.sibling;if(null!==g){g.return=o.return,Jl=g;break e}Jl=o.return}}var m=e.current;for(Jl=m;null!==Jl;){var w=(l=Jl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Jl=w;else e:for(l=m;null!==Jl;){if(2048&(u=Jl).flags)try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(e){Os(u,u.return,e)}if(u===l){Jl=null;break e}var _=u.sibling;if(null!==_){_.return=u.return,Jl=_;break e}Jl=u.return}}if(ju=i,Bi(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{mt=n,xu.transition=t}}return!1}function ks(e,t,n){e=Va(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(yt(e,1,t),rs(e,t))}function Os(e,t,n){if(3===e.tag)ks(e,e,n);else for(;null!==t;){if(3===t.tag){ks(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ku||!Ku.has(r))){t=Va(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(yt(t,1,e),rs(t,e));break}}t=t.return}}function Ps(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,Cu===e&&(Tu&n)===n&&(4===Ru||3===Ru&&(130023424&Tu)===Tu&&500>Xe()-Fu?ds(e,0):zu|=n),rs(e,t)}function As(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=es();null!==(e=Ra(e,t))&&(yt(e,t,n),rs(e,n))}function xs(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),As(e,n)}function js(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),As(e,n)}function Cs(e,t){return Ge(e,t)}function Es(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ts(e,t,n,r){return new Es(e,t,n,r)}function Ns(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Is(e,t){var n=e.alternate;return null===n?((n=Ts(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,i,o){var l=2;if(r=e,"function"==typeof e)Ns(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case k:return Ms(n.children,i,o,t);case O:l=8,i|=8;break;case P:return(e=Ts(12,n,t,2|i)).elementType=P,e.lanes=o,e;case C:return(e=Ts(13,n,t,i)).elementType=C,e.lanes=o,e;case E:return(e=Ts(19,n,t,i)).elementType=E,e.lanes=o,e;case I:return Ls(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:l=10;break e;case x:l=9;break e;case j:l=11;break e;case T:l=14;break e;case N:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ts(l,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Ms(e,t,n,r){return(e=Ts(7,e,r,t)).lanes=n,e}function Ls(e,t,n,r){return(e=Ts(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Ds(e,t,n){return(e=Ts(6,e,null,t)).lanes=n,e}function zs(e,t,n){return(t=Ts(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $s(e,t,n,r,i,a,o,l,u){return e=new Vs(e,t,n,l,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ts(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},La(a),e}function Fs(e){if(!e)return xi;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ni(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Ni(n))return Mi(e,n,t)}return t}function Bs(e,t,n,r,i,a,o,l,u){return(e=$s(n,r,!0,e,0,a,0,l,u)).context=Fs(null),n=e.current,(a=za(r=es(),i=ts(n))).callback=null!=t?t:null,Va(n,a,i),e.current.lanes=i,yt(e,i,r),rs(e,r),e}function Us(e,t,n,r){var i=t.current,a=es(),o=ts(i);return n=Fs(n),null===t.context?t.context=n:t.pendingContext=n,(t=za(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Va(i,t,o))&&(ns(e,i,o,a),$a(e,i,o)),o}function Hs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ws(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Ws(e,t),(e=e.alternate)&&Ws(e,t)}ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ci.current)ml=!0;else{if(!(e.lanes&n||128&t.flags))return ml=!1,function(e,t,n){switch(t.tag){case 3:Cl(t),pa();break;case 5:Xa(t);break;case 1:Ni(t.type)&&Li(t);break;case 4:Qa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ai(Sa,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ai(Za,1&Za.current),t.flags|=128,null):n&t.child.childLanes?Dl(e,t,n):(Ai(Za,1&Za.current),null!==(e=Hl(e,t,n))?e.sibling:null);Ai(Za,1&Za.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Bl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ai(Za,Za.current),r)break;return null;case 22:case 23:return t.lanes=0,Ol(e,t,n)}return Hl(e,t,n)}(e,t,n);ml=!!(131072&e.flags)}else ml=!1,ia&&1048576&t.flags&&Zi(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var i=Ti(t,ji.current);Ca(t,n),i=vo(null,t,r,e,i,n);var o=yo();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ni(r)?(o=!0,Li(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,La(t),i.updater=il,t.stateNode=i,i._reactInternals=t,ul(t,r,e,n),t=jl(null,t,r,!0,o,n)):(t.tag=0,ia&&o&&ea(t),wl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ns(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===T)return 14}return 2}(r),e=nl(r,e),i){case 0:t=Al(null,t,r,e,n);break e;case 1:t=xl(null,t,r,e,n);break e;case 11:t=_l(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,nl(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Al(e,t,r,i=t.elementType===r?i:nl(r,i),n);case 1:return r=t.type,i=t.pendingProps,xl(e,t,r,i=t.elementType===r?i:nl(r,i),n);case 3:e:{if(Cl(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Da(e,t),Ba(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=El(e,t,r,n,i=sl(Error(a(423)),t));break e}if(r!==i){t=El(e,t,r,n,i=sl(Error(a(424)),t));break e}for(ra=si(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=_a(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===i){t=Hl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Xa(t),null===e&&sa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,ni(r,i)?l=null:null!==o&&ni(r,o)&&(t.flags|=32),Pl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&sa(t),null;case 13:return Dl(e,t,n);case 4:return Qa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wa(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_l(e,t,r,i=t.elementType===r?i:nl(r,i),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,Ai(Sa,r._currentValue),r._currentValue=l,null!==o)if(lr(o.value,l)){if(o.children===i.children&&!Ci.current){t=Hl(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){l=o.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===o.tag){(s=za(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),ja(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===o.tag)l=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(l=o.return))throw Error(a(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ja(l,n,t),l=o.sibling}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===t){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}wl(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ca(t,n),r=r(i=Ea(i)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return i=nl(r=t.type,t.pendingProps),Sl(e,t,r,i=nl(r.type,i),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:nl(r,i),Ul(e,t),t.tag=1,Ni(r)?(e=!0,Li(t)):e=!1,Ca(t,n),ol(t,r,i),ul(t,r,i,n),jl(null,t,r,!0,e,n);case 19:return Bl(e,t,n);case 22:return Ol(e,t,n)}throw Error(a(156,t.tag))};var Gs="function"==typeof reportError?reportError:function(e){console.error(e)};function qs(e){this._internalRoot=e}function Qs(e){this._internalRoot=e}function Ys(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Js(){}function Zs(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof i){var l=i;i=function(){var e=Hs(o);l.call(e)}}Us(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"==typeof r){var a=r;r=function(){var e=Hs(o);a.call(e)}}var o=Bs(t,r,e,0,null,!1,0,"",Js);return e._reactRootContainer=o,e[hi]=o.current,Br(8===e.nodeType?e.parentNode:e),cs(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var l=r;r=function(){var e=Hs(u);l.call(e)}}var u=$s(e,0,!1,null,0,!1,0,"",Js);return e._reactRootContainer=u,e[hi]=u.current,Br(8===e.nodeType?e.parentNode:e),cs((function(){Us(t,u,n,r)})),u}(n,t,e,i,r);return Hs(o)}Qs.prototype.render=qs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Us(e,t,null,null)},Qs.prototype.unmount=qs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cs((function(){Us(null,e,null,null)})),t[hi]=null}},Qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Dt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),rs(t,Xe()),!(6&ju)&&(Bu=Xe()+500,Bi()))}break;case 13:cs((function(){var t=Ra(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Ks(e,1)}},St=function(e){if(13===e.tag){var t=Ra(e,134217728);null!==t&&ns(t,e,134217728,es()),Ks(e,134217728)}},kt=function(e){if(13===e.tag){var t=ts(e),n=Ra(e,t);null!==n&&ns(n,e,t,es()),Ks(e,t)}},Ot=function(){return mt},Pt=function(e,t){var n=mt;try{return mt=e,t()}finally{mt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_i(r);if(!i)throw Error(a(90));G(r),J(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},je=ss,Ce=cs;var ec={usingClientEntryPoint:!1,Events:[mi,wi,_i,Ae,xe,ss]},tc={findFiberByHostInstance:gi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),at=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ys(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Ys(e))throw Error(a(299));var n=!1,r="",i=Gs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=$s(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,Br(8===e.nodeType?e.parentNode:e),new qs(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return cs(e)},t.hydrate=function(e,t,n){if(!Xs(t))throw Error(a(200));return Zs(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ys(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",l=Gs;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Bs(t,null,e,1,null!=n?n:null,i,0,o,l),e[hi]=t.current,Br(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Qs(t)},t.render=function(e,t,n){if(!Xs(t))throw Error(a(200));return Zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xs(e))throw Error(a(40));return!!e._reactRootContainer&&(cs((function(){Zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xs(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zs(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},28485:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(45555)},68736:(e,t,n)=>{var r=n(7552),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,a={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:s,ref:c,props:a,_owner:l.current}}t.Fragment=a,t.jsx=s,t.jsxs=s},78931:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function g(){}function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var w=m.prototype=new g;w.constructor=m,b(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,r){var i,a={},o=null,l=null;if(null!=t)for(i in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)S.call(t,i)&&!O.hasOwnProperty(i)&&(a[i]=t[i]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===a[i]&&(a[i]=u[i]);return{$$typeof:n,type:e,key:o,ref:l,props:a,_owner:k.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var x=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,i,a,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return o=o(u=e),e=""===a?"."+j(u,0):a,_(o)?(i="",null!=e&&(i=e.replace(x,"$&/")+"/"),C(o,t,i,"",(function(e){return e}))):null!=o&&(A(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(u=0,a=""===a?".":a+":",_(e))for(var s=0;s<e.length;s++){var c=a+j(l=e[s],s);u+=C(l,t,i,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=C(l=l.value,t,i,c=a+j(l,s++),o);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function E(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},I={transition:null},R={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:I,ReactCurrentOwner:k};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:E,forEach:function(e,t,n){E(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=o,t.PureComponent=m,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=M,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=b({},e.props),a=e.key,o=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)S.call(t,s)&&!O.hasOwnProperty(s)&&(i[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.3.1"},7552:(e,t,n)=>{e.exports=n(78931)},69500:(e,t,n)=>{e.exports=n(68736)},79763:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>a(u,n))s<i&&0>a(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<i&&0>a(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],f=1,d=null,p=3,h=!1,b=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function _(e){if(v=!1,w(e),!b)if(null!==r(s))b=!0,I(S);else{var t=r(c);null!==t&&R(_,t.startTime-e)}}function S(e,n){b=!1,v&&(v=!1,g(A),A=-1),h=!0;var a=p;try{for(w(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!C());){var o=d.callback;if("function"==typeof o){d.callback=null,p=d.priorityLevel;var l=o(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(s)&&i(s),w(n)}else i(s);d=r(s)}if(null!==d)var u=!0;else{var f=r(c);null!==f&&R(_,f.startTime-n),u=!1}return u}finally{d=null,p=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,O=!1,P=null,A=-1,x=5,j=-1;function C(){return!(t.unstable_now()-j<x)}function E(){if(null!==P){var e=t.unstable_now();j=e;var n=!0;try{n=P(!0,e)}finally{n?k():(O=!1,P=null)}}else O=!1}if("function"==typeof m)k=function(){m(E)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,N=T.port2;T.port1.onmessage=E,k=function(){N.postMessage(null)}}else k=function(){y(E,0)};function I(e){P=e,O||(O=!0,k())}function R(e,n){A=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){b||h||(b=!0,I(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(s)&&e===r(c)&&(v?(g(A),A=-1):v=!0,R(_,a-o))):(e.sortIndex=l,n(s,e),b||h||(b=!0,I(S))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},13754:(e,t,n)=>{e.exports=n(79763)},6614:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},93878:(e,t,n)=>{function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}}}]); //# sourceMappingURL=3301.db457761.chunk.js.map