vendor: 5,470 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{2052:function(e,t,n){"use strict";n.d(t,{Z:function(){return ne}});var r=n(2281),o=Math.abs,i=String.fromCharCode;function a(e){return e.trim()}function s(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function l(e,t,n){return e.slice(t,n)}function f(e){return e.length}function d(e){return e.length}function p(e,t){return t.push(e),e}var h=1,v=1,m=0,y=0,g=0,b="";function w(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:h,column:v,length:a,return:""}}function _(e,t,n){return w(e,t.root,t.parent,n,t.props,t.children,0)}function x(){return g=y>0?c(b,--y):0,v--,10===g&&(v=1,h--),g}function S(){return g=y<m?c(b,y++):0,v++,10===g&&(v=1,h++),g}function k(){return c(b,y)}function O(){return y}function C(e,t){return l(b,e,t)}function P(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 A(e){return h=v=1,m=f(b=e),y=0,[]}function T(e){return b="",e}function E(e){return a(C(y-1,M(91===e?e+2:40===e?e+1:e)))}function j(e){for(;(g=k())&&g<33;)S();return P(e)>2||P(g)>3?"":" "}function R(e,t){for(;--t&&S()&&!(g<48||g>102||g>57&&g<65||g>70&&g<97););return C(e,O()+(t<6&&32==k()&&32==S()))}function M(e){for(;S();)switch(g){case e:return y;case 34:case 39:return M(34===e||39===e?e:g);case 40:41===e&&M(e);break;case 92:S()}return y}function I(e,t){for(;S()&&e+g!==57&&(e+g!==84||47!==k()););return"/*"+C(t,y-1)+"*"+i(47===e?e:S())}function D(e){for(;!P(k());)S();return C(e,y)}var B="-ms-",V="-moz-",L="-webkit-",N="comm",$="rule",F="decl";function z(e,t){for(var n="",r=d(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function W(e,t,n,r){switch(e.type){case"@import":case F:return e.return=e.return||e.value;case N:return"";case $:e.value=e.props.join(",")}return f(n=z(e.children,r))?e.return=e.value+"{"+n+"}":""}function G(e,t){switch(function(e,t){return(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3)}(e,t)){case 5103:return L+"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 L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+V+e+B+e+e;case 6828:case 4268:return L+e+B+e+e;case 6165:return L+e+B+"flex-"+e+e;case 5187:return L+e+s(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return L+e+B+"flex-item-"+s(e,/flex-|-self/,"")+e;case 4675:return L+e+B+"flex-line-pack"+s(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+B+s(e,"shrink","negative")+e;case 5292:return L+e+B+s(e,"basis","preferred-size")+e;case 6060:return L+"box-"+s(e,"-grow","")+L+e+B+s(e,"grow","positive")+e;case 4554:return L+s(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return s(s(s(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return s(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return s(s(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return s(e,/(.+)-inline(.+)/,L+"$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(f(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+V+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?G(s(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return s(e,":",":"+L)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===c(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return L+e+B+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+B+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+B+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+B+e+e}return e}function U(e){return T(H("",null,null,null,[""],e=A(e),0,[0],e))}function H(e,t,n,r,o,a,u,c,l){for(var d=0,h=0,v=u,m=0,y=0,g=0,b=1,w=1,_=1,C=0,P="",A=o,T=a,M=r,B=P;w;)switch(g=C,C=S()){case 34:case 39:case 91:case 40:B+=E(C);break;case 9:case 10:case 13:case 32:B+=j(g);break;case 92:B+=R(O()-1,7);continue;case 47:switch(k()){case 42:case 47:p(q(I(S(),O()),t,n),l);break;default:B+="/"}break;case 123*b:c[d++]=f(B)*_;case 125*b:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+h:y>0&&f(B)-v&&p(y>32?X(B+";",r,n,v-1):X(s(B," ","")+";",r,n,v-2),l);break;case 59:B+=";";default:if(p(M=Z(B,t,n,d,h,o,c,P,A=[],T=[],v),a),123===C)if(0===h)H(B,t,M,M,A,a,v,c,T);else switch(m){case 100:case 109:case 115:H(e,M,M,r&&p(Z(e,M,M,0,0,o,c,P,o,A=[],v),T),o,T,v,c,r?A:T);break;default:H(B,M,M,M,[""],T,v,c,T)}}d=h=y=0,b=_=1,P=B="",v=u;break;case 58:v=1+f(B),y=g;default:if(b<1)if(123==C)--b;else if(125==C&&0==b++&&125==x())continue;switch(B+=i(C),C*b){case 38:_=h>0?1:(B+="\f",-1);break;case 44:c[d++]=(f(B)-1)*_,_=1;break;case 64:45===k()&&(B+=E(S())),m=k(),h=f(P=B+=D(O())),C++;break;case 45:45===g&&2==f(B)&&(b=0)}}return a}function Z(e,t,n,r,i,u,c,f,p,h,v){for(var m=i-1,y=0===i?u:[""],g=d(y),b=0,_=0,x=0;b<r;++b)for(var S=0,k=l(e,m+1,m=o(_=c[b])),O=e;S<g;++S)(O=a(_>
10?y[S]+" "+k:s(k,/&\f/g,y[S])))&&(p[x++]=O);return w(e,t,n,0===i?$:f,p,h,v)}function q(e,t,n){return w(e,t,n,N,i(g),l(e,2,-2),0)}function X(e,t,n,r){return w(e,t,n,F,l(e,0,r),l(e,r+1,-1),r)}var K=function(e,t,n){for(var r=0,o=0;r=o,o=k(),38===r&&12===o&&(t[n]=1),!P(o);)S();return C(e,y)},Y=function(e,t){return T(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=K(y-1,t,n);break;case 2:e[n]+=E(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(A(e),t))},J=new WeakMap,Q=function(e){if("rule"===e.type&&e.parent&&e.length){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 o=[],i=Y(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},te=[function(e,t,n,r){if(!e.return)switch(e.type){case F:e.return=G(e.value,e.length);break;case"@keyframes":return z([_(s(e.value,"@","@"+L),e,"")],r);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return z([_(s(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return z([_(s(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),_(s(t,/:(plac\w+)/,":-moz-$1"),e,""),_(s(t,/:(plac\w+)/,B+"input-$1"),e,"")],r)}return""}))}}],ne=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 o=e.stylisPlugins||te;var i,a,s={},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++)s[t[n]]=!0;u.push(e)}));var c,l,f=[W,(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=function(e){var t=d(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Q,ee].concat(o,f));a=function(e,t,n,r){c=n,z(U(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r.m({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:a};return h.sheet.hydrate(u),h}},3343:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},8186:function(e,t,n){"use strict";n.d(t,{E:function(){return p},T:function(){return l},c:function(){return d},h:function(){return s},w:function(){return c}});var r=n(2784),o=n(2052),i=n(2792),a=n(7019),s=Object.prototype.hasOwnProperty,u=(0,r.createContext)("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null);u.Provider;var c=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(u);return e(t,o,n)}))},l=(0,r.createContext)({});var f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},p=c((function(e,t,n){var o=e.css;"string"===typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var u=e[f],c=[o],d="";"string"===typeof e.className?d=(0,i.f)(t.registered,c,e.className):null!=e.className&&(d=e.className+" ");var p=(0,a.O)(c,void 0,(0,r.useContext)(l));(0,i.M)(t,p,"string"===typeof u);d+=t.key+"-"+p.name;var h={};for(var v in e)s.call(e,v)&&"css"!==v&&v!==f&&(h[v]=e[v]);return h.ref=n,h.className=d,(0,r.createElement)(u,h)}))},8165:function(e,t,n){"use strict";n.d(t,{xB:function(){return c},iv:function(){return l},tZ:function(){return u},F4:function(){return f}});var r=n(2784),o=(n(2052),n(8186)),i=(n(3463),n(2792)),a=n(7019),s=n(2281),u=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return r.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=o.E,a[1]=(0,o.c)(e,t);for(var s=2;s<i;s++)a[s]=n[s];return r.createElement.apply(null,a)},c=(0,o.w)((function(e,t){var n=e.styles,u=(0,a.O)([n],void 0,(0,r.useContext)(o.T)),c=(0,r.useRef)();return(0,r.useLayoutEffect)((function(){var e=t.key+"-global",n=new s.m({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,r.useLayoutEffect)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==u.next&&(0,i.M)(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 l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.O)(t)}var f=function(){var e=l.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_"}}}},2903:function(e,t,n){"use strict";n.d(t,{HY:function(){return i},tZ:function(){return a},BX:function(){return s}});n(2784),n(2052);var r=n(8186),o=(n(3463),n(7019),n(2322)),i=o.Fragment;function a(e,t,n){return r.h.call(t,"css")?(0,o.jsx)(r.E,(0,r.c)(e,t),n):(0,o.jsx)(e,t,n)}function s(e,t,n){return r.h.call(t,"css")?(0,o.jsxs)(r.E,(0,r.c)(e,t),n):(0,o.jsxs)(e,t,n
vendor: 4,227 bytes, line 1
1)}},7019:function(e,t,n){"use strict";n.d(t,{O:function(){return v}});var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=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(o){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)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(3343),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},l=(0,i.Z)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||u(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=d(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":c(a)&&(r+=l(i)+":"+f(i,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=d(e,t,a);switch(i){case"animation":case"animationName":r+=l(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)c(a[u])&&(r+=l(i)+":"+f(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,i=n(e);return p=o,d(e,t,i)}break;case"string":}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var v=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=d(n,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=d(n,t,e[s]),o&&(i+=a[s]);h.lastIndex=0;for(var u,c="";null!==(u=h.exec(i));)c+="-"+u[1];return{name:r(i)+c,styles:i,next:p}}},2281:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?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.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(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
1,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},4923:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(2784),o=n(7896),i=n(3343),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|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)-.*))$/,s=(0,i.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),u=n(8186),c=n(2792),l=n(7019),f=s,d=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:d},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},v=function e(t,n){var i,a,s=t.__emotion_real===t,f=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var d=h(t,n,s),v=d||p(f),m=!v("as");return function(){var y=arguments,g=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&g.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)g.push.apply(g,y);
1else{0,g.push(y[0][0]);for(var b=y.length,w=1;w<b;w++)g.push(y[w],y[0][w])}var _=(0,u.w)((function(e,t,n){var o=m&&e.as||f,i="",s=[],h=e;if(null==e.theme){for(var y in h={},e)h[y]=e[y];h.theme=(0,r.useContext)(u.T)}"string"===typeof e.className?i=(0,c.f)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var b=(0,l.O)(g.concat(s),t.registered,h);(0,c.M)(t,b,"string"===typeof o);i+=t.key+"-"+b.name,void 0!==a&&(i+=" "+a);var w=m&&void 0===d?p(o):v,_={};for(var x in e)m&&"as"===x||w(x)&&(_[x]=e[x]);return _.className=i,_.ref=n,(0,r.createElement)(o,_)}));return _.displayName=void 0!==i?i:"Styled("+("string"===typeof f?f:f.displayName||f.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=f,_.__emotion_styles=g,_.__emotion_forwardProp=d,Object.defineProperty(_,"toString",{value:function(){return"."+a}}),_.withComponent=function(t,r){return e(t,(0,o.Z)({},n,r,{shouldForwardProp:h(_,r,!0)})).apply(void 0,g)},_}}.bind();["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){v[e]=v(e)}));var m=v},2792:function(e,t,n){"use strict";n.d(t,{f:function(){return r},M:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},8666:function(e,t,n){"use strict";n.d(t,{_j:function(){return U},$n:function(){return H},DZ:function(){return Z}});var r=n(7896);function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t,n){return(s=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function u(e){var t="function"===typeof Map?new Map:void 0;return(u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,i(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}var c=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),r}(u(Error));function l(e){return Math.round(255*e)}function f(e,t,n){return l(e)+","+l(t)+","+l(n)}function d(e,t,n,r){if(void 0===r&&(r=f),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,u=0,c=0;o>
1=0&&o<1?(s=i,u=a):o>=1&&o<2?(s=a,u=i):o>=2&&o<3?(u=i,c=a):o>=3&&o<4?(u=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);var l=n-i/2;return r(s+l,u+l,c+l)}var p={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
10",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var h=/^#[a-fA-F0-9]{6}$/,v=/^#[a-fA-F0-9]{8}$/,m=/^#[a-fA-F0-9]{3}$/,y=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,b=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,w=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function x(e){if("string"!==typeof e)throw new c(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return p[t]?"#"+p[t]:e}(e);if(t.match(h))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(v)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alph
vendor: 1,052 bytes, line 1
1a:n}}if(t.match(m))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(y)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=g.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=b.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=w.exec(t);if(a){var s="rgb("+d(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=g.exec(s);if(!u)throw new c(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=_.exec(t.substring(0,50));if(l){var f="rgb("+d(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",x=g.exec(f);if(!x)throw new c(4,t,f);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alph
1a:parseFloat(""+l[4])}}throw new c(5)}function S(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u=i-a,c=s>.5?u/(2-i-a):u/(i+a);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:s,alpha:e.alpha}:{hue:t,saturation:c,lightness:s}}(x(e))}var k=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function O(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function C(e){return O(Math.round(255*e))}function P(e,t,n){return k("#"+C(e)+C(t)+C(n))}function A(e,t,n){return d(e,t,n,P)}function T(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return A(e,t,n);if("object"===typeof e&&void 0===t&&void 0===n)return A(e.hue,e.saturation,e.lightness);throw new c(1)}function E(e,t,n,r){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?A(e,t,n):"rgba("+d(e,t,n)+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?A(e.hue,e.saturation,e.lightness):"rgba("+d(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new c(2)}function j(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return k("#"+O(e)+O(t)+O(n));if("object"===typeof e&&void 0===t&&void 0===n)return k("#"+O(e.red)+O(e.green)+O(e.blue));throw new c(6)}function R(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var o=x(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?j(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?j(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new c(7)}function M(e){if("object"!==typeof e)throw new c(8);if(function(e){return"number"===typeof e.red&&"number"===typeof e.green&&"number"===typeof e.blue&&"number"===typeof e.alpha}(e))return R(e);if(function(e){return"number"===typeof e.red&&"number"===typeof e.green&&"number"===typeof e.blue&&("number"!==typeof e.alpha||"undefined"===typeof e.alpha)}(e))return j(e);if(function(e){return"number"===typeof e.hue&&"number"===typeof e.saturation&&"number"===typeof e.lightness&&"number"===typeof e.alpha}(e))return E(e);if(function(e){return"number"===typeof e.hue&&"number"===typeof e.saturation&&"number"===typeof e.lightness&&("number"!==typeof e.alpha||"undefined"===typeof e.alpha)}(e))return T(e);throw new c(8)}function I(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):I(e,t,r)}}function D(e){return I(e,e.length,[])}function B(e,t,n){return Math.max(e,Math.min(t,n))}function V(e,t){if("transparent"===t)return t;var n=S(t);return M((0,r.Z)({},n,{lightness:B(0,1,n.lightness-parseFloat(e))}))}var L=D(V);function N(e,t){if("transparent"===t)return t;var n=S(t);return M((0,r.Z)({},n,{lightness:B(0,1,n.lightness+parseFloat(e))}))}var $=D(N);function F(e,t){if("transparent"===t)return t;var n=x(t),o="number"===typeof n.alpha?n.alpha:1;return R((0,r.Z)({},n,{alpha:B(0,1,+(100*o-100*parseFloat(e)).toFixed(2)/100)}))}var z=D(F);var W=n(2273),G=function(e,t){return"object"===typeof t&&(t=Array.isArray(t)?t[0]:t.__default),(0,W.U2)(e,"rawColors"in e?"rawColors."+t:"colors."+t,t)},U=function(e,t){return function(n){return L(t,G(n,e))}},H=function(e,t){return function(n){return $(t,G(n,e))}},Z=function(e,t){return function(n){return z(t,G(n,e))}}},9285:function(e,t,n){"use strict";n.d(t,{Ct:function(){return ze},xu:function(){return ve},zx:function(){return Se},iz:function(){return We},cx:function(){return Ze},kC:function(){return me},rj:function(){return xe},X6:function(){return Pe},Ee:function(){return Ae},II:function(){return Me},__:function(){return Te},rU:function(){return ke},nv:function(){return Oe},$j:function(){return Fe},xv:function(){return Ce},gx:function(){return Le}});var r=n(4923),o=n(2273),i=n(3343);var a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|playsInl
1ine|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,s=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),u=n(4079),c=n.n(u),l=function(e,t){var n=c()({},e,t);for(var r in e){var o;e[r]&&"object"===typeof t[r]&&c()(n,((o={})[r]=c()(e[r],t[r]),o))}return n},f={breakpoints:[40,52,64].map((function(e){return e+"em"}))},d=function(e){return"@media screen and (min-width: "+e+")"},p=function(e,t){return h(t,e,e)},h=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e},v=function e(t){var n={},r=function(e){var r={},o=!1,i=e.theme&&e.theme.disableStyledSystemCache;for(var a in e)if(t[a]){var s=t[a],u=e[a],p=h(e.theme,s.scale,s.defaults);if("object"!==typeof u)c()(r,s(u,p,e));else{if(n.breakpoints=!i&&n.breakpoints||h(e.theme,"breakpoints",f.breakpoints),Array.isArray(u)){n.media=!i&&n.media||[null].concat(n.breakpoints.map(d)),r=l(r,m(n.media,s,p,u,e));continue}null!==u&&(r=l(r,y(n.breakpoints,s,p,u,e)),o=!0)}}return o&&(r=function(e){var t={};return Object.keys(e).sort((function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})}
1)).forEach((function(n){t[n]=e[n]})),t}(r)),r};r.config=t,r.propNames=Object.keys(t),r.cache=n;var o=Object.keys(t).filter((function(e){return"config"!==e}));return o.length>1&&o.forEach((function(n){var o;r[n]=e(((o={})[n]=t[n],o))})),r},m=function(e,t,n,r,o){var i={};return r.slice(0,e.length).forEach((function(r,a){var s,u=e[a],l=t(r,n,o);u?c()(i,((s={})[u]=c()({},i[u],l),s)):c()(i,l)})),i},y=function(e,t,n,r,o){var i={};for(var a in r){var s=e[a],u=t(r[a],n,o);if(s){var l,f=d(s);c()(i,((l={})[f]=c()({},i[f],u),l))}else c()(i,u)}return i},g=function(e){var t=e.properties,n=e.property,r=e.scale,o=e.transform,i=void 0===o?p:o,a=e.defaultScale;t=t||[n];var s=function(e,n,r){var o={},a=i(e,n,r);if(null!==a)return t.forEach((function(e){o[e]=a})),o};return s.scale=r,s.defaults=a,s},b=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]=!0!==r?"function"!==typeof r?g(r):r:g({property:n,scale:n})})),v(t)},w=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){t&&t.config&&c()(e,t.config)}));var o=v(e);return o},_=b({width:{property:"width",scale:"sizes",transform:function(e,t){return h(t,e,!function(e){return"number"===typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),x=_,S={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};S.bg=S.backgroundColor;var k=b(S),O=k,C=b({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),P=C,A=b({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),T=A,E={space:[0,4,8,16,32,64,128,256,512]},j=b({gridGap:{property:"gridGap",scale:"space",defaultScale:E.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:E.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:E.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),R=j,M={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};M.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},M.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},M.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},M.borderBottomColor={property:"borderBottomColor",scale:"colors"},M.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},M.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},M.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},M.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},M.borderLeftColor={property:"borderLeftColor",scale:"colors"},M.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},M.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},M.borderRightColor={property:"borderRightColor",scale:"colors"},M.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var I=b(M),D=I,B={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};B.bgImage=B.backgroundImage,B.bgSize=B.backgroundSize,B.bgPosition=B.backgroundPosition,B.bgRepeat=B.backgroundRepeat;var V=b(B),L=V,N={space:[0,4,8,16,32,64,128,256,512]},$=b({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:N.space},right:{property:"right",scale:"space",defaultScale:N.space},bottom:{property:"bottom",scale:"space",defaultScale:N.space},left:{property:"left",scale:"space",defaultScale:N.space}}
1),F=$,z={space:[0,4,8,16,32,64,128,256,512]},W=function(e){return"number"===typeof e&&!isNaN(e)},G=function(e,t){if(!W(e))return h(t,e,e);var n=e<0,r=Math.abs(e),o=h(t,r,r);return W(o)?o*(n?-1:1):n?"-"+o:o},U={};U.margin={margin:{property:"margin",scale:"space",transform:G,defaultScale:z.space},marginTop:{property:"marginTop",scale:"space",transform:G,defaultScale:z.space},marginRight:{property:"marginRight",scale:"space",transform:G,defaultScale:z.space},marginBottom:{property:"marginBottom",scale:"space",transform:G,defaultScale:z.space},marginLeft:{property:"marginLeft",scale:"space",transform:G,defaultScale:z.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:G,defaultScale:z.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:G,defaultScale:z.space}},U.margin.m=U.margin.margin,U.margin.mt=U.margin.marginTop,U.margin.mr=U.margin.marginRight,U.margin.mb=U.margin.marginBottom,U.margin.ml=U.margin.marginLeft,U.margin.mx=U.margin.marginX,U.margin.my=U.margin.marginY,U.padding={padding:{property:"padding",scale:"space",defaultScale:z.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:z.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:z.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:z.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:z.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:z.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:z.space}},U.padding.p=U.padding.padding,U.padding.pt=U.padding.paddingTop,U.padding.pr=U.padding.paddingRight,U.padding.pb=U.padding.paddingBottom,U.padding.pl=U.padding.paddingLeft,U.padding.px=U.padding.paddingX,U.padding.py=U.padding.paddingY;var H=w(b(U.margin),b(U.padding)),Z=H,q=b({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var K=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e},Y=[40,52,64].map((function(e){return e+"em"})),J={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},Q={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},ee={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},te={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},ne=function(e,t){if("number"!==typeof t||t>=0)return K(e,t,t);var n=Math.abs(t),r=K(e,n,n);return"string"===typeof r?"-"+r:-1*r},re=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","to
1p","bottom","left","right"].reduce((function(e,t){var n;return X({},e,((n={})[t]=ne,n))}),{}),oe=function e(t){return function(n){void 0===n&&(n={});var r=X({},J,{},n.theme||n),o={},i=function(e){return function(t){var n={},r=K(t,"breakpoints",Y),o=[null].concat(r.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var i in e){var a="function"===typeof e[i]?e[i](t):e[i];if(null!=a)if(Array.isArray(a))for(var s=0;s<a.slice(0,o.length).length;s++){var u=o[s];u?(n[u]=n[u]||{},null!=a[s]&&(n[u][i]=a[s])):n[i]=a[s]}else n[i]=a}return n}}("function"===typeof t?t(r):t)(r);for(var a in i){var s=i[a],u="function"===typeof s?s(r):s;if("variant"!==a)if(u&&"object"===typeof u)o[a]=e(u)(r);else{var c=K(Q,a,a),l=K(te,c),f=K(r,l,K(r,c,{})),d=K(re,c,K)(f,u,u);if(ee[c])for(var p=ee[c],h=0;h<p.length;h++)o[p[h]]=d;else o[c]=d}else o=X({},o,{},e(K(r,u))(r))}return o}},ie=function(e){var t,n,r=e.scale,o=e.prop,i=void 0===o?"variant":o,a=e.variants,s=void 0===a?{}:a,u=e.key;(n=Object.keys(s).length?function(e,t,n){return oe(h(t,e,null))(n.theme)}:function(e,t){return h(t,e,null)}).scale=r||u,n.defaults=s;var c=((t={})[i]=n,t);return v(c)},ae=ie({key:"buttons"}),se=ie({key:"textStyles",prop:"textStyle"}),ue=ie({key:"colorStyles",prop:"colors"}),ce=(x.width,x.height,x.minWidth,x.minHeight,x.maxWidth,x.maxHeight,x.size,x.verticalAlign,x.display,x.overflow,x.overflowX,x.overflowY,O.opacity,P.fontSize,P.fontFamily,P.fontWeight,P.lineHeight,P.textAlign,P.fontStyle,P.letterSpacing,T.alignItems,T.alignContent,T.justifyItems,T.justifyContent,T.flexWrap,T.flexDirection,T.flex,T.flexGrow,T.flexShrink,T.flexBasis,T.justifySelf,T.alignSelf,T.order,R.gridGap,R.gridColumnGap,R.gridRowGap,R.gridColumn,R.gridRow,R.gridAutoFlow,R.gridAutoColumns,R.gridAutoRows,R.gridTemplateColumns,R.gridTemplateRows,R.gridTemplateAreas,R.gridArea,D.borderWidth,D.borderStyle,D.borderColor,D.borderTop,D.borderRight,D.borderBottom,D.borderLeft,D.borderRadius,L.backgroundImage,L.backgroundSize,L.backgroundPosition,L.backgroundRepeat,F.zIndex,F.top,F.right,F.bottom,F.left,function(e){var t=new RegExp("^("+e.join("|")+")$");return(0,i.Z)((function(e){return s(e)&&!t.test(e)}))}),le=(ce(w(H,C,k,_,A,I,V,$,j,q,ae,se,ue).propNames),n(2784)),fe=n(8165),de=[].concat(Z.propNames,O.propNames),pe=function(e){return de.includes(e)},he=ce(de),ve=(0,r.Z)("div",{shouldForwardProp:he})({boxSizing:"border-box",margin:0,minWidth:0},(function(e){return(0,o.iv)(e.__css)(e.theme)}),(function(e){var t=e.theme,n=e.variant,r=e.__themeKey,i=void 0===r?"variants":r;return(0,o.iv)((0,o.U2)(t,i+"."+n,(0,o.U2)(t,n)))}),Z,O,(function(e){return(0,o.iv)(e.sx)(e.theme)}),(function(e){return e.css}));ve.displayName="Box";var me=(0,r.Z)(ve)({display:"flex"});function ye(){return(ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ge(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}me.displayName="Flex";var be=["width","columns","gap","repeat"],we=function e(t,n){return Array.isArray(t)?t.map((function(t){return e(t,n)})):!!t&&"repeat(auto-"+n+", minmax("+(("number"===typeof(r=t)?r+"px":r)+", 1fr))");var r},_e=function e(t){return Array.isArray(t)?t.map(e):!!t&&("number"===typeof t?"repeat("+t+", 1fr)":t)},xe=le.forwardRef((function(e,t){var n=e.width,r=e.columns,o=e.gap,i=void 0===o?3:o,a=e.repeat,s=void 0===a?"fit":a,u=ge(e,be),c=n?we(n,s):_e(r);return le.createElement(ve,ye({ref:t},u,{__themeKey:"grids",__css:{display:"grid",gridGap:i,gridTemplateColumns:c}}))})),Se=le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,as:"button",variant:"primary"},e,{__themeKey:"buttons",__css:{appearance:"none",display:e.hidden?void 0:"inline-block",textAlign:"center",lineHeight:"inherit",textDecoration:"none",fontSize:"inherit",px:3,py:2,color:"white",bg:"primary",border:0,borderRadius:4}}))})),ke=le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,as:"a",variant:"styles.a"},e,{__themeKey:"links"}))})),Oe=le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,as:"p",variant:"paragraph",__themeKey:"text",__css:{fontFamily:"body",fontWeight:"body",lineHeight:"body"}},e))})),Ce=le.forwardRef((function(e,t){return le.createElement(ve,ye({as:"span",ref:t,variant:"default"},e,{__themeKey:"text"}))})),Pe=le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,as:"h2",variant:"heading"},e,{__themeKey:"text",__css:{fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"}}))}
1)),Ae=le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,as:"img"},e,{__themeKey:"images",__css:ye({maxWidth:"100%",height:"auto"},e.__css)}))})),Te=le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,as:"label",variant:"label"},e,{__themeKey:"forms",__css:{width:"100%",display:"flex"}}))})),Ee=["sx","autofillBackgroundColor"],je={boxShadow:"inset 0 0 0 1000px var(--theme-ui-input-autofill-bg)",fontSize:"inherit",":first-line":{fontSize:"1rem"}},Re={display:"block",width:"100%",p:2,appearance:"none",fontSize:"inherit",lineHeight:"inherit",border:"1px solid",borderRadius:4,color:"inherit",bg:"transparent",":autofill, :autofill:hover, :autofill:focus":je,":-webkit-autofill, :-webkit-autofill:hover, :-webkit-autofill:focus":je},Me=le.forwardRef((function(e,t){var n=e.sx,r=e.autofillBackgroundColor,i=void 0===r?"background":r,a=ge(e,Ee);return le.createElement(ve,ye({ref:t,as:"input",variant:"input",sx:ye({"--theme-ui-input-autofill-bg":function(e){return(0,o.U2)(e.colors,i,null)}},n)},a,{__themeKey:"forms",__css:Re}))})),Ie=["size"],De=function(e){var t=e.size,n=void 0===t?24:t,r=ge(e,Ie);return le.createElement(ve,ye({as:"svg",xmlns:"http://www.w3.org/2000/svg",width:n+"",height:n+"",viewBox:"0 0 24 24",fill:"currentcolor"},r))};De.displayName="SVG";var Be=function(e){return function(t){var n={};for(var r in t)e(r||"")&&(n[r]=t[r]);return n}},Ve=/^m[trblxy]?$/,Le=(Be((function(e){return Ve.test(e)})),Be((function(e){return!Ve.test(e)})),le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,as:"textarea",variant:"textarea"},e,{__themeKey:"forms",__css:{display:"block",width:"100%",p:2,appearance:"none",fontSize:"inherit",lineHeight:"inherit",border:"1px solid",borderRadius:4,color:"inherit",bg:"transparent"}}))}))),Ne=["size","strokeWidth","max","title","duration"],$e=(0,fe.F4)({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),Fe=le.forwardRef((function(e,t){var n=e.size,r=void 0===n?48:n,o=e.strokeWidth,i=void 0===o?4:o,a=(e.max,e.title),s=void 0===a?"Loading...":a,u=e.duration,c=void 0===u?500:u,l=ge(e,Ne),f=16-i,d=2*f*Math.PI,p=d-1/4*d;return le.createElement(ve,ye({ref:t,as:"svg",viewBox:"0 0 32 32",width:r,height:r,strokeWidth:i,fill:"none",stroke:"currentcolor",role:"img"},l,{__css:{color:"primary",overflow:"visible"}}),le.createElement("title",null,s),le.createElement("circle",{cx:16,cy:16,r:f,opacity:1/8}),le.createElement(ve,{as:"circle",cx:16,cy:16,r:f,strokeDasharray:d,strokeDashoffset:p,__css:{transformOrigin:"50% 50%",animationName:$e.toString(),animationTimingFunction:"linear",animationDuration:c+"ms",animationIterationCount:"infinite"}}))})),ze=le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,variant:"primary"},e,{__themeKey:"badges",__css:{display:"inline-block",verticalAlign:"baseline",fontSize:0,fontWeight:"bold",whiteSpace:"nowrap",px:1,borderRadius:2,color:"white",bg:"primary"}}))})),We=le.forwardRef((function(e,t){return le.createElement(ve,ye({ref:t,as:"hr",variant:"styles.hr"},e,{__css:{color:"gray",m:0,my:2,border:0,borderBottom:"1px solid"}}))})),Ge=["variant","sx","ratio","src","frameBorder","allowFullScreen","width","height","allow"],Ue=Be(pe),He=Be((function(e){return!pe(e)})),Ze=le.forwardRef((function(e,t){var n=e.variant,r=e.sx,o=e.ratio,i=void 0===o?16/9:o,a=e.src,s=e.frameBorder,u=void 0===s?0:s,c=e.allowFullScreen,l=void 0===c||c,f=e.width,d=void 0===f?560:f,p=e.height,h=void 0===p?315:p,v=e.allow,m=ge(e,Ge);return le.createElement(ve,ye({variant:n,sx:r,__css:{width:"100%",height:0,paddingBottom:100/i+"%",position:"relative",overflow:"hidden"}},Ue(m)),le.createElement(ve,ye({ref:t,as:"iframe",src:a,width:d,height:h,frameBorder:u,allowFullScreen:l,allow:v},He(m),{__css:{position:"absolute",width:"100%",height:"100%",top:0,bottom:0,left:0,border:0}})))}))},6489:function(e,t,n){"use strict";n.d(t,{f6:function(){return _},vg:function(){return w},yo:function(){return d},tZ:function(){return f},B7:function(){return h}});var r=n(8165),o=n(8186),i=n(2784),a=n(9714),s=n.n(a),u=n(2273),c=function(e){if(!e||!e.sx&&!e.css)return e;var t={};for(var n in e)"sx"!==n&&(t[n]=e[n]);return t.css=function(e){return function(t){return[(0,u.iv)(e.sx)(t),"function"===typeof e.css?e.css(t):e.css]}}(e),t};function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return r.tZ.apply(void 0,[e,c(t)].concat(o))},d={__EMOTION_VERSION__:"11.5.0",theme:{}},p=(0,i.createContext)(d),h=function(){return(0,i.useContext)(p)},v="function"===typeof Symbol&&Symbol.for,m=v?Symbol.for("react.element"):60103,y=v?Symbol.for("react.forward_ref"):60103,g={isMergeableObject:function(e){return!!e&&"object"===typeof e&&e.$$typeof!==m&&e.$$typeof!==y},arrayMerge:function(e,t){return t}},b=function(e,t){return s()(e,t,g)};b.all=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s().all(t,g)};var w=function(e){var t=e.context,n=e.children;return f(o.T.Provider,{value:t.theme},f(p.Provider,{value:t,children:n}))};function _(e){var t=e.theme,n=e.children,r=h();var o="function"===typeof t?l({},r,{theme:t(r.theme)}):b.all({},r,{theme:t});return f(w,{context:o,children:n})}},2273:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{iv:function(){return v},U2:function(){return a}});var o="__default",i=function(e){return"object"===typeof e&&null!==e&&o in e};function a(e,t,n,r,o){var a=t&&"string"===typeof t?t.split("."):[t];for(r=0;r<a.length;r++)e=e?e[a[r]]:o;return e===o?n:i(e)?e.__default:e}var s=function e(t,n){if(t&&t.variant){var o={};for(var i in t){var s=t[i];if("variant"===i)o=r({},o,e(a(n,"function"===typeof s?s(n):s),n));else o[i]=s}return o}return t},u=[40,52,64].map((function(e){return e+"em"})),c={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},l={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},f={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],scrollMarginX:["scrollMarginLeft","scrollMarginRight"],scrollMarginY:["scrollMarginTop","scrollMarginBottom"],scrollPaddingX:["scrollPaddingLeft","scrollPaddingRight"],scrollPaddingY:["scrollPaddingTop","scrollPaddingBottom"],size:["width","height"]},d={color:"colors",backgroundColor:"colors",borderColor:"colors",caretColor:"colors",columnRuleColor:"colors",textDecorationColor:"colors",opacity:"opacities",transition:"transitions",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",scrollMargin:"space",scrollMarginTop:"space",scrollMarginRight:"space",scrollMarginBottom:"space",scrollMarginLeft:"space",scrollMarginX:"space",scrollMarginY:"space",scrollPadding:"space",scrollPaddingTop:"space",scrollPaddingRight:"space",scrollPaddingBottom:"space",scrollPaddingLeft:"space",scrollPaddingX:"space",scrollPaddingY:"space",inset:"space",insetBlock:"space",insetBlockEnd:"space",insetBlockStart:"space",insetInline:"space",insetInlineEnd:"space",insetInlineStart:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",borderBlock:"borders",borderBlockColor:"colors",borderBlockEnd:"borders",borderBlockEndColor:"colors",borderBlockEndStyle:"borderStyles",borderBlockEndWidth:"borderWidths",borderBlockStart:"borders",borderBlockStartColor:"colors",borderBlockStartStyle:"borderStyles",borderBlockStartWidth:"borderWidths",borderBlockStyle:"borderStyles",borderBlockWidth:"borderWidths",borderEndEndRadius:"radii",borderEndStartRadius:"radii",borderInline:"borders",borderInlineColor:"colors",borderInlineEnd:"borders",borderInlineEndColor:"colors",borderInlineEndStyle:"borderStyles",borderInlineEndWidth:"borderWidths",borderInlineStart:"borders",borderInlineStartColor:"colors",borderInlineStartStyle:"borderStyles",borderInlineStartWidth:"borderWidths",borderInlineStyle:"borderStyles",borderInlineWidth:"borderWidths",borderStartEndRadius:"radii",borderStartStartRadius:"radii",columnRuleWidth:"borderWidths",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",blockSize:"sizes",inlineSize:"sizes",maxBlockSize:"sizes",maxInlineSize:"sizes",minBlockSize:"sizes",minInlineSize:"sizes",columnWidth:"sizes",fill:"colors",stroke:"colors"},p=function(e,t){if("number"!==typeof t||t>=0){if("string"===typeof t&&t.startsWith("-")){var n=t.substring(1),r=a(e,n,n);return"number"===typeof r?-1*r:"-"+r}return a(e,t,t)}var o=Math.abs(t),i=a(e,o,o);return"string"===typeof i?"-"+i:-1*Number(i)},h=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","to
1p","bottom","left","right"].reduce((function(e,t){var n;return r({},e,((n={})[t]=p,n))}),{}),v=function e(t){return void 0===t&&(t={}),function(n){void 0===n&&(n={});var o=r({},c,"theme"in n?n.theme:n),p=function(e){return function(t){var n={},r=t&&t.breakpoints||u,o=[null].concat(r.map((function(e){return e.includes("@media")?e:"@media screen and (min-width: "+e+")"})));for(var i in e){var a=i,s=e[a];if("function"===typeof s&&(s=s(t||{})),!1!==s&&null!=s)if(Array.isArray(s))for(var c=0;c<s.slice(0,o.length).length;c++){var l=o[c];l?(n[l]=n[l]||{},null!=s[c]&&(n[l][a]=s[c])):n[a]=s[c]}else n[a]=s}return n}}(s("function"===typeof t?t(o):t,o))(o),v={};for(var m in p){var y=p[m],g="function"===typeof y?y(o):y;if(g&&"object"===typeof g){if(i(g)){v[m]=g.__default;continue}v[m]=e(g)(o)}else{var b=m in l?l[m]:m,w=b in d?d[b]:void 0,_=w?null==o?void 0:o[w]:a(o,b,{}),x=a(h,b,a)(_,g,g);if(b in f)for(var S=f[b],k=0;k<S.length;k++)v[S[k]]=x;else v[b]=x}}return v}}},9714:function(e){"use strict";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)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"===typeof n?n:u}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function u(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var c=u;e.exports=c},9340:function(e,t,n){"use strict";n.d(t,{k:function(){return o},K:function(){return r}});var r=function(){},o=function(){}},3463:function(e,t,n){"use strict";var r=n(8570),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=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 o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),m=0;m<a.length;++m){var y=a[m];if(!i[y]&&(!r||!r[y])&&(!v||!v[y])&&(!s||!s[y])){var g=d(n,y);try{c(t,y,g)}catch(b){}}}}return t}},7355:function(e,t,n){"use strict";n.d(t,{Hnr:function(){return Uo},atr:function(){return wn},vMv:function(){return jn},m83:function(){return Jt},o4J:function(){return Zo},ZBq:function(){return lr},vgT:function(){return Fr},v5r:function(){return Yt}});var r,o,i,a,s,u,c=n(75),l=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,m=(e,t,n
1)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&m(e,n,t[n]);if(p)for(var n of p(t))v.call(t,n)&&m(e,n,t[n]);return e},g=(e,t)=>f(e,d(t)),b=(e,t,n)=>(m(e,"symbol"!==typeof t?t+"":t,n),n),w=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};const _=new Map;var x,S;(S=x||(x={})).ApplyPatches="$$applyPatches",S.ApplySnapshot="$$applySnapshot",S.Detach="$$detach",S.ApplySet="$$applySet",S.ApplyDelete="$$applyDelete",S.ApplyMethodCall="$$applyMethodCall";new Set(Object.values(x));var k,O,C,P;let A;function T(){return A}function E(e){A=e}(O=k||(k={})).Sync="sync",O.Async="async",(P=C||(C={})).Spawn="spawn",P.Return="return",P.Resume="resume",P.ResumeError="resumeError",P.Throw="throw";const j=Symbol("modelAction");function R(e){return"function"===typeof e&&!!e[j]}const M="$modelType",I="$modelId";function D(e){return e===M}class B extends Error{constructor(e){super(e),Object.setPrototypeOf(this,B.prototype)}}function V(e){return new B(e)}const L={enumerable:!1,writable:!0,configurable:!1,value:void 0};function N(e,t,n,r=!0){r?(Object.defineProperty(e,t,L),e[t]=n):Object.defineProperty(e,t,{enumerable:!1,writable:r,configurable:!0,value:n})}function $(e){if(!F(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function F(e){return null!==e&&"object"===typeof e}function z(e){switch(typeof e){case"number":case"string":case"boolean":case"undefined":case"bigint":return!0}return null===e}function W(e){return e instanceof Map||(0,c.isObservableMap)(e)}function G(e){return e instanceof Set||(0,c.isObservableSet)(e)}function U(e){return Array.isArray(e)||(0,c.isObservableArray)(e)}function H(e,t){if(!F(e))throw V(`${t} must be an object`)}function Z(e,t){if(!(0,c.isObservableArray)(e))throw V(`${t} must be an observable array`)}function q(e,t){if("function"!==typeof e)throw V(`${t} must be a function`)}const X=Symbol("runAfterNew");function K(e,t,n){let r=e[t];r||(r=[],N(e,t,r)),r.push(n)}function Y(e,t,n){const{target:r,propertyKey:o,baseDescriptor:i}=t,a=()=>{K(r,X,(e=>{e[o]=n(t,e[o])}))};if(i){if(void 0!==i.get)throw V(`@${e} cannot be used with getters`);if(i.value)return{enumerable:!1,writable:!0,configurable:!0,value:n(t,i.value)};a()}else a()}function J(e,t){const n=e[t];if(n)for(const r of n)r(e)}const Q=new Set;function ee(e,t,n){if(n){if(Q.has(n))return;Q.add(n)}switch(t="[mobx-keystone] "+t,e){case"warn":console.warn(t);break;case"error":console.error(t);break;default:throw V(`unknown log type - ${e}`)}}const te=Symbol("notMemoized");function ne(e){let t=te;return(...n)=>(t===te&&(t=e(...n)),t)}function re(e){let t,n=!1;return()=>(n||(t=e(),n=!0),t)}const oe={makeObservable:c[String.fromCharCode("l".charCodeAt(0)+1)+"akeObservable"]};function ie(e){return`set${e[0].toUpperCase()}${e.slice(1)}`}function ae(){return oe.makeObservable?6:5}let se;function ue(e){return e instanceof se}function ce(e){return"function"===typeof e&&(e===se||e.prototype instanceof se)}function le(e){return $(e)&&!!e.$modelType}function fe(e,t,n){let r=e.get(t);return void 0===r&&(r=n(),e.set(t,r)),r}const de=new WeakMap,pe=new WeakMap;function he(e){return fe(pe,e,(()=>(0,c.createAtom)("parentAtom")))}function ve(e){he(e).reportChanged()}const me=new WeakMap;function ye(e){const t=me.get(e);return null!=t?t:e}function ge(e){return ue(e)?e.$:e}const be=new WeakMap;function we(e,t){return!(!t&&me.has(e))&&be.has(e)}function _e(e){return!z(e)&&we(e,!1)}function xe(e,t,n=!1){if(!n&&me.has(e))throw V(`${t} must be the model object instance instead of the '$' sub-object`);if(z(e)||!we(e,!0))throw V(`${t} must be a tree node (usually a model or a shallow / deep child part of a model 'data' object)`)}let Se=!1;function ke(e){return he(e).reportObserved(),de.get(e)}function Oe(e){const t=me.get(e);if(t)return{parent:t,path:"$"};const n=ke(e);return n&&ue(n.parent)?{parent:n.parent.$,path:n.path}:n}function Ce(e){const t=ke(e);return t?t.parent:void 0}function Pe(e){const t=Oe(e);return t?t.parent:void 0}const Ae=new WeakMap;function Te(e){return fe(Ae,e,(()=>(0,c.computed)((()=>function(e){const t={root:e,path:[],pathObjects:[e]};let n;for(;n=ke(t.root);)t.root=n.parent,t.path.unshift(n.path),t.pathObjects.unshift(n.parent);return t}(e))))).get()}function Ee(e){return Te(e).root}const je={resolved:!1};function Re(e,t){let n=ge(e),r=t.length;for(let o=0;o<r;o++){if(!F(n))return je;const e=t[o];if(U(n)&&+e>=n.length)return je;n=ge(n[e])}return{resolved:!0,value:ye(n)}}const Me=Symbol("skipIdChecking");function Ie(e,t,n){var r;let o=ge(e),i=t.length;for(let a=0;a<i;a++){if(!F(o))return{resolved:!1};const e=t[a];if(U(o)&&+e>=o.length)return{resolved:!1};const i=o[e];o=ge(i);const s=n[a];if(s!==Me){if(s!==(ue(i)&&null!=(r=i.$modelId)?r:null))return{resolved:!1}}}return{resolved:!0,value:ye(o)}}const De={deep:!1},Be=new WeakMap;function Ve(e){return Be.get(e).shallow}function Le(e){const t=Be.get(e);return t.deepDirty&&$e(e),t.deepAtom.reportObserved(),t}function Ne(e,t){t.deep.add(e),Ge.forEach(((n,r)=>{n.addNode(e,t.extensionsData.get(r))}))}
1const $e=(0,c.action)((e=>{const t=Be.get(e);if(!t.deepDirty)return t;const n={deep:new Set,extensionsData:He()},r=Ve(e).values();let o=r.next();for(;!o.done;){Ne(o.value,n);const e=$e(o.value).deep.values();let t=e.next();for(;!t.done;)Ne(t.value,n),t=e.next();o=r.next()}return Object.assign(t,n),t.deepDirty=!1,t.deepAtom.reportChanged(),t})),Fe=(0,c.action)(((e,t)=>{Be.get(e).shallow.add(t),We(e)})),ze=(0,c.action)(((e,t)=>{Be.get(e).shallow.delete(t),We(e)}));function We(e){const t=Be.get(e);t.deepDirty||(t.deepDirty=!0,t.deepAtom.reportChanged());const n=Ce(e);n&&We(n)}const Ge=new Map;function Ue(e){const t=Symbol("deepObjectChildrenExtension");return Ge.set(t,e),e=>e.extensionsData.get(t)}function He(){const e=new Map;return Ge.forEach(((t,n)=>{e.set(n,t.initData())})),e}const Ze=new WeakMap,qe=new WeakMap;function Xe(e){let t=qe.get(e);return t||(t={[Symbol.iterator](){let t=e;function n(){const e=t?Ze.get(t):void 0;if(e&&!(e.length<=0))return e[Symbol.iterator]()}function r(){let e;for(;t&&!e;)t=Ce(t),e=n();return e}let o=n();o||(o=r());return{next(){if(!o)return{value:void 0,done:!0};let e=o.next();return e.done?(o=r(),this.next()):e}}}},qe.set(e,t)),t}function Ke(){if(Je()&&!T())throw V("data changes must be performed inside model actions")}let Ye=!0;function Je(){return Ye}const Qe=[];function et(){return!Je()||T()}function tt(){if(et())return!1;for(;Qe.length>0;){Qe.shift()()}return!0}function nt({nameOrNameFn:e,fn:t,actionType:n,overrideContext:r,isFlowFinisher:o=!1}){let i=!1;const a=function(){const a="function"===typeof e?e():e;i||(i=!0,t=(0,c.action)(a,t));const s=this,u=T(),l={actionName:a,type:n,target:s,args:Array.from(arguments),parentContext:u,data:{},rootContext:void 0};r&&r(l,this),l.rootContext||(l.previousAsyncStepContext?l.rootContext=l.previousAsyncStepContext.rootContext:l.parentContext?l.rootContext=l.parentContext.rootContext:l.rootContext=l),E(l);let f=t.bind(s,...arguments);const d=Xe(l.target)[Symbol.iterator]();let p=d.next();for(;!p.done;){const e=p.value;(!e.filter||e.filter(l))&&(f=e.middleware.bind(void 0,l,f)),p=d.next()}try{const e=f();if(o){const t=e,n=t.value;return"accept"===t.resolution?t.accepter(n):t.rejecter(n),n}return e}finally{E(l.parentContext),tt()}};return a[j]=!0,a}function rt(e,t,n){const r=e[t];if(R(r))return;const o=nt({nameOrNameFn:n,fn:r,actionType:k.Sync}),i=Object.getPrototypeOf(e);i[t]===r?i[t]=o:e[t]=o}const ot=re((()=>nt({nameOrNameFn:x.Detach,fn:it,actionType:k.Sync})));function it(){const e=Oe(this);if(!e)return;const{parent:t,path:n}=e;if((0,c.isObservableArray)(t))t.splice(+n,1);else{if(!(0,c.isObservableObject)(t))throw V("parent must be an observable object or an observable array");(0,c.remove)(t,""+n)}}function at(e,t,n=0){const r=function(e,t,n=0){xe(e,"child");const r=[];let o,i=e,a=0;for(;o=ke(i);){if(r.unshift(o.path),i=o.parent,t(i))return{parent:i,path:r};if(a++,n>0&&a===n)break}return}(e,t,n);return r?r.parent:void 0}var st,ut;function ct(e,t,n){if(xe(e,"target"),n===st.ParentFirst){const n=e=>lt(e,t,n);return lt(e,t,n)}{const n=e=>ft(e,t,n);return ft(e,t,n)}}function lt(e,t,n){const r=t(e);if(void 0!==r)return r;const o=Ve(e).values();let i=o.next();for(;!i.done;){const e=n(i.value);if(void 0!==e)return e;i=o.next()}}function ft(e,t,n){const r=Ve(e).values();let o=r.next();for(;!o.done;){const e=n(o.value);if(void 0!==e)return e;o=r.next()}const i=t(e);if(void 0!==i)return i}function dt(e){const t=new WeakMap,n=n=>{let o=t.get(n);return o||(o=(0,c.computed)((()=>function(e,t,n){let r;const o=t(e),i=Ve(e),a=i.values();let s=a.next();if(void 0===o&&1===i.size)return n(s.value);for(;!s.done;){const e=n(s.value);if(e){r||(r=new Map);const t=e.keys();let n=t.next();for(;!n.done;){const o=n.value,i=e.get(o);r.set(o,i),n=t.next()}}s=a.next()}void 0!==o&&(r||(r=new Map),r.set(o,e));return r}(n,e,r))),t.set(n,o)),o.get()},r=e=>n(e);return{walk:e=>n(e)}}(ut=st||(st={})).ParentFirst="parentFirst",ut.ChildrenFirst="childrenFirst";const pt=[];function ht(e,t){pt.push({priority:e,reconciler:t}),pt.sort(((e,t)=>e.priority-t.priority))}function vt(e,t,n,r){if(z(t))return t;const o=pt.length;for(let i=0;i<o;i++){const{reconciler:o}=pt[i],a=o(e,t,n,r);if(void 0!==a)return a}if(W(t))throw V("a snapshot must not contain maps");if(G(t))throw V("a snapshot must not contain sets");throw V(`unsupported snapshot - ${t}`)}function mt(e,t,n){if(e!==t&&ue(e)&&n.findModelByTypeAndId(e.$modelType,e.$modelId)){const t=Oe(e);t&&(0,c.set)(t.parent,t.path,null)}}const yt=Symbol("modelMetadata"),gt=Symbol("modelUnwrappedClass"),bt=Symbol("runAfterModelDecorator");function wt(e){if(ue(e))return e.constructor[yt];if(ce(e))return e[yt];throw V("modelClassOrInstance must be a model class or instance")}const _t=new WeakMap;function xt(e){return fe(_t,e,(()=>wt(e).modelIdProperty))}const St={},kt=new Map;function Ot(e){return St[e]}function Ct(e,t){return e+" "+t}class Pt{constructor(e){var t;b(this,"pool"),e=null!=(t=me.get(e))?t:e,this.pool=At(Le(e))}findModelByTypeAndId(e,t){return t?this.pool.get(Ct(e,t)):void 0}findModelForSnapshot(e){if(!le(e))return;const t=xt(Ot(e.$modelType).class);return t?this.findModelByTypeAndId(e.$modelType,e[t]):void 0}}const At=Ue({initData:()=>new Map,addNode(e,t){if(ue(e)){const n=e.$modelId;n&&t.set(Ct(e.$modelType,n),e)}}});function Tt(e,t,n=!1){xe(e,"node"),t.length<=0||jt().call(e,t,n)}function Et(e,t=!1){const n=this,r=new Pt(n);if(t){let t=e.length;for(;t--;){const o=e[t];if(U(o)){let e=o.length;for(;e--;)Rt(n,o[e],r)}else Rt(n,o,r)}}else{const t=e.length;for(let o=0;o<t;o++){const t=e[o];if(U(t)){const e=t.length;for(let o=0;o<e;o++)Rt(n,t[o],r)}else Rt(n,t,r)}}}const jt=re((()=>nt({nameOrNameFn:x.ApplyPatches,fn:Et,actionType:k.Sync})));function Rt(e,t,n){const{target:r,prop:o}=function(e,t){let n=ge(e);if(0===t.length)return{target:n};for(let r=0;r<=t.length-2;r++)n=ge(n[t[r]]);return{target:n,prop:t[t.length-1]}}(e,t.path);if(U(r))switch(t.op){case"add":{const e=+o,i=vt(void 0,t.value,n,r);r.splice(e,0,i);break}case"remove":{const e=+o;r.splice(e,1);break}case"replace":if("length"===o)r.length=t.value;else{const e=+o,i=vt(r[e],t.value,n,r);(0,c.set)(r,e,i)}break;default:throw V(`unsupported patch operation: ${t.op}`)}else switch(t.op){case"add":{const e=vt(void 0,t.value,n,r);(0,c.set)(r,o,e);break}case"remove":(0,c.remove)(r,o);break;
1case"replace":{const e=vt(r[o],t.value,n,r);(0,c.set)(r,o,e);break}default:throw V(`unsupported patch operation: ${t.op}`)}}var Mt,It;(It=Mt||(Mt={})).DevModeOnly="devModeOnly",It.AlwaysOn="alwaysOn",It.AlwaysOff="alwaysOff";let Dt=0;const Bt=((e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})();let Vt,Lt={modelAutoTypeChecking:Mt.DevModeOnly,modelIdGenerator:function(){const e=Dt.toString(36)+"-"+Bt;return Dt++,e},allowUndefinedArrayElements:!1,showDuplicateModelNameWarnings:!0};function Nt(){return Lt}function $t(){switch(Nt().modelAutoTypeChecking){case Mt.DevModeOnly:case Mt.AlwaysOff:return!1;case Mt.AlwaysOn:return!0;default:throw V(`invalid 'modelAutoTypeChecking' config value - ${Lt.modelAutoTypeChecking}`)}}function Ft(e){return e instanceof Vt}function zt(e){return"function"===typeof e&&(e===Vt||e.prototype instanceof Vt)}var Wt,Gt;(Gt=Wt||(Wt={})).OnInit="$$onInit",Gt.OnLazyInit="$$onLazyInit",Gt.OnAttachedToRootStore="$$onAttachedToRootStore",Gt.OnAttachedToRootStoreDisposer="$$onAttachedToRootStoreDisposer";new Set(Object.values(Wt));const Ut=new WeakMap,Ht=new WeakSet,Zt=(0,c.action)("attachToRootStore",((e,t)=>{const n=[];ct(t,(e=>{Ht.has(e)||(Ht.add(e),e instanceof se&&e.onAttachedToRootStore&&(rt(e,"onAttachedToRootStore",Wt.OnAttachedToRootStore),n.push(e)))}),st.ParentFirst);const r=n.length;for(let o=0;o<r;o++){const t=n[o],r=t.onAttachedToRootStore(e);r&&Ut.set(t,r)}})),qt=(0,c.action)("detachFromRootStore",(e=>{const t=[];ct(e,(e=>{if(!Ht.delete(e))return;const n=Ut.get(e);if(n){const r=nt({nameOrNameFn:Wt.OnAttachedToRootStoreDisposer,fn:n,actionType:k.Sync}).bind(e);Ut.delete(e),t.push(r)}}),st.ChildrenFirst);const n=t.length;for(let r=0;r<n;r++)t[r]()})),Xt=new WeakSet,Kt=new WeakMap,Yt=(0,c.action)("registerRootStore",(e=>{if(xe(e,"node"),Xt.has(e))throw V("object already registered as root store");if(xe(t=e,"value"),Ce(t))throw V("a root store must not have a parent");var t;return Xt.add(e),Zt(e,e),en(e).reportChanged(),e}));(0,c.action)("unregisterRootStore",(e=>{if(!Jt(e))throw V("not a root store");Xt.delete(e),qt(e),en(e).reportChanged()}));function Jt(e){return xe(e,"node"),Qt(e)}function Qt(e){return en(e).reportObserved(),Xt.has(e)}function en(e){return fe(Kt,e,(()=>(0,c.createAtom)("rootStore")))}class tn{constructor(e,t,n){b(this,"path"),b(this,"expectedTypeName"),b(this,"actualValue"),this.path=e,this.expectedTypeName=t,this.actualValue=n}throw(e){let t="TypeCheckError: ",n=[];var r;throw we(e,!0)&&(n=(r=e,xe(r,"value"),Te(r)).path),t+="[/"+[...n,...this.path].join("/")+"] ",t+="Expected: "+this.expectedTypeName,V(t)}}const nn=[],rn=new WeakMap;var on,an;(an=on||(on={})).Object="object",an.Array="array",an.Primitive="primitive",an.Any="any";class sn{constructor(e,t,n,r,o,i,a){b(this,"baseType"),b(this,"_check"),b(this,"getTypeName"),b(this,"typeInfoGen"),b(this,"snapshotType"),b(this,"_fromSnapshotProcessor"),b(this,"_toSnapshotProcessor"),b(this,"checkResultCache"),b(this,"unchecked"),b(this,"_cachedTypeInfoGen"),b(this,"fromSnapshotProcessor",(e=>this._fromSnapshotProcessor(e))),b(this,"_toSnapshotProcessorCache",new WeakMap),b(this,"toSnapshotProcessor",(e=>{if("object"!==typeof e||null===e)return this._toSnapshotProcessor(e);if(this._toSnapshotProcessorCache.has(e))return this._toSnapshotProcessorCache.get(e);const t=this._toSnapshotProcessor(e);return this._toSnapshotProcessorCache.set(e,t),t})),this.baseType=e,this._check=t,this.getTypeName=n,this.typeInfoGen=r,this.snapshotType=o,this._fromSnapshotProcessor=i,this._toSnapshotProcessor=a,this.unchecked=!t,this._cachedTypeInfoGen=ne(r)}createCacheIfNeeded(){return this.checkResultCache||(this.checkResultCache=new WeakMap),this.checkResultCache}setCachedResult(e,t){this.createCacheIfNeeded().set(e,t);let n=rn.get(e);n||(n=new Set,rn.set(e,n)),n.add(this)}invalidateCachedResult(e){this.checkResultCache&&this.checkResultCache.delete(e)}getCachedResult(e){return this.checkResultCache?this.checkResultCache.get(e):void 0}check(e,t){if(this.unchecked)return null;if(!we(e,!0))return this._check(e,t);let n=this.getCachedResult(e);return void 0===n&&(n=this._check(e,nn),this.setCachedResult(e,n)),n?new tn([...t,...n.path],n.expectedTypeName,n.actualValue):null}get typeInfo(){return this._cachedTypeInfoGen(this)}}const un=Symbol("lateTypeCheker");function cn(e,t){let n;const r=function(){return n||(n=e(),n)};r[un]=!0;const o=ne(t);return Object.defineProperty(r,"typeInfo",{enumerable:!0,configurable:!0,get:()=>o(r)}),r}function ln(e){return"function"===typeof e&&e[un]}class fn{constructor(e){b(this,"thisType"),this.thisType=e}}const dn=[];function pn(e){dn.push(e)}function hn(e){for(const t of dn){const n=t(e);if(n)return n}}function vn(e){let t=e;for(;;){if(t instanceof sn)return t;if(!ln(t)){const t=hn(e);if(t)return vn(t);throw V("type checker could not be resolved")}t=t()}}function mn(e){if(e instanceof sn||ln(e))return e;{const t=hn(e);return t||void 0}}function yn(e){const t=mn(e);if(t)return t;throw V("standard type could not be resolved")}const gn=[];function bn(e,t){gn.push({priority:e,snapshotter:t}),gn.sort(((e,t)=>e.priority-t.priority))}function wn(e,t,n){let r,o;if(ln(e)||e instanceof sn||ce(e)){const i=vn(e);r=i.fromSnapshotProcessor?i.fromSnapshotProcessor(t):t,o=n}else r=e,o=t;return _n(r,o)}const _n=(0,c.action)("fromSnapshot",((e,t)=>
1{const n={options:y({generateNewIds:!1,overrideRootModelId:void 0},t)};return n.snapshotToInitialData=Sn.bind(void 0,n),xn(e,n)}));function xn(e,t){if(z(e))return e;const n=gn.length;for(let r=0;r<n;r++){const{snapshotter:n}=gn[r],o=n(e,t);if(void 0!==o)return o}if(W(e))throw V("a snapshot must not contain maps");if(G(e))throw V("a snapshot must not contain sets");throw V(`unsupported snapshot - ${e}`)}function Sn(e,t){const n=c.observable.object({},void 0,kn),r=Object.keys(t),o=r.length;for(let i=0;i<o;i++){const o=r[i];if(!D(o)){const r=t[o];(0,c.set)(n,o,xn(r,e))}}return n}const kn={deep:!1},On=new WeakMap;function Cn(e){return On.get(e)}const Pn=(0,c.action)("unsetInternalSnapshot",(e=>{const t=Cn(e);t&&(On.delete(e),t.atom.reportChanged())})),An=(0,c.action)("setInternalSnapshot",((e,t,n)=>{const r=Cn(e);if(r&&r.untransformed===t)return;let o;r?(o=r,o.untransformed=t,o.transformed=o.transformFn?o.transformFn(t):t):(o={untransformed:t,transformFn:n,transformed:n?n(t):t,atom:(0,c.createAtom)("snapshot")},On.set(e,o)),o.untransformed!==o.transformed&&o.transformed,o.atom.reportChanged();const i=function(e,t){return(0,c.untracked)((()=>{if(!t)return;const n=Cn(t.parent);return n&&e?{parentSnapshot:n,parentPath:t}:void 0}))}(r,ke(e));if(i){const{parentSnapshot:e,parentPath:t}=i;if(e){const n=t.path;let r=e.untransformed;r[n]!==o.transformed&&(r=Array.isArray(r)?r.slice():Object.assign({},r),r[n]=o.transformed,An(t.parent,r,void 0))}}}));function Tn(e){e.atom.reportObserved()}const En=e=>e;function jn(e,t){let n,r=En;if(arguments.length>=2?(r=vn(e).toSnapshotProcessor,n=t):n=e,z(n))return r(n);xe(n,"nodeOrPrimitive");const o=Cn(n);if(!o)throw V("getSnapshot is not supported for this kind of object");return Tn(o),r(o.transformed)}function Rn(e,t){xe(e,"node");const n=y({generateNewIds:!0},t);return wn(jn(e),n)}const Mn=(0,c.action)("setParent",(({value:e,parentPath:t,indexChangeAllowed:n,isDataObject:r,cloneIfApplicable:o})=>{if(z(e))return e;if(r)return me.set(e,t.parent),e;var i;if(i=e,Be.has(i)||Be.set(i,{shallow:c.observable.set(void 0,De),deep:new Set,extensionsData:He(),deepDirty:!0,deepAtom:(0,c.createAtom)("deepChildrenAtom")}),t){const e=ye(t.parent);t.parent!==e&&(t={parent:e,path:t.path})}let a=ke(e);if(function(e,t,n=!0){return!e&&!t||!(!e||!t)&&(!(e.parent!==t.parent)&&(!n||e.path===t.path))}(a,t))return e;if(Jt(e))throw V("root stores cannot be attached to any parents");if(o&&(null==t?void 0:t.parent)&&ue(e)&&wt(e).valueType&&(e=Rn(e,{generateNewIds:!0}),a=ke(e)),a&&t){if(a.parent===t.parent&&n)return de.set(e,t),ve(e),e;throw V("an object cannot be assigned a new parent when it already has one")}const s=()=>{(null==a?void 0:a.parent)&&ze(a.parent,e),de.set(e,t),(null==t?void 0:t.parent)&&Fe(t.parent,e),ve(e)};if(e instanceof se){const t=Ee(e),n=Jt(t)?t:void 0;s();const r=Ee(e),o=Jt(r)?r:void 0;n!==o&&(n||o)&&(u=()=>{n&&qt(e),o&&Zt(o,e)},et()?Qe.push(u):u())}else s();var u;return e}));function In(e,t){const n=vn(e);return n.unchecked?null:n.check(t,[])}function Dn(e,t){let n,r,o;if(1===arguments.length?(o=!1,n=e):(r=e,o=!0,n=t),!F(n))throw V("only objects can be turned into tree nodes");if(o&&$t()){const e=In(r,n);e&&e.throw(n)}return we(n,!0)?n:Ln(n,void 0)}const Bn=[];function Vn(e,t){Bn.push({priority:e,tweaker:t}),Bn.sort(((e,t)=>e.priority-t.priority))}const Ln=(0,c.action)("tweak",(function(e,t){if(z(e))return e;if(we(e,!0))return e=Mn({value:e,parentPath:t,indexChangeAllowed:!1,isDataObject:!1,cloneIfApplicable:!0});if(Ft(e))throw V("data models are not directly supported. you may insert the data in the tree instead ('$' property).");const n=Bn.length;for(let r=0;r<n;r++){const{tweaker:n}=Bn[r],o=n(e,t);if(void 0!==o)return o}if(W(e))throw V("maps are not directly supported. consider using 'ObjectMap' / 'asMap' instead.");if(G(e))throw V("sets are not directly supported. consider using 'ArraySet' / 'asSet' instead.");throw V(`tweak can only work over models, observable objects/arrays, or primitives, but got ${e} instead`)}));function Nn(e){if(z(e))return!0;const t=be.get(e);if(!t)return!1;const n=[],r=Ve(e).values();let o=r.next();for(;!o.done;)n.push(o.value),o=r.next();for(let i=0;i<n.length;i++)Mn({value:n[i],parentPath:void 0,indexChangeAllowed:!1,isDataObject:!1,cloneIfApplicable:!1});return t(),be.delete(e),Pn(e),!0}var $n,Fn;(Fn=$n||($n={}
1)).DevModeOnly="devModeOnly",Fn.On="on",Fn.Off="off";const zn="$frozen";class Wn{constructor(e,t=$n.DevModeOnly){b(this,"data");const n=t===$n.On||t===$n.DevModeOnly&&!1;n&&Un(e),this.data=e,n&&Object.freeze(this.data),Ln(this,void 0)}}function Gn(e,t=$n.DevModeOnly){return new Wn(e,t)}function Un(e){if(!z(e))if(Array.isArray(e)){const t=e.length;for(let n=0;n<t;n++){const t=e[n];if(void 0===t&&!Nt().allowUndefinedArrayElements)throw V("undefined is not supported inside arrays since it is not serializable in JSON, consider using null instead");Un(t)}Object.freeze(e)}else{if(!$(e))throw V(`frozen data must be plainly serializable to JSON, but ${e} is not`);{const t=Object.keys(e),n=t.length;for(let r=0;r<n;r++){const n=t[r],o=e[n];Un(n),Un(o)}Object.freeze(e)}}}function Hn(e){return $(e)&&!!e.$frozen}function Zn(e,t){xe(e,"node"),H(t,"snapshot"),Xn().call(e,t)}function qn(e){const t=this,n=()=>{const n=new Pt(t);vt(t,e,n,void 0)};if(U(e)){if(!U(t))throw V("if the snapshot is an array the target must be an array too");return n()}if(Hn(e))throw V("applySnapshot cannot be used over frozen objects");if($(e)&&void 0===e.$modelType&&ue(t)){const n=kt.get(t.constructor);e=g(y({},e),{[M]:n.name})}if(le(e)){const r=e.$modelType,o=Ot(r);if(!o)throw V(`model with name "${r}" not found in the registry`);
1if(!ue(t))throw V("the target for a model snapshot must be a model instance");if(t.$modelType!==r)throw V(`snapshot model type '${r}' does not match target model type '${t.$modelType}'`);const i=xt(o.class);if(i){const n=e[i];if(t.$modelId!==n)throw V(`snapshot model id '${n}' does not match target model id '${t.$modelId}'`)}return n()}if($(e)){if(!$(t)&&!(0,c.isObservableObject)(t))throw V("if the snapshot is an object the target must be an object too");return n()}throw V(`unsupported snapshot - ${e}`)}const Xn=re((()=>nt({nameOrNameFn:x.ApplySnapshot,fn:qn,actionType:k.Sync})));function Kn(e,t,n){if("string"!==typeof n)throw V(`${e} cannot be used over symbol properties`);const r=`${e} must be used over model classes or instances`;if(!t)throw V(r);if(t instanceof se||t===se||t.prototype instanceof se)return;if(!(t instanceof Vt||t===Vt||t.prototype instanceof Vt))throw V(r)}function Yn(e,t){let n,r=t;if(zt(e)||Ft(e)){let o;n=(e,t)=>{e.target=t.$},r=()=>o;K(zt(e)?e:e.constructor,bt,(e=>{const n=kt.get(e);o=`fn::${n.name}::${t}`,function(e,t,n){_.set(e,{modelClass:t,fnName:n})}(o,n.class,t)}))}return{actionName:r,overrideContext:n}}const Jn=Symbol("modelFlow");function Qn({nameOrNameFn:e,generator:t,overrideContext:n}){const r=function(...r){const o="function"===typeof e?e():e,i=this;let a;const s=e=>(t,o)=>{n&&n(t,o),t.previousAsyncStepContext=a,t.spawnAsyncStepContext=a?a.spawnAsyncStepContext:t,t.asyncStepType=e,t.args=r,a=t};let u=!1;const c=nt({nameOrNameFn:o,fn:()=>(u=!0,t.apply(i,r)),actionType:k.Async,overrideContext:s(C.Spawn)}).apply(i);if(!u)return c instanceof Promise?c:Promise.resolve(c);const l=c.next.bind(c),f=c.throw.bind(c);return new Promise((function(e,t){function n(n){let r;try{r=nt({nameOrNameFn:o,fn:l,actionType:k.Async,overrideContext:s(C.Resume)}).call(i,n)}catch(u){return void nt({nameOrNameFn:o,fn:n=>({value:n,resolution:"reject",accepter:e,rejecter:t}),actionType:k.Async,overrideContext:s(C.Throw),isFlowFinisher:!0}).call(i,u)}a(r)}function r(n){let r;try{r=nt({nameOrNameFn:o,fn:f,actionType:k.Async,overrideContext:s(C.ResumeError)}).call(i,n)}catch(u){return void nt({nameOrNameFn:o,fn:n=>({value:n,resolution:"reject",accepter:e,rejecter:t}),actionType:k.Async,overrideContext:s(C.Throw),isFlowFinisher:!0}).call(i,u)}a(r)}function a(u){u&&"function"===typeof u.then?u.then(a,t):u.done?nt({nameOrNameFn:o,fn:n=>({value:n,resolution:"accept",accepter:e,rejecter:t}),actionType:k.Async,overrideContext:s(C.Return),isFlowFinisher:!0}).call(i,u.value):Promise.resolve(u.value).then(n,r)}n(void 0)}))};return r[Jn]=!0,r}function er(e){return"function"===typeof e&&e[Jn]}const tr=new Map;function nr(e,t,n){if(q(t,e),tr.has(e)&&ee("warn",`an standalone action with name "${e}" already exists (if you are using hot-reloading you may safely ignore this warning)`,`duplicateActionName - ${e}`),R(t))throw V("the standalone action must not be previously marked as an action");if(er(t))throw V("the standalone action must not be previously marked as a flow action");const r=n?Qn({nameOrNameFn:e,generator:t}):nt({nameOrNameFn:e,fn:t,actionType:k.Sync}),o=(e,...t)=>(function(e,t="argument"){xe(e,t,!1)}(e,"target"),r.call(e,e,...t));return tr.set(e,o),o}function rr(e){(0,c.remove)(this,""+e)}const or=re((()=>nt({nameOrNameFn:x.ApplyDelete,fn:rr,actionType:k.Sync})));function ir(e,t){return this[e](...t)}const ar=re((()=>nt({nameOrNameFn:x.ApplyMethodCall,fn:ir,actionType:k.Sync})));function sr(e,t,n){xe(e,"node",!0),cr().call(e,t,n)}function ur(e,t){!ue(this)&&(0,c.isObservable)(this)?(0,c.set)(this,e,t):this[e]=t}const cr=re((()=>nt({nameOrNameFn:x.ApplySet,fn:ur,actionType:k.Sync})));x.ApplySnapshot,x.ApplyPatches,x.Detach,x.ApplySet,x.ApplyDelete,x.ApplyMethodCall;function lr(e,t,n){const{actionName:r,overrideContext:o}=Yn(e,t);return Y("modelAction",{target:e,propertyKey:t,baseDescriptor:n},((e,t)=>R(t)?t:(function(e,t,n){if("function"!==typeof n)throw V("modelAction has to be used over functions");Kn("modelAction",e,t)}(e.target,e.propertyKey,t),nt({nameOrNameFn:r,fn:t,actionType:k.Sync,overrideContext:o}))))}const fr=Symbol("cannotSerialize"),dr={id:"mobx-keystone/array",serialize:(e,t)=>
1U(e)?e.map(t):fr,deserialize:(e,t)=>e.map(t)},pr={id:"mobx-keystone/dateAsTimestamp",serialize:e=>e instanceof Date?+e:fr,deserialize:e=>new Date(e)},hr={id:"mobx-keystone/mapAsArray",serialize(e,t){if(!(e instanceof Map)&&!(0,c.isObservableMap)(e))return fr;const n=[],r=e.keys();let o=r.next();for(;!o.done;){const i=o.value,a=e.get(i);n.push([t(i),t(a)]),o=r.next()}return n},deserialize(e,t){const n=new Map,r=e.length;for(let o=0;o<r;o++){const r=e[o][0],i=e[o][1];n.set(t(r),t(i))}return n}};function vr(e){var t;const n=[];for(let r=0;r<e.path.length;r++){const o=e.pathObjects[r+1],i=ue(o)&&null!=(t=o.$modelId)?t:null;n.push(i)}return n}const mr={id:"mobx-keystone/objectPath",serialize(e,t,n){if("object"!==typeof e||null===e||!we(e,!1))return fr;if(n){const t=Te(e);if(t.root===n)return{targetPath:t.path,targetPathIds:vr(t)}}return fr},deserialize(e,t,n){if(n){const t=Ie(n,e.targetPath,e.targetPathIds);if(t.resolved)return t.value}throw V(`object at path ${JSON.stringify(e.targetPath)} with ids ${JSON.stringify(e.targetPathIds)} could not be resolved`)}},yr={id:"mobx-keystone/objectSnapshot",serialize:e=>"object"===typeof e&&null!==e&&we(e,!1)?jn(e):fr,deserialize:e=>wn(e)},gr={id:"mobx-keystone/plainObject",serialize:(e,t)=>$(e)||(0,c.isObservableObject)(e)?br(e,t):fr,deserialize:(e,t)=>br(e,t)};function br(e,t){const n={},r=Object.keys(e),o=r.length;for(let i=0;i<o;i++){const o=r[i],a=e[o];n[o]=t(a)}return n}const wr={id:"mobx-keystone/setAsArray",serialize(e,t){if(!(e instanceof Set))return fr;const n=[],r=e.keys();let o=r.next();for(;!o.done;){const e=o.value;n.push(t(e)),o=r.next()}return n},deserialize(e,t){const n=new Set,r=e.length;for(let o=0;o<r;o++){const r=e[o];n.add(t(r))}return n}},_r=[],xr=new Map;function Sr(e){if(_r.includes(e))throw V("action call argument serializer already registered");if(xr.has(e.id))throw V(`action call argument serializer with id '${e.id}' already registered`);return _r.unshift(e),xr.set(e.id,e),()=>{const t=_r.indexOf(e);t>=0&&_r.splice(t,1),xr.delete(e.id)}}Sr(gr),Sr(wr),Sr(hr),Sr(pr),Sr(dr),Sr(yr),Sr(mr);class kr{constructor(){b(this,"patches"),b(this,"invPatches")}record(e,t){this.patches=e,this.invPatches=t}emit(e){Pr(e,this.patches,this.invPatches,!0)}}const Or=new WeakMap,Cr=[];function Pr(e,t,n,r){if(t.length<=0&&n.length<=0)return;if(r)for(let a=0;a<Cr.length;a++){(0,Cr[a])(e,t,n)}const o=Or.get(e);if(o)for(let a=0;a<o.length;a++){(0,o[a])(t,n)}const i=ke(e);if(i){const e=i.path,r=t.map((t=>Ar(t,e))),o=n.map((t=>Ar(t,e)));Pr(i.parent,r,o,!1)}}function Ar(e,t){return g(y({},e),{path:[t,...e.path]})}var Tr,Er;(Er=Tr||(Tr={})).Return="return",Er.Throw="throw";Symbol("simpleDataContext");const jr=Symbol("modelInitializers");function Rr(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}const Mr=Symbol(),Ir=Symbol(),Dr=Symbol(),Br=Symbol("modelInitialized");const Vr=Symbol("modelProperties");function Lr(e){return e[Vr]}const Nr=Symbol("noDefaultValue"),$r={_internal:{setter:!1,isId:!0},withSetter(e){return g(y({},this),{_internal:g(y({},this._internal),{setter:null==e||e})})}};function Fr(e){let t=!1;arguments.length>=1&&(t=!0);const n="function"===typeof e,r={_internal:{$valueType:null,$creationValueType:null,$transformedValueType:null,$transformedCreationValueType:null,$isOptional:null,$isId:null,$hasSetter:null,$fromSnapshotOverride:null,$toSnapshotOverride:null,defaultFn:t&&n?e:Nr,defaultValue:t&&!n?e:Nr,typeChecker:void 0,setter:!1,isId:!1,transform:void 0,fromSnapshotProcessor:void 0,toSnapshotProcessor:void 0},withSetter(e){return g(y({},this),{_internal:g(y({},this._internal),{setter:null==e||e})})},withTransform(e){return g(y({},this),{_internal:g(y({},this._internal),{transform:Gr(e)})})},withSnapshotProcessor({fromSnapshot:e,toSnapshot:t}){let n,r;if(this._internal.fromSnapshotProcessor&&e){const t=this._internal.fromSnapshotProcessor,r=e;n=e=>t(r(e))}else n=e||this._internal.fromSnapshotProcessor;if(this._internal.toSnapshotProcessor&&t){const e=this._internal.toSnapshotProcessor,n=t;r=t=>n(e(t))}else r=t||this._internal.toSnapshotProcessor;return g(y({},this),{_internal:g(y({},this._internal),{fromSnapshotProcessor:n,toSnapshotProcessor:r})})}};return r}let zr=!1;const Wr=()=>{zr=!0};function Gr(e){const t=new WeakMap;return{transform(n,r,o,i){const a=fe(t,r,(()=>new Map));let s=a.get(o);(null==s?void 0:s.originalValue)!==n&&(a.delete(o),s=void 0);const u=null==(c={originalValue:n,cachedTransformedValue:null==s?void 0:s.transformedValue,setOriginalValue:i}).originalValue?c.originalValue:e.transform(c);var c;return a.set(o,{originalValue:n,transformedValue:u}),u},untransform(n,r,o){const i=fe(t,r,(()=>new Map));zr=!1;const a=null==(s={transformedValue:n,cacheTransformedValue:Wr}).transformedValue?s.transformedValue:e.untransform(s);var s;return zr?i.set(o,{originalValue:a,transformedValue:n}):i.delete(o),a}}}function Ur(e){if(Ft(e))return e.constructor[yt];if(zt(e))return e[yt];throw V("modelClassOrInstance must be a model class or instance")}function Hr(e){const t=yn(e).typeInfo;if(!t)throw V(`type info not found for ${e}`);return t}
1const Zr=new WeakMap;function qr(e){if(zt(e)||"function"!==typeof e){const t=e,n=Zr.get(t);if(n)return n;const r=e=>new Xr(e,t),o=cn((()=>{const e=kt.get(t),n=`DataModelData(${e.name})`,o=Ur(t).dataType;if(!o)throw V(`type checking cannot be performed over data model data of type '${e.name}' since that model type has no data type declared, consider adding a data type or using types.unchecked() instead`);const i=vn(o),a=new sn(on.Object,((e,t)=>i.check(e,t)),(()=>n),r,(e=>i.snapshotType(e)?a:null),(e=>i.fromSnapshotProcessor(e)),(e=>i.toSnapshotProcessor(e)));return a}),r);return Zr.set(t,o),o}{const t=e;return cn((()=>qr(t())),(e=>new Xr(e,t())))}}class Xr extends fn{constructor(e,t){super(e),b(this,"modelClass"),b(this,"_props",ne((()=>{const e=Lr(this.modelClass),t={};return Object.keys(e).forEach((n=>{const r=e[n],o=r._internal.typeChecker;let i;o&&(i=Hr(o));let a,s=!1;r._internal.defaultFn!==Nr?(a=r._internal.defaultFn,s=!0):r._internal.defaultValue!==Nr&&(a=r._internal.defaultValue,s=!0),t[n]={type:o,typeInfo:i,hasDefault:s,default:a}})),t}))),this.modelClass=t}get props(){return this._props()}get modelType(){return kt.get(this.modelClass).name}}function Kr(e,t){const n=function(e){return e[jr]}(e);if(n){const e=n.length;for(let r=0;r<e;r++){(0,n[r])(t)}}}const Yr=(0,c.action)("newModel",((e,t,n)=>{const{modelClass:r}=n,o=r,i=e;if(!kt.get(o))throw V(`no model info for class ${o.name} could be found - did you forget to add the @model decorator?`);if(i.$=t,$t()&&Ur(o).dataType){const e=i.typeCheck();e&&e.throw(i)}return Kr(o,i),i})),Jr=new WeakMap;class Qr{constructor(e){if(b(this,r),b(this,"$"),!F(e))throw V("data models can only work over data objects");const{modelClass:t}=arguments[1],n=t;let o;if(_e(e))o=e;else{if(!kt.get(n))throw V(`no model info for class ${n.name} could be found - did you forget to add the @model decorator?`);const t=Lr(n),r=Object.assign({},e),i=Object.keys(t);for(let e=0;e<i.length;e++){const n=i[e],o=t[n];let a=r[n],s=!1;o._internal.transform&&(s=!0,a=o._internal.transform.untransform(a,this,n)),null==a&&(o._internal.defaultFn!==Nr?(s=!0,a=o._internal.defaultFn()):o._internal.defaultValue!==Nr&&(s=!0,a=o._internal.defaultValue)),s&&(r[n]=a)}o=Dn(r)}const i=fe(Jr,n,(()=>new WeakMap)),a=i.get(o);if(a)return a;i.set(o,this),Object.setPrototypeOf(this,n.prototype);delete this[Mr],Yr(this,o,{modelClass:n})}typeCheck(){return In(qr(this.constructor),this.$)}toString(e){const t=y({withData:!0},e),n=kt.get(this.constructor),r=`${this.constructor.name}#${n.name}`;return t.withData?`[${r} ${JSON.stringify(jn(this))}]`:`[${r}]`}}r=Mr,Vt=Qr;const eo=new Set(["onLazyInit","$","typeCheck"]),to=new WeakMap;function no(e){if(ce(e)||"function"!==typeof e){const t=e,n=to.get(t);if(n)return n;const r=e=>new ro(e,t),o=cn((()=>{const e=kt.get(t),n=`Model(${e.name})`,o=wt(t).dataType,i=o?vn(o):void 0,a=new sn(on.Object,((e,r)=>e instanceof t?i?i.check(e.$,r):null:new tn(r,n,e)),(()=>n),r,(t=>F(t)?void 0!==t.$modelType?t.$modelType===e.name?a:null:i&&i.snapshotType(t)?a:null:null),(t=>t.$modelType?t:g(y({},t),{[M]:e.name})),(e=>e));return a}),r);return to.set(t,o),o}{const t=e;return cn((()=>no(t())),(e=>new ro(e,t())))}}class ro extends fn{constructor(e,t){super(e),b(this,"modelClass"),b(this,"_props",ne((()=>{const e=Lr(this.modelClass),t={};return Object.keys(e).forEach((n=>{const r=e[n],o=r._internal.typeChecker;let i;o&&(i=Hr(o));let a,s=!1;r._internal.defaultFn!==Nr?(a=r._internal.defaultFn,s=!0):r._internal.defaultValue!==Nr&&(a=r._internal.defaultValue,s=!0),t[n]={type:o,typeInfo:i,hasDefault:s,default:a}})),t}))),this.modelClass=t}get props(){return this._props()}get modelType(){return kt.get(this.modelClass).name}}var oo,io;function ao(e,t){return be.set(e,void 0),Mn({value:e,parentPath:t,indexChangeAllowed:!1,isDataObject:!1,cloneIfApplicable:!0}),e}pn((e=>ce(e)?no(e):void 0)),(io=oo||(oo={}))[io.Model=0]="Model",io[io.Array=1]="Array",io[io.PlainObject=2]="PlainObject",io[io.Frozen=3]="Frozen",Vn(oo.Model,((e,t)=>{if(ue(e))return ao(e,t)}));let so=!0;function uo(e){let t=so;so=!1;try{e()}finally{so=t}}function co(e,t,n){if(so&&(function(e){let t=e;for(;t;){const e=rn.get(t);if(e){for(const n of e)n.invalidateCachedResult(t);rn.delete(t)}t=Pe(t)}}(e),$t())){const r=function(e){const t=ye(e);if(e!==t&&ue(e=t)&&wt(e).dataType)return e;return at(e,(e=>ue(e)&&!!wt(e).dataType))}(e);if(r){const o=r.typeCheck();o&&(!function(e){const t=Se;Se=!0;try{(0,c.runInAction)((()=>{e()}))}finally{Se=t}}((()=>{t?Et.call(e,t.invPatches,!0):n&&qn.call(e,n)})),o.throw(r))}}}function lo(e,t,n,r,o){const i=e,a=(0,c.isObservableObject)(i)?i:c.observable.object({},void 0,fo);let s,u;be.set(a,(()=>{s(),u()})),Mn({value:a,parentPath:t,indexChangeAllowed:!1,isDataObject:o,cloneIfApplicable:!1});let l={};const f=Object.keys(i),d=f.length;for(let h=0;h<d;h++){const e=f[h],t=i[e];if(z(t))r||(0,c.set)(a,e,t),l[e]=t;else{const n={parent:a,path:e};let o;r?(o=t,Mn({value:o,parentPath:n,indexChangeAllowed:!1,isDataObject:!1,cloneIfApplicable:!1})):(o=Ln(t,n),(0,c.set)(a,e,o));const i=Cn(o);l[e]=i.transformed}}let p;
1if(n){l.$modelType=n;const e=Ot(n);if(!e)throw V(`model with name "${n}" not found in the registry`);const t=e.class.toSnapshotProcessor;t&&(p=e=>t(e,ye(a)))}return An(o?ye(a):a,l,p),s=(0,c.intercept)(a,ho),u=(0,c.observe)(a,po),a}const fo={deep:!1};function po(e){const t=e.object,n=ye(t);let{untransformed:r}=Cn(n);const o=new kr;switch(r=Object.assign({},r),e.type){case"add":case"update":{const t=e.name,n=e.newValue,i=r[t];if(z(n))r[t]=n;else{const e=Cn(n);r[t]=e.transformed}const a=[t];"add"===e.type?o.record([{op:"add",path:a,value:r[t]}],[{op:"remove",path:a}]):o.record([{op:"replace",path:a,value:r[t]}],[{op:"replace",path:a,value:i}])}break;case"remove":{const t=e.name,n=r[t];delete r[t];const i=[t];o.record([{op:"remove",path:i}],[{op:"add",path:i,value:n}])}}co(t,o),Se||(An(n,r,void 0),o.emit(n))}function ho(e){if(Ke(),"symbol"===typeof e.name)throw V("symbol properties are not supported");switch(e.type){case"add":e.newValue=Ln(e.newValue,{parent:e.object,path:""+e.name});break;case"remove":{const t=e.object[e.name];Ln(t,void 0),Nn(t);break}case"update":{const t=e.object[e.name];Ln(t,void 0),Nn(t),e.newValue=Ln(e.newValue,{parent:e.object,path:""+e.name});break}}return e}Vn(oo.PlainObject,((e,t)=>{if((0,c.isObservableObject)(e)||$(e))return lo(e,t,void 0,!1,!1)}));const vo=(0,c.action)("newModel",((e,t,n)=>{const r=t?"new":"fromSnapshot",{modelClass:o,snapshotInitialData:i,generateNewIds:a}=n,s=o,u=e,l=kt.get(s);if(!l)throw V(`no model info for class ${s.name} could be found - did you forget to add the @model decorator?`);const f=xt(s),d=Lr(s),p=f?d[f]:void 0;let h;if(i){let e=i.unprocessedSnapshot;p&&f&&(h=a?p._internal.defaultFn():e[f]),s.fromSnapshotProcessor&&(e=s.fromSnapshotProcessor(e)),t=i.snapshotToInitialData(e)}else p&&f&&(h=t[f]?t[f]:p._internal.defaultFn());u.$modelType=l.name;const v=Object.keys(d);for(let y=0;y<v.length;y++){const e=v[y];if(e===f)continue;const n=d[e];let o=t[e],i=!1;"new"===r&&n._internal.transform&&(i=!0,o=n._internal.transform.untransform(o,u,e)),null==o&&(n._internal.defaultFn!==Nr?(i=!0,o=n._internal.defaultFn()):n._internal.defaultValue!==Nr&&(i=!0,o=n._internal.defaultValue)),i&&(0,c.set)(t,e,o)}f&&(0,c.set)(t,f,h),ao(u,void 0);let m=lo(t,{parent:u,path:"$"},u.$modelType,!1,!0);if(u.$=m,$t()&&wt(s).dataType){const e=u.typeCheck();e&&e.throw(u)}return Kr(s,u),u})),mo=Symbol();class yo{constructor(e){b(this,o),b(this,i),b(this,a),b(this,s),b(this,u),b(this,"$");let t=e;const{snapshotInitialData:n,modelClass:r,generateNewIds:l}=arguments[1];Object.setPrototypeOf(this,r.prototype);const f=this;delete f[Mr],delete f[Ir],delete f[Dr],delete f[mo],n?vo(this,void 0,{modelClass:r,snapshotInitialData:n,generateNewIds:l}):(H(t,"initialData"),vo(this,c.observable.object(t,void 0,{deep:!1}),{modelClass:r,generateNewIds:!0}))}get[(o=Mr,i=Ir,a=Dr,s=mo,u=M,I)](){const e=xt(this.constructor);return e?this.$[e]:void 0}set[I](e){const t=xt(this.constructor);if(!t)throw V("$modelId cannot be set when there is no idProp set in the model");this.$[t]=e}getRefId(){return this.$modelId}typeCheck(){return In(no(this.constructor),this)}toString(e){const t=y({withData:!0},e),n=`${this.constructor.name}#${this.$modelType}`;return t.withData?`[${n} ${JSON.stringify(jn(this))}]`:`[${n}]`}}!function(e){se=e}(yo);const go=new Set([M,I,"onInit","$","getRefId","onAttachedToRootStore","typeCheck"]);function bo(e,t,n){return q(e,"objFn"),cn((()=>{const r=e();H(r,"objectSchema");const o=Object.entries(r),i=(...e)=>{const t=[];for(const[n,r]of o){const o=vn(r);let i="...";e.includes(o)||(i=o.getTypeName(...e,o)),t.push(`${n}: ${i};`)}return`{ ${t.join(" ")} }`},a=(e,t)=>{const n={},o=Object.keys(e);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];if(s){const r=vn(s);n[a]="from"===t?r.fromSnapshotProcessor(e[a]):r.toSnapshotProcessor(e[a])}else n[a]=e[a]}return n},s=new sn(on.Object,((e,n)=>{if(!F(e)||t&&!(e instanceof Wn))return new tn(n,i(s),e);for(const[t,r]of o){const o=vn(r),i=e[t],a=o.check(i,[...n,t]);if(a)return a}return null}),i,n,(e=>{if(!F(e))return null;for(const[t,n]of o){const r=vn(n),o=e[t];if(!r.snapshotType(o))return null}return s}),(e=>a(e,"from")),(e=>a(e,"to")));return s}),n)}function wo(e){return bo(e,!1,(t=>new _o(t,e)))}class _o extends fn{constructor(e,t){super(e),b(this,"_objTypeFn"),b(this,"_props",ne((()=>{const e=this._objTypeFn(),t={};return Object.keys(e).forEach((n=>{const r=yn(e[n]);t[n]={type:r,typeInfo:Hr(r)}})),t}))),this._objTypeFn=t}get props(){return this._props()}}const xo=e=>e;function So(e){let t;switch(function(e,t){if(!z(e))throw V(`${t} must be a primitive`)}(e,"literal"),e){case void 0:t="undefined";break;case null:t="null";break;default:t=JSON.stringify(e)}const n=new sn(on.Primitive,((n,r)=>n===e?null:new tn(r,t,n)),(()=>t),(t=>new ko(t,e)),(t=>t===e?n:null),xo,xo);return n}class ko extends fn{constructor(e,t){super(e),b(this,"literal"),this.literal=t}}const Oo=So(void 0);pn((e=>void 0===e?Oo:void 0));const Co=So(null);pn((e=>null===e?Co:void 0));const Po=new sn(on.Primitive,((e,t)=>
1"boolean"===typeof e?null:new tn(t,"boolean",e)),(()=>"boolean"),(e=>new Ao(e)),(e=>"boolean"===typeof e?Po:null),xo,xo);pn((e=>e===Boolean?Po:void 0));class Ao extends fn{}const To=new sn(on.Primitive,((e,t)=>"number"===typeof e?null:new tn(t,"number",e)),(()=>"number"),(e=>new Eo(e)),(e=>"number"===typeof e?To:null),xo,xo);pn((e=>e===Number?To:void 0));class Eo extends fn{}const jo=new sn(on.Primitive,((e,t)=>"string"===typeof e?null:new tn(t,"string",e)),(()=>"string"),(e=>new Ro(e)),(e=>"string"===typeof e?jo:null),xo,xo);pn((e=>e===String?jo:void 0));class Ro extends fn{}function Mo(e,t){let n=!1;switch(typeof e){case"string":return Mo(jo,e);case"number":return Mo(To,e);case"boolean":return Mo(Po,e)}arguments.length>=2&&(n=!0);const r=n?Fr(t):Fr(),o=yn(e);return g(y({},r),{_internal:g(y({},r._internal),{typeChecker:o,fromSnapshotProcessor:e=>{const t=vn(o).fromSnapshotProcessor;return t?t(e):e},toSnapshotProcessor:e=>{const t=vn(o).toSnapshotProcessor;return t?t(e):e}})})}const Io=e=>e,Do=new sn(on.Any,null,(()=>"any"),(e=>new Vo(e)),(()=>Do),Io,Io);function Bo(){return Do}class Vo extends fn{}function Lo(...e){const t=e.filter((e=>!!e));if(t.length<=0)return;return(e,...n)=>{let r=t[0](e,...n);for(let o=1;o<t.length;o++)r=t[o](r,...n);return r}}function No(e,t,n="must be a class or data model class"){if(!ce(e)&&!zt(e))throw V(`${t} ${n}`)}function $o(e,t,n){return{enumerable:n,configurable:!0,get(){return function(e,t,n){const r=e.$[n];if(null==t?void 0:t._internal.transform)return t._internal.transform.transform(r,e,n,(t=>{sr(e.$,n,t)}));return r}(this,t,e)},set(n){this[Br]&&function(e,t,n,r){if("assign"===(null==t?void 0:t._internal.setter)&&!T())return void sr(e,n,r);const o=(null==t?void 0:t._internal.transform)?t._internal.transform.untransform(r,e,n):r;e.$[n]=o}(this,t,e,n)}}}const Fo=()=>Nt().modelIdGenerator(),zo=Mo(jo,Fo);zo._internal.isId=!0;const Wo=Fr(Fo);function Go({modelProps:e,baseModel:t,type:n,valueType:r,fromSnapshotProcessor:o,toSnapshotProcessor:i}){if(H(e,"modelProps"),t){No(t,"baseModel");const e=t[gt];e&&No(t=e,"baseModel")}const a={},s=e;if(t){const n=Lr(t);for(const t of Object.keys(n)){if(e[t])throw V(`extended model cannot redeclare base model property named '${t}'`);s[t]=n[t]}}const u=Object.keys(s).filter((e=>s[e]._internal.isId));if("class"===n){if(u.length>1)throw V(`expected at most one idProp but got many: ${JSON.stringify(u)}`)}else if(u.length>=1)throw V(`expected no idProp but got some: ${JSON.stringify(u)}`);const c=Object.values(s).some((e=>!!e._internal.typeChecker));let l,f;if(u.length>=1){l=u[0];const e=s[l];let t=c?zo:Wo;switch(null==e?void 0:e._internal.setter){case!0:t=t.withSetter();break;case"assign":t=t.withSetter("assign")}s[l]=t}if(c){const e={};for(const[t,n]of Object.entries(s))e[t]=n._internal.typeChecker?n._internal.typeChecker:Bo();f=wo((()=>e))}const d="class"===n?go:eo;for(const y of Object.keys(e).filter((e=>!d.has(e))))a[y]=$o(y,e[y],!1);const p=Object.keys(a),h=p.length,v=null!=t?t:"class"===n?yo:Qr,m=function(e){function t(t,n){var r;const o=null!=(r=null==n?void 0:n.modelClass)?r:this.constructor,i=new e(t,g(y({},n),{modelClass:o}));for(let e=0;e<h;e++){const t=p[e];Object.getOwnPropertyDescriptor(i,t)&&delete i[t]}return i}return function(e,t){function n(){this.constructor=e}
1Object.setPrototypeOf(e,t),n.prototype=t.prototype,e.prototype=new n}(t,e),t}(v),b=v[jr];var w;if(b&&(m[jr]=b.slice()),w=s,m[Vr]=w,"class"===n){const e={dataType:f,modelIdProperty:l,valueType:r};m[yt]=e}else{const e={dataType:f};m[yt]=e}Object.defineProperties(m.prototype,a);for(const[y,g]of Object.entries(e))if(!0===g._internal.setter){const e=ie(y);m.prototype[e]=function(e){this[y]=e};const t=lr(m.prototype,e,Object.getOwnPropertyDescriptor(m.prototype,e));Object.defineProperty(m.prototype,e,t)}const _=function(e){const t=Object.entries(e).filter((([e,t])=>t._internal.fromSnapshotProcessor));if(t.length<=0)return;return e=>{const n=y({},e);for(const[r,o]of t)o._internal.fromSnapshotProcessor&&(n[r]=o._internal.fromSnapshotProcessor(e[r]));return n}}(s),x=function(e){const t=Object.entries(e).filter((([e,t])=>t._internal.toSnapshotProcessor));if(t.length<=0)return;return e=>{const n=y({},e);for(const[r,o]of t)o._internal.toSnapshotProcessor&&(n[r]=o._internal.toSnapshotProcessor(e[r]));return n}}(s);if(o){const e=o;o=t=>g(y({},e(t)),{[M]:t.$modelType})}if(i){const e=i;i=(t,n)=>g(y({},e(t,n)),{[M]:t.$modelType})}return m.fromSnapshotProcessor=Lo(o,_),m.toSnapshotProcessor=Lo(x,i),m}function Uo(e,t){return Ho("function"===typeof e?e():e,void 0,t)}function Ho(e,t,n){var r;return Go({modelProps:e,baseModel:t,type:"class",valueType:null!=(r=null==n?void 0:n.valueType)&&r,fromSnapshotProcessor:null==n?void 0:n.fromSnapshotProcessor,toSnapshotProcessor:null==n?void 0:n.toSnapshotProcessor})}Wo._internal.isId=!0;const Zo=e=>t=>qo(e)(t),qo=e=>t=>{const n=ce(t)?"class":zt(t)?"data":void 0;if(!n)throw V("clazz must be a class that extends from Model/DataModel");if(St[e]&&Nt().showDuplicateModelNameWarnings&&ee("warn",`a model with name "${e}" already exists (if you are using hot-reloading you may safely ignore this warning)`,`duplicateModelName - ${e}`),t[gt])throw V("a class already decorated with `@model` cannot be re-decorated");const r=function(e,o){const i=new t(e,o);if(Object.defineProperty(i,"constructor",{configurable:!0,writable:!0,enumerable:!1,value:r}),J(i,X),ae()>=6)try{oe.makeObservable(i)}catch(a){const e=a;if("[MobX] No annotations were passed to makeObservable, but no decorator members have been found either"!==e.message&&"[MobX] No annotations were passed to makeObservable, but no decorated members have been found either"!==e.message)throw e}return N(i,Br,!0,!1),"class"===n&&i.onInit&&(rt(i,"onInit",Wt.OnInit),i.onInit()),"data"===n&&i.onLazyInit&&(rt(i,"onLazyInit",Wt.OnLazyInit),i.onLazyInit()),i};t.toString=()=>`class ${t.name}#${e}`,"class"===n&&(t.$modelType=e),Object.setPrototypeOf(r,t),r.prototype=t.prototype,Object.defineProperty(r,"name",g(y({},Object.getOwnPropertyDescriptor(r,"name")),{value:t.name})),r[gt]=t;const o={name:e,class:r};return St[e]=o,kt.set(r,o),kt.set(t,o),J(t,bt),r};function Xo(e){const t=t=>new Ko(t,yn(e));return cn((()=>{const n=vn(e),r=(...e)=>`Array<${n.getTypeName(...e,n)}>`,o=new sn(on.Array,((e,t)=>{if(!U(e))return new tn(t,r(o),e);if(!n.unchecked)for(let r=0;r<e.length;r++){const o=n.check(e[r],[...t,r]);if(o)return o}return null}),r,t,(e=>{if(!U(e))return null;if(!n.unchecked)for(let t=0;t<e.length;t++){if(!n.snapshotType(e[t]))return null}return o}),(e=>n.unchecked?e:e.map((e=>n.fromSnapshotProcessor(e)))),(e=>n.unchecked?e:e.map((e=>n.toSnapshotProcessor(e)))));return o}),t)}class Ko extends fn{constructor(e,t){super(e),b(this,"itemType"),this.itemType=t}get itemTypeInfo(){return Hr(this.itemType)}}var Yo,Jo;function Qo(e,t){if(e.type===Yo.Single)return[e];{const n=[];for(const r of e.events)t?n.unshift(...Qo(r,!0)):n.push(...Qo(r,!1));return n}}(Jo=Yo||(Yo={})).Single="single",Jo.Group="group";let ei=class extends(Uo({undoEvents:Mo(Xo(Bo()),(()=>[])),redoEvents:Mo(Xo(Bo()),(()=>[]))})){constructor(){super(...arguments),b(this,"_groupStack",[])}_clearUndo(){ri((()=>{this.undoEvents.length=0}))}_clearRedo(){ri((()=>{this.redoEvents.length=0}))}_undo(){ri((()=>{const e=this.undoEvents.pop();this.redoEvents.push(e)}))}_redo(){ri((()=>{const e=this.redoEvents.pop();this.undoEvents.push(e)}))}_addUndo(e){ri((()=>{this.undoEvents.push(e),this.redoEvents.length=0}))}_addUndoToParentGroup(e,t){e.events.push(t)}get _currentGroup(){return this._groupStack[this._groupStack.length-1]}_startGroup(e,t,n){var r;let o=!1,i=!1;const a=this._currentGroup,s={type:Yo.Group,groupName:e,events:[]},u=a||null==(r=null==n?void 0:n.attachedState)?void 0:r.save(),c={pause:()=>{if(i)throw V("cannot pause a group when it is already ended");if(!o)throw V("cannot pause a group when it is not running");if(this._currentGroup!==s)throw V("group out of order");this._groupStack.pop(),o=!1},resume:()=>{if(i)throw V("cannot resume a group when it is already ended");if(o)throw V("cannot resume a group when it is already running");this._groupStack.push(s),o=!0},end:()=>{var e;
1o&&c.pause(),i=!0,a?this._addUndoToParentGroup(a,s):this._addUndo(g(y({},s),{attachedState:{beforeEvent:u,afterEvent:null==(e=null==n?void 0:n.attachedState)?void 0:e.save()}}))}};return t&&c.resume(),c}};Rr([lr],ei.prototype,"_clearUndo",null),Rr([lr],ei.prototype,"_clearRedo",null),Rr([lr],ei.prototype,"_undo",null),Rr([lr],ei.prototype,"_redo",null),Rr([lr],ei.prototype,"_addUndo",null),ei=Rr([Zo("mobx-keystone/UndoStore")],ei);class ti{constructor(e,t,n,r){b(this,"disposer"),b(this,"subtreeRoot"),b(this,"options"),b(this,"store"),b(this,"_isUndoRecordingDisabled",!1),this.disposer=e,this.subtreeRoot=t,this.options=r,ae()>=6&&oe.makeObservable(this),this.store=null!=n?n:new ei({})}get undoQueue(){return this.store.undoEvents}get redoQueue(){return this.store.redoEvents}get undoLevels(){return this.undoQueue.length}get canUndo(){return this.undoLevels>0}clearUndo(){this.store._clearUndo()}get redoLevels(){return this.redoQueue.length}get canRedo(){return this.redoLevels>0}clearRedo(){this.store._clearRedo()}undo(){if(!this.canUndo)throw V("nothing to undo");const e=this.undoQueue[this.undoQueue.length-1];ri((()=>{var t,n,r;
1Qo(e,!0).forEach((e=>{Tt(this.subtreeRoot,e.inversePatches,!0)})),(null==(t=e.attachedState)?void 0:t.beforeEvent)&&(null==(r=null==(n=this.options)?void 0:n.attachedState)||r.restore(e.attachedState.beforeEvent))})),this.store._undo()}redo(){if(!this.canRedo)throw V("nothing to redo");const e=this.redoQueue[this.redoQueue.length-1];ri((()=>{var t,n,r;Qo(e,!1).forEach((e=>{Tt(this.subtreeRoot,e.patches)})),(null==(t=e.attachedState)?void 0:t.afterEvent)&&(null==(r=null==(n=this.options)?void 0:n.attachedState)||r.restore(e.attachedState.afterEvent))})),this.store._redo()}dispose(){this.disposer()}get isUndoRecordingDisabled(){return this._isUndoRecordingDisabled}withoutUndo(e){const t=this._isUndoRecordingDisabled;this._isUndoRecordingDisabled=!0;try{return e()}finally{this._isUndoRecordingDisabled=t}}createGroup(e){const t=this.store._startGroup(e,!1,this.options);return{continue(e){t.resume();try{return e()}finally{t.pause()}},end(){t.end()}}}withGroup(e,t){let n,r;"string"===typeof e?(n=e,r=t):r=e;const o=this.store._startGroup(n,!0,this.options);try{return r()}finally{o.end()}}withGroupFlow(e,t){let n,r;"string"===typeof e?(n=e,r=t):r=e;const o=r(),i=this.store._startGroup(n,!1,this.options),a=o.next.bind(o),s=o.throw.bind(o);return new Promise((function(e,t){function n(e){let n;i.resume();try{n=a(e)}catch(r){return i.end(),void t(r)}i.pause(),o(n)}function r(e){let n;i.resume();try{n=s(e)}catch(r){return i.end(),void t(r)}i.pause(),o(n)}function o(a){a&&"function"===typeof a.then?a.then(o,t):a.done?(i.end(),e(a.value)):Promise.resolve(a.value).then(n,r)}n(void 0)}))}}Rr([c.computed],ti.prototype,"undoQueue",null),Rr([c.computed],ti.prototype,"redoQueue",null),Rr([c.computed],ti.prototype,"undoLevels",null),Rr([c.computed],ti.prototype,"canUndo",null),Rr([c.action],ti.prototype,"clearUndo",null),Rr([c.computed],ti.prototype,"redoLevels",null),Rr([c.computed],ti.prototype,"canRedo",null),Rr([c.action],ti.prototype,"clearRedo",null),Rr([c.action],ti.prototype,"undo",null),Rr([c.action],ti.prototype,"redo",null);let ni=!1;function ri(e){const t=ni;ni=!0;try{return e()}finally{ni=t}}function oi(e){return"value"===e.type?e.value:e.value.get()}class ii{constructor(e){b(this,"defaultContextValue"),b(this,"overrideContextValue"),b(this,"nodeContextValue",new WeakMap),b(this,"nodeAtom",new WeakMap),ae()>=6&&oe.makeObservable(this),this.setDefault(e)}getNodeAtom(e){return fe(this.nodeAtom,e,(()=>(0,c.createAtom)("contextValue")))}fastGet(e){this.getNodeAtom(e).reportObserved();const t=this.nodeContextValue.get(e);if(t)return oi(t);const n=Ce(e);return n?this.fastGet(n):this.overrideContextValue?oi(this.overrideContextValue):this.getDefault()}get(e){return xe(e,"node"),this.fastGet(e)}fastGetProviderNode(e){this.getNodeAtom(e).reportObserved();if(this.nodeContextValue.get(e))return e;const t=Ce(e);return t?this.fastGetProviderNode(t):void 0}getProviderNode(e){return xe(e,"node"),this.fastGetProviderNode(e)}getDefault(){return oi(this.defaultContextValue)}setDefault(e){this.defaultContextValue={type:"value",value:e}}setDefaultComputed(e){this.defaultContextValue={type:"computed",value:(0,c.computed)(e)}}set(e,t){xe(e,"node"),this.nodeContextValue.set(e,{type:"value",value:t}),this.getNodeAtom(e).reportChanged()}_setComputed(e,t){xe(e,"node"),this.nodeContextValue.set(e,{type:"computed",value:t}),this.getNodeAtom(e).reportChanged()}setComputed(e,t){this._setComputed(e,(0,c.computed)(t))}unset(e){xe(e,"node"),this.nodeContextValue.delete(e),this.getNodeAtom(e).reportChanged()}apply(e,t){const n=this.overrideContextValue;this.overrideContextValue={type:"value",value:t};try{const r=e();return we(r,!0)&&this.set(r,t),r}finally{this.overrideContextValue=n}}applyComputed(e,t){const n=(0,c.computed)(t),r=this.overrideContextValue;this.overrideContextValue={type:"computed",value:n};try{const t=e();return we(t,!0)&&this._setComputed(t,n),t}finally{this.overrideContextValue=r}}}Rr([c.observable.ref],ii.prototype,"defaultContextValue",void 0),Rr([c.observable.ref],ii.prototype,"overrideContextValue",void 0),Rr([c.action],ii.prototype,"setDefault",null),Rr([c.action],ii.prototype,"setDefaultComputed",null),Rr([c.action],ii.prototype,"set",null),Rr([c.action],ii.prototype,"setComputed",null),Rr([c.action],ii.prototype,"unset",null),Rr([c.action],ii.prototype,"apply",null),Rr([c.action],ii.prototype,"applyComputed",null);class ai extends(Uo({id:Mo(jo)})){get maybeCurrent(){return this.resolve()}get isValid(){return!!this.maybeCurrent}
1get current(){const e=this.maybeCurrent;if(!e)throw V(`a reference of type '${this.$modelType}' could not resolve an object with id '${this.id}'`);return e}}Rr([c.computed],ai.prototype,"maybeCurrent",null),Rr([c.computed],ai.prototype,"isValid",null),Rr([c.computed],ai.prototype,"current",null);const si=new WeakMap;function ui(e,t,n,r){var o,i;let a=(i=class extends ai{constructor(){super(...arguments),b(this,"resolver"),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,o,void 0)}resolve(){return this.resolver||(this.resolver=t(this)),this.resolver(this)}internalForceUpdateBackRefs(e){const t=(w(n=this,r=o,"read from private field"),i?i.call(n):r.get(n));var n,r,i;((e,t,n,r)=>{w(e,t,"write to private field"),r?r.call(e,n):t.set(e,n)})(this,o,e),di(this,u,e,t)}forceUpdateBackRefs(){this.internalForceUpdateBackRefs(this.maybeCurrent)}onInit(){let e,t=!0;(0,c.reaction)((()=>this.maybeCurrent),(n=>{this.internalForceUpdateBackRefs(n);const o=e,i=t;e=n,t=!1,!i&&r&&n!==o&&r(this,n,o)}),{fireImmediately:!0})}},o=new WeakMap,i);Rr([c.action],a.prototype,"forceUpdateBackRefs",null),a=Rr([Zo(e)],a);const s=e=>{let t;if("string"===typeof e?t=e:(H(e,"target"),t=n(e)),"string"!==typeof t)throw V("ref target object must have an id of string type");return new a({id:t})};s.refClass=a;const u=s;return u}function ci(e){if(ue(e)&&e.getRefId){const t=e.getRefId();if(void 0!==t&&"string"!==typeof t)throw V("'getRefId()' must return a string or undefined when present");return t}}const li=new WeakMap;function fi(e,t){let n=si.get(e);if(n||(n={all:c.observable.set(void 0,{deep:!1}),byType:new WeakMap},si.set(e,n)),t){let e=n.byType.get(t);return e||(e=c.observable.set(void 0,{deep:!1}),n.byType.set(t,e)),e}return n.all}const di=(0,c.action)("updateBackRefs",((e,t,n,r)=>{n!==r&&(r&&(fi(r).delete(e),fi(r,t).delete(e)),n&&(fi(n).add(e),fi(n,t).add(e)))}));Ue({initData:()=>({all:new Set,byType:new WeakMap}),addNode(e,t){if(e instanceof ai){t.all.add(e);fe(t.byType,e.constructor,(()=>new Set)).add(e)}}}),(0,c.action)("customRef",((e,t)=>{var n;return ui(e,(()=>t.resolve),null!=(n=t.getId)?n:ci,t.onResolvedValueChange)})),(0,c.action)("rootRef",((e,t)=>{var n;const r=null!=(n=null==t?void 0:t.getId)?n:ci,o=null==t?void 0:t.onResolvedValueChange;return ui(e,(e=>{let t;return()=>{const n=Ee(e);if(function(e,t,n,r){return!!n&&(e.id===r(n)&&t===Ee(n))}(e,n,t,r))return t;const o=function(e,t,n=ci){const r=fe(li,n,(()=>dt((e=>n(e))))).walk(e);return r?r.get(t):void 0}(n,e.id,r);return o&&(t=o),o}}),r,o)}));function pi(e,t,n){const r=e,o=r.length,i=(0,c.isObservableArray)(r)?r:c.observable.array([],mi);let a,s;i!==r&&(i.length=r.length);be.set(i,(()=>{a(),s()})),Mn({value:i,parentPath:t,indexChangeAllowed:!1,isDataObject:!1,cloneIfApplicable:!1});const u=[];u.length=o;for(let l=0;l<o;l++){const e=r[l];if(z(e))n||(0,c.set)(i,l,e),u[l]=e;else{const t={parent:i,path:l};let r;n?(r=e,Mn({value:r,parentPath:t,indexChangeAllowed:!1,isDataObject:!1,cloneIfApplicable:!1})):(r=Ln(e,t),(0,c.set)(i,l,r));const o=Cn(r);u[l]=o.transformed}}return An(i,u,void 0),a=(0,c.intercept)(i,vi.bind(void 0,i)),s=(0,c.observe)(i,hi),i}function hi(e){const t=e.object;let{untransformed:n}=Cn(t);const r=new kr,o=n.slice();switch(e.type){case"splice":{const t=e.index,i=e.addedCount,a=e.removedCount;let s=[];s.length=i;for(let n=0;n<i;n++){const t=e.added[n];z(t)?s[n]=t:s[n]=Cn(t).transformed}const u=n.length;o.splice(t,a,...s);const c=[],l=[];if(i===a)for(let e=0;e<i;e++){const r=t+e,i=o[r],a=n[r];if(i!==a){const e=[r];c.push({op:"replace",path:e,value:i}),l.push({op:"replace",path:e,value:a})}}else{const e=u-a;if(a>0){const r=t>=e;r&&c.push({op:"replace",path:["length"],value:e});for(let e=a-1;e>=0;e--){const o=t+e,i=[o];r||c.push({op:"remove",path:i}),l.push({op:"add",path:i,value:n[o]})}}if(i>0){const n=t>=e;n&&l.push({op:"replace",path:["length"],value:e});for(let e=0;e<i;e++){const r=t+e,i=[r];c.push({op:"add",path:i,value:o[r]}),n||l.push({op:"remove",path:i})}}}r.record(c,l)}break;case"update":{const t=e.index,n=e.newValue,i=o[t];if(z(n))o[t]=n;else{const e=Cn(n);o[t]=e.transformed}const a=[t];r.record([{op:"replace",path:a,value:o[t]}],[{op:"replace",path:a,value:i}])}}co(t,r),Se||(An(t,o,void 0),r.emit(t))}function vi(e,t){switch(Ke(),t.type){case"splice":{for(let r=0;r<t.removedCount;r++){const e=t.object[t.index+r];Ln(e,void 0),Nn(e)}for(let r=0;r<t.added.length;r++)t.added[r]=Ln(t.added[r],{parent:t.object,path:t.index+r});const e=t.index+t.removedCount,n=t.index+t.added.length;if(e!==n)for(let r=e,o=n;r<t.object.length;r++,o++)Mn({value:t.object[r],parentPath:{parent:t.object,path:o},indexChangeAllowed:!0,isDataObject:!1,cloneIfApplicable:!1})}break;case"update":const n=e[t.index];Ln(n,void 0),Nn(n),t.newValue=Ln(t.newValue,{parent:e,path:t.index})}return t}Vn(oo.Array,((e,t)=>{if(U(e))return pi(e,t,!1)}));const mi={deep:!1};var yi,gi;function bi(e,t){return nr(e,t,!1)}(gi=yi||(yi={}))[gi.Array=0]="Array",gi[gi.Frozen=1]="Frozen",gi[gi.Model=2]="Model",gi[gi.PlainObject=3]="PlainObject",bn(yi.Array,((e,t)=>{if(U(e))return function(e,t){const n=c.observable.array([],kn),r=e.length;for(let o=0;o<r;o++)n.push(xn(e[o],t));return pi(n,void 0,!0)}(e,t)})),bn(yi.Frozen,(e=>{if(Hn(e))return Gn(e.data)})),bn(yi.Model,((e,t)=>
1{if(le(e))return function(e,t){const n=e.$modelType;if(!n)throw V("a model snapshot must contain a type key ($modelType), but none was found");const r=Ot(n);if(!r)throw V(`model with name "${n}" not found in the registry`);const o=xt(r.class);if(o&&!e[o])throw V(`a model snapshot of type '${n}' must contain an id key (${o}), but none was found`);return new r.class(void 0,{snapshotInitialData:{unprocessedSnapshot:e,snapshotToInitialData:t.snapshotToInitialData},generateNewIds:t.options.generateNewIds})}(e,t)})),bn(yi.PlainObject,((e,t)=>{if($(e))return function(e,t){const n=c.observable.object({},void 0,kn),r=Object.keys(e),o=r.length;for(let i=0;i<o;i++){const o=r[i],a=e[o];(0,c.set)(n,o,xn(a,t))}return lo(n,void 0,void 0,!0,!1)}(e,t)})),ht(yi.Array,((e,t,n)=>{if(U(t))return function(e,t,n){if(!U(e))return wn(t);const r=jn(e);return uo((()=>{e.length>t.length&&e.splice(t.length,e.length-t.length);for(let r=0;r<e.length;r++){const o=e[r],i=vt(o,t[r],n,e);mt(i,o,n),(0,c.set)(e,r,i)}for(let r=e.length;r<t.length;r++)e.push(vt(void 0,t[r],n,e))})),co(e,void 0,r),e}(e,t,n)})),ht(yi.Frozen,((e,t)=>{if(Hn(t))return function(e,t){return e instanceof Wn&&e.data===t.data?e:Gn(t.data)}(e,t)})),ht(yi.Model,((e,t,n,r)=>{if(le(t))return function(e,t,n,r){const o=t.$modelType,i=Ot(o);if(!i)throw V(`model with name "${o}" not found in the registry`);const a=n.findModelForSnapshot(t);if(a&&(e=a),!ue(e)||e.$modelType!==o)return wn(t);const s=xt(i.class);if(s){const n=t[s];if(e.$modelId!==n)return wn(t)}else if(U(r))return wn(t);const u=e,l=jn(u);return uo((()=>{let e=t;const r=u.constructor;r.fromSnapshotProcessor&&(e=r.fromSnapshotProcessor(t));const o=u.$,i=Object.keys(o),a=i.length;for(let t=0;t<a;t++){const n=i[t];n in e||(0,c.remove)(o,n)}const s=Object.keys(e),l=s.length;for(let t=0;t<l;t++){const r=s[t];if(!D(r)){const t=e[r],i=o[r],a=vt(i,t,n,u);mt(a,i,n),(0,c.set)(o,r,a)}}})),co(u,void 0,l),u}(e,t,n,r)})),ht(yi.PlainObject,((e,t,n)=>{if($(t))return function(e,t,n){if(!$(e)&&!(0,c.isObservableObject)(e))return wn(t);const r=e,o=jn(r);return uo((()=>{const e=Object.keys(r),o=e.length;for(let n=0;n<o;n++){const o=e[n];o in t||(0,c.remove)(r,o)}const i=Object.keys(t),a=i.length;for(let s=0;s<a;s++){const e=i[s],o=t[e],a=r[e],u=vt(a,o,n,r);mt(u,a,n),(0,c.set)(r,e,u)}})),co(r,void 0,o),r}(e,t,n)}));const wi="mobx-keystone/arrayActions",_i=(bi(`${wi}::set`,((e,t,n)=>{(0,c.set)(e,t,n)})),bi(`${wi}::delete`,((e,t)=>(0,c.remove)(e,""+t))),bi(`${wi}::setLength`,((e,t)=>{e.length=t})),bi(`${wi}::concat`,((e,...t)=>e.concat(...t))),bi(`${wi}::copyWithin`,((e,t,n,r)=>e.copyWithin(t,n,r))),bi(`${wi}::fill`,((e,t,n,r)=>e.fill(t,n,r))),bi(`${wi}::pop`,(e=>e.pop())),bi(`${wi}::push`,((e,...t)=>e.push(...t))),bi(`${wi}::reverse`,(e=>e.reverse())),bi(`${wi}::shift`,(e=>e.shift())),bi(`${wi}::slice`,((e,t,n)=>e.slice(t,n))),bi(`${wi}::sort`,((e,t)=>e.sort(t))),bi(`${wi}::splice`,(function(e,...t){return e.splice(...t)})),bi(`${wi}::unshift`,((e,...t)=>e.unshift(...t))),bi(`${wi}::swap`,((e,t,n)=>{if(t<0||n<0||t>=e.length||n>=e.length)return!1;n<t&&([t,n]=[n,t]);const[r]=e.splice(t,1),[o]=e.splice(n-1,1);return e.splice(t,0,o),e.splice(n,0,r),!0})),"mobx-keystone/objectActions");bi(`${_i}::set`,((e,t,n)=>{(0,c.set)(e,t,n)})),bi(`${_i}::assign`,((e,t)=>{H(t,"partialObject");const n=Object.keys(t);for(const r of n)(0,c.set)(e,r,t[r])})),bi(`${_i}::delete`,((e,t)=>(0,c.remove)(e,t))),bi(`${_i}::call`,((e,t,...n)=>e[t](...n)));function xi(e){const t=new WeakMap;return{for(n){if(t.has(n))return t.get(n);{const r=e(n);return t.set(n,r),r}}}}const Si=(0,c.action)((e=>{const t=c.observable.map();t.dataObject=e;const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i];t.set(r,e[r])}let r=!1,o=!1;return(0,c.observe)(e,(0,c.action)((e=>{if(!r){o=!0;try{switch(e.type){case"add":case"update":t.set(e.name,e.newValue);break;case"remove":t.delete(e.name)}}finally{o=!1}}}))),(0,c.intercept)(t,(0,c.action)((t=>{if(r)return null;if(o)return t;r=!0;try{switch(t.type){case"add":case"update":(0,c.set)(e,t.name,t.newValue);break;case"delete":(0,c.remove)(e,t.name)}return t}finally{r=!1}}))),t})),ki=(0,c.action)((e=>{const t=c.observable.map(e);if(t.dataObject=e,t.size!==e.length)throw V("arrays backing a map cannot contain duplicate keys");let n=!1,r=!1;return(0,c.observe)(e,(0,c.action)((e=>{if(!n){r=!0;try{switch(e.type){case"splice":{const n=e.removed;for(let e=0;e<n.length;e++)t.delete(n[e][0])}{const n=e.added;for(let e=0;e<n.length;e++)t.set(n[e][0],n[e][1])}break;case"update":t.delete(e.oldValue[0]),t.set(e.newValue[0],e.newValue[1])}}finally{r=!1}}}))),(0,c.intercept)(t,(0,c.action)((t=>{if(n)return null;if(r)return t;n=!0;
1try{switch(t.type){case"update":{const n=e.findIndex((e=>e[0]===t.name));e[n]=[t.name,t.newValue];break}case"add":e.push([t.name,t.newValue]);break;case"delete":{const n=e.findIndex((e=>e[0]===t.name));n>=0&&e.splice(n,1);break}}return t}finally{n=!1}}))),t}));xi((e=>U(e)?(Z(e,"objOrArray"),ki(e)):(function(e,t){if(!(0,c.isObservableObject)(e))throw V(`${t} must be an observable object`)}(e,"objOrArray"),Si(e))));const Oi=(0,c.action)((e=>{const t=c.observable.set(e);if(t.dataObject=e,t.size!==e.length)throw V("arrays backing a set cannot contain duplicate values");let n=!1,r=!1;return(0,c.observe)(e,(0,c.action)((e=>{if(!n){r=!0;try{switch(e.type){case"splice":{const n=e.removed;for(let e=0;e<n.length;e++)t.delete(n[e])}{const n=e.added;for(let e=0;e<n.length;e++)t.add(n[e])}break;case"update":t.delete(e.oldValue),t.add(e.newValue)}}finally{r=!1}}}))),(0,c.intercept)(t,(0,c.action)((t=>{if(n)return null;if(r)return t;n=!0;try{switch(t.type){case"add":e.push(t.newValue);break;case"delete":{const n=e.indexOf(t.oldValue);n>=0&&e.splice(n,1);break}}return t}finally{n=!1}}))),t}));xi((e=>(Z(e,"array"),Oi(e))));Date;var Ci=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};function Pi(e,t){return e===t||(_e(e)?e=jn(e):(0,c.isObservable)(e)&&(e=(0,c.toJS)(e,Ai)),_e(t)?t=jn(t):(0,c.isObservable)(t)&&(t=(0,c.toJS)(t,Ai)),Ci(e,t))}Vn(oo.Frozen,((e,t)=>{if(e instanceof Wn)return function(e,t){return be.set(e,void 0),Mn({value:e,parentPath:t,indexChangeAllowed:!1,isDataObject:!1,cloneIfApplicable:!1}),An(e,{[zn]:!0,data:e.data},void 0),e}(e,t)}));const Ai=ae()>=6?void 0:{exportMapsAsObjects:!1,recurseEverything:!1};class Ti{constructor(e){b(this,"data"),b(this,"originalData"),xe(e,"original"),this.originalData=e,this.data=wn(this.originalSnapshot,{generateNewIds:!1})}commit(){Zn(this.originalData,jn(this.data))}commitByPath(e){const t=Re(this.data,e);if(!t.resolved)throw V(`path ${JSON.stringify(e)} could not be resolved in draft object`);const n=Ei(this.data,e);if(!Ie(this.originalData,e,n).resolved)throw V(`path ${JSON.stringify(e)} could not be resolved in original object`);Tt(this.originalData,[{path:e,op:"replace",value:jn(t.value)}])}reset(){Zn(this.data,this.originalSnapshot)}resetByPath(e){const t=Re(this.originalData,e);if(!t.resolved)throw V(`path ${JSON.stringify(e)} could not be resolved in original object`);const n=Ei(this.originalData,e);if(!Ie(this.data,e,n).resolved)throw V(`path ${JSON.stringify(e)} could not be resolved in draft object`);Tt(this.data,[{path:e,op:"replace",value:jn(t.value)}])}get isDirty(){return!Pi(jn(this.data),this.originalSnapshot)}isDirtyByPath(e){const t=Re(this.data,e);if(!t.resolved)throw V(`path ${JSON.stringify(e)} could not be resolved in draft object`);const n=Ei(this.data,e),r=Ie(this.originalData,e,n);return!r.resolved||!Pi(t.value,r.value)}get originalSnapshot(){return jn(this.originalData)}}function Ei(e,t){const n=function(e,t){var n;const r=[];let o=e;for(let i=0;i<t.length;i++){o=o[t[i]];const e=ue(o)&&null!=(n=o.$modelId)?n:null;r.push(e)}return r}(e,t);return n.length>=1&&(n[n.length-1]=Me),n}Rr([c.action],Ti.prototype,"commit",null),Rr([c.action],Ti.prototype,"commitByPath",null),Rr([c.action],Ti.prototype,"reset",null),Rr([c.action],Ti.prototype,"resetByPath",null),Rr([c.computed],Ti.prototype,"isDirty",null),Rr([c.computed],Ti.prototype,"originalSnapshot",null);new ii(ji);var ji;let Ri=class extends(Uo({[I]:$r,items:Mo(Xo(Bo()),(()=>[]))})){add(e){const t=this.items;return t.includes(e)||t.push(e),this}clear(){this.items.length=0}delete(e){const t=this.items,n=t.findIndex((t=>t===e));return n>=0&&(t.splice(n,1),!0)}forEach(e,t){const n=this.items,r=n.length;for(let o=0;o<r;o++){const r=n[o];e.call(t,r,r,this)}}has(e){return this.items.includes(e)}get size(){return this.items.length}keys(){return this.values()}values(){const e=this.items;return(0,c.values)(e)[Symbol.iterator]()}entries(){return this.items.map((e=>[e,e])).values()}[Symbol.iterator](){return this.values()}get[Symbol.toStringTag](){return"ArraySet"}};Rr([lr],Ri.prototype,"add",null),Rr([lr],Ri.prototype,"clear",null),Rr([lr],Ri.prototype,"delete",null),Ri=Rr([Zo("mobx-keystone/ArraySet")],Ri);function Mi(e){const t=t=>new Ii(t,yn(e));return cn((()=>{const n=vn(e),r=(...e)=>`Record<${n.getTypeName(...e,n)}>`,o=(e,t)=>{if(n.unchecked)return e;const r={},o=Object.keys(e);for(let i=0;i<o.length;i++){const a=o[i],s="from"===t?n.fromSnapshotProcessor(e[a]):n.toSnapshotProcessor(e[a]);r[a]=s}return r},i=new sn(on.Object,((e,t)=>
1{if(!F(e))return new tn(t,r(i),e);if(!n.unchecked){const r=Object.keys(e);for(let o=0;o<r.length;o++){const i=r[o],a=e[i],s=n.check(a,[...t,i]);if(s)return s}}return null}),r,t,(e=>{if(!F(e))return null;if(!n.unchecked){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=e[t[r]];if(!n.snapshotType(o))return null}}return i}),(e=>o(e,"from")),(e=>o(e,"to")));return i}),t)}class Ii extends fn{constructor(e,t){super(e),b(this,"valueType"),this.valueType=t}get valueTypeInfo(){return Hr(this.valueType)}}let Di=class extends(Uo({[I]:$r,items:Mo(Mi(Bo()),(()=>({})))})){clear(){const e=this.items,t=Object.keys(e),n=t.length;for(let r=0;r<n;r++){const n=t[r];(0,c.remove)(e,n)}}delete(e){return!!this.has(e)&&((0,c.remove)(this.items,e),!0)}forEach(e,t){const n=this.items,r=Object.keys(n),o=r.length;for(let i=0;i<o;i++){const o=r[i];e.call(t,n[o],o,this)}}get(e){return(0,c.get)(this.items,e)}has(e){return(0,c.has)(this.items,e)}set(e,t){return(0,c.set)(this.items,e,t),this}get size(){return(0,c.keys)(this.items).length}keys(){return(0,c.keys)(this.items)[Symbol.iterator]()}values(){return(0,c.values)(this.items)[Symbol.iterator]()}entries(){return(0,c.entries)(this.items)[Symbol.iterator]()}[Symbol.iterator](){return this.entries()}get[Symbol.toStringTag](){return"ObjectMap"}};Rr([lr],Di.prototype,"clear",null),Rr([lr],Di.prototype,"delete",null),Rr([lr],Di.prototype,"set",null),Di=Rr([Zo("mobx-keystone/ObjectMap")],Di);function Bi(e,t,n){const r=r=>new Vi(r,yn(e),t,n);return cn((()=>{const o=vn(e),i=(...e)=>{const t=o.getTypeName(...e,o);return`${n||"refinementOf"}<${t}>`},a=new sn(o.baseType,((e,n)=>{const r=o.check(e,n);if(r)return r;const s=t(e);return!0===s?null:!1===s?new tn(n,i(a),e):null!=s?s:null}),i,r,(e=>o.snapshotType(e)),(e=>o.fromSnapshotProcessor(e)),(e=>o.toSnapshotProcessor(e)));return a}),r)}class Vi extends fn{constructor(e,t,n,r){super(e),b(this,"baseType"),b(this,"checkFunction"),b(this,"typeName"),this.baseType=t,this.checkFunction=n,this.typeName=r}get baseTypeInfo(){return Hr(this.baseType)}}Bi(To,(e=>Number.isInteger(e)),"integer"),Bi(jo,(e=>""!==e),"nonEmpty")},75:function(e,t,n){"use strict";n.r(t),n.d(t,{$mobx:function(){return z},FlowCancellationError:function(){return rn},ObservableMap:function(){return vr},ObservableSet:function(){return gr},Reaction:function(){return St},_allowStateChanges:function(){return $e},_allowStateChangesInsideComputed:function(){return $t},_allowStateReadsEnd:function(){return st},_allowStateReadsStart:function(){return at},_autoAction:function(){return Nt},_endAction:function(){return Ne},_getAdministration:function(){return Lr},_getGlobalState:function(){return ht},_interceptReads:function(){return dn},_isComputingDerivation:function(){return Qe},_resetGlobalState:function(){return vt},_startAction:function(){return Le},action:function(){return Lt},autorun:function(){return zt},comparer:function(){return H},computed:function(){return Ee},configure:function(){return Kt},createAtom:function(){return U},defineProperty:function(){return Pn},entries:function(){return xn},extendObservable:function(){return Yt},flow:function(){return un},flowResult:function(){return ln},get:function(){return Cn},getAtom:function(){return Vr},getDebugName:function(){return Nr},getDependencyTree:function(){return Jt},getObserverTree:function(){return en},has:function(){return On},intercept:function(){return pn},isAction:function(){return Ft},isBoxedObservable:function(){return Ue},isComputed:function(){return vn},isComputedProp:function(){return mn},isFlow:function(){return fn},isFlowCancellationError:function(){return on},isObservable:function(){return gn},isObservableArray:function(){return cr},isObservableMap:function(){return mr},isObservableObject:function(){return Cr},isObservableProp:function(){return bn},isObservableSet:function(){return br},keys:function(){return wn},makeAutoObservable:function(){return Xn},makeObservable:function(){return Zn},observable:function(){return Ce},observe:function(){return Tn},onBecomeObserved:function(){return Ht},onBecomeUnobserved:function(){return Zt},onReactionError:function(){return kt},override:function(){return K},ownKeys:function(){return An},reaction:function(){return Ut},remove:function(){return kn},runInAction:function(){return $t},set:function(){return Sn},spy:function(){return Tt},toJS:function(){return Rn},trace:function(){return Mn},transaction:function(){return Dn},untracked:function(){return rt},values:function(){return _n},when:function(){return Bn}});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)}var o={};function i(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:o}var a=Object.assign,s=Object.getOwnPropertyDescriptor,u=Object.defineProperty,c=Object.prototype,l=[];Object.freeze(l);var f={};Object.freeze(f);var d="undefined"!==typeof Proxy,p=Object.toString();function h(){d||r("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var m=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 b(e){return null!==e&&"object"===typeof e}function w(e){var t;if(!b(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null==(t=n.constructor)?void 0:t.toString())===p}function _(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function x(e,t,n){u(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}
1function S(e,t,n){u(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function k(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return b(e)&&!0===e[n]}}function O(e){return e instanceof Map}function C(e){return e instanceof Set}var P="undefined"!==typeof Object.getOwnPropertySymbols;var A="undefined"!==typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:P?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function T(e){return null===e?null:"object"===typeof e?""+e:e}function E(e,t){return c.hasOwnProperty.call(e,t)}var j=Object.getOwnPropertyDescriptors||function(e){var t={};return A(e).forEach((function(n){t[n]=s(e,n)})),t};function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t,n){return t&&R(e.prototype,t),n&&R(e,n),e}function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function D(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return V(e,t);var n=Object.prototype.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)?V(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}var N=Symbol("mobx-stored-annotations");function $(e){return Object.assign((function(t,n){F(t,n,e)}),e)}function F(e,t,n){E(e,N)||x(e,N,I({},e[N])),function(e){return e.annotationType_===X}(n)||(e[N][t]=n)}var z=Symbol("mobx administration"),W=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=He.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;
1return 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 _t(this)},t.reportChanged=function(){bt(),xt(this),wt()},t.toString=function(){return this.name_},e}(),G=k("Atom",W);function U(e,t,n){void 0===t&&(t=m),void 0===n&&(n=m);var r=new W(e);return t!==m&&Ht(r,t),n!==m&&Zt(r,n),r}var H={identity:function(e,t){return e===t},structural:function(e,t){return Fr(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 Fr(e,t,1)}};function Z(e,t,n){return gn(e)?e:Array.isArray(e)?Ce.array(e,{name:n}):w(e)?Ce.object(e,void 0,{name:n}):O(e)?Ce.map(e,{name:n}):C(e)?Ce.set(e,{name:n}):"function"!==typeof e||Ft(e)||fn(e)?e:_(e)?un(e):Nt(n,e)}function q(e){return e}var X="override",K=$({annotationType_:X,make_:function(e,t){0;0;return 0},extend_:function(e,t,n,o){r("'"+this.annotationType_+"' can only be used with 'makeObservable'")}});function Y(e,t){return{annotationType_:e,options_:t,make_:J,extend_:Q}}function J(e,t,n,r){var o;if(null==(o=this.options_)?void 0:o.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(Ft(n.value))return 1;var i=ee(e,this,t,n,!1);return u(r,t,i),2}function Q(e,t,n,r){var o=ee(e,this,t,n);return e.defineProperty_(t,o,r)}function ee(e,t,n,r,o){var i,a,s,u,c,l,f,d;void 0===o&&(o=pt.safeDescriptors),d=r,t.annotationType_,d.value;var p,h=r.value;(null==(i=t.options_)?void 0:i.bound)&&(h=h.bind(null!=(p=e.proxy_)?p:e.target_));return{value:Be(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),h,null!=(u=null==(c=t.options_)?void 0:c.autoAction)&&u,(null==(l=t.options_)?void 0:l.bound)?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re}}function ne(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if((null==(o=this.options_)?void 0:o.bound)&&!fn(e.target_[t])&&null===this.extend_(e,t,n,!1))return 0;if(fn(n.value))return 1;var i=oe(e,this,t,n,!1,!1);return u(r,t,i),2}function re(e,t,n,r){var o,i=oe(e,this,t,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function oe(e,t,n,r,o,i){var a;void 0===i&&(i=pt.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;o&&(u=u.bind(null!=(s=e.proxy_)?s:e.target_));return{value:un(u),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ie(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se}}function ae(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function se(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get;0}(0,this,0,n),e.defineComputedProperty_(t,I({},this.options_,{get:n.get,set:n.set}),r)}function ue(e,t){return{annotationType_:e,options_:t,make_:ce,extend_:le}}function ce(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function le(e,t,n,r){var o,i;return function(e,t,n,r){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:Z,r)}var fe=de();function de(e){return{annotationType_:"true",options_:e,make_:pe,extend_:he}}function pe(e,t,n,r){var o,i,a,s;if(n.get)return Ee.make_(e,t,n,r);if(n.set){var c=Be(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!pt.safeDescriptors||e.isPlainObject_,set:c})?0:2:(u(r,t,{configurable:!0,set:c}),2)}if(r!==e.target_&&"function"===typeof n.value)return _(n.value)?((null==(s=this.options_)?void 0:s.autoBind)?un.bound:un).make_(e,t,n,r):((null==(a=this.options_)?void 0:a.autoBind)?Nt.bound:Nt).make_(e,t,n,r);var l,f=!1===(null==(o=this.options_)?void 0:o.deep)?Ce.ref:Ce;"function"===typeof n.value&&(null==(i=this.options_)?void 0:i.autoBind)&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_));return f.make_(e,t,n,r)}function he(e,t,n,r){var o,i,a;if(n.get)return Ee.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!pt.safeDescriptors||e.isPlainObject_,set:Be(t.toString(),n.set)},r);"function"===typeof n.value&&(null==(o=this.options_)?void 0:o.autoBind)&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(i=this.options_)?void 0:i.deep)?Ce.ref:Ce).extend_(e,t,n,r)}var ve={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function me(e){return e||ve}Object.freeze(ve);var ye=ue("observable"),ge=ue("observable.ref",{enhancer:q}),be=ue("observable.shallow",{enhancer:function(e,t,n){return void 0===e||null===e||Cr(e)||cr(e)||mr(e)||br(e)?e:Array.isArray(e)?Ce.array(e,{name:n,deep:!1}):w(e)?Ce.object(e,void 0,{name:n,deep:!1}):O(e)?Ce.map(e,{name:n,deep:!1}):C(e)?Ce.set(e,{name:n,deep:!1}):void 0}}),we=ue("observable.struct",{enhancer:function(e,t){return Fr(e,t)?t:e}}),_e=$(ye);function xe(e){return!0===e.deep?Z:!1===e.deep?q:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:Z}(e.defaultDecorator)}function Se(e,t,n){if(!g(t))return gn(e)?e:w(e)?Ce.object(e,t,n):Array.isArray(e)?Ce.array(e,t):O(e)?Ce.map(e,t):C(e)?Ce.set(e,t):"object"===typeof e&&null!==e?e:Ce.box(e,t);F(e,t,ye)}Object.assign(Se,_e);var ke,Oe,Ce=a(Se,{box:function(e,t){var n=me(t);return new Ge(e,xe(n),n.name,!0,n.equals)},array:function(e,t){var n=me(t);return(!1===pt.useProxies||!1===n.proxy?Br:er)(e,xe(n),n.name)},map:function(e,t){var n=me(t);return new vr(e,xe(n),n.name)},set:function(e,t){var n=me(t);return new gr(e,xe(n),n.name)},object:function(e,t,n){return Yt(!1===pt.useProxies||!1===(null==n?void 0:n.proxy)?Sr({},n):function(e,t){var n,r;return h(),e=Sr(e,t),null!=(r=(n=e[z]).proxy_)?r:n.proxy_=new Proxy(e,$n)}({},n),e,t)},ref:$(ge),shallow:$(be),deep:_e,struct:$(we)}),Pe="computed",Ae=ie(Pe),Te=ie("computed.struct",{equals:H.structural}),Ee=function(e,t){if(g(t))return F(e,t,Ae);if(w(e))return $(ie(Pe,e));var n=w(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new qe(n)};Object.assign(Ee,Ae),Ee.struct=$(Te);var je,Re=0,Me=1,Ie=null!=(ke=null==(Oe=s((function(){}),"name"))?void 0:Oe.configurable)&&ke,De={value:"action",configurable:!0,writable:!1,enumerable:!1};function Be(e,t,n,r){function o(){return Ve(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,Ie&&(De.value=e,Object.defineProperty(o,"name",De)),o}function Ve(e,t,n,r,o){var i=Le(e,t,r,o);try{return n.apply(r,o)}catch(a){throw i.error_=a,a}finally{Ne(i)}}function Le(e,t,n,r){var o=pt.trackingDerivation,i=!t||!o;bt();var a=pt.allowStateChanges;i&&(ot(),a=Fe(!0));var s={runAsAction_:i,prevDerivation_:o,prevAllowStateChanges_:a,prevAllowStateReads_:at(!0),notifySpy_:!1,startTime_:0,actionId_:Me++,parentActionId_:Re};return Re=s.actionId_,s}function Ne(e){Re!==e.actionId_&&r(30),Re=e.parentActionId_,void 0!==e.error_&&(pt.
1suppressReactionErrors=!0),ze(e.prevAllowStateChanges_),st(e.prevAllowStateReads_),wt(),e.runAsAction_&&it(e.prevDerivation_),pt.suppressReactionErrors=!1}function $e(e,t){var n=Fe(e);try{return t()}finally{ze(n)}}function Fe(e){var t=pt.allowStateChanges;return pt.allowStateChanges=e,t}function ze(e){pt.allowStateChanges=e}je=Symbol.toPrimitive;var We,Ge=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=H.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=i,a.value_=n(t,void 0,r),a}D(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_;if((e=this.prepareNewValue_(e))!==pt.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(et(this),Fn(this)){var t=Wn(this,{object:this,type:Yn,newValue:e});if(!t)return pt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?pt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),Gn(this)&&Hn(this,{type:Yn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return zn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Yn,newValue:this.value_,oldValue:void 0}),Un(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 T(this.get())},n[je]=function(){return this.valueOf()},t}(W),Ue=k("ObservableValue",Ge);We=Symbol.toPrimitive;var He,Ze,qe=function(){function e(e){this.dependenciesState_=He.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=He.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ke(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ze.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_=Be("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?H.structural:H.default),this.scope_=e.context,this.requiresReaction_=!!e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==He.UP_TO_DATE_)return;e.lowestObserverState_=He.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===He.UP_TO_DATE_&&(e.dependenciesState_=He.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)}
1,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!==pt.inBatch||0!==this.observers_.size||this.keepAlive_){if(_t(this),Je(this)){var e=pt.trackingContext;this.keepAlive_&&!e&&(pt.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===He.STALE_)return;e.lowestObserverState_=He.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===He.POSSIBLY_STALE_?t.dependenciesState_=He.STALE_:t.dependenciesState_===He.UP_TO_DATE_&&(e.lowestObserverState_=He.UP_TO_DATE_)}))}(this),pt.trackingContext=e}}else Je(this)&&(this.warnAboutUntrackedRead_(),bt(),this.value_=this.computeValue_(!1),wt());var t=this.value_;if(Ye(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_===He.NOT_TRACKING_,n=this.computeValue_(!0),r=t||Ye(e)||Ye(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Fe(!1);if(e)t=tt(this,this.derivation,this.scope_);else if(!0===pt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new Ke(r)}return ze(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(nt(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return zt((function(){var i=n.get();if(!r||t){var a=ot();e({observableKind:"computed",debugObjectName:n.name_,type:Yn,object:n,newValue:i,oldValue:o}),it(a)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return T(this.get())},t[We]=function(){return this.valueOf()},e}(),Xe=k("ComputedValue",qe);!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_"}(He||(He={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ze||(Ze={}));var Ke=function(e){this.cause=void 0,this.cause=e};function Ye(e){return e instanceof Ke}function Je(e){switch(e.dependenciesState_){case He.UP_TO_DATE_:return!1;case He.NOT_TRACKING_:case He.STALE_:return!0;case He.POSSIBLY_STALE_:for(var t=at(!0),n=ot(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(Xe(a)){if(pt.disableErrorBoundaries)a.get();else try{a.get()}catch(s){return it(n),st(t),!0}if(e.dependenciesState_===He.STALE_)return it(n),st(t),!0}}return ut(e),it(n),st(t),!1}}function Qe(){return null!==pt.trackingDerivation}function et(e){}function tt(e,t,n){var r=at(!0);ut(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++pt.runId;var o,i=pt.trackingDerivation;if(pt.trackingDerivation=e,pt.inBatch++,!0===pt.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(a){o=new Ke(a)}return pt.inBatch--,pt.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=He.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,o!==a&&(n[o]=s),o++),s.dependenciesState_>r&&(r=s.dependenciesState_)}n.length=o,e.newObserving_=null,i=t.length;for(;i--;){var u=t[i];0===u.diffValue_&&yt(u,e),u.diffValue_=0}for(;o--;){var c=n[o];1===c.diffValue_&&(c.diffValue_=0,mt(c,e))}r!==He.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),st(r),o}function nt(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)yt(t[n],e);e.dependenciesState_=He.NOT_TRACKING_}function rt(e){var t=ot();try{return e()}finally{it(t)}}function ot(){var e=pt.trackingDerivation;return pt.trackingDerivation=null,e}function it(e){pt.trackingDerivation=e}function at(e){var t=pt.allowStateReads;return pt.allowStateReads=e,t}function st(e){pt.allowStateReads=e}
1function ut(e){if(e.dependenciesState_!==He.UP_TO_DATE_){e.dependenciesState_=He.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=He.UP_TO_DATE_}}var ct=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],lt=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},ft=!0,dt=!1,pt=function(){var e=i();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ft=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new lt).version&&(ft=!1),ft?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new lt):(setTimeout((function(){dt||r(35)}),1),new lt)}();function ht(){return pt}function vt(){var e=new lt;for(var t in e)-1===ct.indexOf(t)&&(pt[t]=e[t]);pt.allowStateChanges=!pt.enforceActions}function mt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function yt(e,t){e.observers_.delete(t),0===e.observers_.size&>(e)}function gt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,pt.pendingUnobservations.push(e))}function bt(){pt.inBatch++}function wt(){if(0===--pt.inBatch){Ct();for(var e=pt.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 qe&&n.suspend_())}pt.pendingUnobservations=[]}}function _t(e){var t=pt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&pt.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&pt.inBatch>0&>(e),!1)}function xt(e){e.lowestObserverState_!==He.STALE_&&(e.lowestObserverState_=He.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===He.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=He.STALE_})))}var St=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),void 0===r&&(r=!1),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=He.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Ze.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,pt.pendingReactions.push(this),Ct())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){bt(),this.isScheduled_=!1;var e=pt.trackingContext;if(pt.trackingContext=this,Je(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}pt.trackingContext=e,wt()}},t.track=function(e){if(!this.isDisposed_){bt();0,this.isRunning_=!0;var t=pt.trackingContext;pt.trackingContext=this;var n=tt(this,e,void 0);pt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&nt(this),Ye(n)&&this.reportExceptionInDerivation_(n.cause),wt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(pt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";pt.suppressReactionErrors||console.error(n,e),pt.globalReactionErrorHandlers.forEac
1h((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(bt(),nt(this),wt()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[z]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),Mn(this,e)},e}();function kt(e){return pt.globalReactionErrorHandlers.push(e),function(){var t=pt.globalReactionErrorHandlers.indexOf(e);t>=0&&pt.globalReactionErrorHandlers.splice(t,1)}}var Ot=function(e){return e()};function Ct(){pt.inBatch>0||pt.isRunningReactions||Ot(Pt)}function Pt(){pt.isRunningReactions=!0;for(var e=pt.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}pt.isRunningReactions=!1}var At=k("Reaction",St);function Tt(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Et="action",jt="autoAction",Rt="<unnamed action>",Mt=Y(Et),It=Y("action.bound",{bound:!0}),Dt=Y(jt,{autoAction:!0}),Bt=Y("autoAction.bound",{autoAction:!0,bound:!0});function Vt(e){return function(t,n){return y(t)?Be(t.name||Rt,t,e):y(n)?Be(t,n,e):g(n)?F(t,n,e?Dt:Mt):g(t)?$(Y(e?jt:Et,{name:t,autoAction:e})):void 0}}var Lt=Vt(!1);Object.assign(Lt,Mt);var Nt=Vt(!0);
1function $t(e){return Ve(e.name||Rt,!1,e,this,void 0)}function Ft(e){return y(e)&&!0===e.isMobxAction}function zt(e,t){var n,r;void 0===t&&(t=f);var o,i=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)o=new St(i,(function(){this.track(u)}),t.onError,t.requiresObservable);else{var a=Gt(t),s=!1;o=new St(i,(function(){s||(s=!0,a((function(){s=!1,o.isDisposed_||o.track(u)})))}),t.onError,t.requiresObservable)}function u(){e(o)}return o.schedule_(),o.getDisposer_()}Object.assign(Nt,Dt),Lt.bound=$(It),Nt.bound=$(Bt);var Wt=function(e){return e()};function Gt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Wt}function Ut(e,t,n){var r;void 0===n&&(n=f);var o,i,a,s,u=null!=(r=n.name)?r:"Reaction",c=Lt(u,n.onError?(o=n.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){o.call(this,e)}}):t),l=!n.scheduler&&!n.delay,d=Gt(n),p=!0,h=!1,v=n.compareStructural?H.structural:n.equals||H.default,m=new St(u,(function(){p||l?y():h||(h=!0,d(y))}),n.onError,n.requiresObservable);function y(){if(h=!1,!m.isDisposed_){var t=!1;m.track((function(){var n=$e(!1,(function(){return e(m)}));t=p||!v(a,n),s=a,a=n})),(p&&n.fireImmediately||!p&&t)&&c(a,s,m),p=!1}}return m.schedule_(),m.getDisposer_()}function Ht(e,t,n){return qt("onBO",e,t,n)}function Zt(e,t,n){return qt("onBUO",e,t,n)}function qt(e,t,n,r){var o="function"===typeof r?Vr(t,n):Vr(t),i=y(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Xt="always";function Kt(e){!0===e.isolateGlobalState&&function(){if((pt.pendingReactions.length||pt.inBatch||pt.isRunningReactions)&&r(36),dt=!0,ft){var e=i();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),pt=new lt}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(pt.useProxies=t===Xt||"never"!==t&&"undefined"!==typeof Proxy),"ifavailable"===t&&(pt.verifyProxies=!0),void 0!==n){var o=n===Xt?Xt:"observed"===n;pt.enforceActions=o,pt.allowStateChanges=!0!==o&&o!==Xt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(pt[t]=!!e[t])})),pt.allowStateReads=!pt.observableRequiresReaction,e.reactionScheduler&&function(e){var t=Ot;Ot=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Yt(e,t,n,r){var o=j(t),i=Sr(e,r)[z];bt();try{A(o).forEach((function(e){i.extend_(e,o[e],!n||(!(e in n)||n[e]))}))}finally{wt()}return e}function Jt(e,t){return Qt(Vr(e,t))}function Qt(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(Qt)),n}function en(e,t){return tn(Vr(e,t))}function tn(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(tn)),t}var nn=0;function rn(){this.message="FLOW_CANCELLED"}function on(e){return e instanceof rn}rn.prototype=Object.create(Error.prototype);var an=te("flow"),sn=te("flow.bound",{bound:!0}),un=Object.assign((function(e,t){if(g(t))return F(e,t,an);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=this,o=arguments,i=++nn,a=Lt(r+" - runid: "+i+" - init",n).apply(t,o),s=void 0,u=new Promise((function(t,n){var o=0;function u(e){var t;s=void 0;try{t=Lt(r+" - runid: "+i+" - yield "+o++,a.next).call(a,e)}catch(u){return n(u)}l(t)}function c(e){var t;s=void 0;try{t=Lt(r+" - runid: "+i+" - yield "+o++,a.throw).call(a,e)}catch(u){return n(u)}l(t)}function l(e){if(!y(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(u,c);e.then(l,n)}e=n,u(void 0)}));return u.cancel=Lt(r+" - runid: "+i+" - cancel",(function(){try{s&&cn(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(m,m),cn(n),e(new rn)}catch(r){e(r)}})),u};return o.isMobXFlow=!0,o}),an);function cn(e){y(e.cancel)&&e.cancel()}function ln(e){return e}function fn(e){return!0===(null==e?void 0:e.isMobXFlow)}function dn(e,t,n){var r;return mr(e)||cr(e)||Ue(e)?r=Lr(e):Cr(e)&&(r=Lr(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 Lr(e,t).intercept_(n)}
1(e,t,n):function(e,t){return Lr(e).intercept_(t)}(e,t)}function hn(e,t){if(void 0===t)return Xe(e);if(!1===Cr(e))return!1;if(!e[z].values_.has(t))return!1;var n=Vr(e,t);return Xe(n)}function vn(e){return hn(e)}function mn(e,t){return hn(e,t)}function yn(e,t){return!!e&&(void 0!==t?!!Cr(e)&&e[z].values_.has(t):Cr(e)||!!e[z]||G(e)||At(e)||Xe(e))}function gn(e){return yn(e)}function bn(e,t){return yn(e,t)}function wn(e){return Cr(e)?e[z].keys_():mr(e)||br(e)?Array.from(e.keys()):cr(e)?e.map((function(e,t){return t})):void r(5)}function _n(e){return Cr(e)?wn(e).map((function(t){return e[t]})):mr(e)?wn(e).map((function(t){return e.get(t)})):br(e)?Array.from(e.values()):cr(e)?e.slice():void r(6)}function xn(e){return Cr(e)?wn(e).map((function(t){return[t,e[t]]})):mr(e)?wn(e).map((function(t){return[t,e.get(t)]})):br(e)?Array.from(e.entries()):cr(e)?e.map((function(e,t){return[t,e]})):void r(7)}function Sn(e,t,n){if(2!==arguments.length||br(e))Cr(e)?e[z].set_(t,n):mr(e)?e.set(t,n):br(e)?e.add(t):cr(e)?("number"!==typeof t&&(t=parseInt(t,10)),t<0&&r("Invalid index: '"+t+"'"),bt(),t>=e.length&&(e.length=t+1),e[t]=n,wt()):r(8);else{bt();var o=t;try{for(var i in o)Sn(e,i,o[i])}finally{wt()}}}function kn(e,t){Cr(e)?e[z].delete_(t):mr(e)||br(e)?e.delete(t):cr(e)?("number"!==typeof t&&(t=parseInt(t,10)),e.splice(t,1)):r(9)}function On(e,t){return Cr(e)?e[z].has_(t):mr(e)||br(e)?e.has(t):cr(e)?t>=0&&t<e.length:void r(10)}function Cn(e,t){if(On(e,t))return Cr(e)?e[z].get_(t):mr(e)?e.get(t):cr(e)?e[t]:void r(11)}function Pn(e,t,n){if(Cr(e))return e[z].defineProperty_(t,n);r(39)}function An(e){if(Cr(e))return e[z].ownKeys_();r(38)}function Tn(e,t,n,r){return y(n)?function(e,t,n,r){return Lr(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return Lr(e).observe_(t,n)}(e,t,n)}function En(e,t,n){return e.set(t,n),n}function jn(e,t){if(null==e||"object"!==typeof e||e instanceof Date||!gn(e))return e;if(Ue(e)||Xe(e))return jn(e.get(),t);if(t.has(e))return t.get(e);if(cr(e)){var n=En(t,e,new Array(e.length));return e.forEach((function(e,r){n[r]=jn(e,t)})),n}if(br(e)){var r=En(t,e,new Set);return e.forEach((function(e){r.add(jn(e,t))})),r}if(mr(e)){var o=En(t,e,new Map);return e.forEach((function(e,n){o.set(n,jn(e,t))})),o}var i=En(t,e,{});return An(e).forEach((function(n){c.propertyIsEnumerable.call(e,n)&&(i[n]=jn(e[n],t))})),i}function Rn(e,t){return jn(e,new Map)}function Mn(){r("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];"boolean"===typeof n[n.length-1]&&(e=n.pop());var i=In(n);if(!i)return r("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing_===Ze.NONE&&console.log("[mobx.trace] '"+i.name_+"' tracing enabled"),i.isTracing_=e?Ze.BREAK:Ze.LOG}function In(e){switch(e.length){case 0:return pt.trackingDerivation;case 1:return Vr(e[0]);case 2:return Vr(e[0],e[1])}}function Dn(e,t){void 0===t&&(t=void 0),bt();try{return e.apply(t)}finally{wt()}}function Bn(e,t,n){return 1===arguments.length||t&&"object"===typeof t?Ln(e,t):Vn(e,t,n||{})}function Vn(e,t,n){var r;if("number"===typeof n.timeout){var o=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!a[z].isDisposed_){if(a(),!n.onError)throw o;n.onError(o)}}),n.timeout)}n.name="When";var i=Be("When-effect",t),a=zt((function(t){$e(!1,e)&&(t.dispose(),r&&clearTimeout(r),i())}),n);return a}function Ln(e,t){var n;var r=new Promise((function(r,o){var i=Vn(e,r,I({},t,{onError:o}));n=function(){i(),o(new Error("WHEN_CANCELLED"))}}));return r.cancel=n,r}function Nn(e){return e[z]}un.bound=$(sn);var $n={has:function(e,t){return Nn(e).has_(t)},get:function(e,t){return Nn(e).get_(t)},set:function(e,t,n){var r;return!!g(t)&&(null==(r=Nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!g(t)&&(null==(n=Nn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=Nn(e).defineProperty_(t,n))||r},ownKeys:function(e){return Nn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function Fn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function zn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Wn(e,t){var n=ot();try{for(var o=[].concat(e.interceptors_||[]),i=0,a=o.length;i<a&&((t=o[i](t))&&!t.type&&r(14),t);i++);return t}finally{it(n)}}function Gn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function Un(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Hn(e,t){var n=ot(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);it(n)}}function Zn(e,t,n){var r=Sr(e,n)[z];bt();try{0,null!=t||(t=function(e){return E(e,N)||x(e,N,I({},e[N])),e[N]}(e)),A(t).forEach((function(e){return r.make_(e,t[e])}))}finally{wt()}return e}var qn=Symbol("mobx-keys");function Xn(e,t,n){if(w(e))return Yt(e,e,t,n);var r=Sr(e,n)[z];if(!e[qn]){var o=Object.getPrototypeOf(e),i=new Set([].concat(A(e),A(o)));i.delete("constructor"),i.delete(z),x(o,qn,i)}bt();
1try{e[qn].forEach((function(e){return r.make_(e,!t||(!(e in t)||t[e]))}))}finally{wt()}return e}var Kn="splice",Yn="update",Jn={get:function(e,t){var n=e[z];return t===z?n:"length"===t?n.getArrayLength_():"string"!==typeof t||isNaN(t)?E(tr,t)?tr[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[z];return"length"===t&&r.setArrayLength_(n),"symbol"===typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},Qn=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 W(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 zn(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}),Un(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),o=0;o<e-t;o++)n[o]=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&&Dr(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=l),Fn(this)){var i=Wn(this,{object:this.proxy_,type:Kn,index:e,removedCount:t,added:n});if(!i)return l;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(o,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length=e+n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<i.length;s++)this.values_[e+n.length+s]=i[s];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=Gn(this),i=o||r?{observableKind:"array",object:this.proxy_,type:Yn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&Hn(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=Gn(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Kn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&Hn(this,i)},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){this.atom_;var o=n[e];if(Fn(this)){var i=Wn(this,{type:Yn,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,o))!==o&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,o))}else e===n.length?this.spliceWithArray_(e,0,[t]):r(17,e,n.length)},e}();function er(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),h();var o=new Qn(n,t,r,!1);S(o.values_,z,o);var i=new Proxy(o.values_,Jn);if(o.proxy_=i,e&&e.length){var a=Fe(!0);o.spliceWithArray_(0,0,e),ze(a)}return i}var tr={clear:function(){return this.splice(0)},replace:function(e){var t=this[z];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),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[z];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[z].spliceWithArray_(e,t,n)},push:function(){for(var e=this[z],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[z].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[z],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 pt.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){pt.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[z],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function nr(e,t){"function"===typeof Array.prototype[e]&&(tr[e]=t(e))}function rr(e){return function(){var t=this[z];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function or(e){return function(t,n){var r=this,o=this[z];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function ir(e){return function(){var t=this,n=this[z];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}nr("concat",rr),nr("flat",rr),nr("includes",rr),nr("indexOf",rr),nr("join",rr),nr("lastIndexOf",rr),nr("slice",rr),nr("toString",rr),nr("toLocaleStr
1ing",rr),nr("every",or),nr("filter",or),nr("find",or),nr("findIndex",or),nr("flatMap",or),nr("forEach",or),nr("map",or),nr("some",or),nr("reduce",ir),nr("reduceRight",ir);var ar,sr,ur=k("ObservableArrayAdministration",Qn);function cr(e){return b(e)&&ur(e[z])}var lr={},fr="add",dr="delete";ar=Symbol.iterator,sr=Symbol.toStringTag;var pr,hr,vr=function(){function e(e,t,n){void 0===t&&(t=Z),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[z]=lr,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),this.keysAtom_=U("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,this.merge(e)}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!pt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ge(this.has_(e),q,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Zt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Fn(this)){var r=Wn(this,{type:n?Yn:fr,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_,Fn(this))&&!Wn(this,{type:dr,object:this,name:e}))return!1;if(this.has_(e)){var n=Gn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:dr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return Dn((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&&Hn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==pt.UNCHANGED){var r=Gn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Yn,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&Hn(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,Dn((function(){var r,o=new Ge(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=Gn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:fr,object:this,name:e,newValue:t}:null;r&&Hn(this,o)},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 Gr({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return Gr({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[ar]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return mr(e)&&(e=new Map(e)),Dn((function(){w(e)?function(e){var t=Object.keys(e);if(!P)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return c.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)})):O(e)?(e.constructor!==Map&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&r(20,e)})),this},t.clear=function(){var e=this;Dn((function(){rt((function(){for(var t,n=L(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return Dn((function(){for(var n,o=function(e){if(O(e)||mr(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),i=new Map,a=!1,s=L(t.data_.keys());!(n=s()).done;){var u=n.value;if(!o.has(u))if(t.delete(u))a=!0;else{var c=t.data_.get(u);i.set(u,c)}}for(var l,f=L(o.entries());!(l=f()).done;){var d=l.value,p=d[0],h=d[1],v=t.data_.has(p);if(t.set(p,h),t.data_.has(p)){var m=t.data_.get(p);i.set(p,m),v||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var y=t.data_.keys(),g=i.keys(),b=y.next(),_=g.next();!b.done;){if(b.value!==_.value){t.keysAtom_.reportChanged();break}b=y.next(),_=g.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return Un(this,e)},t.intercept_=function(e){return zn(this,e)},M(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:sr,get:function(){return"Map"}}]),e}
1(),mr=k("ObservableMap",vr);var yr={};pr=Symbol.iterator,hr=Symbol.toStringTag;var gr=function(){function e(e,t,n){void 0===t&&(t=Z),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[z]=yr,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.atom_=U(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.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;Dn((function(){rt((function(){for(var t,n=L(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if((this.atom_,Fn(this))&&!Wn(this,{type:fr,object:this,newValue:e}))return this;if(!this.has(e)){Dn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=!1,r=Gn(this),o=r?{observableKind:"set",debugObjectName:this.name_,type:fr,object:this,newValue:e}:null;n,r&&Hn(this,o)}return this},t.delete=function(e){var t=this;if(Fn(this)&&!Wn(this,{type:dr,object:this,oldValue:e}))return!1;if(this.has(e)){var n=Gn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:dr,object:this,oldValue:e}:null;return Dn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&Hn(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 Gr({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 Gr({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return br(e)&&(e=new Set(e)),Dn((function(){Array.isArray(e)||C(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!==e&&void 0!==e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return Un(this,e)},t.intercept_=function(e){return zn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[pr]=function(){return this.values()},M(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:hr,get:function(){return"Set"}}]),e}(),br=k("ObservableSet",gr),wr=Object.create(null),_r="remove",xr=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=fe),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 W("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 qe)return n.set(t),!0;if(Fn(this)){var r=Wn(this,{type:Yn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==pt.UNCHANGED){var o=Gn(this),i=o?{type:Yn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),o&&Hn(this,i)}return!0},t.get_=function(e){return pt.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(!pt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ge(e in this.target_,q,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(Ar(this,t,e),!(e in this.target_)){var n;if(null==(n=this.target_[N])?void 0:n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var o=this.target_;o&&o!==c;){var i=s(o,e);if(i){var a=t.make_(this,e,i,o);if(0===a)return;if(1===a)break}
1o=Object.getPrototypeOf(o)}Pr(this,t,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);Ar(this,n,e);var o=n.extend_(this,e,t,r);return o&&Pr(this,n,e),o},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{bt();var r=this.delete_(e);if(!r)return r;if(Fn(this)){var o=Wn(this,{object:this.proxy_||this.target_,name:e,type:fr,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=I({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else u(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{wt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{bt();var o=this.delete_(e);if(!o)return o;if(Fn(this)){var i=Wn(this,{object:this.proxy_||this.target_,name:e,type:fr,newValue:t});if(!i)return null;t=i.newValue}var a=Or(e),s={configurable:!pt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else u(this.target_,e,s);var c=new Ge(t,n,"ObservableObject.key",!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{wt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{bt();var r=this.delete_(e);if(!r)return r;if(Fn(this))if(!Wn(this,{object:this.proxy_||this.target_,name:e,type:fr,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=Or(e),i={configurable:!pt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else u(this.target_,e,i);this.values_.set(e,new qe(t)),this.notifyPropertyAddition_(e,void 0)}finally{wt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!E(this.target_,e))return!0;if(Fn(this)&&!Wn(this,{object:this.proxy_||this.target_,name:e,type:_r}))return null;try{var n,r;bt();var o,i=Gn(this),a=this.values_.get(e),u=void 0;if(!a&&i)u=null==(o=s(this.target_,e))?void 0:o.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof Ge&&(u=a.value_),xt(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),i){var c={type:_r,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:u,name:e};0,i&&Hn(this,c)}}finally{wt()}return!0},t.observe_=function(e,t){return Un(this,e)},t.intercept_=function(e){return zn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,o=Gn(this);if(o){var i=o?{type:fr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;0,o&&Hn(this,i)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),A(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Sr(e,t){var n;if(E(e,z))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new xr(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:de(e):void 0}(t));return x(e,z,o),e}var kr=k("ObservableObjectAdministration",xr);function Or(e){return wr[e]||(wr[e]={get:function(){return this[z].getObservablePropValue_(e)},set:function(t){return this[z].setObservablePropValue_(e,t)}})}function Cr(e){return!!b(e)&&kr(e[z])}function Pr(e,t,n){var r;null==(r=e.target_[N])||delete r[n]}function Ar(e,t,n){}var Tr,Er,jr=0,Rr=function(){};Tr=Rr,Er=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Tr.prototype,Er):void 0!==Tr.prototype.__proto__?Tr.prototype.__proto__=Er:Tr.prototype=Er;var Mr=function(e){function t(t,n,r,o){var i;void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this;var a=new Qn(r,n,o,!0);if(a.proxy_=B(i),S(B(i),z,a),t&&t.length){var s=Fe(!0);i.spliceWithArray(0,0,t),ze(s)}return i}D(t,e);var n=t.prototype;return n.concat=function(){this[z].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 cr(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return Gr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},M(t,[{key:"length",get:function(){return this[z].getArrayLength_()},set:function(e){this[z].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}]),t}(Rr);function Ir(e){u(Mr.prototype,""+e,function(e){return{enumerable:!1,
1configurable:!0,get:function(){return this[z].get_(e)},set:function(t){this[z].set_(e,t)}}}(e))}function Dr(e){if(e>jr){for(var t=jr;t<e+100;t++)Ir(t);jr=e}}function Br(e,t,n){return new Mr(e,t,n)}function Vr(e,t){if("object"===typeof e&&null!==e){if(cr(e))return void 0!==t&&r(23),e[z].atom_;if(br(e))return e[z];if(mr(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,Nr(e)),n}if(Cr(e)){if(!t)return r(26);var o=e[z].values_.get(t);return o||r(27,t,Nr(e)),o}if(G(e)||Xe(e)||At(e))return e}else if(y(e)&&At(e[z]))return e[z];r(28)}function Lr(e,t){return e||r(29),void 0!==t?Lr(Vr(e,t)):G(e)||Xe(e)||At(e)||mr(e)||br(e)?e:e[z]?e[z]:void r(24,e)}function Nr(e,t){var n;if(void 0!==t)n=Vr(e,t);else{if(Ft(e))return e.name;n=Cr(e)||mr(e)||br(e)?Lr(e):Vr(e)}return n.name_}Object.entries(tr).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&x(Mr.prototype,t,n)})),Dr(1e3);var $r=c.toString;function Fr(e,t,n){return void 0===n&&(n=-1),zr(e,t,n)}function zr(e,t,n,r,o){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;if(!y(i)&&"object"!==i&&"object"!=typeof t)return!1;var a=$r.call(e);if(a!==$r.call(t))return!1;switch(a){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=Wr(e),t=Wr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,c=t.constructor;if(u!==c&&!(y(u)&&u instanceof u&&y(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return o[l]===t;if(r.push(e),o.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!zr(e[l],t[l],n-1,r,o))return!1}else{var f,d=Object.keys(e);if(l=d.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!E(t,f=d[l])||!zr(e[f],t[f],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function Wr(e){return cr(e)?e.slice():O(e)||mr(e)||C(e)||br(e)?Array.from(e.entries()):e}function Gr(e){return e[Symbol.iterator]=Ur,e}function Ur(){return this}["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof i()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Tt,extras:{getDebugName:Nr},$mobx:z})},5351:function(e,t,n){"use strict";n.d(t,{lX:function(){return l},PB:function(){return f}});var r=n(7729),o=n(2784);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var s={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0,disableGooglebot:!1},u=function(e,t,n){void 0===t&&(t=[]);var r=void 0===n?{}:n,i=r.defaultWidth,a=r.defaultHeight;return t.reduce((function(t,n,r){return t.push(o.createElement("meta",{key:"og:"+e+":0"+r,property:"og:"+e,content:n.url})),n.alt&&t.push(o.createElement("meta",{key:"og:"+e+":alt0"+r,property:"og:"+e+":alt",content:n.alt})),n.secureUrl&&t.push(o.createElement("meta",{key:"og:"+e+":secure_url0"+r,property:"og:"+e+":secure_url",content:n.secureUrl.toString()})),n.type&&t.push(o.createElement("meta",{key:"og:"+e+":type0"+r,property:"og:"+e+":type",content:n.type.toString()})),n.width?t.push(o.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:n.width.toString()})):i&&t.push(o.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:i.toString()})),n.height?t.push(o.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:n.height.toString()})):a&&t.push(o.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:a.toString()})),t}),[])},c=function(e){var t,n,r,a=[];e.titleTemplate&&(s.templateTitle=e.titleTemplate);var c="";e.title?(c=e.title,s.templateTitle&&(c=s.templateTitle.replace(/%s/g,(function(){return c})))):e.defaultTitle&&(c=e.defaultTitle),c&&a.push(o.createElement("title",{key:"title"},c));var l,f,d=e.noindex||s.noindex||e.dangerouslySetAllPagesToNoIndex,p=e.nofollow||s.nofollow||e.dangerouslySetAllPagesToNoFollow,h=e.disableGooglebot||s.disableGooglebot||e.dangerouslyDisableGooglebot,v="";if(e.robotsProps){var m=e.robotsProps,y=m.nosnippet,g=m.maxSnippet,b=m.maxImagePreview,w=m.maxVideoPreview,_=m.noarchive,x=m.noimageindex,S=m.notranslate,k=m.unavailableAfter;
1v=(y?",nosnippet":"")+(g?",max-snippet:"+g:"")+(b?",max-image-preview:"+b:"")+(_?",noarchive":"")+(k?",unavailable_after:"+k:"")+(x?",noimageindex":"")+(w?",max-video-preview:"+w:"")+(S?",notranslate":"")}(e.dangerouslyDisableGooglebot&&(s.disableGooglebot=!0),d||p?(e.dangerouslySetAllPagesToNoIndex&&(s.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(s.nofollow=!0),a.push(o.createElement("meta",{key:"robots",name:"robots",content:(d?"noindex":"index")+","+(p?"nofollow":"follow")+v})),h||a.push(o.createElement("meta",{key:"googlebot",name:"googlebot",content:(d?"noindex":"index")+","+(p?"nofollow":"follow")+v}))):(a.push(o.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+v})),h||a.push(o.createElement("meta",{key:"googlebot",name:"googlebot",content:"index,follow"+v}))),e.description&&a.push(o.createElement("meta",{key:"description",name:"description",content:e.description})),e.mobileAlternate&&a.push(o.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach((function(e){a.push(o.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))})),e.twitter&&(e.twitter.cardType&&a.push(o.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&a.push(o.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&a.push(o.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&a.push(o.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),null!=(t=e.openGraph)&&t.title||e.title)&&a.push(o.createElement("meta",{key:"og:title",property:"og:title",content:(null==(l=e.openGraph)?void 0:l.title)||c}));(null!=(n=e.openGraph)&&n.description||e.description)&&a.push(o.createElement("meta",{key:"og:description",property:"og:description",content:(null==(f=e.openGraph)?void 0:f.description)||e.description}));if(e.openGraph){if((e.openGraph.url||e.canonical)&&a.push(o.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var O=e.openGraph.type.toLowerCase();a.push(o.createElement("meta",{key:"og:type",property:"og:type",content:O})),"profile"===O&&e.openGraph.profile?(e.openGraph.profile.firstName&&a.push(o.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&a.push(o.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&a.push(o.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&a.push(o.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===O&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach((function(e,t){a.push(o.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))})),e.openGraph.book.isbn&&a.push(o.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&a.push(o.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEac
1h((function(e,t){a.push(o.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))}))):"article"===O&&e.openGraph.article?(e.openGraph.article.publishedTime&&a.push(o.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&a.push(o.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&a.push(o.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach((function(e,t){a.push(o.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))})),e.openGraph.article.section&&a.push(o.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach((function(e,t){a.push(o.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))}))):"video.movie"!==O&&"video.episode"!==O&&"video.tv_show"!==O&&"video.other"!==O||!e.openGraph.video||(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach((function(e,t){e.profile&&a.push(o.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&a.push(o.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))})),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach((function(e,t){a.push(o.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))})),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach((function(e,t){a.push(o.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))})),e.openGraph.video.duration&&a.push(o.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&a.push(o.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEac
1h((function(e,t){a.push(o.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))})),e.openGraph.video.series&&a.push(o.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(s.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(s.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&a.push.apply(a,u("image",e.openGraph.images,{defaultWidth:s.defaultOpenGraphImageWidth,defaultHeight:s.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(s.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(s.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&a.push.apply(a,u("video",e.openGraph.videos,{defaultWidth:s.defaultOpenGraphVideoWidth,defaultHeight:s.defaultOpenGraphVideoHeight})),e.openGraph.locale&&a.push(o.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),e.openGraph.site_name&&a.push(o.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.site_name}))}return e.canonical&&a.push(o.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach((function(e){var t,n,r;a.push(o.createElement("meta",i({key:"meta:"+(null!=(t=null!=(n=null!=(r=e.keyOverride)?r:e.name)?n:e.property)?t:e.httpEquiv)},e)))})),null!=(r=e.additionalLinkTags)&&r.length&&e.additionalLinkTags.forEach((function(e){var t;a.push(o.createElement("link",i({key:"link"+(null!=(t=e.keyOverride)?t:e.href)+e.rel},e)))})),a},l=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.titleTemplate,i=e.defaultTitle,a=e.dangerouslyDisableGooglebot,s=void 0!==a&&a,u=e.dangerouslySetAllPagesToNoIndex,l=void 0!==u&&u,f=e.dangerouslySetAllPagesToNoFollow,d=void 0!==f&&f,p=e.description,h=e.canonical,v=e.facebook,m=e.openGraph,y=e.additionalMetaTags,g=e.twitter,b=e.defaultOpenGraphImageWidth,w=e.defaultOpenGraphImageHeight,_=e.defaultOpenGraphVideoWidth,x=e.defaultOpenGraphVideoHeight,S=e.mobileAlternate,k=e.languageAlternates,O=e.additionalLinkTags;return o.createElement(r.default,null,c({title:t,titleTemplate:n,defaultTitle:i,dangerouslySetAllPagesToNoIndex:l,dangerouslySetAllPagesToNoFollow:d,description:p,canonical:h,facebook:v,openGraph:m,additionalMetaTags:y,twitter:g,defaultOpenGraphImageWidth:b,defaultOpenGraphImageHeight:w,defaultOpenGraphVideoWidth:_,defaultOpenGraphVideoHeight:x,mobileAlternate:S,languageAlternates:k,additionalLinkTags:O,dangerouslyDisableGooglebot:s}))},t}(o.Component),f=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.noindex,i=void 0!==n&&n,a=e.nofollow,s=e.robotsProps,u=e.description,l=e.canonical,f=e.openGraph,d=e.facebook,p=e.twitter,h=e.additionalMetaTags,v=e.titleTemplate,m=e.mobileAlternate,y=e.languageAlternates,g=e.additionalLinkTags,b=e.disableGooglebot;return o.createElement(r.default,null,c({title:t,noindex:i,nofollow:a,robotsProps:s,description:u,canonical:l,facebook:d,openGraph:f,additionalMetaTags:h,twitter:p,titleTemplate:v,mobileAlternate:m,languageAlternates:y,additionalLinkTags:g,disableGooglebot:b}))},t}(o.Component)},314:function(e,t,n){e.exports=n(1980)},4793:function(e,t,n){"use strict";var r=n(8066);t.default=void 0;var o,i=(o=n(2784))&&o.__esModule?o:{default:o},a=n(2172),s=n(5564),u=n(2104);var c={};function l(e,t,n,r){if(e&&a.isLocalURL(t)){e.prefetch(t,n,r).catch((function(e){0}));var o=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;c[t+"%"+n+(o?"%"+o:"")]=!0}}var f=function(e){var t,n=!1!==e.prefetch,o=s.useRouter(),f=i.default.useMemo((function(){var t=a.resolveHref(o,e.href,!0),n=r(t,2),i=n[0],s=n[1];return{href:i,as:e.as?a.resolveHref(o,e.as):s||i}}),[o,e.href,e.as]),d=f.href,p=f.as,h=e.children,v=e.replace,m=e.shallow,y=e.scroll,g=e.locale;"string"===typeof h&&(h=i.default.createElement("a",null,h));var b=(t=i.default.Children.only(h))&&"object"===typeof t&&t.ref,w=u.useIntersection({rootMargin:"200px"}),_=r(w,2),x=_[0],S=_[1],k=i.default.useCallback((function(e){x(e),b&&("function"===typeof b?b(e):"object"===typeof b&&(b.current=e))}),[b,x]);i.default.useEffect((function(){var e=S&&n&&a.isLocalURL(d),t="undefined"!==typeof g?g:o&&o.locale,r=c[d+"%"+p+(t?"%"+t:"")];e&&!r&&l(o,d,p,{locale:t})}),[p,d,S,g,n,o]);var O={ref:k,onClick:function(e){t.props&&"function"===typeof t.props.onClick&&t.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,i,s,u){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&a.isLocalURL(n))&&(e.preventDefault(),null==s&&r.indexOf("#")>=0&&(s=!1),t[o?"replace":"push"](n,r,{shallow:i,locale:u,scroll:s}))}(e,o,d,p,v,m,y,g)},onMouseEnter:function(e){a.isLocalURL(d)&&(t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),l(o,d,p,{priority:!0}))}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var C="undefined"!==typeof g?g:o&&o.locale,P=o&&o.isLocaleDomain&&a.getDomainLocale(p,C,o&&o.locales,o&&o.domainLocales);O.href=P||a.addBasePath(a.addLocale(p,C,o&&o.defaultLocale))}return i.default.cloneElement(t,O)};t.default=f},2104:function(e,t,n){"use strict";var r=n(8066);
1Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!a,u=o.useRef(),c=o.useState(!1),l=r(c,2),f=l[0],d=l[1],p=o.useCallback((function(e){u.current&&(u.current(),u.current=void 0),n||f||e&&e.tagName&&(u.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=s.get(t);if(n)return n;var r=new Map,o=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return s.set(t,n={id:t,observer:o,elements:r}),n}(n),o=r.id,i=r.observer,a=r.elements;return a.set(e,t),i.observe(e),function(){a.delete(e),i.unobserve(e),0===a.size&&(i.disconnect(),s.delete(o))}}(e,(function(e){return e&&d(e)}),{rootMargin:t}))}),[n,t,f]);return o.useEffect((function(){if(!a&&!f){var e=i.requestIdleCallback((function(){return d(!0)}));return function(){return i.cancelIdleCallback(e)}}}),[f]),[p,f]};var o=n(2784),i=n(564),a="undefined"!==typeof IntersectionObserver;var s=new Map},2518:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},4667:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=a,t.useAmp=function(){return a(o.default.useContext(i.AmpStateContext))};var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(2518);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,i=e.hasQuery,a=void 0!==i&&i;return n||o&&a}},2001:function(e,t,n){"use strict";var r=n(7467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=f,t.default=void 0;var i,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784)),s=(i=n(1023))&&i.__esModule?i:{default:i},u=n(2518),c=n(4523),l=n(4667);function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var p=["name","httpEquiv","charSet","itemProp"];function h(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(d,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var i=!0,a=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){a=!0;var s=o.key.slice(o.key.indexOf("$")+1);e.has(s)?i=!1:e.add(s)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(var u=0,c=p.length;u<c;u++){var l=p[u];if(o.props.hasOwnProperty(l))if("charSet"===l)n.has(l)?i=!1:n.add(l);else{var f=o.props[l],d=r[l]||new Set;"name"===l&&a||!d.has(f)?(d.add(f),r[l]=d):i=!1}}}return i}}()).reverse().map((function(e,n){var i=e.key||n;if(!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((function(t){return e.props.href.startsWith(t)}))){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props||{});return s["data-href"]=s.href,s.href=void 0,s["data-optimized-fonts"]=!0,a.default.cloneElement(e,s)}return a.default.cloneElement(e,{key:i})}))}var v=function(e){var t=e.children,n=a.useContext(u.AmpStateContext),r=a.useContext(c.HeadManagerContext);return a.default.createElement(s.default,{reduceComponentsToState:h,headManager:r,inAmpMode:l.isInAmpMode(n)},t)};t.default=v},1023:function(e,t,n){"use strict";var r=n(6563),o=n(2473),i=n(3382),a=(n(3615),n(2387)),s=n(3673),u=n(108);function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784));var f=function(e){a(n,e);var t=c(n);function n(e){var i;return o(this,n),(i=t.call(this,e)).emitChange=function(){i._hasHeadManager&&i.props.headManager.updateHead(i.props.reduceComponentsToState(r(i.props.headManager.mountedInstances),i.props))},i._hasHeadManager=i.props.headManager&&i.props.headManager.mountedInstances,i}return i(n,[{key:"componentDidMount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}},{key:"componentDidUpdate",value:function(){this.emitChange()}},{key:"componentWillUnmount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}},{key:"render",value:function(){return null}}]),n}(l.Component);t.default=f},3188:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(2340),o=n(9285),i=n(9319),a=n(2903),s=function(e){var t=e.children,n=e.styleOptions,s=e.noWrap,u=(0,r.oR)().pageLayout,c=i.x[u].page;return s?(0,a.tZ)(o.xu,{children:t}):(0,a.tZ)(o.xu,{sx:n,children:(0,a.tZ)(o.xu,{variant:"styles.blockWrapper",sx:{maxWidth:c},children:t})})}},6305:function(e,t,n){"use strict";n.d(t,{j:function(){return u}});var r=n(2784),o=n(9285),i=n(3211),a=n(6489),s=n(2903),u=(0,r.memo)((function(e){var t=e.statusCode,n=(0,a.B7)().theme.rawColors;return(0,s.BX)(o.kC,{sx:{height:"66vh",justifyContent:"center",alignItems:"center"},children:[(0,s.tZ)(o.xu,{p:3,sx:{borderRight:"1px solid ".concat(null===n||void 0===n?void 0:n.text)},children:(0,s.tZ)(o.X6,{as:"h1",p:0,children:t})}),(0,s.tZ)(o.xu,{p:3,children:(0,s.tZ)(i.T,{as:"span",children:"PageError".concat(t)})})]})}))},2972:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(7460),o=n(2784),i=n(9285),a=n(6489),s=n(2903);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=(0,o.memo)((function(e){var t=e.size,n=e.name,r=e.color,o=void 0===r?"":r,u=e.alt,l=void 0===u?"":u,f=e.withHover,d=(0,a.B7)().theme.rawColors,p=f?{"&:hover":{fill:null===d||void 0===d?void 0:d.accent}}:{};return(0,s.tZ)(i.xu,{sx:c({width:t,height:t,display:"block",fill:o||"currentColor",userSelect:"none",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",transition:"fill 0.15s"},p),alt:l,as:"svg",children:(0,s.tZ)("use",{xlinkHref:"/symbols.svg#".concat(n)})})}))},2132:function(e,t,n){"use strict";n.d(t,{s:function(){return a}});var r=n(2784),o=n(9285),i=n(2903),a=(0,r.memo)((function(e){var t=e.children,n=e.variant;return(0,i.tZ)(o.xu,{variant:"styles.".concat(n),children:t})}))},1906:function(e,t,n){"use strict";n.d(t,{D:function(){return m}});var r=n(2784),o=n(9097),i=n(2132),a=n(2340),s=n(9285),u=n(33),c=n(5632),l=n(5103),f=n(8755),d=n(2978),p=n(2972),h=n(2903),v=function(e){var t=e.buttonState,n=e.onClick;return(0,h.tZ)(s.xu,{onClick:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return n(e)})),p:2,sx:{position:"relative",boxSizing:"content-box",width:"24px",height:"24px","&: hover":{cursor:"pointer"}," & > div":{position:"absolute"}},children:(0,h.BX)(f.M,{children:["closed"===t&&(0,h.tZ)(d.E.div,{transition:{rotateZ:{ease:"easeInOut",duration:.3}},initial:{opacity:0,rotateZ:90}
1,animate:{opacity:1,rotateZ:0},exit:{opacity:0,rotateZ:480},children:(0,h.tZ)(p.J,{name:"ic-48-navigation-circle",size:24})},"closed"),"open"===t&&(0,h.tZ)(d.E.div,{transition:{rotateZ:{ease:"easeInOut",duration:.3}},initial:{opacity:0,rotateZ:90},animate:{opacity:1,rotateZ:0},exit:{opacity:0,rotateZ:480},children:(0,h.tZ)(p.J,{name:"ic-24-navigation-remove-circle",size:24})},"open")]})})},m=(0,r.memo)((function(){var e=(0,a.oR)(),t=(0,c.useRouter)(),n=t.locale,f=t.asPath,d=void 0===f?"":f,p=(0,r.useState)(""),m=p[0],y=p[1];(0,r.useEffect)((function(){var t=e.sanity.getConfigValue("homepagePath.".concat(n));y("/"===d||""===d?t:d)}),[d]);var g=(0,r.useState)(!1),b=g[0],w=g[1],_=e.sanity.getMenuChildren("mainmenu.".concat(n)),x=function(){var e=document.querySelector("html");e&&(e.removeAttribute("style"),w(!1))};return(0,h.BX)(s.kC,{sx:{alignItems:"center"},children:[(0,h.tZ)(v,{buttonState:b?"open":"closed",onClick:function(){return w(!0)}}),(0,h.tZ)(u.Z,{open:b,center:!0,onClose:function(){return x()},styles:l.DV,children:(0,h.tZ)(s.xu,{m:4,sx:{zIndex:"overlay"},children:_.map((function(e){var t,r=m.startsWith(e.href)||e.href===m||e.children&&e.children.filter((function(e){return e.href===m})).length>0,a=e.children&&e.children.length>0;return(0,h.BX)("div",{onClick:function(){return x()},children:[(0,h.tZ)(i.s,{variant:"overlayVertical".concat(r?"On":"Off"),children:(0,h.tZ)(o.default,{href:e.href,locale:n,passHref:!0,children:(0,h.tZ)(s.rU,{children:e.name})})}),a&&r&&(null===e||void 0===e||null===(t=e.children)||void 0===t?void 0:t.map((function(e){var t=e.href===m;return(0,h.tZ)(i.s,{variant:"overlayVerticalSub".concat(t?"On":"Off"),children:(0,h.tZ)(o.default,{href:e.href,locale:n,passHref:!0,children:(0,h.tZ)(s.rU,{children:e.name})})},e._key)})))]},e._key)}))})})]})}))},3211:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});var r=n(2784),o=n(2340),i=n(5632),a=n(2903),s=function(e){return{__html:e}},u=(0,r.memo)((function(e){var t=e.children,n=e.as,r=(0,o.oR)(),u=(0,i.useRouter)().locale,c="string"===typeof t?r.sanity.getLocaleString(t,u):"";if(n){var l=n;return(0,a.tZ)(l,{dangerouslySetInnerHTML:s(c)})}return(0,a.tZ)("span",{dangerouslySetInnerHTML:s(c)})}))},4243:function(e,t,n){"use strict";n.d(t,{Du:function(){return r},IR:function(){return o},UU:function(){return i},US:function(){return a}});var r=function(e){var t=e.slug,n=e.locale,r=e.passHref;return{href:"/blog/".concat(null===t||void 0===t?void 0:t.current),locale:n,passHref:r}},o=function(e){var t=e.tagName,n=void 0===t?"":t,r=e.tagId,o=e.pageNumber,i=e.locale,a=e.passHref;return{href:"/blog/tag/".concat(encodeURI(n).toLocaleLowerCase(),"/").concat(r).concat(!o||o<=1?"":"/page/".concat(o)),locale:i,passHref:a}},i=function(e){var t=e.pageNumber,n=e.locale,r=e.passHref;return{href:"/blog".concat(!t||t<=1?"":"/page/".concat(t)),locale:n,passHref:r}},a=function(e){return{href:"/blog/rss",locale:e.locale,passHref:e.passHref}}},807:function(e,t,n){"use strict";n.d(t,{oV:function(){return r},rD:function(){return o},Df:function(){return i},Mg:function(){return a}});var r=function(e){var t=e.id,n=e.locale,r=e.passHref;return{href:"/microblog/".concat(t),locale:n,passHref:r}},o=function(e){var t=e.tagName,n=void 0===t?"":t,r=e.tagId,o=e.pageNumber,i=e.locale,a=e.passHref;return{href:"/microblog/tag/".concat(encodeURI(n).toLocaleLowerCase(),"/").concat(r).concat(!o||o<=1?"":"/page/".concat(o)),locale:i,passHref:a}},i=function(e){var t=e.pageNumber,n=e.locale,r=e.passHref;return{href:"/microblog".concat(!t||t<=1?"":"/page/".concat(t)),locale:n,passHref:r}},a=function(e){return{href:"/microblog/rss",locale:e.locale,passHref:e.passHref}}},3995:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r=function(e,t){var n=t<=1?0:(t-1)*e;return{from:n,to:n+e}}},2477:function(e,t,n){"use strict";n.d(t,{P:function(){return a},w:function(){return s}});var r=n(5244),o=n(6465),i=n.n(o),a=i()({projectId:r.uc,dataset:r.lf,apiVersion:"2021-07-02",useCdn:"development"===r.Gv}),s=i()({projectId:r.uc,dataset:r.lf,apiVersion:"2021-07-02",useCdn:!0})},1279:function(e,t,n){"use strict";n.d(t,{r:function(){return c}});var r=n(9285),o=n(5632),i=n(5244),a=n(2903),s=function(){var e=(0,o.useRouter)().locale;return(0,a.BX)(r.xu,{sx:{position:"fixed",bottom:2,left:2},children:[(0,a.tZ)(r.xu,{sx:{display:["block","none","none","none"]},children:(0,a.BX)(r.Ct,{children:["< sm | ",e]})}),(0,a.tZ)(r.xu,{sx:{display:["none","block","none","none"]},children:(0,a.BX)(r.Ct,{children:["sm > < md | ",e]})}),(0,a.tZ)(r.xu,{sx:{display:["none","none","block","none"]},children:(0,a.BX)(r.Ct,{children:["md > < lg | ",e]})}),(0,a.tZ)(r.xu,{sx:{display:["none","none","none","block"]},children:(0,a.BX)(r.Ct,{children:["lg > | ",e," | ",i.sk]})})]})},u=n(7813),c=function(e){var t=e.children;return(0,a.BX)(r.xu,{variant:"styles.mainWrapper",children:[t,u.Rk&&(0,a.tZ)(s,{})]})}},2960:function(e,t,n){"use strict";n.d(t,{W:function(){return s}});var r=n(9285),o=n(3211),i=n(3188),a=n(2903),s=function(e){var t=e.children;return(0,a.tZ)(i.q,{children:(0,a.BX)(r.xu,{variant:"styles.pageFooter",children:[t,(0,a.tZ)(r.xv,{variant:"text.footer",as:"div",children:(0,a.tZ)(o.T,{children:"defaultFooterText"})})]})})}},6110:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var r=n(9285),o=n(3188),i=n(3211),a=n(2903),s=function(e){var t=e.children;return(0,a.tZ)(o.q,{children:(0,a.BX)(r.kC,{sx:{justifyContent:"space-between",alignItems:"center"},children:[(0,a.tZ)(r.kC,{sx:{justifyContent:"center",alignItems:"center"},children:(0,a.tZ)(r.xu,{variant:"styles.pageHeader",children:(0,a.tZ)(r.rU,{href:"/",children:(0,a.tZ)(i.T,{children:"PageTitle"})})})}),t]})})}},6:function(e,t,n){"use strict";n.d(t,{u:function(){return m}});var r=n(6110),o=n(1279),i=n(2960),a=n(9285),s=n(1906),u=n(9097),c=n(2132),l=n(2340),f=n(5632),d=n(2784),p=n(2903),h=function(){var e=(0,l.oR)(),t=(0,f.useRouter)(),n=t.locale,r=t.asPath,o=void 0===r?"":r,i=(0,d.useState)(""),s=i[0],h=i[1];(0,d.useEffect)((function(){var t=e.sanity.getConfigValue("homepagePath.".concat(n));h("/"===o||""===o?t:o)}),[o]);var v=[],m=e.sanity.getMenuChildren("mainmenu.".concat(n));return(0,p.BX)(a.xu,{sx:{position:"relative"},children:[(0,p.tZ)(a.kC,{sx:{justifyContent:"flex-end",flexDirection:"row",width:"100%"},children:m.map((function(e){var t,r=s.startsWith(e.href)||e.href===s||e.children&&e.children.filter((function(e){return e.href===s})).length>0,o=e.children&&e.children.length>0;return(0,p.BX)(a.xu,{children:[(0,p.tZ)(c.s,{variant:"horizontal".concat(r?"On":"Off"),children:(0,p.tZ)(u.default,{href:e.href,locale:n,passHref:!0,children:(0,p.tZ)(a.rU,{children:e.name})})}),o&&r&&(null===e||void 0===e||null===(t=e.children)||void 0===t?void 0:t.map((function(e){var t=e.as===s;return v.push((0,p.tZ)(a.xu,{children:(0,p.tZ)(c.s,{variant:"horizontalSub.".concat(t?"On":"Off"),children:(0,p.tZ)(u.default,{href:e.href,locale:n,passHref:!0,children:(0,p.tZ)(a.rU,{children:e.name})})})},e._key)),null})))]},e._key)}
1))}),(0,p.tZ)(a.kC,{sx:{justifyContent:"flex-end",flexDirection:"row",width:"100%"},children:v})]})},v=n(3188),m=function(e){var t=e.children;e.footerBlocks;return(0,p.BX)(o.r,{children:[(0,p.BX)(r.m,{children:[(0,p.tZ)(a.xu,{sx:{display:["block","none"]},children:(0,p.tZ)(s.D,{})}),(0,p.tZ)(a.xu,{sx:{display:["none","block"]},children:(0,p.tZ)(h,{})})]}),(0,p.tZ)(v.q,{children:(0,p.tZ)(a.xu,{py:[2,3]})}),(0,p.tZ)(a.xu,{children:t}),(0,p.tZ)(v.q,{children:(0,p.tZ)(a.xu,{py:[2,3]})}),(0,p.tZ)(i.W,{})]})}},6946:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return we}});var r=n(9207),o=n(7460),i=n(2847),a=n.n(i),s=n(7729),u=n(5351),c=n(5632),l=n(2784),f=n(6489),d=n(2273),p=n(8165);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=function(e){return"--theme-ui-"+e.replace("-__default","")},m=function(e){return"var("+v(e)+")"},y=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join("-")},g=new Set(["useCustomProperties","initialColorModeName","printColorModeName","initialColorMode","useLocalStorage","config"]),b=function e(t,n){var r=Array.isArray(t)?[]:{};for(var o in t){var i=t[o],a=y(n,o);i&&"object"===typeof i?r[o]=e(i,a):g.has(o)?r[o]=i:r[o]=m(a)}return r},w=function e(t,n){var r={};for(var o in n)if("modes"!==o){var i=y(t,o),a=n[o];a&&"object"===typeof a?r=h({},r,e(i,a)):r[v(i)]=a}return r},_=function(e){void 0===e&&(e={});var t=e.config||e||{},n=t.useCustomProperties,r=t.initialColorModeName,o=t.printColorModeName,i=t.useRootStyles,a=e.rawColors||e.colors;if(!a||!1===i)return{};if(!1===n)return(0,d.iv)({color:"text",bg:"background"})(e);var s=a.modes||{},u=x(a,s);if(o){var c="initial"===o||o===r?a:s[o];u["@media print"]=w("colors",c)}var l=function(e){return m("colors-"+e)};return(0,d.iv)(h({},u,{color:l("text"),bg:l("background")}))(e)};function x(e,t){var n=w("colors",e);return Object.keys(t).forEach((function(e){var r=".theme-ui-"+e;n["&"+r+", "+r+" &"]=w("colors",t[e])})),n}var S="theme-ui-color-mode",k="(prefers-color-scheme: dark)",O=function(){try{return window.localStorage.getItem(S)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}},C=function(e){try{window.localStorage.setItem(S,e)}catch(t){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",t)}},P=function(){if("undefined"!==typeof window&&window.matchMedia){if(window.matchMedia(k).matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null},A="undefined"===typeof window?function(){}:l.useLayoutEffect,T=function(e){var t=e.outerCtx,n=e.children,r=t.theme||{},o=r.config||r,i=o.initialColorModeName,a=o.useColorSchemeMediaQuery,s=o.useLocalStorage,u=(0,l.useState)((function(){return!1!==a&&P()||i})),c=u[0],d=u[1];A((function(){var e=!1!==s&&O();"undefined"!==typeof document&&document.documentElement.classList.remove("theme-ui-"+e),"system"!==a&&e&&e!==c&&(c=e,d(e))}),[]),(0,l.useEffect)((function(){c&&!1!==s&&C(c)}),[c,s]);var p=(0,l.useCallback)((function(){var e=P();d(e||i)}),[i]);(0,l.useEffect)((function(){if("system"===a&&window.matchMedia){var e=window.matchMedia(k);"function"===typeof e.addEventListener?e.addEventListener("change",p):"function"===typeof e.addListener&&e.addListener(p)}return function(){if("system"===a&&window.matchMedia){var e=window.matchMedia(k);"function"===typeof e.removeEventListener?e.removeEventListener("change",p):"function"===typeof e.removeListener&&e.removeListener(p)}}}),[a,p]);var v=R({colorMode:c,outerTheme:r}),m=h({},t,{theme:v,colorMode:c,setColorMode:d});return l.createElement(f.vg,{context:m},l.createElement(M,{theme:v}),n)};var E=function(e){var t=h({},e);return delete t.modes,t};function j(e,t){for(var n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if("string"!==typeof a||a.startsWith("var(")){if("object"===typeof a){var s=h({},t[i]);j(a,s),t[i]=s}}else t[i]=a}}function R(e){var t=e.outerTheme,n=e.colorMode;return(0,l.useMemo)((function(){var e=h({},t),r=(0,d.U2)(e,"colors.modes",{}),o=(0,d.U2)(r,n,{});n&&(e.colors=h({},e.colors,o));var i=t.config||t,a=i.useCustomProperties,s=i.initialColorModeName,u=void 0===s?"__default":s,c=t.rawColors||t.colors||{};if(!1!==a){var l=null!=e.rawColors,f=e.colors||{};if(l)j(f,c=h({},c)),c.modes&&(c.modes[u]=E(c)),e.rawColors=c;else if("modes"in c){var p,v=h(((p={})[u]=E(c),p),c.modes);e.rawColors=h({},f,{modes:v})}else e.rawColors=f;e.colors=b(E(c),"colors")}return e}),[n,t])}function M(e){var t=e.theme;return(0,f.tZ)(p.xB,{styles:function(){return{html:_(t)}}})}function I(e){var t,n=e.outerCtx,r=e.children,o=R({outerTheme:n.theme,colorMode:n.colorMode}),i=(0,l.useState)((function(){var e;return!1!==(null==(e=o.config)?void 0:e.useLocalStorage)})),a=i[0],s=i[1];A((function(){s(!1)}),[]);var u=o.rawColors||o.colors,c=null==(t=o.config)?void 0:t.useCustomProperties,p=(0,l.useMemo)((function(){if(!1===c)return{};var e=u||{};return(0,d.iv)(x(e,e.modes||{}))(o)}),[o,u,c]);return l.createElement(f.vg,{context:h({},n,{theme:o})},(0,f.tZ)("div",{"data-themeui-nested-provider":!0,key:Number(a),suppressHydrationWarning:!0,css:p,children:r}))}var D=function(e){var t=e.children,n=(0,f.B7)();return"function"!==typeof n.setColorMode?l.createElement(T,{outerCtx:n},t):l.createElement(I,{outerCtx:n},t)},B=n(4923);
1function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var F=l.createContext({}),z=function(e){var t=l.useContext(F),n=t;return e&&(n="function"===typeof e?e(t):N(N({},t),e)),n},W=function(e){var t=z(e.components);return l.createElement(F.Provider,{value:t},e.children)},G={inlineCode:"code",wrapper:function(e){var t=e.children;return l.createElement(l.Fragment,{},t)}},U=l.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,i=e.parentName,a=$(e,["components","mdxType","originalType","parentName"]),s=z(n),u=r,c=s["".concat(i,".").concat(u)]||s[u]||G[u]||o;return n?l.createElement(c,N(N({ref:t},a),{},{components:n})):l.createElement(c,N({ref:t},a))}));function H(){return(H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}U.displayName="MDXCreateElement";var Z=["theme"],q={inlineCode:"code",thematicBreak:"hr",root:"div"},X=function(e){return e in q?q[e]:e},K={th:{align:"textAlign"},td:{align:"textAlign"}},Y=function(e){return function(t){var n=t.theme,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,Z),o=K[e],i=o?Object.keys(r).filter((function(e){return void 0!==o[e]})).reduce((function(e,t){var n;return H({},e,((n={})[o[t]]=r[t],n))}),{}):void 0;return(0,d.iv)(H({},(0,d.U2)(n,"styles."+e),i))(n)}},J=(0,B.Z)("div")(Y("div")),Q=(0,B.Z)("div")(Y("div")),ee={};["p","b","i","a","h1","h2","h3","h4","h5","h6","img","pre","code","ol","ul","li","blockquote","hr","em","table","tr","th","td","em","strong","del","inlineCode","thematicBreak","div","root"].forEach((function(e){ee[e]=(0,B.Z)(X(e))(Y(e)),J[e]=ee[e],Q[e]=(0,B.Z)(function(e){return function(t){return(0,l.useEffect)((function(){}),[]),(0,l.createElement)(X(e),t)}}(e))(Y(e))}));var te=function(e){var t=H({},ee);return Object.keys(e).forEach((function(n){t[n]=(0,B.Z)(e[n])(Y(n))})),t},ne=function(e){var t=e.components,n=e.children,r=z();return(0,f.tZ)(W,{components:te(H({},r,t)),children:n})},re=function(){return(0,f.tZ)(p.xB,{styles:function(e){var t,n=e;if(!1===(n.config||n).useRootStyles||n.styles&&!n.styles.root)return null;var r=!1===(null==(t=n.config)?void 0:t.useBorderBox)?void 0:"border-box";return(0,d.iv)({"*":{boxSizing:r},html:{variant:"styles.root"},body:{margin:0}})(n)}})},oe=function(e){var t=e.theme,n=e.components,r=e.children,o=(0,f.B7)()===f.yo;return l.createElement(f.f6,{theme:t},l.createElement(D,null,o&&l.createElement(re,null),l.createElement(ne,{components:n},r)))},ie=function(e,t,n){e&&t&&n||console.warn("Missing argument in getLocaleString()");var r=e.filter((function(e){return e.key===t}));return r&&0!==r.length?r.length>1?(console.warn("Warning: LocaleString ".concat(t," not unique")),t):r[0][n]:(console.warn("Warning: LocaleString ".concat(t," not found")),t)},ae=n(2340),se=n(7355),ue=n(5103),ce=n(2903),le=(0,ce.tZ)(p.xB,{styles:(0,p.iv)(ue.Ie,";;label:globalStyles-globalStyles;")}),fe=n(4413),de=n(6305),pe=n(6),he=n(7813),ve=n(807),me=n(4243);function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ye(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}c.default.events.on("routeChangeStart",(function(){})),c.default.events.on("routeChangeComplete",(function(e){if(he.Rk||function(e){if(window||window._paq){var t=window._paq;t.push(["setCustomUrl",e]),t.push(["setDocumentTitle",document.title]),t.push(["trackPageView"])}}(e),window.location.hash){var t=window.location.hash;he.Rk&&console.log("onRouteChangeComplete anchor",t),window.location.hash="",setTimeout((function(){window.location.hash=t}),300)}})),c.default.events.on("routeChangeError",(function(e){he.Rk&&console.warn(e)}));var be=function(e){var t=e.Component,n=e.pageProps,r=e.initialState,o=e.statusCode,i=void 0===o?0:o,a=(0,c.useRouter)().locale,l=r.sanity.localeStrings;return(0,ce.BX)(ce.HY,{children:[(0,ce.BX)(s.default,{children:[(0,ce.tZ)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no"}),(0,ce.tZ)("link",{rel:"alternate",type:"application/rss+xml",title:"RSS for Micro Blog",href:(0,ve.Mg)(a).href}),(0,ce.tZ)("link",{rel:"alternate",type:"application/rss+xml",title:"RSS for Blog Articles",href:(0,me.UU)(a).href})]}),(0,ce.tZ)(ae.g3,{snapshot:r,children:(0,ce.BX)(oe,{theme:fe.r,children:[(0,ce.tZ)(u.lX,{title:ie(l,"defaultSeoTitle",a),description:ie(l,"defaultSeoDescription",a),openGraph:{locale:a,images:[{url:he.Wn}]}}),le,i>302?(0,ce.tZ)(pe.u,{footerBlocks:[],children:(0,ce.tZ)(de.j,{statusCode:i})}):(0,ce.tZ)(t,ge({},n))]})})]})};be.getInitialProps=function(){var e=(0,r.Z)(a().mark((function e(t){var n,r,o,i,s,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.Component,r=t.ctx,o=t.ctx.res,i=t.router,(s=(0,ae.N2)()).sanity.setDisableSanityCDN(i.query.disableSanityCDN),he.Rk&&console.log("BOOT: Sanity CDN is ".concat(s.sanity.disableSanityCDN?"disabled":"enabled")),!he.W6){e.next=8;break}return he.Rk&&console.log("BOOT: Hydrating stores"),e.next=8,s.hydrateAll(i.locale);case 8:if(u={},!n.getInitialProps){e.next=13;break}return e.next=12,n.getInitialProps(r);case 12:u=e.sent;case 13:return e.abrupt("return",{initialState:(0,se.vMv)(s),pageProps:u,statusCode:null===o||void 0===o?void 0:o.statusCode});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var we=be},7813:function(e,t,n){"use strict";n.d(t,{Qg:function(){return i},W6:function(){return a},Wn:function(){return s},g8:function(){return r},Rk:function(){return u}});var r,o=n(5244),i=!0,a=!1,s="/social-card.png";!function(e){e.noSidebar="noSidebar",e.sidebarLeft="sidebarLeft",e.sidebarRight="sidebarRight",e.sidebarLeftRight="sidebarLeftRight"}(r||(r={}));var u="production"!==o.Gv},5244:function(e,t,n){"use strict";n.d(t,{sk:function(){return o},Ho:function(){return i},Gv:function(){return a},u7:function(){return s},lf:function(){return u},uc:function(){return c}});var r=(0,n(314).default)().publicRuntimeConfig,o=r.BUILD_ID,i=r.COMMENTO_URL,a=r.ENVIRONMENT,s=r.MAILGUN_RECIPIENT,u=(r.MATOMO_ID,r.SANITY_DATASET),c=r.SANITY_PROJECT},2340:function(e,t,n){"use strict";n.d(t,{g3:function(){return Pe},N2:function(){return Oe},oR:function(){return Ae}});var r=n(2784),o=n(75);if(!r.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!o.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var i=n(8316);function a(e){e()}var s="undefined"===typeof FinalizationRegistry?void 0:FinalizationRegistry;function u(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+c}}var c=1e4;var l=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var f=s?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,o,i){var a=n++;return r.register(i,a,e),e.current=u(o),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(s):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,o){var i;return e.current=u(r),i=e,t.add(i),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var o=l(t),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}();f.addReactionToTrack,f.recordReactionAsCommitted,f.resetCleanupScheduleForTests,f.forceCleanupTimerToRunNowForTests;var d;(d=i.unstable_batchedUpdates)||(d=a),(0,o.configure)({reactionScheduler:d});var p=n(7355);function h(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}var v=n(4698);var m=n(7245);function y(e){return function(e){if(Array.isArray(e))return(0,v.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,m.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g=n(9207);function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function S(e){return(S="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(t&&("object"===S(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=n(7460);function P(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var A=n(2847),T=n.n(A);function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}var R,M,I,D=function(e){var t=e.locale;return'\n*[_type == "menu" && locale == "'.concat(t,'"]{\n "slug": slug.current,\n title,\n "children": children[]{\n _type == "menuItem" => {\n _key,\n \t\t_type,\n "name": page -> name,\n "slug": slug.current,\n "slug": page -> slug.current,\n "href": "/" + page -> slug.current,\n },\n _type == \'menuItemVirtual\' => {\n _key,\n _type,\n "name": title,\n slug,\n "href": "/" + slug,\n },\n _type == "menuBranch" => {\n ...,\n _key,\n _type,\n name,\n !defined(menuItem) => {\n "slug": slug.current,\n children[0]._type == \'menuItem\' => {\n \t "slug": children[0].page -> slug.current,\n \t "href": "/" + children[0].page -> slug.current,\n },\n children[0]._type == \'menuItemVirtual\' => {\n \t "slug": children[0].slug,\n \t "href": "/" + children[0].slug,\n }\n \t},\n defined(menuItem) => {\n "slug": menuItem -> slug.current,\n "href": "/" + menuItem -> slug.current,\n },\n "children": children[] {\n \t_type == \'menuItem\' => {\n\t\t\t\t\t_key,\n \t\t\t_type,\n \t "name": page -> name,\n \t "slug": page -> slug.current,\n \t "href": "/" + page -> slug.current,\n \t},\n \t_type == \'menuItemVirtual\' => {\n\t\t\t\t\t_key,\n \t\t\t_type,\n \t "name": title,\n \t slug,\n \t "href": "/" + slug,\n \t}\n }\n }\n }\n}')},B=n(2477),V=function(e){var t=e.locale;return'*[_type == "contentblock" && locale == "'.concat(t,'"]{\n ...,\n "seoImage": seoImage{..., asset->},\n "image": image{..., asset->},\n "blocks": blocks[]{\n ...,\n "items": items[]{\n ...,\n "linkInternal": linkInternal->{locale, slug},\n },\n "linkInternal": linkInternal->{locale, slug},\n "image": image{..., asset->},\n "firstColumn": firstColumn[]{\n ...,\n "image": image{..., asset->},\n "linkInternal": linkInternal->{locale, slug}\n },\n "secondColumn": secondColumn[]{\n ...,\n "image": image{..., asset->},\n "linkInternal": linkInternal->{locale, slug}\n }\n }\n }')},L=function(e){e.locale;return'*[_type == "configValue"]{key, value}'},N=function(e){var t=e.locale;return'*[_type == "localeString"]{key, '.concat(t,"}")},$=function(e){var t=e.locale;return'*[_type == "tag"]{_id, '.concat(t,"}")},F=n(7813);function z(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}var W,G,U,H=(0,p.o4J)("store/sanity")((M=function(e){x(n,e);var t=z(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,C.Z)(w(e),"serverSideFetchQueries",{tags:$,contentBlocks:V,menus:D,localeStrings:N,configValues:L}),(0,C.Z)(w(e),"queryFunctionResolver",(function(t){var n=t.key,r=t.locale;switch(n){case"latest":return e.serverSideFetchQueries[n]({locale:r,limit:10});default:return e.serverSideFetchQueries[n]({locale:r})}})),h(w(e),"hydrateStore",I,w(e)),(0,C.Z)(w(e),"getMenuChildren",(function(t){var n=e.menus.filter((function(n){return n.slug===e.getConfigValue(t)}));return n.length<1?(console.warn("getMenuChildren() error: Can't find a matching menu - aborting."),[]):n[0].children.length<1?(console.warn("getMenuChildren() error: menu has no children"),[]):n[0].children})),(0,C.Z)(w(e),"getConfigValue",(function(t){var n=e.configValues.filter((function(e){return e.key===t}));return n.length<1?(console.warn("getConfigValue() error: Config value not found in store (".concat(t,")")),""):n[0].value}
1)),(0,C.Z)(w(e),"getLocaleString",(function(t,n){var r=e.localeStrings.filter((function(e){return e.key===t}));return r.length<1?(console.warn("getLocaleString() error: Translation string value not found in store (".concat(t,")")),"".concat(t," \u26a0\ufe0f")):r[0][n]})),(0,C.Z)(w(e),"getTagName",(function(t){var n=t.key,r=t.locale,o=e.tags.filter((function(e){return e._id===n}));return o.length<1?(console.warn("getTagName() error: Config value not found in store (".concat(n,")")),""):o[0][r]})),e}return j(n,[{key:"hydratePropByKey",value:function(e,t){this[e]=t}}]),n}((0,p.Hnr)({contentBlocks:(0,p.vgT)((function(){return[]})),menus:(0,p.vgT)((function(){return[]})),localeStrings:(0,p.vgT)((function(){return[]})),configValues:(0,p.vgT)((function(){return[]})),tags:(0,p.vgT)((function(){return[]})),disableSanityCDN:(0,p.vgT)(!1).withSetter()})),I=P(M.prototype,"hydrateStore",[p.ZBq],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.Z)(T().mark((function t(n,r){var o,i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="",Object.keys(e.serverSideFetchQueries).forEach((function(t){o="".concat(o," '").concat(t,"': ").concat(e.queryFunctionResolver({key:t,locale:n}),",")})),i=r?B.P:B.w,o="{".concat(o,"}"),t.next=6,i.fetch(o).then((function(t){if(F.Rk){var n=JSON.stringify(t);F.Rk&&console.log("Preload Sanity query result: ".concat(Math.ceil(n.length/1024*100)/100," kb"))}"object"===typeof e.serverSideFetchQueries&&Object.keys(e.serverSideFetchQueries).forEach((function(n){e.hydratePropByKey(n,t[n])}))}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}}),P(M.prototype,"hydratePropByKey",[p.ZBq],Object.getOwnPropertyDescriptor(M.prototype,"hydratePropByKey"),M.prototype),R=M))||R,Z=["sanityBlog","sanityMicroBlog"],q=n(4632);function X(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}var K,Y,J,Q=(0,p.o4J)("store/sanityBlog")((G=function(e){x(n,e);var t=X(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,C.Z)(w(e),"serverSideFetchQueries",{itemsTotal:q.rN}),(0,C.Z)(w(e),"queryFunctionResolver",(function(t){var n=t.key,r=t.locale;return e.serverSideFetchQueries[n]({locale:r})})),h(w(e),"hydrateStore",U,w(e)),e}return j(n,[{key:"hydratePropByKey",value:function(e,t){this[e]=t}},{key:"filterReset",value:function(){this.tagId=""}}]),n}((0,p.Hnr)({tagId:(0,p.vgT)("").withSetter(),itemsTotal:(0,p.vgT)(0).withSetter(),itemsPerPage:(0,p.vgT)(9).withSetter()})),U=P(G.prototype,"hydrateStore",[p.ZBq],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.Z)(T().mark((function t(n,r){var o,i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="",Object.keys(e.serverSideFetchQueries).forEach((function(t){o="".concat(o," '").concat(t,"': ").concat(e.queryFunctionResolver({key:t,locale:n}),",")})),o="{".concat(o,"}"),i=r?B.P:B.w,t.next=6,i.fetch(o).then((function(t){if(F.Rk){var n=JSON.stringify(t);F.Rk&&console.log("Hydrating SanityBlogStore: ".concat(Math.ceil(n.length/1024*100)/100," kb"))}"object"===typeof e.serverSideFetchQueries&&Object.keys(e.serverSideFetchQueries).forEach((function(n){e.hydratePropByKey(n,t[n])}))})).catch((function(e){throw console.error(o),Error(e)}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}}),P(G.prototype,"hydratePropByKey",[p.ZBq],Object.getOwnPropertyDescriptor(G.prototype,"hydratePropByKey"),G.prototype),P(G.prototype,"filterReset",[p.ZBq],Object.getOwnPropertyDescriptor(G.prototype,"filterReset"),G.prototype),W=G))||W,ee=n(9134);function te(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}var ne,re,oe,ie=(0,p.o4J)("store/sanityMicroBlog")((Y=function(e){x(n,e);var t=te(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,C.Z)(w(e),"serverSideFetchQueries",{itemsTotal:ee.rN}),(0,C.Z)(w(e),"queryFunctionResolver",(function(t){var n=t.key,r=t.locale;return e.serverSideFetchQueries[n]({locale:r})})),h(w(e),"hydrateStore",J,w(e)),e}return j(n,[{key:"hydratePropByKey",value:function(e,t){this[e]=t}},{key:"filterReset",value:function(){this.tagId=""}}]),n}((0,p.Hnr)({tagId:(0,p.vgT)("").withSetter(),itemsTotal:(0,p.vgT)(0).withSetter(),itemsPerPage:(0,p.vgT)(10).withSetter()})),J=P(Y.prototype,"hydrateStore",[p.ZBq],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.Z)(T().mark((function t(n,r){var o,i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="",Object.keys(e.serverSideFetchQueries).forEac
1h((function(t){o="".concat(o," '").concat(t,"': ").concat(e.queryFunctionResolver({key:t,locale:n}),",")})),o="{".concat(o,"}"),i=r?B.P:B.w,t.next=6,i.fetch(o).then((function(t){if(F.Rk){var n=JSON.stringify(t);F.Rk&&console.log("Hydrating SanityMicroBlogStore: ".concat(Math.ceil(n.length/1024*100)/100," kb"))}"object"===typeof e.serverSideFetchQueries&&Object.keys(e.serverSideFetchQueries).forEach((function(n){e.hydratePropByKey(n,t[n])}))})).catch((function(e){throw console.error(o),Error(e)}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}}),P(Y.prototype,"hydratePropByKey",[p.ZBq],Object.getOwnPropertyDescriptor(Y.prototype,"hydratePropByKey"),Y.prototype),P(Y.prototype,"filterReset",[p.ZBq],Object.getOwnPropertyDescriptor(Y.prototype,"filterReset"),Y.prototype),K=Y))||K,ae=n(2092);function se(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}var ue,ce,le,fe,de,pe=(0,p.o4J)("store/sanityPortfolioStore")((re=function(e){x(n,e);var t=se(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,C.Z)(w(e),"serverSideFetchQueries",{itemsTotal:ae.rN}),(0,C.Z)(w(e),"queryFunctionResolver",(function(t){var n=t.key,r=t.locale;return e.serverSideFetchQueries[n]({locale:r})})),h(w(e),"hydrateStore",oe,w(e)),e}return j(n,[{key:"hydratePropByKey",value:function(e,t){this[e]=t}}]),n}((0,p.Hnr)({tagId:(0,p.vgT)("").withSetter(),itemsTotal:(0,p.vgT)(0).withSetter(),itemsPerPage:(0,p.vgT)(9).withSetter()})),oe=P(re.prototype,"hydrateStore",[p.ZBq],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.Z)(T().mark((function t(n,r){var o,i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="",Object.keys(e.serverSideFetchQueries).forEach((function(t){o="".concat(o," '").concat(t,"': ").concat(e.queryFunctionResolver({key:t,locale:n}),",")})),o="{".concat(o,"}"),i=r?B.P:B.w,t.next=6,i.fetch(o).then((function(t){if(F.Rk){var n=JSON.stringify(t);F.Rk&&console.log("Hydrating SanityPortfolio: ".concat(Math.ceil(n.length/1024*100)/100," kb"))}"object"===typeof e.serverSideFetchQueries&&Object.keys(e.serverSideFetchQueries).forEach((function(n){e.hydratePropByKey(n,t[n])}))})).catch((function(e){throw console.error(o),Error(e)}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}}),P(re.prototype,"hydratePropByKey",[p.ZBq],Object.getOwnPropertyDescriptor(re.prototype,"hydratePropByKey"),re.prototype),ne=re))||ne,he=n(3995);function ve(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}var me,ye,ge,be=(0,p.o4J)("store/sanityProductStore")((ce=function(e){x(n,e);var t=ve(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,C.Z)(w(e),"serverSideFetchQueries",{items:ae.w8,itemsTotal:ae.rN,latest:ae.PU}),(0,C.Z)(w(e),"queryFunctionResolver",(function(t){var n=t.key,r=t.locale;switch(n){case"latest":return e.serverSideFetchQueries[n]({locale:r,limit:e.itemsPerPage});default:return e.serverSideFetchQueries[n]({locale:r})}})),h(w(e),"hydrateStore",le,w(e)),h(w(e),"getByPage",fe,w(e)),h(w(e),"setItems",de,w(e)),e}return j(n,[{key:"setItemsPerPage",value:function(e){this.itemsPerPage=e}},{key:"hydratePropByKey",value:function(e,t){this[e]=t}}]),n}((0,p.Hnr)({items:(0,p.vgT)((function(){return[]})),tagId:(0,p.vgT)(""),latest:(0,p.vgT)((function(){return[]})),itemsTotal:(0,p.vgT)(0),itemsPerPage:(0,p.vgT)(8)})),le=P(ce.prototype,"hydrateStore",[p.ZBq],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.Z)(T().mark((function t(n){var r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="",Object.keys(e.serverSideFetchQueries).forEac
1h((function(t){r="".concat(r," '").concat(t,"': ").concat(e.queryFunctionResolver({key:t,locale:n}),",")})),r="{".concat(r,"}"),t.next=5,B.P.fetch(r).then((function(t){if(F.Rk){var n=JSON.stringify(t);F.Rk&&console.log("Hydrating SanityProduct: ".concat(Math.ceil(n.length/1024*100)/100," kb"))}"object"===typeof e.serverSideFetchQueries&&Object.keys(e.serverSideFetchQueries).forEach((function(n){e.hydratePropByKey(n,t[n])}))}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),fe=P(ce.prototype,"getByPage",[p.ZBq],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(0,g.Z)(T().mark((function t(n,r,o){var i,a,s;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=(0,he.i)(r,o),a=i.from,s=i.to,t.abrupt("return",B.P.fetch((0,ae._U)({locale:n,from:a,to:s})).then((function(t){if(F.Rk){var n=JSON.stringify(t);F.Rk&&console.log("SanityProduct getByPage result: ".concat(Math.ceil(n.length/1024*100)/100," kb"))}e.items=t})));case 2:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()}}),de=P(ce.prototype,"setItems",[p.ZBq],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var n=t.items,r=t.tagId,o=t.itemsTotal;e.items=n,e.itemsTotal=o,e.tagId=r||""}}}),P(ce.prototype,"setItemsPerPage",[p.ZBq],Object.getOwnPropertyDescriptor(ce.prototype,"setItemsPerPage"),ce.prototype),P(ce.prototype,"hydratePropByKey",[p.ZBq],Object.getOwnPropertyDescriptor(ce.prototype,"hydratePropByKey"),ce.prototype),ue=ce))||ue;function we(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}var _e=(0,p.o4J)("store/root")((ye=function(e){x(n,e);var t=we(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,C.Z)(w(e),"hydrateAll",function(){var t=(0,g.Z)(T().mark((function t(n){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all([e.sanity.hydrateStore(n,e.sanity.disableSanityCDN)].concat(y(Z.map((function(t){return e[t].hydrateStore(n,e.sanity.disableSanityCDN)}))))));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),h(w(e),"setPageLayout",ge,w(e)),e}return n}((0,p.Hnr)({sanity:(0,p.vgT)((function(){return new H({})})),pageLayout:(0,p.vgT)(F.g8.noSidebar),sanityBlog:(0,p.vgT)((function(){return new Q({})})),sanityMicroBlog:(0,p.vgT)((function(){return new ie({})})),sanityPortfolio:(0,p.vgT)((function(){return new pe({})})),sanityProduct:(0,p.vgT)((function(){return new be({})}))})),ge=P(ye.prototype,"setPageLayout",[p.ZBq],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){Object.keys(F.g8).includes(t)?e.pageLayout=t:(e.pageLayout="default",console.warn("Layout ".concat(t," does not exist, using default")))}}}),me=ye))||me,xe=function e(t){b(this,e),(0,C.Z)(this,"store",void 0),this.store=t},Se=n(2903);var ke=null,Oe=function(e){return ke||(ke=new _e({})),e&&(ke=(0,p.atr)(e)),(0,p.m83)(ke)||(0,p.v5r)(ke),new xe(ke),ke},Ce=(0,r.createContext)(null),Pe=function(e){var t=e.children,n=e.snapshot,o=(0,r.useState)((function(){return Oe(n)}))[0];return(0,Se.tZ)(Ce.Provider,{value:o,children:t})};function Ae(){var e=(0,r.useContext)(Ce);if(!e)throw new Error("useStore must be used within a StoreProvider.");return e}},4632:function(e,t,n){"use strict";n.d(t,{rN:function(){return a},w8:function(){return s},_U:function(){return u},PU:function(){return c}});var r=n(4501),o=n(4593),i=n(557),a=function(e){var t=e.locale;return'count(*[\n _type == "blogArticle" && locale == "'.concat(t,'"\n])')},s=function(e){var t=e.locale,n=e.slug;return'*[\n _type == "blogArticle" && locale == "'.concat(t,'" && slug.current == "').concat(n,'"\n]{\n ').
1concat(i.M,"\n}[0]")},u=function(e){var t=e.locale,n=e.tagId,r=e.from,o=void 0===r?0:r,a=e.to,s=void 0===a?0:a,u=o>=0&&s?"[".concat(o,"...").concat(s,"]"):"",c=n?'&& references("'.concat(n,'")'):"";return'*[\n _type == "blogArticle" && locale == "'.concat(t,'" ').concat(c,"\n]{\n ").concat(i.M,"\n} ").concat("| order(published desc)"," ").concat(u)},c=function(e){var t=e.locale,n=e.limit,i=void 0===n?10:n;return'*[\n _type == "blogArticle" && locale == "'.concat(t,'"\n]{\n ...,\n ').concat(r.J,"\n ").concat(o.W,"\n} | order(published desc) [0...").concat(i,"]")}},9829:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(4501),o='\n slides != null => { "slides": slides[]{ ..., '.concat(r.J,' } },\n items != null => { "items": items[]{ ..., ').concat(r.J,' } },\n firstColumn != null => { "firstColumn": firstColumn[]{ ..., ').concat(r.J,' } },\n secondColumn != null => { "secondColumn": secondColumn[]{ ..., ').concat(r.J," } },\n")},557:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(4501),o=n(4593),i=n(9829),a="\n...,\n".concat(r.J,"\n").concat(o.W,'\n"blocks": blocks[]{\n ...,\n ').concat(r.J,"\n ").concat(o.W,"\n ").concat(i.y,"\n}\n")},9134:function(e,t,n){"use strict";n.d(t,{rN:function(){return a},w8:function(){return s},_U:function(){return u},PU:function(){return c}});var r=n(4501),o=n(4593),i="\n...,\n".concat(r.J,"\n").concat(o.W,"\n"),a=function(e){var t=e.locale;return'count(*[\n _type == "microBlogPost" && locale == "'.concat(t,'"\n])')},s=function(e){var t=e.id;return'*[\n _type == "microBlogPost" && _id == "'.concat(t,'"\n]{\n ').concat(i,"\n}[0]")},u=function(e){var t=e.locale,n=e.tagId,r=e.from,o=void 0===r?0:r,a=e.to,s=void 0===a?0:a,u=o>=0&&s?"[".concat(o,"...").concat(s,"]"):"",c=n?'&& references("'.concat(n,'")'):"";return'*[\n _type == "microBlogPost" && locale == "'.concat(t,'" ').concat(c,"\n]{\n ").concat(i,"\n} ").concat("| order(_createdAt desc)"," ").concat(u)},c=function(e){var t=e.locale,n=e.limit,r=void 0===n?10:n;return'*[\n _type == "microBlogPost" && locale == "'.concat(t,'"\n]{\n ').concat(i,"\n} | order(_createdAt desc) [0...").concat(r,"]")}},2092:function(e,t,n){"use strict";n.d(t,{rN:function(){return o},w8:function(){return i},_U:function(){return a},PU:function(){return s}});var r=n(557),o=function(e){var t=e.locale;return'count(*[\n _type == "portfolioItem" && locale == "'.concat(t,'"\n])')},i=function(e){var t=e.locale,n=e.slug;return'*[\n _type == "portfolioItem" && locale == "'.concat(t,'" && slug.current == "').concat(n,'"\n]{\n ').concat(r.M,"\n}[0]")},a=function(e){var t=e.locale,n=e.tagId,o=e.from,i=void 0===o?0:o,a=e.to,s=void 0===a?0:a,u=i>=0&&s?"[".concat(i,"...").concat(s,"]"):"",c=n?'&& references("'.concat(n,'")'):"";return'*[\n _type == "portfolioItem" && locale == "'.concat(t,'" ').concat(c,"\n]{\n ").concat(r.M,"\n} ").concat("| order(published desc)"," ").concat(u)},s=function(e){var t=e.locale,n=e.limit,o=void 0===n?10:n;return'*[\n _type == "portfolioItem" && locale == "'.concat(t,'"\n]{\n ').concat(r.M,"\n} | order(published desc) [0...").concat(o,"]")}},4593:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(9829),o=n(4501),i='\n pageRef != null =>{ "pageRef": pageRef->{\n ...,\n '.concat(o.J,'\n "blocks": blocks[]{\n ...,\n ').concat(o.J,"\n ").concat(r.y,'\n }\n } },\n contentblockRef != null =>{ "contentblockRef": contentblockRef->{\n ...,\n ').concat(o.J,'\n "blocks": blocks[]{\n ...,\n ').concat(o.J,"\n ").concat(r.y,'\n }\n } },\n productRef != null =>{ "productRef": productRef->{\n ...,\n ').concat(o.J,'\n "blocks": blocks[]{\n ...,\n ').concat(o.J,"\n ").concat(r.y,"\n }\n } },\n")},4501:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var r='\n linkInternal != null =>{ "linkInternal": linkInternal->{ locale, slug } },\n image != null =>{ "image": image{..., asset-> } },\n seoImage != null =>{ "seoImage": seoImage{..., asset-> } },\n images != null =>{ "images": images[]{ ..., asset-> } },\n file != null =>{ "file": file.asset->{ url, originalFilename, mimeType, size, _updatedAt } },\n tags != null =>{ "tags": tags[]-> },\n'},5103:function(e,t,n){"use strict";n.d(t,{PM:function(){return i},DV:function(){return a},Ie:function(){return s}});var r=n(2130),o=n(8666),i={modal:{width:"100%",padding:0,background:"transparent",position:"relative"},modalContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center"},closeIcon:{fill:r.l.text},closeButton:{background:r.l.primary,borderRadius:"3px"}},a={overlay:{background:(0,o.DZ)(r.l.background,.5)},modal:{width:"100%",height:"100%",maxWidth:"unset",margin:0,background:r.l.background,borderRadius:"3px"},modalContainer:{padding:"16px"},closeIcon:{fill:r.l.text}},s="\n.react-responsive-modal-root {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.react-responsive-modal-overlay {\n background: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: -1;\n}\n\n.react-responsive-modal-container {\n height: 100%;\n outline: 0;\n overflow-x: hidden;\n overflow-y: auto;\n text-align: center;\n}\n\n/* Used to trick the browser to center the modal content properly */\n.react-responsive-modal-containerCenter:after {\n width: 0;\n height: 100%;\n content: '';\n display: inline-block;\n vertical-align: middle;\n}\n\n.react-responsive-modal-modal {\n max-width: 800px;\n display: inline-block;\n text-align: left;\n vertical-align: middle;\n background: #ffffff;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.25);\n margin: 1.2rem;\n padding: 1.2rem;\n position: relative;\n overflow-y: auto;\n}\n\n.react-responsive-modal-closeButton {\n position: absolute;\n top: 14px;\n right: 14px;\n border: none;\n padding: 0;\n cursor: pointer;\n background-color: transparent;\n display: flex;\n}\n\n@keyframes react-responsive-modal-overlay-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes react-responsive-modal-overlay-out {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes react-responsive-modal-modal-in {\n 0% {\n transform: scale(0.96);\n opacity: 0;\n }\n 100% {\n transform: scale(100%);\n opacity: 1;\n }\n}\n\n@keyframes react-responsive-modal-modal-out {\n 0% {\n transform: scale(100%);\n opacity: 1;\n }\n 100% {\n transform: scale(0.96);\n opacity: 0;\n }\n}\n"},9319:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=function(e,t){return Math.ceil(e/12*t)},o={default:{page:["100%",r(720,12),r(960,12)],grid:["auto"]},noSidebar:{page:["100%",r(720,12),r(960,12)],grid:["auto"]},sidebarLeft:{page:["100%",r(720,12),r(960,12)],grid:["auto","".concat(r(720,3)," 1fr")]},sidebarRight:{page:["100%",r(720,12),r(960,12)],grid:["auto"," 1fr ".concat(r(720,3))]},sidebarLeftRight:{page:["100%",r(720,12),r(960,12)],grid:["auto","".concat(r(720,3)," 1fr ").concat(r(720,3))]}}},2130:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r={text:"#e8e8e8",background:"#060608",primary:"#D45D49",secondary:"#7D8062",muted:"#888",soft:"#ccc",error:"#A63D45",modes:{dark:{}}}},4413:function(e,t,n){"use strict";n.d(t,{r:function(){return w}});var r=n(7460);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var a={"a, a:link":{textDecoration:"none"},"a:hover, a:active":{textDecoration:"underline"}},s=i({textTransform:"uppercase",fontSize:2,padding:2,fontWeight:"body",color:"text"},a),u=i({textTransform:"uppercase",fontSize:2,padding:2,fontWeight:"body",color:"text"},a),c=i({textTransform:"uppercase",py:2,fontWeight:"body",color:"text"},a),l=i({textTransform:"uppercase",fontSize:2,marginLeft:3,py:2,fontWeight:"body",color:"text"},a),f=i({textTransform:"uppercase",py:3,fontWeight:"body",color:"text",textAlign:"center",borderBottom:"1px solid var(--theme-ui-colors-muted)"},a),d=i({textTransform:"uppercase",fontSize:2,marginLeft:3,py:3,fontWeight:"body",color:"text",textAlign:"center"},a),p={horizontalOn:i(i({},s),{},{fontWeight:"bold"}),horizontalOff:i({},s),horizontalSubOn:i(i({},u),{},{fontWeight:"bold"}),horizontalSubOff:i({},u),verticalOn:i(i({},c),{},{fontWeight:"bold"}),verticalOff:i({},c),verticalSubOn:i(i({},l),{},{fontWeight:"bold"}),verticalSubOff:i({},l),overlayVerticalOn:i(i({},f),{},{fontWeight:"bold"}),overlayVerticalOff:i({},f),overlayVerticalSubOn:i(i({},d),{},{fontWeight:"bold"}),overlayVerticalSubOff:i({},d)};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=v(v({root:{fontFamily:"body",lineHeight:"body",fontWeight:"body",fontSize:3,letterSpacing:.4,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased"},h1:{color:"text",fontFamily:"heading",lineHeight:"heading",fontWeight:"heading",fontSize:[4,5],paddingTop:[4,5],paddingBottom:[3,4],letterSpacing:.15},h2:{color:"text",fontFamily:"heading",lineHeight:"heading",fontWeight:"heading",fontSize:[3,4],paddingTop:3,paddingBottom:3,letterSpacing:.15},h3:{color:"text",fontFamily:"heading",lineHeight:"heading",fontWeight:"heading",fontSize:3,paddingTop:3,paddingBottom:3,letterSpacing:.15},h4:{color:"text",fontFamily:"heading",lineHeight:"heading",fontWeight:"heading",fontSize:2,paddingTop:3,paddingBottom:3,letterSpacing:.15},h5:{color:"text",fontFamily:"heading",lineHeight:"heading",fontWeight:"heading",fontSize:1,paddingTop:3,paddingBottom:3,letterSpacing:.15},h6:{color:"text",fontFamily:"heading",lineHeight:"heading",fontWeight:"heading",fontSize:0},p:{color:"text",fontFamily:"body",fontWeight:"body",lineHeight:"body",paddingBottom:3},a:{color:"primary","&:visited, &:link":{color:"inherit",outline:0},"&:active, &:hover":{color:"primary",textDecoration:"none",cursor:"pointer",WebkitTouchCallout:"none",msTouchSelect:"none"}},pre:{fontFamily:"monospace",overflowX:"auto",code:{color:"inherit"}},code:{fontFamily:"monospace",fontSize:"inherit"},table:{width:"100%",borderCollapse:"separate",borderSpacing:0},th:{textAlign:"left",borderBottomStyle:"solid"},td:{textAlign:"left",borderBottomStyle:"solid"},img:{maxWidth:"100%"},hr:{borderColor:"soft"}},{mainWrapper:{pt:[3,4]},pageHeader:{textTransform:"uppercase",fontSize:3,fontWeight:900,letterSpacing:0,"a,a:link":{display:"block",height:"100%",width:"auto",textDecoration:"none"}},pageHeaderLogo:{height:[32,48],width:"auto",objectFit:"contain",position:"relative","& svg":{fill:"currentColor",userselect:"none",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent"}},blockWrapper:{mx:"auto",px:[3,4,4,0]},pageFooter:{pb:2,width:"100%"}}),p),y=n(8666),g={paragraph:{paddingBottom:3,"a, a:link":{color:"primary"},"a:hover, a:active, a:visited":{color:"primary",textDecoration:"none"}},normal:{paddingBottom:3,"a, a:link":{color:"primary"},"a:hover, a:active, a:visited":{color:"primary",textDecoration:"none"}},lead:{fontSize:[3,4],"a, a:link":{color:"primary"},"a:hover, a:active, a:visited":{color:"primary",textDecoration:"none"}},footnote:{fontSize:1,opacity:.5},small:{fontSize:1,opacity:.5},caption:{fontSize:2,paddingBottom:3},heading:{paddingTop:3,paddingBottom:3,letterSpacing:.15},headingSection:{paddingTop:3,paddingBottom:4,letterSpacing:.15},footer:{fontSize:1,color:(0,y._j)("muted",.25),textAlign:"center","a, a:link":{color:(0,y._j)("muted",.25)},"a:hover, a:active, a:visited":{color:(0,y._j)("muted",.25),textDecoration:"none"}}},b={primary:{color:"background",bg:"primary","&:hover":{bg:(0,y._j)("primary",.1),cursor:"pointer"}},primarySmall:{color:"muted",bg:"transparent",boxShadow:"inset 0 0 0 1px muted",fontSize:0,textTransform:"uppercase",fontWeight:"bold",lineHeight:.9,pt:"8px",pb:"7px",px:2,"&:hover":{color:"background",bg:"text",boxShadow:"inset 0 0 0 1px muted",cursor:"pointer"}},secondary:{color:"background",bg:"secondary","&:hover":{bg:(0,y._j)("secondary",.1),cursor:"pointer"}},icon:{color:"inherit",bg:"transparent","&:hover":{cursor:"pointer",color:(0,y.$n)("primary",.1)}}},w={breakpoints:["540px","720px","960px","1140px"],space:[0,4,8,16,32,64,128,256,512],fonts:{body:'Roboto, "Helvetica Neue", sans-serif',heading:'Roboto, "Helvetica Neue", sans-serif',monospace:"Menlo, monospace"},fontSizes:[12,14,16,19,24,32,48,64,96],fontWeights:{body:300,heading:900,bold:700},lineHeights:{body:1.666,heading:1.3333},radii:{image:"3px",block:"3px",small:"3px",medium:"6px",large:"9px"},colors:n(2130).l,text:g,badges:{primary:{color:"background",bg:"primary"},muted:{color:"background",bg:"muted"},tag:{color:"background",textTransform:"uppercase",bg:"soft","&:hover":{color:"background",bg:"text",cursor:"pointer"}},warning:{color:"background",bg:"error"},outline:{color:"primary",bg:"transparent",boxShadow:"inset 0 0 0 1px"}},buttons:b,styles:m,zIndices:{progressbar:103,modal:60,menu:50}}},3394:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(6946)}])},7729:function(e,t,n){e.exports=n(2001)},9097:function(e,t,n){e.exports=n(4793)},9866:function(e,t,n){var r=n(2614);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},6695:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},4069:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},6563:function(e,t,n){var r=n(9866),o=n(6695),i=n(4290),a=n(4069);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},5632:function(e,t,n){e.exports=n(5564)},6465:function(e,t,n){"use strict";var r=n(2833);e.exports=function(e){return new r(e,(function(e,t){return fetch(e,t)}))}},2833:function(e){"use strict";var t=encodeURIComponent,n={}.hasOwnProperty;function r(e,t){if(!(this instanceof r))return new r(e);this.clientConfig=e,this.fetcher=t}function o(e){if(!(e.headers.get("content-type")||"").includes("json"))throw i(e);return e.json().then((function(t){if(e.status<400)return t.result;throw i(e,t)}))}function i(e,t){var n=e.url,r=e.statusText;return t&&t.error&&t.error.description&&(n=t.error.description,r=t.error.type||r),new Error("HTTP ".concat(e.status," ").concat(r,": ").concat(n))}["clone","create","createIfNotExists","createOrReplace","delete","listen","mutate","patch","transaction"].forEach((function(e){r.prototype[e]=function(e){return function(){throw new Error('Method "'.concat(e,'" not implemented, use @sanity/client'))}}(e)})),r.prototype.config=function(e){return e?(this.clientConfig=Object.assign({},this.clientConfig,e),this):this.clientConfig},r.prototype.fetch=function(e,r){var i,a=this.clientConfig,s=a.apiVersion?"v".concat(a.apiVersion.replace(/^v/,"")):"v1",u=function(e,r){var o="?query=".concat(t(e));if(!r)return o;for(var i in r)n.call(r,i)&&(o+="&".concat(t("$".concat(i)),"=").concat(t(JSON.stringify(r[i]))));return o}(e,r),c=u.length>11264,l=a.token?{Authorization:"Bearer ".concat(a.token)}:void 0,f=c?{"content-type":"application/json"}:void 0,d=Object.assign({},l,f);"undefined"!==typeof window&&(i=a.withCredentials?"include":"omit");var p=!a.useCdn||a.token||c?"api.sanity.io":"apicdn.sanity.io",h={credentials:i,headers:d,method:c?"POST":"GET",body:c?JSON.stringify({query:e,params:r}):void 0},v="https://".concat(a.projectId,".").concat(p,"/").concat(s,"/data/query/").concat(a.dataset);return this.fetcher("".concat(v).concat(c?"":u),h).then(o)},e.exports=r},6866:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=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,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=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 l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case v:case u:return e;default:return t}}case o:return t}}}function x(e){return _(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===c},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)===i},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===v},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},8570:function(e,t,n){"use strict";e.exports=n(6866)},33:function(e,t,n){"use strict";n.d(t,{u:function(){return D},Z:function(){return B}});var r=n(2784),o=n(8316),i=n(5281),a=n.n(i);var s=!1;
1if("undefined"!==typeof window){var u={get passive(){s=!0}};window.addEventListener("testPassive",null,u),window.removeEventListener("testPassive",null,u)}var c="undefined"!==typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),l=[],f=!1,d=-1,p=void 0,h=void 0,v=function(e){return l.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},m=function(e){var t=e||window.event;return!!v(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},y=function(){void 0!==h&&(document.body.style.paddingRight=h,h=void 0),void 0!==p&&(document.body.style.overflow=p,p=void 0)},g=function(e,t){if(e){if(!l.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};l=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(l),[n]),c?(e.ontouchstart=function(e){1===e.targetTouches.length&&(d=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-d;!v(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?m(e):e.stopPropagation())}(t,e)},f||(document.addEventListener("touchmove",m,s?{passive:!1}:void 0),f=!0)):function(e){if(void 0===h){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(h=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===p&&(p=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")};function b(e){const t=function(e=null){let[t,n]=r.useState(e);const{current:o}=r.useRef({current:t});return Object.defineProperty(o,"current",{get:()=>t,set:e=>{Object.is(t,e)||(t=e,n(e))}}),o}(null);return r.useEffect((()=>{e&&("function"===typeof e?e(t.current):e.current=t.current)})),t}n(4406);function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _=function(e){var t=e.classes,n=e.classNames,o=e.styles,i=e.id,s=e.closeIcon,u=e.onClick;return r.createElement("button",{id:i,className:a()(t.closeButton,null==n?void 0:n.closeButton),style:null==o?void 0:o.closeButton,onClick:u,"data-testid":"close-button"},s||r.createElement("svg",{className:null==n?void 0:n.closeIcon,style:null==o?void 0:o.closeIcon,width:28,height:28,viewBox:"0 0 36 36","data-testid":"close-icon"},r.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"})))},x="undefined"!==typeof window,S=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function k(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function O(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!0;var t=(e.form||e.ownerDocument).querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return n===e||void 0===n&&t[0]===e}function C(e){for(var t=document.activeElement,n=e.querySelectorAll(S.join(",")),r=[],o=0;o<n.length;o++){var i=n[o];(t===i||!i.disabled&&P(i)>-1&&!k(i)&&O(i))&&r.push(i)}return r}function P(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var A=function(e){var t=e.container,n=e.initialFocusRef,o=(0,r.useRef)();return(0,r.useEffect)((function(){var e=function(e){(null==t?void 0:t.current)&&function(e,t){if(e&&"Tab"===e.key){if(!t||!t.contains)return!1;if(!t.contains(e.target))return!1;var n=C(t),r=n[0],o=n[n.length-1];e.shiftKey&&e.target===r?(o.focus(),e.preventDefault()):!e.shiftKey&&e.target===o&&(r.focus(),e.preventDefault())}}(e,t.current)};if(x&&document.addEventListener("keydown",e),x&&(null==t?void 0:t.current)){var r=function(){-1!==S.findIndex((function(e){var t;return null==(t=document.activeElement)?void 0:t.matches(e)}))&&(o.current=document.activeElement)};if(n)r(),requestAnimationFrame((function(){var e;null==(e=n.current)||e.focus()}));else{var i=C(t.current);i[0]&&(r(),i[0].focus())}}return function(){var t;x&&(document.removeEventListener("keydown",e),null==(t=o.current)||t.focu
1s())}}),[t,n]),null},T=[],E=function(e){T.push(e)},j=function(e){T=T.filter((function(t){return t!==e}))},R=function(e){return!!T.length&&T[T.length-1]===e};var M=function(e,t,n,o){var i=(0,r.useRef)(null);(0,r.useEffect)((function(){return t&&e.current&&o&&(i.current=e.current,g(e.current)),function(){var e;i.current&&((e=i.current)?(l=l.filter((function(t){return t.targetElement!==e})),c?(e.ontouchstart=null,e.ontouchmove=null,f&&0===l.length&&(document.removeEventListener("touchmove",m,s?{passive:!1}:void 0),f=!1)):l.length||y()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),i.current=null)}}),[t,n,e])},I={root:"react-responsive-modal-root",overlay:"react-responsive-modal-overlay",overlayAnimationIn:"react-responsive-modal-overlay-in",overlayAnimationOut:"react-responsive-modal-overlay-out",modalContainer:"react-responsive-modal-container",modalContainerCenter:"react-responsive-modal-containerCenter",modal:"react-responsive-modal-modal",modalAnimationIn:"react-responsive-modal-modal-in",modalAnimationOut:"react-responsive-modal-modal-out",closeButton:"react-responsive-modal-closeButton"},D=r.forwardRef((function(e,t){var n,i,s,u,c=e.open,l=e.center,f=e.blockScroll,d=void 0===f||f,p=e.closeOnEsc,h=void 0===p||p,v=e.closeOnOverlayClick,m=void 0===v||v,y=e.container,g=e.showCloseIcon,S=void 0===g||g,k=e.closeIconId,O=e.closeIcon,C=e.focusTrapped,P=void 0===C||C,T=e.initialFocusRef,D=void 0===T?void 0:T,B=e.animationDuration,V=void 0===B?300:B,L=e.classNames,N=e.styles,$=e.role,F=void 0===$?"dialog":$,z=e.ariaDescribedby,W=e.ariaLabelledby,G=e.modalId,U=e.onClose,H=e.onEscKeyDown,Z=e.onOverlayClick,q=e.onAnimationEnd,X=e.children,K=b(t),Y=(0,r.useRef)(null),J=(0,r.useRef)(null),Q=(0,r.useRef)(null);null===Q.current&&x&&(Q.current=document.createElement("div"));var ee=(0,r.useState)(!1),te=ee[0],ne=ee[1];!function(e,t){(0,r.useEffect)((function(){return t&&E(e),function(){j(e)}}),[t,e])}(Y,c),M(Y,c,te,d);var re=function(e){27===e.keyCode&&R(Y)&&(null==H||H(e),h&&U())};(0,r.useEffect)((function(){return function(){te&&(Q.current&&!y&&document.body.contains(Q.current)&&document.body.removeChild(Q.current),document.removeEventListener("keydown",re))}}),[te]),(0,r.useEffect)((function(){c&&!te&&(ne(!0),!Q.current||y||document.body.contains(Q.current)||document.body.appendChild(Q.current),document.addEventListener("keydown",re))}),[c]);var oe=function(){J.current=!1},ie=y||Q.current,ae=c?null!=(n=null==L?void 0:L.overlayAnimationIn)?n:I.overlayAnimationIn:null!=(i=null==L?void 0:L.overlayAnimationOut)?i:I.overlayAnimationOut,se=c?null!=(s=null==L?void 0:L.modalAnimationIn)?s:I.modalAnimationIn:null!=(u=null==L?void 0:L.modalAnimationOut)?u:I.modalAnimationOut;return te&&ie?o.createPortal(r.createElement("div",{className:a()(I.root,null==L?void 0:L.root),style:null==N?void 0:N.root,"data-testid":"root"},r.createElement("div",{className:a()(I.overlay,null==L?void 0:L.overlay),"data-testid":"overlay","aria-hidden":!0,style:w({animation:ae+" "+V+"ms"},null==N?void 0:N.overlay)}),r.createElement("div",{ref:Y,className:a()(I.modalContainer,l&&I.modalContainerCenter,null==L?void 0:L.modalContainer),style:null==N?void 0:N.modalContainer,"data-testid":"modal-container",onClick:function(e){null===J.current&&(J.current=!0),J.current?(null==Z||Z(e),m&&U(),J.current=null):J.current=null}},r.createElement("div",{ref:K,className:a()(I.modal,null==L?void 0:L.modal),style:w({animation:se+" "+V+"ms"},null==N?void 0:N.modal),onMouseDown:oe,onMouseUp:oe,onClick:oe,onAnimationEnd:function(){c||ne(!1),null==q||q()},id:G,role:F,"aria-modal":"true","aria-labelledby":W,"aria-describedby":z,"data-testid":"modal",tabIndex:-1},P&&r.createElement(A,{container:K,initialFocusRef:D}),X,S&&r.createElement(_,{classes:I,classNames:L,styles:N,closeIcon:O,onClick:U,id:k})))),ie):null})),B=D},5281:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}
1.apply(t,[]))||(e.exports=n)}()},5163:function(e,t,n){"use strict";n.d(t,{ZT:function(){return o},pi:function(){return i},_T:function(){return a},XA:function(){return s},CR:function(){return u},ev:function(){return c}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function s(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 u(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},5721:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r=function(e){return Array.isArray(e)}},7983:function(e,t,n){"use strict";n.d(t,{ev:function(){return ye},b8:function(){return ge}});var r=n(5163),o=n(9340),i=n(1698);const a=.001;function s({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let s,c;(0,o.K)(e<=1e4,"Spring duration must be 10 seconds or less");let l=1-t;l=(0,i.u)(.05,1,l),e=(0,i.u)(.01,10,e/1e3),l<1?(s=t=>{const r=t*l,o=r*e,i=r-n,s=u(t,l),c=Math.exp(-o);return a-i/s*c},c=t=>{const r=t*l*e,o=r*n+n,i=Math.pow(l,2)*Math.pow(t,2)*e,c=Math.exp(-r),f=u(Math.pow(t,2),l);return(-s(t)+a>0?-1:1)*((o-i)*c)/f}):(s=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,c=t=>Math.exp(-t*e)*(e*e*(n-t)));const f=function(e,t,n){let r=n;for(let o=1;o<12;o++)r-=e(r)/t(r);return r}(s,c,5/e);if(e*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(f,2)*r;return{stiffness:t,damping:2*l*Math.sqrt(r*t),duration:e}}}function u(e,t){return e*Math.sqrt(1-t*t)}const c=["duration","bounce"],l=["stiffness","damping","mass"];function f(e,t){return t.some((t=>void 0!==e[t]))}function d(e){var{from:t=0,to:n=1,restSpeed:o=2,restDelta:i}=e,a=(0,r._T)(e,["from","to","restSpeed","restDelta"]);const d={done:!1,value:t};let{stiffness:h,damping:v,mass:m,velocity:y,duration:g,isResolvedFromDuration:b}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!f(e,l)&&f(e,c)){const n=s(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),w=p,_=p;function x(){const e=y?-y/1e3:0,r=n-t,o=v/(2*Math.sqrt(h*m)),a=Math.sqrt(h/m)/1e3;if(null!==i&&void 0!==i||(i=Math.abs(n-t)<=1?.01:.4),o<1){const t=u(a,o);w=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},_=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)w=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);w=i=>{const s=Math.exp(-o*a*i),u=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(u)+t*r*Math.cosh(u))/t}}}return x(),{next:e=>{const t=w(e);if(b)d.done=e>=g;else{const r=1e3*_(e),a=Math.abs(r)<=o,s=Math.abs(n-t)<=i;d.done=a&&s}return d.value=d.done?n:t,d},flipTarget:()=>{y=-y,[t,n]=[n,t],x()}}}d.needsInterpolation=(e,t)=>"string"===typeof e||"string"===typeof t;const p=e=>0;var h=n(1790),v=n(8481),m=n(9012),y=n(3203),g=n(7493);function b(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function w({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=b(s,r,e+1/3),i=b(s,r,e),a=b(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}
1const _=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},x=[m.$,y.m,g.J],S=e=>x.find((t=>t.test(e))),k=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,O=(e,t)=>{let n=S(e),r=S(t);(0,o.k)(!!n,k(e)),(0,o.k)(!!r,k(t));let i=n.parse(e),a=r.parse(t);n===g.J&&(i=w(i),n=y.m),r===g.J&&(a=w(a),r=y.m);const s=Object.assign({},i);return e=>{for(const t in s)"alpha"!==t&&(s[t]=_(i[t],a[t],e));return s.alpha=(0,v.C)(i.alpha,a.alpha,e),n.transform(s)}};var C=n(7576),P=n(6002),A=n(5091),T=n(934);function E(e,t){return(0,A.e)(e)?n=>(0,v.C)(e,t,n):C.$.test(e)?O(e,t):I(e,t)}const j=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>E(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},R=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=E(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function M(e){const t=P.P.parse(e),n=t.length;let r=0,o=0,i=0;for(let a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const I=(e,t)=>{const n=P.P.createTransformer(t),r=M(e),i=M(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?(0,T.z)(j(r.parsed,i.parsed),n):((0,o.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},D=(e,t)=>n=>(0,v.C)(e,t,n);function B(e,t,n){const r=[],o=n||("number"===typeof(i=e[0])?D:"string"===typeof i?C.$.test(i)?O:I:Array.isArray(i)?j:"object"===typeof i?R:void 0);var i;const a=e.length-1;for(let s=0;s<a;s++){let n=o(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]:t;n=(0,T.z)(e,n)}r.push(n)}return r}function V(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;(0,o.k)(s===t.length,"Both input and output ranges must be the same length"),(0,o.k)(!r||!Array.isArray(r)||r.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const u=B(t,r,a),c=2===s?function([e,t],[n]){return r=>n((0,h.Y)(e,t,r))}(e,u):function(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);i=t-1}const s=(0,h.Y)(e[i],e[i+1],o);return t[i](s)}}(e,u);return n?t=>c((0,i.u)(e[0],e[s-1],t)):c}var L=n(2075);function N(e,t){return e.map((()=>t||L.mZ)).splice(0,e.length-1)}function $({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),o);function u(){return V(s,a,{ease:Array.isArray(n)?n:N(a,n)})}let c=u();return{next:e=>(i.value=c(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),c=u()}}}const F={keyframes:$,spring:d,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const u=t+s,c=void 0===i?u:i(u);return c!==u&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};var z=n(6432);function W(e,t,n=0){return e-t-n}const G=e=>{const t=({delta:t})=>e(t);return{start:()=>z.ZP.update(t,!0),stop:()=>z.qY.update(t)}};function U(e){var t,n,{from:o,autoplay:i=!0,driver:a=G,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:l=0,onPlay:f,onStop:p,onComplete:h,onRepeat:v,onUpdate:m}=e,y=(0,r._T)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,b,w,{to:_}=y,x=0,S=y.duration,k=!1,O=!0;const C=function(e){if(Array.isArray(e.to))return $;if(F[e.type])return F[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?$:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?d:$}(y);(null===(n=(t=C).needsInterpolation)||void 0===n?void 0:n.call(t,o,_))&&(w=V([0,100],[o,_],{clamp:!1}),o=0,_=100);const P=C(Object.assign(Object.assign({},y),{from:o,to:_}));function A(){x++,"reverse"===c?(O=x%2===0,s=function(e,t,n=0,r=!0){return r?W(t+-e,t,n):t-(e-t)+n}(s,S,l,O)):(s=W(s,S,l),"mirror"===c&&P.flipTarget()),k=!1,v&&v()}function T(e){if(O||(e=-e),s+=e,!k){const e=P.next(Math.max(0,s));b=e.value,w&&(b=w(b)),k=O?e.done:s<=0}null===m||void 0===m||m(b),k&&(0===x&&(null!==S&&void 0!==S||(S=s)),x<u?function(e,t,n,r){return r?e>=t+n:e<=-n}(s,S,l,O)&&A():(g.stop(),h&&h()))}return i&&(null===f||void 0===f||f(),g=a(T),g.start()),{stop:()=>{null===p||void 0===p||p(),g.stop()}}}var H=n(4060);var Z=n(1429);const q=(e,t)=>
11-3*t+3*e,X=(e,t)=>3*t-6*e,K=e=>3*e,Y=(e,t,n)=>((q(t,n)*e+X(t,n))*e+K(t))*e,J=(e,t,n)=>3*q(t,n)*e*e+2*X(t,n)*e+K(t);const Q=.1;function ee(e,t,n,r){if(e===t&&n===r)return L.GE;const o=new Float32Array(11);for(let a=0;a<11;++a)o[a]=Y(a*Q,e,n);function i(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=Q;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*Q,s=J(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=J(t,n,r);if(0===o)return t;t-=(Y(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Y(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+Q,e,n)}return e=>0===e||1===e?e:Y(i(e),t,r)}var te={linear:L.GE,easeIn:L.YQ,easeInOut:L.mZ,easeOut:L.Vv,circIn:L.Z7,circInOut:L.X7,circOut:L.Bn,backIn:L.G2,backInOut:L.XL,backOut:L.CG,anticipate:L.LU,bounceIn:L.h9,bounceInOut:L.yD,bounceOut:L.gJ},ne=function(e){if(Array.isArray(e)){(0,o.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=(0,r.CR)(e,4);return ee(t[0],t[1],t[2],t[3])}return"string"===typeof e?((0,o.k)(void 0!==te[e],"Invalid easing type '"+e+"'"),te[e]):e},re=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!P.P.test(t)||t.startsWith("url(")))},oe=n(5721),ie=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},ae=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},se=function(){return{type:"keyframes",ease:"linear",duration:.3}},ue=function(e){return{type:"keyframes",duration:.8,values:e}},ce={x:ie,y:ie,z:ie,rotate:ie,rotateX:ie,rotateY:ie,rotateZ:ie,scaleX:ae,scaleY:ae,scale:ae,opacity:se,backgroundColor:se,color:se,default:ae},le=n(1564);var fe=!1;function de(e){var t=e.ease,n=e.times,i=e.yoyo,a=e.flip,s=e.loop,u=(0,r._T)(e,["ease","times","yoyo","flip","loop"]),c=(0,r.pi)({},u);return n&&(c.offset=n),u.duration&&(c.duration=(0,Z.w)(u.duration)),u.repeatDelay&&(c.repeatDelay=(0,Z.w)(u.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(ne):ne(t)),"tween"===u.type&&(c.type="keyframes"),(i||s||a)&&((0,o.K)(!fe,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),fe=!0,i?c.repeatType="reverse":s?c.repeatType="loop":a&&(c.repeatType="mirror"),c.repeat=s||i||a||u.repeat),"spring"!==u.type&&(c.type="keyframes"),c}function pe(e,t,n){var o;return Array.isArray(t.to)&&(null!==(o=e.duration)&&void 0!==o||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,r.ev)([],(0,r.CR)(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,r._T)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,r.pi)((0,r.pi)({},e),function(e,t){var n;return n=(0,oe.C)(t)?ue:ce[e]||ce.default,(0,r.pi)({to:t},n(t))}(n,t.to))),(0,r.pi)((0,r.pi)({},t),de(e))}function he(e,t,n,i,a){var s,u=ye(i,e),c=null!==(s=u.from)&&void 0!==s?s:t.get(),l=re(e,n);"none"===c&&l&&"string"===typeof n?c=(0,le.T)(e,n):ve(c)&&"string"===typeof n?c=me(n):!Array.isArray(n)&&ve(n)&&"string"===typeof c&&(n=me(c));var f=re(e,c);return(0,o.K)(f===l,"You are trying to animate "+e+' from "'+c+'" to "'+n+'". '+c+" is not an animatable value - to enable this animation set "+c+" to a value animatable to "+n+" via the `style` property."),f&&l&&!1!==u.type?function(){var o={from:c,to:n,velocity:t.getVelocity(),onComplete:a,onUpdate:function(e){return t.set(e)}};return"inertia"===u.type||"decay"===u.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:f,onComplete:d,onStop:p}){let h;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function m(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null===h||void 0===h||h.stop(),h=U(Object.assign(Object.assign({},e),{driver:l,onUpdate:t=>{var n;null===f||void 0===f||f(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:d,onStop:p}))}function g(e){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},e))}if(v(e))g({from:e,velocity:t,to:m(e)});else{let r=o*t+e;"undefined"!==typeof c&&(r=c(r));const a=m(r),s=a===n?-1:1;let l,f;const d=e=>{l=f,f=e,t=(0,H.R)(e-l,(0,z.$B)().delta),(1===s&&e>a||-1===s&&e<a)&&g({from:e,to:a,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:u,modifyTarget:c,onUpdate:v(r)?d:void 0})}return{stop:()=>null===h||void 0===h?void 0:h.stop()}}((0,r.pi)((0,r.pi)({},o),u)):U((0,r.pi)((0,r.pi)({},pe(u,o,e)),{onUpdate:function(e){var t;o.onUpdate(e),null===(t=u.onUpdate)||void 0===t||t.call(u,e)},onComplete:function(){var e;o.onComplete(),null===(e=u.onComplete)||void 0===e||e.call(u)}}))}:function(){var e,r;return t.set(n),a(),null===(e=null===u||void 0===u?void 0:u.onUpdate)||void 0===e||e.call(u,n),null===(r=null===u||void 0===u?void 0:u.onComplete)||void 0===r||r.call(u),{stop:function(){}}}}function ve(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function me(e){return"number"===typeof e?0:(0,le.T)("",e)}function ye(e,t){return e[t]||e.default||e}function ge(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var i,a,s=he(e,t,n,r,o),u=function(e,t){var n,r;return null!==(r=null!==(n=(ye(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return a=s()};return u?i=setTimeout(c,(0,Z.w)(u)):c(),function(){clearTimeout(i),null===a||void 0===a||a.stop()}}))}},8755:function(e,t,n){"use strict";n.d(t,{M:function(){return h}});var r=n(5163),o=n(2784),i=n(6073);var a=n(7967),s=n(3105),u=0;function c(){var e=u;return u++,e}var l=function(e){var t=e.children,n=e.initial,i=e.isPresent,u=e.onExitComplete,l=e.custom,d=e.presenceAffectsLayout,p=(0,s.h)(f),h=(0,s.h)(c),v=(0,o.useMemo)((function(){return{id:h,initial:n,isPresent:i,custom:l,onExitComplete:function(e){var t,n;p.set(e,!0);try{for(var o=(0,r.XA)(p.values()),i=o.next();!i.done;i=o.next()){if(!i.value)return}}catch(a){t={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}null===u||void 0===u||u()},register:function(e){return p.set(e,!1),function(){return p.delete(e)}}}}),d?void 0:[i]);return(0,o.useMemo)((function(){p.forEach((function(e,t){return p.set(t,!1)}))}),[i]),o.useEffect((function(){!i&&!p.size&&(null===u||void 0===u||u())}),[i]),o.createElement(a.O.Provider,{value:v},t)};function f(){return new Map}var d=n(3422);function p(e){return e.key||""}var h=function(e){var t=e.children,n=e.custom,a=e.initial,s=void 0===a||a,u=e.onExitComplete,c=e.exitBeforeEnter,f=e.presenceAffectsLayout,h=void 0===f||f,v=(0,r.CR)(function(){var e=(0,o.useRef)(!1),t=(0,r.CR)((0,o.useState)(0),2),n=t[0],a=t[1];return(0,i.z)((function(){return e.current=!0})),[(0,o.useCallback)((function(){!e.current&&a(n+1)}),[n]),n]}(),1)[0],m=(0,o.useContext)(d.p).forceRender;m&&(v=m);var y=(0,o.useRef)(!0),g=(0,o.useRef)(!0);(0,o.useEffect)((function(){return function(){g.current=!1}}),[]);var b=function(e){var t=[];
1return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),w=(0,o.useRef)(b),_=(0,o.useRef)(new Map).current,x=(0,o.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=p(e);t.set(n,e)}))}(b,_),y.current)return y.current=!1,o.createElement(o.Fragment,null,b.map((function(e){return o.createElement(l,{key:p(e),isPresent:!0,initial:!!s&&void 0,presenceAffectsLayout:h},e)})));for(var S=(0,r.ev)([],(0,r.CR)(b),!1),k=w.current.map(p),O=b.map(p),C=k.length,P=0;P<C;P++){var A=k[P];-1===O.indexOf(A)?x.add(A):x.delete(A)}return c&&x.size&&(S=[]),x.forEach((function(e){if(-1===O.indexOf(e)){var t=_.get(e);if(t){var r=k.indexOf(e);S.splice(r,0,o.createElement(l,{key:p(t),isPresent:!1,onExitComplete:function(){_.delete(e),x.delete(e);var t=w.current.findIndex((function(t){return t.key===e}));if(w.current.splice(t,1),!x.size){if(w.current=b,!1===g.current)return;v(),u&&u()}},custom:n,presenceAffectsLayout:h},t))}}})),S=S.map((function(e){var t=e.key;return x.has(t)?e:o.createElement(l,{key:p(e),isPresent:!0,presenceAffectsLayout:h},e)})),w.current=S,o.createElement(o.Fragment,null,x.size?S:S.map((function(e){return(0,o.cloneElement)(e)})))}},3422:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var r=(0,n(2784).createContext)({})},976:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var r=(0,n(2784).createContext)({transformPagePoint:function(e){return e},isStatic:!1})},7967:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=(0,n(2784).createContext)(null)},2978:function(e,t,n){"use strict";n.d(t,{E:function(){return Fr}});var r=n(5163),o=n(2784),i=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},a={measureLayout:i(["layout","layoutId","drag"]),animation:i(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:i(["exit"]),drag:i(["drag","dragControls"]),focus:i(["whileFocus"]),hover:i(["whileHover","onHoverStart","onHoverEnd"]),tap:i(["whileTap","onTap","onTapStart","onTapCancel"]),pan:i(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:i(["whileInView","onViewportEnter","onViewportLeave"])};var s=(0,o.createContext)({strict:!1}),u=Object.keys(a),c=u.length;var l=n(976),f=(0,o.createContext)({});var d=n(7967),p="undefined"!==typeof window,h=p?o.useLayoutEffect:o.useEffect;function v(e,t,n,r){var i=(0,o.useContext)(s),a=(0,o.useContext)(f).visualElement,u=(0,o.useContext)(d.O),c=(0,o.useRef)(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:a,props:n,presenceId:null===u||void 0===u?void 0:u.id,blockInitialAnimation:!1===(null===u||void 0===u?void 0:u.initial)}));var l=c.current;return h((function(){null===l||void 0===l||l.syncRender()})),(0,o.useEffect)((function(){var e;null===(e=null===l||void 0===l?void 0:l.animationState)||void 0===e||e.animateChanges()})),h((function(){return function(){return null===l||void 0===l?void 0:l.notifyUnmount()}}),[]),l}function m(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var y=n(7313);function g(e){var t=function(e,t){if((0,y.O6)(e)){var n=e.initial,r=e.animate;return{initial:!1===n||(0,y.$L)(n)?n:void 0,animate:(0,y.$L)(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(f)),n=t.initial,r=t.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}),[b(n),b(r)])}function b(e){return Array.isArray(e)?e.join(" "):e}var w=n(3105),_=n(6432),x=n(8481),S=n(226),k=function(e){return null!==e&&"object"===typeof e&&e.getVelocity},O=n(7983);var C=n(8069),P=n(2075),A=n(1790),T=["TopLeft","TopRight","BottomLeft","BottomRight"],E=T.length;function j(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var R=I(0,.5,P.Bn),M=I(.5,.95,P.GE);function I(e,t,n){return function(r){return r<e?0:r>t?1:n((0,A.Y)(e,t,r))}}function D(e,t){e.min=t.min,e.max=t.max}function B(e,t){D(e.x,t.x),D(e.y,t.y)}function V(e){return void 0===e||1===e}function L(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!V(t)||!V(n)||!V(r)}function N(e){return L(e)||$(e.x)||$(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function $(e){return e&&"0%"!==e}function F(e,t,n){return n+t*(e-n)}function z(e,t,n,r,o){return void 0!==o&&(e=F(e,o,r)),F(e,n,r)+t}function W(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=z(e.min,t,n,r,o),e.max=z(e.max,t,n,r,o)}function G(e,t){var n=t.x,r=t.y;W(e.x,n.translate,n.scale,n.originPoint),W(e.y,r.translate,r.scale,r.originPoint)}function U(e,t){e.min=e.min+t,e.max=e.max+t}function H(e,t,n){var o=(0,r.CR)(n,3),i=o[0],a=o[1],s=o[2],u=void 0!==t[s]?t[s]:.5,c=(0,x.C)(e.min,e.max,u);W(e,t[i],t[a],c,t.scale)}var Z=["x","scaleX","originX"],q=["y","scaleY","originY"];function X(e,t){H(e.x,t,Z),H(e.y,t,q)}const K=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Y=e=>K(e)&&e.hasOwnProperty("z");var J=n(5091);const Q=(e,t)=>Math.abs(e-t);function ee(e,t){if((0,J.e)(e)&&(0,J.e)(t))return Q(e,t);if(K(e)&&K(t)){const n=Q(e.x,t.x),r=Q(e.y,t.y),o=Y(e)&&Y(t)?Q(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}function te(e){return e.max-e.min}function ne(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ee(e,t)<n}function re(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=(0,x.C)(t.min,t.max,e.origin),e.scale=te(n)/te(t),(ne(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=(0,x.C)(n.min,n.max,e.origin)-e.originPoint,(ne(e.translate)||isNaN(e.translate))&&(e.translate=0)}function oe(e,t,n,r){re(e.x,t.x,n.x,null===r||void 0===r?void 0:r.originX),re(e.y,t.y,n.y,null===r||void 0===r?void 0:r.originY)}function ie(e,t,n){e.min=n.min+t.min,e.max=e.min+te(t)}function ae(e,t,n){e.min=t.min-n.min,e.max=e.min+te(t)}function se(e,t,n){ae(e.x,t.x,n.x),ae(e.y,t.y,n.y)}var ue=n(155);function ce(e,t,n,r,o){return e=F(e-=t,1/n,r),void 0!==o&&(e=F(e,1/o,r)),e}function le(e,t,n,o,i){var a=(0,r.CR)(n,3),s=a[0],u=a[1],c=a[2];!function(e,t,n,r,o,i,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===a&&(a=e),ue.aQ.test(t)&&(t=parseFloat(t),t=(0,x.C)(a.min,a.max,t/100)-a.min),"number"===typeof t){var s=(0,x.C)(i.min,i.max,r);e===i&&(s-=t),e.min=ce(e.min,t,n,s,o),e.max=ce(e.max,t,n,s,o)}}(e,t[s],t[u],t[c],t.scale,o,i)}var fe=["x","scaleX","originX"],de=["y","scaleY","originY"];function pe(e,t,n,r){le(e.x,t,fe,null===n||void 0===n?void 0:n.x,null===r||void 0===r?void 0:r.x),le(e.y,t,de,null===n||void 0===n?void 0:n.y,null===r||void 0===r?void 0:r.y
1)}function he(e){return 0===e.translate&&1===e.scale}function ve(e){return he(e.x)&&he(e.y)}function me(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var ye=n(4866),ge=function(){function e(){this.members=[]}return e.prototype.add=function(e){(0,ye.y4)(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if((0,ye.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),be={};function we(e,t,n){var r="translate3d("+e.x.translate/t.x+"px, "+e.y.translate/t.y+"px, 0) ";if(n){var o=n.rotate,i=n.rotateX,a=n.rotateY;o&&(r+="rotate("+o+"deg) "),i&&(r+="rotateX("+i+"deg) "),a&&(r+="rotateY("+a+"deg) ")}return"translate3d(0px, 0px, 0) scale(1, 1)"===(r+="scale("+e.x.scale+", "+e.y.scale+")")?"none":r}function _e(e){return[e("x"),e("y")]}var xe=["","X","Y","Z"],Se=["transformPerspective","x","y","z"];function ke(e,t){return Se.indexOf(e)-Se.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return xe.forEach((function(t){return Se.push(e+t)}))}));var Oe=new Set(Se);function Ce(e){return Oe.has(e)}var Pe=new Set(["originX","originY","originZ"]);function Ae(e){return Pe.has(e)}var Te=function(e,t){return e.depth-t.depth},Ee=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){(0,ye.y4)(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){(0,ye.cl)(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Te),this.isDirty=!1,this.children.forEach(e)},e}(),je=n(3809);function Re(e){var t=k(e)?e.get():e;return(0,je.p)(t)?t.toValue():t}var Me={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ie(e){var t=e.attachResizeListener,n=e.defaultParent,o=e.measureScroll,i=e.resetTransform;return function(){function e(e,t,o){var i=this;void 0===t&&(t={}),void 0===o&&(o=null===n||void 0===n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Fe),i.nodes.forEach(ze)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=o?o.root||o:this,this.path=o?(0,r.ev)((0,r.ev)([],(0,r.CR)(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ee)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new C.L),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.eventHandlers.get(e);null===o||void 0===o||o.notify.apply(o,(0,r.ev)([],(0,r.CR)(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var o,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,s=a.layoutId,u=a.layout,c=a.visualElement;if(c&&!c.getInstance()&&c.mount(e),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.id&&this.root.potentialNodes.delete(this.id
1),n&&(u||s)&&(this.isLayoutDirty=!0),t){var l,f=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(l),l=setTimeout(f,250),Me.hasAnimatedSinceResize&&(Me.hasAnimatedSinceResize=!1,i.nodes.forEach($e))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&c&&(s||u)&&this.addEventListener("didUpdate",(function(e){var t,n,o,a,s,u=e.delta,l=e.hasLayoutChanged,f=e.hasRelativeTargetChanged,d=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var p=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:c.getDefaultTransition())&&void 0!==n?n:qe,h=c.getProps().onLayoutAnimationComplete,v=!i.targetLayout||!me(i.targetLayout,d)||f,m=!l&&f;(null===(o=i.resumeFrom)||void 0===o?void 0:o.instance)||m||l&&(v||!i.currentAnimation)?(i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(u,m),i.startAnimation((0,r.pi)((0,r.pi)({},(0,O.ev)(p,"layout")),{onComplete:h}))):i.isLead()&&(null===(s=(a=i.options).onExitComplete)||void 0===s||s.call(a)),i.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,_.qY.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(We))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,u=a.layout;if(void 0!==s||u){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null===c||void 0===c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Le);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Xe),this.potentialNodes.clear()),this.nodes.forEach(Ne),this.nodes.forEach(De),this.nodes.forEach(Be),this.clearAllSnapshots(),_.iW.update(),_.iW.preRender(),_.iW.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Ve),this.sharedNodes.forEach(Ge)},e.prototype.scheduleUpdateProjection=function(){_.ZP.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;_.ZP.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));Ye(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++){this.path[t].updateScroll()}var n=this.measure();Ye(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure"),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null===r||void 0===r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=o(this.instance))},e.prototype.resetTransform=function(){var e;if(i){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!ve(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null===r||void 0===r?void 0:r(this.latestValues,""),a=o!==this.prevTransformTemplateValue;t&&(n||N(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(U(t.x,n.x),U(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};B(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,i=r.options;r!==this.root&&o&&i.layoutScroll&&(U(t.x,o.x),U(t.y,o.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};B(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&X(n,{x:-o.scroll.x,y:-o.scroll.y}),N(o.latestValues)&&X(n,o.latestValues)}return N(this.latestValues)&&X(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};B(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&N(o.latestValues)){L(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};B(i,o.measure()),pe(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return N(this.latestValues)&&pe(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=(0,r.pi)((0,r.pi)((0,r.pi)({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},se(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),B(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,ie(t.x,n.x,r.x),ie(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):B(this.target,this.layout.actual),G(this.target,this.targetDelta)):B(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},se(this.relativeTargetOrigin,this.target,this.relativeParent.target),B(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!N(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();B(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,i;void 0===r&&(r=!1);var a=n.length;if(a){var s,u;t.x=t.y=1;for(var c=0;c<a;c++)u=(s=n[c]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&X(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,G(e,u)),r&&N(s.latestValues)&&X(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;oe(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=we(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender())}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,o=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null===i||void 0===i?void 0:i.latestValues)||{},s=(0,r.pi)({},this.latestValues),u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var c={x:{min:0,max:0},y:{min:0,max:0}}
1,l=null===i||void 0===i?void 0:i.isShared,f=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(l&&!f&&!0===this.options.crossfade&&!this.path.some(Ze));this.mixTargetDelta=function(t){var n,r=t/1e3;Ue(u.x,e.x,r),Ue(u.y,e.y,r),o.setTargetDelta(u),o.relativeTarget&&o.relativeTargetOrigin&&o.layout&&(null===(n=o.relativeParent)||void 0===n?void 0:n.layout)&&(se(c,o.layout.actual,o.relativeParent.layout.actual),function(e,t,n,r){He(e.x,t.x,n.x,r),He(e.y,t.y,n.y,r)}(o.relativeTarget,o.relativeTargetOrigin,c,r)),l&&(o.animationValues=s,function(e,t,n,r,o,i){var a,s,u,c;o?(e.opacity=(0,x.C)(0,null!==(a=n.opacity)&&void 0!==a?a:1,R(r)),e.opacityExit=(0,x.C)(null!==(s=t.opacity)&&void 0!==s?s:1,0,M(r))):i&&(e.opacity=(0,x.C)(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var l=0;l<E;l++){var f="border"+T[l]+"Radius",d=j(t,f),p=j(n,f);if((void 0!==d||void 0!==p)&&(d||(d=0),p||(p=0),"number"===typeof d&&"number"===typeof p)){var h=Math.max((0,x.C)(d,p,r),0);e[f]=h}}(t.rotate||n.rotate)&&(e.rotate=(0,x.C)(t.rotate||0,n.rotate||0,r))}(s,a,o.latestValues,r,d,f)),o.root.scheduleUpdateProjection(),o.scheduleRender()},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,o=this;null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(_.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_.ZP.update((function(){Me.hasAnimatedSinceResize=!0,o.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=k(e)?e:(0,S.B)(e);return(0,O.b8)("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,(0,r.pi)((0,r.pi)({},e),{onUpdate:function(t){var n;o.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),o.completeAnimation()}})),o.resumingFrom&&(o.resumingFrom.currentAnimation=o.currentAnimation),o.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(B(t,n),X(t,o),oe(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new ge),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<xe.length;r++){var o="rotate"+xe[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null===e||void 0===e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,i,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Re(e.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var l={};return this.options.layoutId&&(l.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,l.pointerEvents=Re(e.pointerEvents)||""),this.hasProjected&&!N(this.latestValues)&&(l.transform=u?u({},""):"none",this.hasProjected=!1),l}var f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=we(this.projectionDeltaWithTransform,this.treeScale,f),u&&(s.transform=u(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var v in s.transformOrigin=100*p.origin+"% "+100*h.origin+"% 0",c.animationValues?s.opacity=c===this?null!==(o=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=c===this?null!==(i=f.o
1pacity)&&void 0!==i?i:"":null!==(a=f.opacityExit)&&void 0!==a?a:0,be)if(void 0!==f[v]){var m=be[v],y=m.correct,g=m.applyTo,b=y(f[v],c);if(g)for(var w=g.length,_=0;_<w;_++)s[g[_]]=b;else s[v]=b}return this.options.layoutId&&(s.pointerEvents=c===this?Re(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Le),this.root.sharedNodes.clear()},e}()}function De(e){e.updateLayout()}function Be(e){var t,n,r,o,i=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,u=a.measured;"size"===e.options.animationType?_e((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=te(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&_e((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=te(s[e]);t.max=t.min+n}));var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};oe(c,s,i.layout);var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?oe(l,e.applyTransform(u,!0),i.measured):oe(l,s,i.layout);var f=!ve(c),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,v=p.layout;if(h&&v){var m={x:{min:0,max:0},y:{min:0,max:0}};se(m,i.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};se(y,s,v.actual),me(m,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:l,layoutDelta:c,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function Ve(e){e.clearSnapshot()}function Le(e){e.clearMeasurements()}function Ne(e){e.resetTransform()}function $e(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Fe(e){e.resolveTargetDelta()}function ze(e){e.calcProjection()}function We(e){e.resetRotation()}function Ge(e){e.removeLeadSnapshot()}function Ue(e,t,n){e.translate=(0,x.C)(t.translate,0,n),e.scale=(0,x.C)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function He(e,t,n,r){e.min=(0,x.C)(t.min,n.min,r),e.max=(0,x.C)(t.max,n.max,r)}function Ze(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var qe={duration:.45,ease:[.4,0,.1,1]};function Xe(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'+t+'"]');o&&e.mount(o,!0)}function Ke(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ye(e){Ke(e.x),Ke(e.y)}var Je=1;var Qe=n(3422),et=(0,o.createContext)({});var tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(o.Component);function nt(e){var t=e.preloadedFeatures,n=e.createVisualElement,i=e.projectionNodeConstructor,d=e.useRender,h=e.useVisualState,y=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?a.projectionNodeConstructor=e[t]:a[t].Component=e[t])}(t),(0,o.forwardRef)((function(e,t){var b=function(e){var t,n=e.layoutId,r=null===(t=(0,o.useContext)(Qe.p))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=(0,r.pi)((0,r.pi)({},e),{layoutId:b});var _=(0,o.useContext)(l._),x=null,S=g(e),k=(0,w.h)((function(){if(Me.hasEverUpdated)return Je++})),O=h(e,_.isStatic);return!_.isStatic&&p&&(S.visualElement=v(y,O,(0,r.pi)((0,r.pi)({},_),e),n),function(e,t,n,r){var i,a=t.layoutId,s=t.layout,u=t.drag,c=t.dragConstraints,l=t.layoutScroll,f=(0,o.useContext)(et);r&&n&&!(null===n||void 0===n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(u)||c&&m(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"===typeof s?s:"both",initialPromotionConfig:f,layoutScroll:l}))}(k,e,S.visualElement,i||a.projectionNodeConstructor),x=function(e,t,n){var i=[];if((0,o.useContext)(s),!t)return null;for(var l=0;l<c;l++){var f=u[l],d=a[f],p=d.isEnabled,h=d.Component;p(e)&&h&&i.push(o.createElement(h,(0,r.pi)({key:f},e,{visualElement:t})))}return i}(e,S.visualElement)),o.createElement(tt,{visualElement:S.visualElement,props:(0,r.pi)((0,r.pi)({},_),e)},x,o.createElement(f.Provider,{value:S},d(y,e,k,function(e,t,n){return(0,o.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):m(n)&&(n.current=r))}),[t])}(O,S.visualElement,t),O,_.isStatic)))}))}function rt(e){function t(t,n){return void 0===n&&(n={}),nt(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var ot=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function it(e){return"string"===typeof e&&!e.includes("-")&&!!(ot.indexOf(e)>-1||/[A-Z]/.test(e))}function at(e,t){var n=t.layout,r=t.layoutId;return Ce(e)||Ae(e)||(n||void 0!==r)&&(!!be[e]||"opacity"===e)}var st={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ut(e){return e.startsWith("--")}var ct=function(e,t){return t&&"number"===typeof e?t.transform(e):e},lt=n(8073);function ft(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,u=e.transformKeys,c=e.transformOrigin;u.length=0;var l=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(ut(p))a[p]=h;else{var v=lt.j[p],m=ct(h,v);if(Ce(p)){if(l=!0,s[p]=m,u.push(p),!d)continue;h!==(null!==(o=v.default)&&void 0!==o?o:0)&&(d=!1)}else Ae(p)?(c[p]=m,f=!0):i[p]=m}}l?i.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,c=void 0===u||u,l="";i.sort(ke);for(var f=!1,d=i.length,p=0;p<d;p++){var h=i[p];l+=(st[h]||h)+"("+o[h]+") ","z"===h&&(f=!0)}return!f&&s?l+="translateZ(0)":l=l.trim(),r?l=r(o,n?"":l):c&&n&&(l="none"),l}(e,n,d,r):r&&(i.transform=r({},"")),f&&(i.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ;return n+" "+o+" "+(void 0===i?0:i)}(c))}var dt=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function pt(e,t,n){for(var r in t)k(t[r])||at(r,n)||(e[r]=t[r])}function ht(e,t,n){var i={};return pt(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return(0,o.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ft(e,t,{enableHardwareAcceleration:!n},i);var o=e.vars,a=e.style;return(0,r.pi)((0,r.pi)({},o),a)}),[t])}
1(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function vt(e,t,n){var r={},o=ht(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=o,r}var mt=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function yt(e){return mt.has(e)}var gt=function(e){return!yt(e)};try{var bt=require("@emotion/is-prop-valid").default;gt=function(e){return e.startsWith("on")?!yt(e):bt(e)}}catch(zr){}function wt(e,t,n){return"string"===typeof e?e:ue.px.transform(t+n*e)}var _t={offset:"stroke-dashoffset",array:"stroke-dasharray"},xt={offset:"strokeDashoffset",array:"strokeDasharray"};function St(e,t,n,o){var i=t.attrX,a=t.attrY,s=t.originX,u=t.originY,c=t.pathLength,l=t.pathSpacing,f=void 0===l?1:l,d=t.pathOffset,p=void 0===d?0:d;ft(e,(0,r._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,o),e.attrs=e.style,e.style={};var h=e.attrs,v=e.style,m=e.dimensions;h.transform&&(m&&(v.transform=h.transform),delete h.transform),m&&(void 0!==s||void 0!==u||v.transform)&&(v.transformOrigin=function(e,t,n){return wt(t,e.x,e.width)+" "+wt(n,e.y,e.height)}(m,void 0!==s?s:.5,void 0!==u?u:.5)),void 0!==i&&(h.x=i),void 0!==a&&(h.y=a),void 0!==c&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var i=o?_t:xt;e[i.offset]=ue.px.transform(-r);var a=ue.px.transform(t),s=ue.px.transform(n);e[i.array]=a+" "+s}(h,c,f,p,!1)}var kt=function(){return(0,r.pi)((0,r.pi)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ot(e,t){var n=(0,o.useMemo)((function(){var n=kt();return St(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),(0,r.pi)((0,r.pi)({},n.attrs),{style:(0,r.pi)({},n.style)})}),[t]);if(e.style){var i={};pt(i,e.style,e),n.style=(0,r.pi)((0,r.pi)({},i),n.style)}return n}function Ct(e){void 0===e&&(e=!1);return function(t,n,i,a,s,u){var c=s.latestValues,l=(it(t)?Ot:vt)(n,c,u),f=function(e,t,n){var r={};for(var o in e)(gt(o)||!0===n&&yt(o)||!t&&!yt(o))&&(r[o]=e[o]);return r}(n,"string"===typeof t,e),d=(0,r.pi)((0,r.pi)((0,r.pi)({},f),l),{ref:a});return i&&(d["data-projection-id"]=i),(0,o.createElement)(t,d)}}var Pt=/([a-z])([A-Z])/g,At=function(e){return e.replace(Pt,"$1-$2").toLowerCase()};function Tt(e,t,n,r){var o=t.style,i=t.vars;for(var a in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),i)e.style.setProperty(a,i[a])}var Et=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function jt(e,t){for(var n in Tt(e,t),t.attrs)e.setAttribute(Et.has(n)?n:At(n),t.attrs[n])}function Rt(e){var t=e.style,n={};for(var r in t)(k(t[r])||at(r,e))&&(n[r]=t[r]);return n}function Mt(e){var t=Rt(e);for(var n in e){if(k(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function It(e){return"object"===typeof e&&"function"===typeof e.start}function Dt(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:Vt(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Bt=function(e){return function(t,n){var r=(0,o.useContext)(f),i=(0,o.useContext)(d.O);
1return n?Dt(e,t,r,i):(0,w.h)((function(){return Dt(e,t,r,i)}))}};function Vt(e,t,n,o){var i={},a=!1===(null===n||void 0===n?void 0:n.initial),s=o(e);for(var u in s)i[u]=Re(s[u]);var c=e.initial,l=e.animate,f=(0,y.O6)(e),d=(0,y.e8)(e);t&&d&&!f&&!1!==e.inherit&&(null!==c&&void 0!==c||(c=t.initial),null!==l&&void 0!==l||(l=t.animate));var p=a||!1===c?l:c;p&&"boolean"!==typeof p&&!It(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=(0,y.oQ)(e,t);if(n){var o=n.transitionEnd;n.transition;var a=(0,r._T)(n,["transitionEnd","transition"]);for(var s in a)i[s]=a[s];for(var s in o)i[s]=o[s]}}));return i}var Lt,Nt={useVisualState:Bt({scrapeMotionValuesFromProps:Mt,createRenderState:kt,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}St(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),jt(t,r)}})},$t={useVisualState:Bt({scrapeMotionValuesFromProps:Rt,createRenderState:dt})};function Ft(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function zt(e,t,n,r){(0,o.useEffect)((function(){var o=e.current;if(n&&o)return Ft(o,t,n,r)}),[e,t,n,r])}function Wt(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Gt(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Lt||(Lt={}));var Ut={pageX:0,pageY:0};function Ht(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ut;return{x:n[t+"X"],y:n[t+"Y"]}}function Zt(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function qt(e,t){return void 0===t&&(t="page"),{point:Gt(e)?Ht(e,t):Zt(e,t)}}var Xt=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,qt(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Kt={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Yt={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Jt(e){return p&&null===window.onpointerdown?e:p&&null===window.ontouchstart?Yt[e]:p&&null===window.onmousedown?Kt[e]:e}function Qt(e,t,n,r){return Ft(e,Jt(t),Xt(n,"pointerdown"===t),r)}function en(e,t,n,r){return zt(e,Jt(t),n&&Xt(n,"pointerdown"===t),r)}function tn(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var nn=tn("dragHorizontal"),rn=tn("dragVertical");function on(e){var t=!1;if("y"===e)t=rn();else if("x"===e)t=nn();else{var n=nn(),r=rn();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function an(){var e=on(!0);return!e||(e(),!1)}function sn(e,t,n){return function(r,o){var i;Wt(r)&&!an()&&(null===n||void 0===n||n(r,o),null===(i=e.animationState)||void 0===i||i.setActive(Lt.Hover,t))}}var un=function(e,t){return!!t&&(e===t||un(e,t.parentElement))},cn=n(6073),ln=n(934);var fn=new WeakMap,dn=new WeakMap,pn=function(e){var t;null===(t=fn.get(e.target))||void 0===t||t(e)},hn=function(e){e.forEach(pn)};
1function vn(e,t,n){var o=function(e){var t=e.root,n=(0,r._T)(e,["root"]),o=t||document;dn.has(o)||dn.set(o,{});var i=dn.get(o),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(hn,(0,r.pi)({root:t},n))),i[a]}(t);return fn.set(e,n),o.observe(e),function(){fn.delete(e),o.unobserve(e)}}var mn={some:0,all:1};function yn(e,t,n,r){var i=r.root,a=r.margin,s=r.amount,u=void 0===s?"some":s,c=r.once;(0,o.useEffect)((function(){if(e){var r={root:null===i||void 0===i?void 0:i.current,rootMargin:a,threshold:"number"===typeof u?u:mn[u]};return vn(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!c||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Lt.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null===a||void 0===a||a()}}))}}),[e,i,a,u])}function gn(e,t,n){(0,o.useEffect)((function(){e&&requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null===r||void 0===r||r(),null===(e=n.animationState)||void 0===e||e.setActive(Lt.InView,!0)}))}),[e])}var bn=function(e){return function(t){return e(t),null}},wn={inView:bn((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,a=e.viewport,s=void 0===a?{}:a,u=(0,o.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(n||r||i);s.once&&u.current.hasEnteredView&&(c=!1),("undefined"===typeof IntersectionObserver?gn:yn)(c,u.current,t,s)})),tap:bn((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,a=e.visualElement,s=t||n||r||i,u=(0,o.useRef)(!1),c=(0,o.useRef)(null);function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function f(){var e;return l(),u.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Lt.Tap,!1),!an()}function d(e,n){f()&&(un(a.getInstance(),e.target)?null===t||void 0===t||t(e,n):null===r||void 0===r||r(e,n))}function p(e,t){f()&&(null===r||void 0===r||r(e,t))}en(a,"pointerdown",s?function(e,t){var r;l(),u.current||(u.current=!0,c.current=(0,ln.z)(Qt(window,"pointerup",d),Qt(window,"pointercancel",p)),null===n||void 0===n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(Lt.Tap,!0))}:void 0),(0,cn.z)(l)})),focus:bn((function(e){var t=e.whileFocus,n=e.visualElement;zt(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Lt.Focus,!0)}:void 0),zt(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Lt.Focus,!1)}:void 0)})),hover:bn((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;en(o,"pointerenter",t||r?sn(o,!0,t):void 0),en(o,"pointerleave",n||r?sn(o,!1,n):void 0)}))};function _n(){var e=(0,o.useContext)(d.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=kn();(0,o.useEffect)((function(){return r(i)}),[]);return!t&&n?[!1,function(){return null===n||void 0===n?void 0:n(i)}]:[!0]}var xn=0,Sn=function(){return xn++},kn=function(){return(0,w.h)(Sn)},On=n(5721);function Cn(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Pn=n(9413),An=[Lt.Animate,Lt.InView,Lt.Focus,Lt.Hover,Lt.Tap,Lt.Drag,Lt.Exit],Tn=(0,r.ev)([],(0,r.CR)(An),!1).reverse(),En=An.length;function jn(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return(0,Pn.d5)(e,n,r)})))}}(e),n=function(){var e;return(e={})[Lt.Animate]=Rn(!0),e[Lt.InView]=Rn(),e[Lt.Hover]=Rn(),e[Lt.Tap]=Rn(),e[Lt.Drag]=Rn(),e[Lt.Focus]=Rn(),e[Lt.Exit]=Rn(),e}(),o={},i=!0,a=function(t,n){var o=(0,y.x5)(e,n);if(o){o.transition;var i=o.transitionEnd,a=(0,r._T)(o,["transition","transitionEnd"]);t=(0,r.pi)((0,r.pi)((0,r.pi)({},t),a),i)}return t};function s(s,u){for(var c,l=e.getProps(),f=e.getVariantContext(!0)||{},d=[],p=new Set,h={},v=1/0,m=function(t){var o=Tn[t],m=n[o],g=null!==(c=l[o])&&void 0!==c?c:f[o],b=(0,y.$L)(g),w=o===u?m.isActive:null;!1===w&&(v=t);var _=g===f[o]&&g!==l[o]&&b;if(_&&i&&e.manuallyAnimateOnMount&&(_=!1),m.protectedKeys=(0,r.pi)({},h),!m.isActive&&null===w||!g&&!m.prevProp||It(g)||"boolean"===typeof g)return"continue";var x=function(e,t){if("string"===typeof t)return t!==e;if((0,y.A0)(t))return!Cn(t,e);return!1}(m.prevProp,g)||o===u&&m.isActive&&!_&&b||t>v&&b,S=Array.isArray(g)?g:[g],k=S.reduce(a,{});!1===w&&(k={});var O=m.prevResolvedValues,C=void 0===O?{}:O,P=(0,r.pi)((0,r.pi)({},C),k),A=function(e){x=!0,p.delete(e),m.needsAnimating[e]=!0};for(var T in P){var E=k[T],j=C[T];h.hasOwnProperty(T)||(E!==j?(0,On.C)(E)&&(0,On.C)(j)?Cn(E,j)?m.protectedKeys[T]=!0:A(T):void 0!==E?A(T):p.add(T):void 0!==E&&p.has(T)?A(T):m.protectedKeys[T]=!0)}m.prevProp=g,m.prevResolvedValues=k,m.isActive&&(h=(0,r.pi)((0,r.pi)({},h),k)),i&&e.blockInitialAnimation&&(x=!1),x&&!_&&d.push.apply(d,(0,r.ev)([],(0,r.CR)(S.map((function(e){return{animation:e,options:(0,r.pi)({type:o},s)}}))),!1))},g=0;g<En;g++)m(g);if(o=(0,r.pi)({},h),p.size){var b={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(b[t]=n)})),d.push({animation:b})}var w=Boolean(d.length);return i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(w=!1),i=!1,w?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,r,o){var i;return n[t].isActive===r?Promise.resolve():(null===(i=e.variantChildren)||void 0===i||i.forEac
1h((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r,s(o,t))},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Rn(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Mn={animation:bn((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=jn(t)),It(n)&&(0,o.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:bn((function(e){var t=e.custom,n=e.visualElement,i=(0,r.CR)(_n(),2),a=i[0],s=i[1],u=(0,o.useContext)(d.O);(0,o.useEffect)((function(){var e,r;n.isPresent=a;var o=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Lt.Exit,!a,{custom:null!==(r=null===u||void 0===u?void 0:u.custom)&&void 0!==r?r:t});!a&&(null===o||void 0===o||o.then(s))}),[a])}))},In=n(9340),Dn=n(1429),Bn=function(){function e(e,t,n){var o=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var e=Nn(o.lastMoveEventInfo,o.history),t=null!==o.startEvent,n=ee(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=(0,_.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var s=o.handlers,u=s.onStart,c=s.onMove;t||(u&&u(o.lastMoveEvent,e),o.startEvent=o.lastMoveEvent),c&&c(o.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){o.lastMoveEvent=e,o.lastMoveEventInfo=Vn(t,o.transformPagePoint),Wt(e)&&0===e.buttons?o.handlePointerUp(e,t):_.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(e,t){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=Nn(Vn(t,o.transformPagePoint),o.history);o.startEvent&&r&&r(e,a),i&&i(e,a)},!(Gt(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=Vn(qt(e),this.transformPagePoint),s=a.point,u=(0,_.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},s),{timestamp:u})];var c=t.onSessionStart;c&&c(e,Nn(a,this.history)),this.removeListeners=(0,ln.z)(Qt(window,"pointermove",this.handlePointerMove),Qt(window,"pointerup",this.handlePointerUp),Qt(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),_.qY.update(this.updatePoint)},e}();function Vn(e,t){return t?{point:t(e.point)}:e}function Ln(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nn(e,t){var n=e.point;return{point:n,delta:Ln(n,Fn(t)),offset:Ln(n,$n(t)),velocity:zn(t,.1)}}function $n(e){return e[0]}function Fn(e){return e[e.length-1]}function zn(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Fn(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>(0,Dn.w)(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Wn=n(1698);function Gn(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Un(e,t){var n,o=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(o=(n=(0,r.CR)([i,o],2))[0],i=n[1]),{min:o,max:i}}var Hn=.35;function Zn(e,t,n){return{min:qn(e,t),max:qn(e,n)}}function qn(e,t){var n;return"number"===typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Xn(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Kn(e,t){return Xn(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Yn=new WeakMap,Jn=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new Bn(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(qt(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=on(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),_e((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(ue.aQ.test(o)){var i=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];
1if(i)o=te(i)*(parseFloat(o)/100)}n.originPoint[e]=o})),null===s||void 0===s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Lt.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var u=t.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===a||void 0===a||a(n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),n.visualElement.syncRender(),null===s||void 0===s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null===o||void 0===o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Lt.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Qn(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?(0,x.C)(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?(0,x.C)(o,e,n.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&m(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:Gn(e.x,r,i),y:Gn(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=Hn),!1===e?e=0:!0===e&&(e=Hn),{x:Zn(e,"left","right"),y:Zn(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&_e((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!m(t))return!1;var r=t.current;(0,In.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=Kn(e,n),o=t.scroll;return o&&(U(r.x,o.x),U(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Un(e.x,t.x),y:Un(e.y,t.y)}}(o.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Xn(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,c=n.onDragTransitionEnd,l=this.constraints||{},f=_e((function(n){var c;if(Qn(n,o,t.currentDirection)){var f=null!==(c=null===l||void 0===l?void 0:l[n])&&void 0!==c?c:{};u&&(f={min:0,max:0});var d=a?200:1e6,p=a?40:1e7,h=(0,r.pi)((0,r.pi)({type:"inertia",velocity:i?e[n]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),f);return t.startAxisValueAnimation(n,h)}}));return Promise.all(f).then(c)},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);return(0,O.b8)(e,n,0,t)},e.prototype.stopAnimation=function(){var e=this;_e((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;_e((function(n){if(Qn(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(e[n]-(0,x.C)(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(m(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};_e((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();a[e]=function(e,t){var n=.5,r=te(e),o=te(t);return o>r?n=(0,A.Y)(t.min,t.max-r,e.min):r>o&&(n=(0,A.Y)(e.min,e.max-o,t.min)),(0,Wn.u)(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),_e((function(e){if(Qn(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set((0,x.C)(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Yn.set(this.visualElement,this);var n=Qt(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){m(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var a=Ft(window,"resize",(function(){t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(_e((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,o=e.dragDirectionLock,i=void 0!==o&&o,a=e.dragPropagation,s=void 0!==a&&a,u=e.dragConstraints,c=void 0!==u&&u,l=e.dragElastic,f=void 0===l?Hn:l,d=e.dragMomentum,p=void 0===d||d;return(0,r.pi)((0,r.pi)({},e),{drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:f,dragMomentum:p})},e}();function Qn(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var er={pan:bn((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,s=t||n||r||i,u=(0,o.useRef)(null),c=(0,o.useContext)(l._).transformPagePoint,f={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,o.useEffect)((function(){null!==u.current&&u.current.updateHandlers(f)}
1)),en(a,"pointerdown",s&&function(e){u.current=new Bn(e,f,{transformPagePoint:c})}),(0,cn.z)((function(){return u.current&&u.current.end()}))})),drag:bn((function(e){var t=e.dragControls,n=e.visualElement,r=(0,w.h)((function(){return new Jn(n)}));(0,o.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,o.useEffect)((function(){return r.addListeners()}),[r])}))},tr=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var nr=function(e){var t=e.treeType,n=void 0===t?"":t,o=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.removeValueFromRenderState,f=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,h=e.props,v=e.presenceId,m=e.blockInitialAnimation,g=e.visualState;void 0===t&&(t={});var b,w,x=!1,O=g.latestValues,P=g.renderState,A=function(){var e=tr.map((function(){return new C.L})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){tr.forEach((function(r){var o,i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+tr[t]]=function(t){return e.add(t)},n["notify"+tr[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.notify.apply(e,(0,r.ev)([],(0,r.CR)(t),!1))}})),n}(),T=new Map,E=new Map,j={},R=(0,r.pi)({},O);function M(){b&&x&&(I(),u(b,P,h.style,F.projection))}function I(){o(F,P,O,t,h)}function D(){A.notifyUpdate(O)}var B=d(h);for(var V in B){var L=B[V];void 0!==O[V]&&k(L)&&L.set(O[V],!1)}var N=(0,y.O6)(h),$=(0,y.e8)(h),F=(0,r.pi)((0,r.pi)({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:v,variantChildren:$?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===p||void 0===p?void 0:p.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(b)},mount:function(e){x=!0,b=F.current=e,F.projection&&F.projection.mount(e),$&&p&&!N&&(w=null===p||void 0===p?void 0:p.addVariantChild(F)),null===p||void 0===p||p.children.add(F),F.setProps(h)},unmount:function(){var e;null===(e=F.projection)||void 0===e||e.unmount(),_.qY.update(D),_.qY.render(M),E.forEac
1h((function(e){return e()})),null===w||void 0===w||w(),null===p||void 0===p||p.children.delete(F),A.clearAllListeners(),b=void 0,x=!1},addVariantChild:function(e){var t,n=F.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return f&&n===e.treeType?f(F.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return $?F:null===p||void 0===p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return b},getStaticValue:function(e){return O[e]},setStaticValue:function(e,t){return O[e]=t},getLatestValues:function(){return O},setVisibility:function(e){F.isVisible!==e&&(F.isVisible=e,F.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(F,e,h,t)},measureViewportBox:function(){return s(b,h)},addValue:function(e,t){F.hasValue(e)&&F.removeValue(e),T.set(e,t),O[e]=t.get(),function(e,t){var n=t.onChange((function(t){O[e]=t,h.onUpdate&&_.ZP.update(D,!1,!0)})),r=t.onRenderRequest(F.scheduleRender);E.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;T.delete(e),null===(t=E.get(e))||void 0===t||t(),E.delete(e),delete O[e],l(e,P)},hasValue:function(e){return T.has(e)},getValue:function(e,t){var n=T.get(e);return void 0===n&&void 0!==t&&(n=(0,S.B)(t),F.addValue(e,n)),n},forEachValue:function(e){return T.forEach(e)},readValue:function(e){var n;return null!==(n=O[e])&&void 0!==n?n:c(b,e,t)},setBaseTarget:function(e,t){R[e]=t},getBaseTarget:function(e){if(i){var t=i(h,e);if(void 0!==t&&!k(t))return t}return R[e]}},A),{build:function(){return I(),P},scheduleRender:function(){_.ZP.render(M,!1,!0)},syncRender:M,setProps:function(e){h=e,A.updatePropListeners(e),j=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(k(i))e.addValue(o,i);else if(k(a))e.addValue(o,(0,S.B)(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,(0,S.B)(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(F,d(h),j)},getProps:function(){return h},getVariant:function(e){var t;return null===(t=h.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null===p||void 0===p?void 0:p.getVariantContext();if(!N){var t=(null===p||void 0===p?void 0:p.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}for(var n={},r=0;r<or;r++){var o=rr[r],i=h[o];((0,y.$L)(i)||!1===i)&&(n[o]=i)}return n}});return F}},rr=(0,r.ev)(["initial"],(0,r.CR)(An),!1),or=rr.length,ir=n(8617);function ar(e){return"string"===typeof e&&e.startsWith("var(--")}var sr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ur(e,t,n){void 0===n&&(n=1),(0,In.k)(n<=4,'Max CSS variable fallback depth detected in property "'+e+'". This may indicate a circular fallback dependency.');var o=(0,r.CR)(function(e){var t=sr.exec(e);if(!t)return[,];var n=(0,r.CR)(t,3);return[n[1],n[2]]}(e),2),i=o[0],a=o[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():ar(a)?ur(a,t,n+1):a}}var cr,lr=n(1513),fr=n(2289),dr=new Set(["width","height","top","left","right","bottom","x","y"]),pr=function(e){return dr.has(e)},hr=function(e,t){e.set(t,!1),e.set(t)},vr=function(e){return e===lr.Rx||e===ue.px};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(cr||(cr={}));var mr=function(e,t){return parseFloat(e.split(", ")[t])},yr=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return mr(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?mr(a[1],e):0}},gr=new Set(["x","y","z"]),br=Se.filter((function(e){return!gr.has(e)}));var wr={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,i=t.paddingRight,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,i=t.paddingBottom,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:yr(4,13),y:yr(5,14)},_r=function(e,t,n,o){void 0===n&&(n={}),void 0===o&&(o={}),t=(0,r.pi)({},t),o=(0,r.pi)({},o);var i=Object.keys(t).filter(pr),a=[],s=!1,u=[];
1if(i.forEach((function(r){var i=e.getValue(r);if(e.hasValue(r)){var c,l=n[r],f=(0,fr.C)(l),d=t[r];if((0,On.C)(d)){var p=d.length,h=null===d[0]?1:0;l=d[h],f=(0,fr.C)(l);for(var v=h;v<p;v++)c?(0,In.k)((0,fr.C)(d[v])===c,"All keyframes must be of the same type"):(c=(0,fr.C)(d[v]),(0,In.k)(c===f||vr(f)&&vr(c),"Keyframes must be of the same dimension as the current value"))}else c=(0,fr.C)(d);if(f!==c)if(vr(f)&&vr(c)){var m=i.get();"string"===typeof m&&i.set(parseFloat(m)),"string"===typeof d?t[r]=parseFloat(d):Array.isArray(d)&&c===ue.px&&(t[r]=d.map(parseFloat))}else(null===f||void 0===f?void 0:f.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===l||0===d)?0===l?i.set(c.transform(l)):t[r]=f.transform(d):(s||(a=function(e){var t=[];return br.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),s=!0),u.push(r),o[r]=void 0!==o[r]?o[r]:t[r],hr(i,d))}})),u.length){var c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=wr[e](r,i)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);hr(r,s[n]),e[n]=wr[n](u,i)})),e}(t,e,u);return a.length&&a.forEach((function(t){var n=(0,r.CR)(t,2),o=n[0],i=n[1];e.getValue(o).set(i)})),e.syncRender(),{target:c,transitionEnd:o}}return{target:t,transitionEnd:o}};function xr(e,t,n,r){return function(e){return Object.keys(e).some(pr)}(t)?_r(e,t,n,r):{target:t,transitionEnd:r}}var Sr=function(e,t,n,o){var i=function(e,t,n){var o,i=(0,r._T)(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:n};for(var s in n&&(n=(0,r.pi)({},n)),e.forEachValue((function(e){var t=e.get();if(ar(t)){var n=ur(t,a);n&&e.set(n)}})),i){var u=i[s];if(ar(u)){var c=ur(u,a);c&&(i[s]=c,n&&(null!==(o=n[s])&&void 0!==o||(n[s]=u)))}}return{target:i,transitionEnd:n}}(e,t,o);return xr(e,t=i.target,n,o=i.transitionEnd)},kr=n(8434);var Or={treeType:"dom",readValueFromInstance:function(e,t){if(Ce(t)){var n=(0,kr.A)(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(ut(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Kn(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,o){var i=n.transformValues;void 0===o&&(o=!0);var a=t.transition,s=t.transitionEnd,u=(0,r._T)(t,["transition","transitionEnd"]),c=(0,ir.P$)(u,a||{},e);if(i&&(s&&(s=i(s)),u&&(u=i(u)),c&&(c=i(c))),o){(0,ir.GJ)(e,u,c);var l=Sr(e,u,c,s);s=l.transitionEnd,u=l.target}return(0,r.pi)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:Rt,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),ft(t,n,r,o.transformTemplate)},render:Tt},Cr=nr(Or),Pr=nr((0,r.pi)((0,r.pi)({},Or),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ce(t)?(null===(n=(0,kr.A)(t))||void 0===n?void 0:n.default)||0:(t=Et.has(t)?t:At(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Mt,build:function(e,t,n,r,o){St(t,n,r,o.transformTemplate)},render:jt})),Ar=function(e,t){return it(e)?Pr(t,{enableHardwareAcceleration:!1}):Cr(t,{enableHardwareAcceleration:!0})};function Tr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Er={correct:function(e,t){if(!t.target)return e;if("string"===typeof e){if(!ue.px.test(e))return e;e=parseFloat(e)}return Tr(e,t.target.x)+"% "+Tr(e,t.target.y)+"%"}},jr=n(6002),Rr="_$css",Mr={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(sr,(function(e){return a.push(e),Rr})));var s=jr.P.parse(e);if(s.length>5)return o;var u=jr.P.createTransformer(e),c="number"!==typeof s[0]?1:0,l=r.x.scale*n.x,f=r.y.scale*n.y;s[0+c]/=l,s[1+c]/=f;var d=(0,x.C)(l,f,.5);"number"===typeof s[2+c]&&(s[2+c]/=d),"number"===typeof s[3+c]&&
1(s[3+c]/=d);var p=u(s);if(i){var h=0;p=p.replace(Rr,(function(){var e=a[h];return h++,e}))}return p}},Ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,o=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=o.projection;e=Dr,Object.assign(be,e),u&&((null===i||void 0===i?void 0:i.group)&&i.group.add(u),(null===a||void 0===a?void 0:a.register)&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){t.safeToRemove()})),u.setOptions((0,r.pi)((0,r.pi)({},u.options),{onExitComplete:function(){return t.safeToRemove()}}))),Me.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||_.ZP.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null===n||void 0===n?void 0:n.group)&&n.group.remove(o),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null===e||void 0===e||e()},t.prototype.render=function(){return null},t}(o.Component);var Dr={borderRadius:(0,r.pi)((0,r.pi)({},Er),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Er,borderTopRightRadius:Er,borderBottomLeftRadius:Er,borderBottomRightRadius:Er,boxShadow:Mr},Br={measureLayout:function(e){var t=(0,r.CR)(_n(),2),n=t[0],i=t[1],a=(0,o.useContext)(Qe.p);return o.createElement(Ir,(0,r.pi)({},e,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(et),isPresent:n,safeToRemove:i}))}},Vr=Ie({attachResizeListener:function(e,t){return e.addEventListener("resize",t,{passive:!0}),function(){return e.removeEventListener("resize",t)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Lr={current:void 0},Nr=Ie({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Lr.current){var e=new Vr(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Lr.current=e}return Lr.current},resetTransform:function(e,t){e.style.transform=null!==t&&void 0!==t?t:"none"}}),$r=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},Mn),wn),er),Br),Fr=rt((function(e,t){return function(e,t,n,o,i){var a=t.forwardMotionProps,s=void 0!==a&&a,u=it(e)?Nt:$t;return(0,r.pi)((0,r.pi)({},u),{preloadedFeatures:n,useRender:Ct(s),createVisualElement:o,projectionNodeConstructor:i,Component:e})}(e,t,$r,Ar,Nr)}))},1564:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(9500),o=n(6002),i=n(8434);function a(e,t){var n,a=(0,i.A)(e);return a!==r.h&&(a=o.P),null===(n=a.getAnimatableNone)||void 0===n?void 0:n.call(a,t)}},8434:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(5163),o=n(7576),i=n(9500),a=n(8073),s=(0,r.pi)((0,r.pi)({},a.j),{color:o.$,backgroundColor:o.$,outlineColor:o.$,fill:o.$,stroke:o.$,borderColor:o.$,borderTopColor:o.$,borderRightColor:o.$,borderBottomColor:o.$,borderLeftColor:o.$,filter:i.h,WebkitFilter:i.h}),u=function(e){return s[e]}},2289:function(e,t,n){"use strict";n.d(t,{$:function(){return a},C:function(){return s}});var r=n(1513),o=n(155),i=n(3624),a=[r.Rx,o.px,o.aQ,o.RW,o.vw,o.vh,{test:function(e){return"auto"===e},parse:function(e){return e}}],s=function(e){return a.find((0,i.l)(e))}},8073:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(155),o=n(1513),i=n(5163),a=(0,i.pi)((0,i.pi)({},o.Rx),{transform:Math.round}),s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:a,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:a}},3624:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=function(e){return function(t){return t.test(e)}}},9413:function(e,t,n){"use strict";n.d(t,{d5:function(){return s},p_:function(){return l}});var r=n(5163),o=n(7983),i=n(8617),a=n(7313);function s(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return u(e,t,n)}));r=Promise.all(o)}else if("string"===typeof t)r=u(e,t,n);else{var i="function"===typeof t?(0,a.x5)(e,t,n.custom):t;r=c(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}function u(e,t,n){var o;void 0===n&&(n={});var i=(0,a.x5)(e,t,n.custom),s=(i||{}).transition,l=void 0===s?e.getDefaultTransition()||{}:s;n.transitionOverride&&(l=n.transitionOverride);var d=i?function(){return c(e,i,n)}:function(){return Promise.resolve()},p=(null===(o=e.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=l.delayChildren,a=void 0===i?0:i,s=l.staggerChildren,c=l.staggerDirection;return function(e,t,n,o,i,a){void 0===n&&(n=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],c=(e.variantChildren.size-1)*o,l=1===i?function(e){return void 0===e&&(e=0),e*o}:function(e){return void 0===e&&(e=0),c-e*o};return Array.from(e.variantChildren).sort(f).forEach((function(e,o){s.push(u(e,t,(0,r.pi)((0,r.pi)({},a),{delay:n+l(o)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+o,s,c,n)}:function(){return Promise.resolve()},h=l.when;if(h){var v=(0,r.CR)("beforeChildren"===h?[d,p]:[p,d],2),m=v[0],y=v[1];return m().then(y)}return Promise.all([d(),p(n.delay)])}
1function c(e,t,n){var a,s=void 0===n?{}:n,u=s.delay,c=void 0===u?0:u,l=s.transitionOverride,f=s.type,p=e.makeTargetAnimatable(t),h=p.transition,v=void 0===h?e.getDefaultTransition():h,m=p.transitionEnd,y=(0,r._T)(p,["transition","transitionEnd"]);l&&(v=l);var g=[],b=f&&(null===(a=e.animationState)||void 0===a?void 0:a.getState()[f]);for(var w in y){var _=e.getValue(w),x=y[w];if(!(!_||void 0===x||b&&d(b,w))){var S=(0,o.b8)(w,_,x,(0,r.pi)({delay:c},v));g.push(S)}}return Promise.all(g).then((function(){m&&(0,i.CD)(e,m)}))}function l(e){e.forEachValue((function(e){return e.stop()}))}function f(e,t){return e.sortNodePosition(t)}function d(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}},8617:function(e,t,n){"use strict";n.d(t,{GJ:function(){return b},P$:function(){return _},CD:function(){return m},gg:function(){return g}});var r=n(5163),o=n(6002),i=function(e){return/^0[^.\s]+$/.test(e)},a=n(3809),s=n(226),u=n(1564),c=n(7576),l=n(2289),f=n(3624),d=(0,r.ev)((0,r.ev)([],(0,r.CR)(l.$),!1),[c.$,o.P],!1),p=function(e){return d.find((0,f.l)(e))},h=n(7313);function v(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,s.B)(n))}function m(e,t){var n=(0,h.x5)(e,t),o=n?e.makeTargetAnimatable(n,!1):{},i=o.transitionEnd,s=void 0===i?{}:i;o.transition;var u=(0,r._T)(o,["transitionEnd","transition"]);for(var c in u=(0,r.pi)((0,r.pi)({},u),s)){v(e,c,(0,a.Y)(u[c]))}}function y(e,t){(0,r.ev)([],(0,r.CR)(t),!1).reverse().forEach((function(n){var r,o=e.getVariant(n);o&&m(e,o),null===(r=e.variantChildren)||void 0===r||r.forEach((function(e){y(e,t)}))}))}function g(e,t){return Array.isArray(t)?y(e,t):"string"===typeof t?y(e,[t]):void m(e,t)}function b(e,t,n){var r,a,c,l,f=Object.keys(t).filter((function(t){return!e.hasValue(t)})),d=f.length;if(d)for(var h=0;h<d;h++){var v=f[h],m=t[v],y=null;Array.isArray(m)&&(y=m[0]),null===y&&(y=null!==(a=null!==(r=n[v])&&void 0!==r?r:e.readValue(v))&&void 0!==a?a:t[v]),void 0!==y&&null!==y&&("string"===typeof y&&(/^\-?\d*\.?\d+$/.test(y)||i(y))?y=parseFloat(y):!p(y)&&o.P.test(m)&&(y=(0,u.T)(v,m)),e.addValue(v,(0,s.B)(y)),null!==(c=(l=n)[v])&&void 0!==c||(l[v]=y),e.setBaseTarget(v,y))}}function w(e,t){if(t)return(t[e]||t.default||t).from}function _(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=w(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}},7313:function(e,t,n){"use strict";function r(e){return Array.isArray(e)}function o(e){return"string"===typeof e||r(e)}function i(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:e.custom,r,o)),"string"===typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:e.custom,r,o)),t}function a(e,t,n){var r=e.getProps();return i(r,t,null!==n&&void 0!==n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function s(e){var t;return"function"===typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||o(e.initial)||o(e.animate)||o(e.whileHover)||o(e.whileDrag)||o(e.whileTap)||o(e.whileFocus)||o(e.exit)}function u(e){return Boolean(s(e)||e.variants)}n.d(t,{O6:function(){return s},e8:function(){return u},$L:function(){return o},A0:function(){return r},x5:function(){return a},oQ:function(){return i}})},4866:function(e,t,n){"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}function o(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{y4:function(){return r},cl:function(){return o}})},3809:function(e,t,n){"use strict";n.d(t,{p:function(){return o},Y:function(){return i}});var r=n(5721),o=function(e){return Boolean(e&&"object"===typeof e&&e.mix&&e.toValue)},i=function(e){return(0,r.C)(e)?e[e.length-1]||0:e}},8069:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(4866),o=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return(0,r.y4)(this.subscriptions,e),function(){return(0,r.cl)(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;
1if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}()},1429:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var r=function(e){return 1e3*e}},3105:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(2784);function o(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6073:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(2784);function o(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},226:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=n(6432),o=n(4060),i=n(8069),a=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new i.L,this.velocityUpdateSubscribers=new i.L,this.renderSubscribers=new i.L,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var o=(0,r.$B)(),i=o.delta,a=o.timestamp;n.lastUpdated!==a&&(n.timeDelta=i,n.lastUpdated=a,r.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return r.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function s(e){return new a(e)}},6432:function(e,t,n){"use strict";n.d(t,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return g}});const r=1/60*1e3,o="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),i="undefined"!==typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(o())),r);let a=!0,s=!1,u=!1;const c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],f=l.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const u=s&&o,c=u?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),u&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:u=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(u),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(u))}}};return s}((()=>s=!0)),e)),{}),d=l.reduce(((e,t)=>{const n=f[t];return e[t]=(e,t=!1,r=!1)=>(s||y(),n.schedule(e,t,r)),e}),{}),p=l.reduce(((e,t)=>(e[t]=f[t].cancel,e)),{}),h=l.reduce(((e,t)=>(e[t]=()=>f[t].process(c),e)),{}),v=e=>f[e].process(c),m=e=>{s=!1,c.delta=a?r:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,u=!0,l.forEach(v),u=!1,s&&(a=!1,i(m))},y=()=>{s=!0,a=!0,u||i(m)},g=()=>c;var b=d},4698:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},9207:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,u,"next",e)}function u(e){r(a,o,i,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return o}})},7460:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},7245:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4698);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.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)?(0,r.Z)(e,t):void 0}}},2075:function(e,t,n){"use strict";n.d(t,{LU:function(){return y},G2:function(){return h},XL:function(){return m},CG:function(){return v},h9:function(){return b},yD:function(){return w},gJ:function(){return g},Z7:function(){return f},X7:function(){return p},Bn:function(){return d},YQ:function(){return s},mZ:function(){return l},Vv:function(){return c},GE:function(){return a}});const r=e=>t=>1-e(1-t),o=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i=e=>t=>t*t*((e+1)*t-e),a=e=>e,s=(u=2,e=>Math.pow(e,u));var u;const c=r(s),l=o(s),f=e=>1-Math.sin(Math.acos(e)),d=r(f),p=o(d),h=i(1.525),v=r(h),m=o(h),y=(e=>{const t=i(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),g=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},b=r(g),w=e=>e<.5?.5*(1-g(1-2*e)):.5*g(2*e-1)+.5},1698:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});const r=(e,t,n)=>Math.min(Math.max(n,e),t)},5091:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});const r=e=>"number"===typeof e},8481:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});const r=(e,t,n)=>-n*e+n*t+e},934:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});const r=(e,t)=>n=>t(e(n)),o=(...e)=>e.reduce(r)},1790:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});const r=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r}},4060:function(e,t,n){"use strict";function r(e,t){return t?e*(1e3/t):0}n.d(t,{R:function(){return r}})},9012:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
1a:o?parseInt(o,16)/255:1}},transform:r.m.transform}},7493:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var r=n(1513),o=n(155),i=n(5757),a=n(1552);const s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+o.aQ.transform((0,i.Nw)(t))+", "+o.aQ.transform((0,i.Nw)(n))+", "+(0,i.Nw)(r.Fq.transform(a))+")"}},7576:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(5757),o=n(9012),i=n(7493),a=n(3203);const s={test:e=>a.m.test(e)||o.$.test(e)||i.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):i.J.test(e)?i.J.parse(e):o.$.parse(e),transform:e=>(0,r.HD)(e)?e:e.hasOwnProperty("red")?a.m.transform(e):i.J.transform(e)}},3203:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(1513),o=n(5757),i=n(1552);const a=(0,o.uZ)(0,255),s=Object.assign(Object.assign({},r.Rx),{transform:e=>Math.round(a(e))}),u={test:(0,i.i)("rgb","red"),parse:(0,i.d)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+s.transform(e)+", "+s.transform(t)+", "+s.transform(n)+", "+(0,o.Nw)(r.Fq.transform(i))+")"}},1552:function(e,t,n){"use strict";n.d(t,{i:function(){return o},d:function(){return i}});var r=n(5757);const o=(e,t)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),i=(e,t,n)=>o=>{if(!(0,r.HD)(o))return o;const[i,a,s,u]=o.match(r.KP);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==u?parseFloat(u):1}}},9500:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(6002),o=n(5757);const i=new Set(["brightness","contrast","saturate","opacity"]);function a(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(o.KP)||[];if(!r)return e;const a=n.replace(r,"");let s=i.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const s=/([a-z-]*)\(.*?\)/g,u=Object.assign(Object.assign({},r.P),{getAnimatableNone:e=>{const t=e.match(s);return t?t.map(a).join(" "):e}})},6002:function(e,t,n){"use strict";n.d(t,{P:function(){return d}});var r=n(7576),o=n(1513),i=n(5757);const a="${c}",s="${n}";function u(e){"number"===typeof e&&(e=`${e}`);const t=[];let n=0;const u=e.match(i.dA);u&&(n=u.length,e=e.replace(i.dA,a),t.push(...u.map(r.$.parse)));const c=e.match(i.KP);return c&&(e=e.replace(i.KP,s),t.push(...c.map(o.Rx.parse))),{values:t,numColors:n,tokenised:e}}function c(e){return u(e).values}function l(e){const{values:t,numColors:n,tokenised:o}=u(e),c=t.length;return e=>{let t=o;for(let o=0;o<c;o++)t=t.replace(o<n?a:s,o<n?r.$.transform(e[o]):(0,i.Nw)(e[o]));return t}}const f=e=>"number"===typeof e?0:e;const d={test:function(e){var t,n,r,o;return isNaN(e)&&(0,i.HD)(e)&&(null!==(n=null===(t=e.match(i.KP))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(i.dA))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:c,createTransformer:l,getAnimatableNone:function(e){const t=c(e);return l(e)(t.map(f))}}},1513:function(e,t,n){"use strict";n.d(t,{Fq:function(){return i},Rx:function(){return o},bA:function(){return a}});var r=n(5757);const o={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},i=Object.assign(Object.assign({},o),{transform:(0,r.uZ)(0,1)}),a=Object.assign(Object.assign({},o),{default:1})},155:function(e,t,n){"use strict";n.d(t,{RW:function(){return i},aQ:function(){return a},$C:function(){return l},px:function(){return s},vh:function(){return u},vw:function(){return c}});var r=n(5757);const o=e=>({test:t=>(0,r.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=o("deg"),a=o("%"),s=o("px"),u=o("vh"),c=o("vw"),l=Object.assign(Object.assign({},a),{parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)})},5757:function(e,t,n){"use strict";n.d(t,{uZ:function(){return r},dA:function(){return a},KP:function(){return i},HD:function(){return u},Nw:function(){return o},mj:function(){return s}});const r=(e,t)=>n=>Math.max(Math.min(n,t),e),o=e=>e%1?Number(e.toFixed(5)):e,i=/(-)?([\d]*\.?[\d])+/g,a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,s=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function u(e){return"string"===typeof e}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],(function(){return t(3394),t(5564)}
1));var n=e.O();_N_E=n}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.