PageSourceSearch

https://da-moondisaster.surge.sh/app-18b3045a9cad28f41520.js

js da-moondisaster.surge.sh collected 2026-10-03 14:55:43 UTC 321,171 bytes, 3 lines download raw bytes

vendor: 1,401 bytes, lines 1-2
1/*! For license information please see app-18b3045a9cad28f41520.js.LICENSE.txt */
2(self.webpackChunkmoon_disaster=self.webpackChunkmoon_disaster||[]).push([[143],{7411:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,638 bytes, line 2
2,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function f(e,t,n){return e.slice(t,n)}function d(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var v=1,g=1,m=0,y=0,b=0,w="";function k(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:v,column:g,length:a,return:""}}function x(e,t){return a(k("",null,null,"",null,null,0),e,{length:-e.length},t)}function C(){return b=y>0?l(w,--y):0,g--,10===b&&(g=1,v--),b}function M(){return b=y<m?l(w,y++):0,g++,10===b&&(g=1,v++),b}function O(){return l(w,y)}function E(){return y}function I(e,t){return f(w,e,t)}function S(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 j(e){return v=g=1,m=d(w=e),y=0,[]}function A(e){return w="",e}function D(e){return s(I(y-1,P(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(b=O())&&b<33;)M();return S(e)>2||S(b)>3?"":" "}function N(e,t){for(;--t&&M()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return I(e,E()+(t<6&&32==O()&&32==M()))}function P(e){for(;M();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&P(b);break;case 40:41===e&&P(e);break;case 92:M()}return y}function T(e,t){for(;M()&&e+b!==57&&(e+b!==84||47!==O()););return"/*"+I(t,y-1)+"*"+i(47===e?e:M())}function _(e){for(;!S(O());)M();return I(e,y)}var R="-ms-",B="-moz-",U="-webkit-",z="comm",Z="rule",F="decl",H="@keyframes";function W(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case"@import":case F:return e.return=e.return||e.value;case z:return"";case H:return e.return=e.value+"{"+W(e.children,r)+"}";case Z:e.value=e.props.join(",")}return d(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function Q(e,t){switch(function(e,t){return(((t<<2^l(e,0))<<2^l(e,1))<<2^l(e,2))<<2^l(e,3)}(e,t)){case 5103:return U+"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 U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+B+e+R+e+e;case 6828:case 4268:return U+e+R+e+e;case 6165:return U+e+R+"flex-"+e+e;case 5187:return U+e+u(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return U+e+R+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return U+e+R+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+R+u(e,"shrink","negative")+e;case 5292:return U+e+R+u(e,"basis","preferred-size")+e;case 6060:return U+"box-"+u(e,"-grow","")+U+e+R+u(e,"grow","positive")+e;case 4554:return U+u(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-t>6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+B+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?Q(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return u(e,":",":"+U)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===l(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+R+"$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return U+e+R+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+R+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+R+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+R+e+e}return e}function Y(e){return A(K("",null,null,null,[""],e=j(e),0,[0],e))}function K(e,t,n,r,o,a,s,l,f){for(var p=0,v=0,g=s,m=0,y=0,b=0,w=1,k=1,x=1,I=0,S="",j=o,A=a,P=r,R=S;k;)switch(b=I,I=M()){case 40:if(108!=b&&58==R.charCodeAt(g-1)){-1!=c(R+=u(D(I),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:R+=D(I);break;case 9:case 10:case 13:case 32:R+=L(b);break;case 92:R+=N(E()-1,7);continue;case 47:switch(O()){case 42:case 47:h(V(T(M(),E()),t,n),f);break;default:R+="/"}break;case 123*w:l[p++]=d(R)*x;case 125*w:case 59:case 0:switch(I){case 0:case 125:k=0;case 59+v:y>0&&d(R)-g&&h(y>32?$(R+";",r,n,g-1):$(u(R," ","")+";",r,n,g-2),f);break;case 59:R+=";";default:if(h(P=G(R,t,n,p,v,o,l,S,j=[],A=[],g),a),123===I)if(0===v)K(R,t,P,P,j,a,g,l,A);else switch(m){case 100:case 109:case 115:K(e,P,P,r&&h(G(e,P,P,0,0,o,l,S,o,j=[],g),A),o,A,g,l,r?j:A);break;default:K(R,P,P,P,[""],A,0,l,A)}}p=v=y=0,w=x=1,S=R="",g=s;break;case 58:g=1+d(R),y=b;default:if(w<1)if(123==I)--w;else if(125==I&&0==w++&&125==C())continue;switch(R+=i(I),I*w){case 38:x=v>0?1:(R+="\f",-1);break;case 44:l[p++]=(d(R)-1)*x,x=1;break;case 64:45===O()&&(R+=D(M())),m=O(),v=g=d(S=R+=_(E())),I++;break;case 45:45===b&&2==d(R)&&(w=0)}}return a}function G(e,t,n,r,i,a,c,l,d,h,v){for(var g=i-1,m=0===i?a:[""],y=p(m),b=0,w=0,x=0;b<r;++b)for(var C=0,M=f(e,g+1,g=o(w=c[b])),O=e;C<y;++C)(O=s(w>
20?m[C]+" "+M:u(M,/&\f/g,m[C])))&&(d[x++]=O);return k(e,t,n,0===i?Z:l,d,h,v)}function V(e,t,n){return k(e,t,n,z,i(b),f(e,2,-2),0)}function $(e,t,n,r){return k(e,t,n,F,f(e,0,r),f(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,o=0;r=o,o=O(),38===r&&12===o&&(t[n]=1),!S(o);)M();return I(e,y)},X=function(e,t){return A(function(e,t){var n=-1,r=44;do{switch(S(r)){case 0:38===r&&12===O()&&(t[n]=1),e[n]+=J(y-1,t,n);break;case 2:e[n]+=D(r);break;case 4:if(44===r){e[++n]=58===O()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=M());return e}(j(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var o=[],i=X(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]}}},ne=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case F:e.return=Q(e.value,e.length);break;case H:return W([x(e,{value:u(e.value,"@","@"+U)})],r);case Z: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 W([x(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([x(e,{props:[u(t,/:(plac\w+)/,":-webkit-input-$1")]}),x(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[u(t,/:(plac\w+)/,R+"input-$1")]})],r)}return""}))}}],oe=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||re;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,d,h=[q,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],v=(l=[te,ne].concat(o,h),f=p(l),function(e,t,n,r){for(var o="",i=0;i<f;i++)o+=l[i](e,t,n,r)||"";return o});a=function(e,t,n,r){c=n,W(Y(e?e+"{"+t.styles+"}":t.styles),v),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(u),g}},9846: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]}}},8176:function(e,t,n){"use strict";n.d(t,{E:function(){return v},T:function(){return f},c:function(){return p},h:function(){return u},w:function(){return l}});var r=n(7294),o=n(7411),i=n(4660),a=n(8440),s=n(4858),u={}.hasOwnProperty,c=(0,r.createContext)("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null);c.Provider;var l=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(c);return e(t,o,n)}))},f=(0,r.createContext)({});var d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p=function(e,t){var n={};for(var r in t)u.call(t,r)&&(n[r]=t[r]);return n[d]=e,n},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,i.hC)(t,n,r);(0,s.L)((function(){return(0,i.My)(t,n,r)}));return null},v=l((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[d],c=[o],l="";"string"==typeof e.className?l=(0,i.fp)(t.registered,c,e.className):null!=e.className&&(l=e.className+" ");var p=(0,a.O)(c,void 0,(0,r.useContext)(f));l+=t.key+"-"+p.name;var v={};for(var g in e)u.call(e,g)&&"css"!==g&&g!==d&&(v[g]=e[g]);return v.ref=n,v.className=l,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,{cache:t,serialized:p,isStringTag:"string"==typeof s}),(0,r.createElement)(s,v))}))},3431:function(e,t,n){"use strict";n.d(t,{F4:function(){return f},tZ:function(){return u},xB:function(){return c}});n(5743);var r=n(7294),o=(n(7411),n(8176)),i=(n(434),n(5706),n(4660)),a=n(8440),s=n(4858),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,s.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,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,s.j)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==u.next&&(0,i.My)(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_"}}}},8440: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,msGr
2idRow: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(9846),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)}}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}}},1008:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(7462),o=n(7294),i=n(9846),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackgroun
2d|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(8176),c=n(4660),l=n(8440),f=n(4858),d=s,p=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:p},v=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},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,c.hC)(t,n,r);(0,f.L)((function(){return(0,c.My)(t,n,r)}));return null},m=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=v(t,n,s),p=d||h(f),m=!p("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var w=y.length,k=1;k<w;k++)b.push(y[k],y[0][k])}var x=(0,u.w)((function(e,t,n){var r=m&&e.as||f,i="",s=[],v=e;if(null==e.theme){for(var y in v={},e)v[y]=e[y];v.theme=(0,o.useContext)(u.T)}"string"==typeof e.className?i=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var w=(0,l.O)(b.concat(s),t.registered,v);i+=t.key+"-"+w.name,void 0!==a&&(i+=" "+a);var k=m&&void 0===d?h(r):p,x={};for(var C in e)m&&"as"===C||k(C)&&(x[C]=e[C]);return x.className=i,x.ref=n,(0,o.createElement)(o.Fragment,null,(0,o.createElement)(g,{cache:t,serialized:w,isStringTag:"string"==typeof r}),(0,o.createElement)(r,x))}));return x.displayName=void 0!==i?i:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=f,x.__emotion_styles=b,x.__emotion_forwardProp=d,Object.defineProperty(x,"toString",{value:function(){return"."+a}}),x.withComponent=function(t,o){return e(t,(0,r.Z)({},n,o,{shouldForwardProp:v(x,o,!0)})).apply(void 0,b)},x}}},4858:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return a},j:function(){return s}});var o=n(7294),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},4660:function(e,t,n){"use strict";n.d(t,{My:function(){return i},fp:function(){return r},hC: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;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},2393:function(e,t){"use strict";var n=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},r=function(e){var t=e.location,n=t.search,r=t.hash,o=t.href,i=t.origin,s=t.protocol,u=t.host,c=t.hostname,l=t.port,f=e.location.pathname;!f&&o&&a&&(f=new URL(o).pathname);return{pathname:encodeURI(decodeURI(f)),search:n,hash:r,href:o,origin:i,protocol:s,host:u,hostname:c,port:l,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},o=function(e,t){var o=[],i=r(e),a=!1,s=function(){};return{get location(){return i},get transitioning(){return a},_onTransitionComplete:function(){a=!1,s()},listen:function(t){o.push(t);var n=function(){i=r(e),t({location:i,action:"POP"})};return e.addEventListener("popstate",n),function(){e.removeEventListener("popstate",n),o=o.filter((function(e){return e!==t}))}},navigate:function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.state,l=u.replace,f=void 0!==l&&l;if("number"==typeof t)e.history.go(t);else{c=n({},c,{key:Date.now()+""});try{a||f?e.history.replaceState(c,null,t):e.history.pushState(c,null,t)}catch(p){e.location[f?"replace":"assign"](t)}}i=r(e),a=!0;var d=new Promise((function(e){return s=e}));return o.forEach((function(e){return e({location:i,action:"PUSH"})})),d}}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,o=[n],i=[null];return{get location(){return o[r]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return o},get index(){return r},get state(){return i[r]},pushState:function(e,t,n){var a=n.split("?"),s=a[0],u=a[1],c=void 0===u?"":u;r++,o.push({pathname:s,search:c.length?"?"+c:c}),i.push(e)},replaceState:function(e,t,n){var a=n.split("?"),s=a[0],u=a[1],c=void 0===u?"":u;o[r]={pathname:s,search:c},i[r]=e},go:function(e){var t=r+e;t<0||t>i.length-1||(r=t)}}}},a=!("undefined"==typeof window||!window.document||!window.document.createElement),s=o(a?window:i()),u=s.navigate;t.V5=s},2098:function(e,t,n){"use strict";t.ei=void 0;var r,o=n(1143),i=(r=o)&&r.__esModule?r:{default:r};var a=function(e,t){return e.substr(0,t.length)===t},s=function(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],a=p(o),s=""===a[0],c=d(e),f=0,h=c.length;f<h;f++){var g=!1,m=c[f].route;if(m.default)r={route:m,params:{},uri:t};else{for(var y=p(m.path),b={},w=Math.max(a.length,y.length),k=0;k<w;k++){var x=y[k],C=a[k];if(l(x)){b[x.slice(1)||"*"]=a.slice(k).map(decodeURIComponent).join("/");break}if(void 0===C){g=!0;break}var M=u.exec(x);if(M&&!s){-1===v.indexOf(M[1])||(0,i.default)(!1);var O=decodeURIComponent(C);b[M[1]]=O}else if(x!==C){g=!0;break}}if(!g){n={route:m,params:b,uri:"/"+a.slice(0,k).join("/")};break}}}return n||r||null},u=/^:(.+)/,c=function(e){return u.test(e)},l=function(e){return e&&"*"===e[0]},f=function(e,t){return{route:e,score:e.default?0:p(e.path).reduce((function(e,t){return e+=4,!function(e){return""===e}(t)?c(t)?e+=2:l(t)?e-=5:e+=3:e+=1,e}),0),index:t}},d=function(e){return e.map(f).sort((function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index}))},p=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},h=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter((function(e){return e&&e.length>0})))&&n.length>0?"?"+n.join("&"):"")},v=["uri","path"];t.ei=s},5900: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}
2.apply(t,[]))||(e.exports=n)}()},6620:function(e,t,n){"use strict";n.d(t,{M:function(){return m}});var r=n(9900),o=n(7294),i=n(8612),a=n(8614),s=n(1e3);function u(){var e=(0,o.useRef)(!1);return(0,s.L)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var c=n(5749),l=n(1751),f=n(5198),d=function(e){var t=e.children,n=e.initial,i=e.isPresent,a=e.onExitComplete,s=e.custom,u=e.presenceAffectsLayout,d=(0,l.h)(p),h=(0,f.M)(),v=(0,o.useMemo)((function(){return{id:h,initial:n,isPresent:i,custom:s,onExitComplete:function(e){var t,n;d.set(e,!0);try{for(var o=(0,r.XA)(d.values()),i=o.next();!i.done;i=o.next()){if(!i.value)return}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return d.set(e,!1),function(){return d.delete(e)}}}}),u?void 0:[i]);return(0,o.useMemo)((function(){d.forEach((function(e,t){return d.set(t,!1)}))}),[i]),o.useEffect((function(){!i&&!d.size&&(null==a||a())}),[i]),o.createElement(c.O.Provider,{value:v},t)};function p(){return new Map}var h=n(8522),v=n(296),g=function(e){return e.key||""};var m=function(e){var t=e.children,n=e.custom,c=e.initial,l=void 0===c||c,f=e.onExitComplete,p=e.exitBeforeEnter,m=e.presenceAffectsLayout,y=void 0===m||m,b=(0,r.CR)(function(){var e=u(),t=(0,r.CR)((0,o.useState)(0),2),n=t[0],i=t[1],s=(0,o.useCallback)((function(){e.current&&i(n+1)}),[n]);return[(0,o.useCallback)((function(){return a.ZP.postRender(s)}),[s]),n]}(),1),w=b[0],k=(0,o.useContext)(h.p).forceRender;k&&(w=k);var x=u(),C=function(e){var t=[];return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),M=C,O=new Set,E=(0,o.useRef)(M),I=(0,o.useRef)(new Map).current,S=(0,o.useRef)(!0);if((0,s.L)((function(){S.current=!1,function(e,t){e.forEach((function(e){var n=g(e);t.set(n,e)}))}(C,I),E.current=M})),(0,v.z)((function(){S.current=!0,I.clear(),O.clear()})),S.current)return o.createElement(o.Fragment,null,M.map((function(e){return o.createElement(d,{key:g(e),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:y},e)})));M=(0,r.ev)([],(0,r.CR)(M),!1);for(var j=E.current.map(g),A=C.map(g),D=j.length,L=0;L<D;L++){var N=j[L];-1===A.indexOf(N)&&O.add(N)}return p&&O.size&&(M=[]),O.forEach((function(e){if(-1===A.indexOf(e)){var t=I.get(e);if(t){var r=j.indexOf(e);M.splice(r,0,o.createElement(d,{key:g(t),isPresent:!1,onExitComplete:function(){I.delete(e),O.delete(e);var t=E.current.findIndex((function(t){return t.key===e}));if(E.current.splice(t,1),!O.size){if(E.current=C,!1===x.current)return;w(),f&&f()}},custom:n,presenceAffectsLayout:y},t))}}})),M=M.map((function(e){var t=e.key;return O.has(t)?e:o.createElement(d,{key:g(e),isPresent:!0,presenceAffectsLayout:y},e)})),"production"!==i.O&&p&&M.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),o.createElement(o.Fragment,null,O.size?M:M.map((function(e){return(0,o.cloneElement)(e)})))}},8522:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var r=(0,n(7294).createContext)({})},5749:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=(0,n(7294).createContext)(null)},7037:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r="undefined"!=typeof document},8612:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r="production"},1751:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(7294);function o(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},5198:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(1751),o=0,i=function(){return o++},a=function(){return(0,r.h)(i)}},1e3:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(7294),o=n(7037).j?r.useLayoutEffect:r.useEffect},296:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(7294);function o(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},8614:function(e,t,n){"use strict";n.d(t,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return y}});var r=1/60*1e3,o="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},i="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(o())}),r)};
2var a=!0,s=!1,u=!1,c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],f=l.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=!1,a=new WeakSet,s={schedule:function(e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&o,s=i?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),-1===s.indexOf(e)&&(s.push(e),i&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:function(u){if(o)i=!0;else{o=!0;var c=[n,t];if(t=c[0],(n=c[1]).length=0,r=t.length)for(var l=0;l<r;l++){var f=t[l];f(u),a.has(f)&&(s.schedule(f),e())}o=!1,i&&(i=!1,s.process(u))}}};return s}((function(){return s=!0})),e}),{}),d=l.reduce((function(e,t){var n=f[t];return e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return s||m(),n.schedule(e,t,r)},e}),{}),p=l.reduce((function(e,t){return e[t]=f[t].cancel,e}),{}),h=l.reduce((function(e,t){return e[t]=function(){return f[t].process(c)},e}),{}),v=function(e){return f[e].process(c)},g=function e(t){s=!1,c.delta=a?r:Math.max(Math.min(t-c.timestamp,40),1),c.timestamp=t,u=!0,l.forEach(v),u=!1,s&&(a=!1,i(e))},m=function(){s=!0,a=!0,u||i(g)},y=function(){return c},b=d},72:function(e,t){"use strict";t.H=void 0;t.H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"legacy",n=e.endsWith(".html"),r=e.endsWith(".xml"),o=e.endsWith(".pdf");return"/"===e?e:((n||r||o)&&(t="never"),"always"===t?e.endsWith("/")?e:"".concat(e,"/"):"never"===t&&e.endsWith("/")?e.slice(0,-1):e)}},6494:function(e){"use strict";e.exports=Object.assign},540:function(e,t,n){"use strict";t.__esModule=!0,t.onInitialClientRender=void 0;n(3521),n(2163);t.onInitialClientRender=function(){}},1897:function(e,t,n){"use strict";n(6535),n(9244),t.__esModule=!0,t.getForwards=function(e){return null==e?void 0:e.flatMap((function(e){return(null==e?void 0:e.forward)||[]}))}},2163:function(e,t,n){"use strict";t.__esModule=!0,t.injectPartytownSnippet=function(e){if(!e.length)return;var t=document.querySelector("script[data-partytown]"),n=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');t&&t.remove();n&&n.remove();var i=(0,o.getForwards)(e),a=document.createElement("script");a.dataset.partytown="",a.innerHTML=(0,r.partytownSnippet)({forward:i}),document.head.appendChild(a)};var r=n(2911),o=n(1897)},5706:function(e,t,n){"use strict";var r=n(8812),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),g=0;g<a.length;++g){var m=a[g];if(!(i[m]||r&&r[m]||v&&v[m]||s&&s[m])){var y=d(n,m);try{c(t,m,y)}catch(b){}}}}return t}},165: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,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(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 g:case v:case u:return e;default:return t}}case o:return t}}}function x(e){return k(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=g,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||k(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===i},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===v},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(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===g||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=k},8812:function(e,t,n){"use strict";e.exports=n(165)},565:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=(0,n(7294).createContext)({})},3299: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}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]:{};
2t%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}function a(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}function s(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 u(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 s(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)?s(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)}n.d(t,{_:function(){return i},a:function(){return a},b:function(){return u}})},6163:function(e,t,n){"use strict";n.d(t,{L:function(){return p}});var r=n(7294),o=n(3299),i=n(5410),a=n(5559),s=n(3688);function u(e){var t;if(!(0,s.K)(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function c(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function l(e,t){if(void 0===t&&(t=[]),!u(e.state))return c(e,t);var n=c(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,s=(0,a._)(r,["state"]);return[(0,a.a)((0,a.a)({},i),s),o]}var f=n(2027);function d(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return u(t.state)&&u(n.state)?e((0,a.a)((0,a.a)({},t.state),t),(0,a.a)((0,a.a)({},n.state),n)):e(t,n)}}function p(e){var t,n=e.as,a=e.useHook,s=e.memo,u=e.propsAreEqual,c=void 0===u?null==a?void 0:a.unstable_propsAreEqual:u,p=e.keys,h=void 0===p?(null==a?void 0:a.__keys)||[]:p,v=e.useCreateElement,g=void 0===v?i.C:v,m=function(e,t){var r=e.as,i=void 0===r?n:r,s=(0,o.a)(e,["as"]);if(a){var u,c=l(s,h),f=c[0],d=c[1],p=a(f,(0,o._)({ref:t},d)),v=p.wrapElement,m=(0,o.a)(p,["wrapElement"]),y=(null===(u=i.render)||void 0===u?void 0:u.__keys)||i.__keys,b=y&&l(s,y)[0],w=b?(0,o._)((0,o._)({},m),b):m,k=g(i,w);return v?v(k):k}return g(i,(0,o._)({ref:t},s))};return t=m,m=(0,r.forwardRef)(t),s&&(m=function(e,t){return(0,r.memo)(e,t)}(m,c&&d(c))),m.__keys=h,m.unstable_propsAreEqual=d(c||f.w),m}},6004:function(e,t,n){"use strict";n.d(t,{B:function(){return u}});var r=n(7294),o=n(565);function i(e,t){(0,r.useDebugValue)(e);var n=(0,r.useContext)(o.y);return null!=n[e]?n[e]:t}var a=n(3299);var s=n(2027);function u(e){var t,n,o,u=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),c=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";(0,r.useDebugValue)(o);var s=i(o);return s?(0,a._)((0,a._)({},t),s(t,n)):t}(e.name,t,n)),e.compose)for(var o,s=(0,a.b)(u);!(o=s()).done;){t=o.value.__useOptions(t,n)}return t},l=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=c(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";(0,r.useDebugValue)(o);var a=i(o);return a?a(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var s,l=(0,a.b)(u);!(s=l()).done;){n=(0,s.value)(t,n,!0)}var f={},d=n||{};for(var p in d)void 0!==d[p]&&(f[p]=d[p]);return f};l.__useOptions=c;var f=u.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(f,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=u[0])||void 0===n?void 0:n.unstable_propsAreEqual)||s.w,l}},5410:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(7294),o=n(565),i=n(3299);var a=function(e,t,n){void 0===n&&(n=t.children);var a=(0,r.useContext)(o.y);if(a.useCreateElement)return a.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n((0,i.a)(t,["children"]))}return(0,r.createElement)(e,t,n)}},5559: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}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]:{};
2t%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}function a(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}n.d(t,{_:function(){return a},a:function(){return i}})},7175:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(3524);var o,i=(o=(0,r.J)(),Boolean(void 0!==o&&o.document&&o.document.createElement))},7723:function(e,t,n){"use strict";function r(e,t){return e===t||e.contains(t)}n.d(t,{r:function(){return r}})},5505:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(7175);function o(e){return!!r.N&&-1!==window.navigator.userAgent.indexOf(e)}},9334:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(5767);function o(e){var t=(0,r.M)(e).activeElement;return null!=t&&t.nodeName?t:null}},5767:function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:document}n.d(t,{M:function(){return r}})},3524:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r,o=n(5767);try{r=window}catch(a){}function i(e){return e&&(0,o.M)(e).defaultView||r}},3991:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var r=n(9334),o=n(7723);function i(e){var t=(0,r.v)(e);if(!t)return!1;if((0,o.r)(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},325:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},3688:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!=e}n.d(t,{K:function(){return r}})},7726:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(7723);function o(e){return!(0,r.r)(e.currentTarget,e.target)}},2627:function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,{U:function(){return r}})},979:function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}n.d(t,{w:function(){return r}})},2027:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var s=a[i];if(e[s]!==t[s])return!1}return!0}n.d(t,{w:function(){return r}})},1868:function(e,t,n){"use strict";n.d(t,{EB:function(){return i},KE:function(){return c},Wq:function(){return a},YC:function(){return u}});var r=n(979),o="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function i(e){return(0,r.w)(e,o)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}function a(e){return i(e)&&!function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e)}function s(e,t){var n=Array.from(e.querySelectorAll(o)),r=n.filter(a);return a(e)&&r.unshift(e),!r.length&&t?n:r}function u(e,t){return s(e,t)[0]||null}function c(e,t){var n=s(e,t);return n[n.length-1]||null}},8161:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var r=n(7294);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function i(e,t){return(0,r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},7994:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(7294),o=n(7175).N?r.useLayoutEffect:r.useEffect},9843:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var r=n(7294),o=n(7994);function i(e){var t=(0,r.useRef)(e);return(0,o.Y)((function(){t.current=e})),t}},946:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(7294);function o(e){return(0,r.useState)(e)[0]}},7311:function(e,t,n){"use strict";n(7294)},8:function(e,t,n){"use strict";n.d(t,{U:function(){return l},z:function(){return f}});var r=n(6264),o=n(6163),i=n(6004),a=n(7294),s=n(8161),u=n(325),c=(n(7311),n(8197)),l=(0,i.B)({name:"Button",compose:c.h,keys:[],useProps:function(e,t){var n=t.ref,o=(0,r._)(t,["ref"]),i=(0,a.useRef)(null),c=(0,a.useState)(void 0),l=c[0],f=c[1],d=(0,a.useState)("button"),p=d[0],h=d[1];return(0,a.useEffect)((function(){var e=i.current;e&&((0,u.i)(e)||("A"!==e.tagName&&f("button"),h(void 0)))}),[]),(0,r.a)({ref:(0,s.c)(i,n),role:l,type:p},o)}}),f=(0,o.L)({as:"button",memo:!0,useHook:l})},8197:function(e,t,n){"use strict";n.d(t,{h:function(){return f}});var r=n(6264),o=n(6163),i=n(6004),a=n(7294),s=n(325),u=(n(7311),n(9843)),c=n(2627),l=n(7774);var f=(0,i.B)({name:"Clickable",compose:l.u,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,i=void 0===o||o,a=(0,r._)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return(0,r.a)({unstable_clickOnEnter:n,unstable_clickOnSpace:i},a)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,i=(0,r._)(t,["onKeyDown","onKeyUp"]),l=(0,a.useState)(!1),f=l[0],d=l[1],p=(0,u.c)(n),h=(0,u.c)(o),v=(0,a.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&(0,c.U)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&((0,s.i)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&d(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),g=(0,a.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;f&&r&&(d(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,f]);return(0,r.a)({"data-active":f||void 0,onKeyDown:v,onKeyUp:g},i)}});(0,o.L)({as:"button",memo:!0,useHook:f})},2746:function(e,t,n){"use strict";n.d(t,{p:function(){return f},q:function(){return l}});var r=n(6264),o=n(6163),i=n(6004),a=n(7294),s=(n(7311),n(9843)),u=n(8),c=n(7780),l=(0,i.B)({name:"Disclosure",compose:u.U,keys:c.D,useProps:function(e,t){var n=t.onClick,o=t["aria-controls"],i=(0,r._)(t,["onClick","aria-controls"]),u=(0,s.c)(n),c=o?o+" "+e.baseId:e.baseId,l=(0,a.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.toggle)||void 0===r||r.call(e)}),[e.toggle]);return(0,r.a)({"aria-expanded":!!e.visible,"aria-controls":c,onClick:l},i)}}),f=(0,o.L)({as:"button",memo:!0,useHook:l})}
2,8013:function(e,t,n){"use strict";n.d(t,{f:function(){return f},k:function(){return d}});var r=n(6264),o=n(6163),i=n(6004),a=n(7294),s=n(9843),u=n(2627),c=n(8081),l=n(7780),f=(0,i.B)({name:"DisclosureContent",compose:c.q,keys:l.a,useProps:function(e,t){var n=t.onTransitionEnd,o=t.onAnimationEnd,i=t.style,c=(0,r._)(t,["onTransitionEnd","onAnimationEnd","style"]),l=e.animated&&e.animating,f=(0,a.useState)(null),d=f[0],p=f[1],h=!e.visible&&!l,v=h?(0,r.a)({display:"none"},i):i,g=(0,s.c)(n),m=(0,s.c)(o),y=(0,a.useRef)(0);(0,a.useEffect)((function(){if(e.animated)return y.current=window.requestAnimationFrame((function(){y.current=window.requestAnimationFrame((function(){e.visible?p("enter"):p(l?"leave":null)}))})),function(){return window.cancelAnimationFrame(y.current)}}),[e.animated,e.visible,l]);var b=(0,a.useCallback)((function(t){var n;(0,u.U)(t)&&(l&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,l,e.stopAnimation]),w=(0,a.useCallback)((function(e){var t;null===(t=g.current)||void 0===t||t.call(g,e),b(e)}),[b]),k=(0,a.useCallback)((function(e){var t;null===(t=m.current)||void 0===t||t.call(m,e),b(e)}),[b]);return(0,r.a)({id:e.baseId,"data-enter":"enter"===d?"":void 0,"data-leave":"leave"===d?"":void 0,onTransitionEnd:w,onAnimationEnd:k,hidden:h,style:v},c)}}),d=(0,o.L)({as:"div",useHook:f})},6692:function(e,t,n){"use strict";n.d(t,{b:function(){return u}});var r=n(6264),o=n(7294),i=(n(7311),n(7994)),a=n(946),s=n(7681);function u(e){void 0===e&&(e={});var t,n,u=(0,a.T)(e),c=u.visible,l=void 0!==c&&c,f=u.animated,d=void 0!==f&&f,p=(0,r._)(u,["visible","animated"]),h=(0,s.C)(p),v=(0,o.useState)(l),g=v[0],m=v[1],y=(0,o.useState)(d),b=y[0],w=y[1],k=(0,o.useState)(!1),x=k[0],C=k[1],M=(t=g,n=(0,o.useRef)(null),(0,i.Y)((function(){n.current=t}),[t]),n),O=null!=M.current&&M.current!==g;b&&!x&&O&&C(!0),(0,o.useEffect)((function(){if("number"==typeof b&&x){var e=setTimeout((function(){return C(!1)}),b);return function(){clearTimeout(e)}}return function(){}}),[b,x]);var E=(0,o.useCallback)((function(){return m(!0)}),[]),I=(0,o.useCallback)((function(){return m(!1)}),[]),S=(0,o.useCallback)((function(){return m((function(e){return!e}))}),[]),j=(0,o.useCallback)((function(){return C(!1)}),[]);return(0,r.a)((0,r.a)({},h),{},{visible:g,animated:b,animating:x,show:E,hide:I,toggle:S,setVisible:m,setAnimated:w,stopAnimation:j})}},4355:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(7294);function o(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var i=(0,r.createContext)(o)},7681:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(7294),o=n(946),i=n(4355);function a(e){void 0===e&&(e={});var t=(0,o.T)(e).baseId,n=(0,r.useContext)(i.U),a=(0,r.useRef)(0),s=(0,r.useState)((function(){return t||n()}));return{baseId:s[0],setBaseId:s[1],unstable_idCountRef:a}}},8081:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(6264),o=n(6163),i=n(6004),a=n(2027),s=(0,i.B)({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=(0,r._)(e,["unstable_system"]),i=t.unstable_system,s=(0,r._)(t,["unstable_system"]);return!(n!==i&&!(0,a.w)(n,i))&&(0,a.w)(o,s)}});(0,o.L)({as:"div",useHook:s})},7774:function(e,t,n){"use strict";n.d(t,{u:function(){return w}});var r=n(6264),o=n(6163),i=n(6004),a=n(7294),s=n(8161),u=n(325),c=(n(7311),n(9843)),l=n(7994),f=n(3991),d=n(7726),p=n(5505),h=n(1868),v=n(8081),g=(0,p.N)("Mac")&&!(0,p.N)("Chrome")&&((0,p.N)("Safari")||(0,p.N)("Firefox"));function m(e){!(0,f.B)(e)&&(0,h.EB)(e)&&e.focus()}function y(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function b(e,t){return(0,a.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var w=(0,i.B)({name:"Tabbable",compose:v.q,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return(0,r.a)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,i=t.onClickCapture,f=t.onMouseDownCapture,p=t.onMouseDown,h=t.onKeyPressCapture,v=t.style,w=(0,r._)(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),k=(0,a.useRef)(null),x=(0,c.c)(i),C=(0,c.c)(f),M=(0,c.c)(p),O=(0,c.c)(h),E=!!e.disabled&&!e.focusable,I=(0,a.useState)(!0),S=I[0],j=I[1],A=(0,a.useState)(!0),D=A[0],L=A[1],N=e.disabled?(0,r.a)({pointerEvents:"none"},v):v;(0,l.Y)((function(){var e=k.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||j(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||L(!1))}),[]);var P=b(x,e.disabled),T=b(C,e.disabled),_=b(O,e.disabled),R=(0,a.useCallback)((function(e){var t;null===(t=M.current)||void 0===t||t.call(M,e);var n=e.currentTarget;if(!e.defaultPrevented&&g&&!(0,d.K)(e)&&(0,u.i)(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),m(n)})),o=function(){cancelAnimationFrame(r),m(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return(0,r.a)({ref:(0,s.c)(k,n),style:N,tabIndex:y(E,S,D,o),disabled:!(!E||!D)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:P,onMouseDownCapture:T,onMouseDown:R,onKeyPressCapture:_},w)}});(0,o.L)({as:"div",useHook:w})},7780:function(e,t,n){"use strict";n.d(t,{D:function(){return r},a:function(){return o}});var r=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],o=r},6264: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}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]:{};
2t%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}function a(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}function s(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 u(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 s(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)?s(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)}n.d(t,{_:function(){return a},a:function(){return i},b:function(){return u}})},9900:function(e,t,n){"use strict";n.d(t,{CR:function(){return u},XA:function(){return s},ZT:function(){return o},_T:function(){return a},ev:function(){return c},pi:function(){return i}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var 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},i.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},1223:function(e,t,n){var r=n(5112),o=n(30),i=n(3070).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},7475:function(e,t,n){var r=n(3157),o=n(4411),i=n(111),a=n(5112)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},5417:function(e,t,n){var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},7207:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6790:function(e,t,n){"use strict";var r=n(3157),o=n(6244),i=n(7207),a=n(9974),s=function(e,t,n,u,c,l,f,d){for(var p,h,v=c,g=0,m=!!f&&a(f,d);g<u;)g in n&&(p=m?m(n[g],g,t):n[g],l>0&&r(p)?(h=o(p),v=s(e,t,p,h,v,l-1)-1):(i(v+1),e[v]=p),v++),g++;return v};e.exports=s}
vendor: 1,031 bytes, line 2
2,9974:function(e,t,n){var r=n(1702),o=n(9662),i=n(4374),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},30:function(e,t,n){var r,o=n(9670),i=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200),f=l("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(o){}var e,t;v="undefined"!=typeof document?document.domain&&r?h(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(r);for(var n=a.length;n--;)delete v.prototype[a[n]];return v()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=
2o(e),n=new d,d.prototype=null,n[f]=e):n=v(),void 0===t?n:i.f(n,t)}},6048:function(e,t,n){var r=n(9781),o=n(3353),i=n(3070),a=n(9670),s=n(5656),u=n(1956);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=u(t),c=o.length,l=0;c>l;)i.f(e,n=o[l++],r[n]);return e}},1956:function(e,t,n){var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},6535:function(e,t,n){"use strict";var r=n(2109),o=n(6790),i=n(9662),a=n(7908),s=n(6244),u=n(5417);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=s(n);return i(e),(t=u(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},9244:function(e,t,n){n(1223)("flatMap")},9679:function(e,t,n){"use strict";t.p2=t.$C=void 0;var r=n(1432);t.$C=r.ScrollHandler;var o=n(4855);t.p2=o.useScrollRestoration},1432:function(e,t,n){"use strict";var r=n(4836);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=r(n(6115)),i=r(n(7867)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(7294)),s=r(n(5697)),u=n(1142);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var l=a.createContext(new u.SessionStorage);t.ScrollContext=l,l.displayName="GatsbyScrollContext";var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this)._stateStorage=new u.SessionStorage,t._isTicking=!1,t._latestKnownScrollY=0,t.scrollListener=function(){t._latestKnownScrollY=window.scrollY,t._isTicking||(t._isTicking=!0,requestAnimationFrame(t._saveScroll.bind((0,o.default)(t))))},t.windowScroll=function(e,n){t.shouldUpdateScroll(n,t.props)&&window.scrollTo(0,e)},t.scrollToHash=function(e,n){var r=document.getElementById(e.substring(1));r&&t.shouldUpdateScroll(n,t.props)&&r.scrollIntoView()},t.shouldUpdateScroll=function(e,n){var r=t.props.shouldUpdateScroll;return!r||r.call((0,o.default)(t),e,n)},t}(0,i.default)(t,e);var n=t.prototype;return n._saveScroll=function(){var e=this.props.location.key||null;e&&this._stateStorage.save(this.props.location,e,this._latestKnownScrollY),this._isTicking=!1},n.componentDidMount=function(){var e;window.addEventListener("scroll",this.scrollListener);var t=this.props.location,n=t.key,r=t.hash;n&&(e=this._stateStorage.read(this.props.location,n)),e?this.windowScroll(e,void 0):r&&this.scrollToHash(decodeURI(r),void 0)},n.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},n.componentDidUpdate=function(e){var t,n=this.props.location,r=n.hash,o=n.key;o&&(t=this._stateStorage.read(this.props.location,o)),r?this.scrollToHash(decodeURI(r),e):this.windowScroll(t,e)},n.render=function(){return a.createElement(l.Provider,{value:this._stateStorage},this.props.children)},t}(a.Component);t.ScrollHandler=f,f.propTypes={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired}},1142:function(e,t){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var n="___GATSBY_REACT_ROUTER_SCROLL",r=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var r=this.getStateKey(e,t);try{var o=window.sessionStorage.getItem(r);return o?JSON.parse(o):0}catch(i){return window&&window[n]&&window[n][r]?window[n][r]:0}},t.save=function(e,t,r){var o=this.getStateKey(e,t),i=JSON.stringify(r);try{window.sessionStorage.setItem(o,i)}catch(a){window&&window[n]||(window[n]={}),window[n][o]=JSON.parse(i)}},t.getStateKey=function(e,t){var n="@@scroll|"+e.pathname;return null==t?n:n+"|"+t},e}();t.SessionStorage=r},4855:function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,i.useLocation)(),n=(0,o.useContext)(r.ScrollC
2ontext),a=(0,o.useRef)(null);return(0,o.useLayoutEffect)((function(){if(a.current){var r=n.read(t,e);a.current.scrollTo(0,r||0)}}),[t.key]),{ref:a,onScroll:function(){a.current&&n.save(t,e,a.current.scrollTop)}}};var r=n(1432),o=n(7294),i=n(9499)},5418:function(e,t,n){t.components={"component---cache-caches-gatsby-plugin-offline-app-shell-js":function(){return n.e(306).then(n.bind(n,1367))},"component---src-pages-404-tsx":function(){return Promise.all([n.e(222),n.e(912),n.e(218)]).then(n.bind(n,8975))},"component---src-pages-explainer-tsx":function(){return Promise.all([n.e(532),n.e(519),n.e(523),n.e(222),n.e(117)]).then(n.bind(n,1087))},"component---src-pages-film-tsx":function(){return Promise.all([n.e(222),n.e(912),n.e(75)]).then(n.bind(n,546))},"component---src-pages-final-overlay-tsx":function(){return Promise.all([n.e(222),n.e(845),n.e(695)]).then(n.bind(n,7944))},"component---src-pages-index-tsx":function(){return Promise.all([n.e(222),n.e(912),n.e(691)]).then(n.bind(n,2683))},"component---src-pages-question-tsx":function(){return Promise.all([n.e(222),n.e(912),n.e(223)]).then(n.bind(n,1213))},"component---src-pages-quiz-tsx":function(){return Promise.all([n.e(805),n.e(222),n.e(901),n.e(264),n.e(845),n.e(573)]).then(n.bind(n,8723))},"component---src-pages-resources-tsx":function(){return Promise.all([n.e(377),n.e(222),n.e(901),n.e(60)]).then(n.bind(n,2917))},"component---src-templates-page-tsx":function(){return Promise.all([n.e(383),n.e(222),n.e(901),n.e(264),n.e(614),n.e(895)]).then(n.bind(n,3965))},"component---src-templates-post-tsx":function(){return Promise.all([n.e(383),n.e(222),n.e(901),n.e(264),n.e(614),n.e(186)]).then(n.bind(n,3618))}}},4741:function(e,t,n){e.exports=[{plugin:n(9608),options:{plugins:[],icon:"src/assets/ieomd-favicon.png",name:"In Event of Moon Disaster",short_name:"IEOMD",start_url:"/",background_color:"#000000",theme_color:"#b4fba8",display:"standalone",legacy:!0,theme_color_in_head:!0,cache_busting_mode:"query",crossOrigin:"anonymous",include_favicon:!0,cacheDigest:"320a37d666927fd6ed643e0114b02cf9"}},{plugin:n(9684),options:{plugins:[]}},{plugin:n(436),options:{plugins:[]}},{plugin:n(580),options:{plugins:[],url:"https://ieomd.halseyburgund.com/graphql",html:{useGatsbyImage:!1,imageMaxWidth:null,fallbackImageMaxWidth:1024,imageQuality:70,createStaticFiles:!0,generateWebpImages:!0,generateAvifImages:!1,placeholderType:"dominantColor"},verbose:!0,catchLinks:!0}},{plugin:n(5688),options:{plugins:[],component:"/Users/halsey/Sites/moondisaster.org/dev/ieomd-website/src/templates/app-container.tsx"}},{plugin:n(6052),options:{plugins:[],trackingIds:["G-ZGXF8F5JPJ"],gtagConfig:{anonymize_ip:!0,send_page_view:!0,custom_map:{site_language:"da"}},pluginConfig:{head:!0}}},{plugin:n(540),options:{plugins:[]}}]},3092:function(e,t,n){var r=n(4741),o=n(1975).jN,i=o.getResourceURLsForPathname,a=o.loadPage,s=o.loadPageSync;t.h=function(e,t,n,o){void 0===t&&(t={});var u=r.map((function(n){if(n.plugin[e]){t.getResourceURLsForPathname=i,t.loadPage=a,t.loadPageSync=s;var r=n.plugin[e](t,n.options);return r&&o&&(t=o({args:t,result:r,plugin:n})),r}}));return(u=u.filter((function(e){return void 0!==e}))).length>0?u:n?[n]:[]},t.I=function(e,t,n){return r.reduce((function(n,r){return r.plugin[e]?n.then((function(){return r.plugin[e](t,r.options)})):n}),Promise.resolve())}},8299:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map((function(e){e(n)})),(e["*"]||[]).slice().map((function(e){e(t,n)}))}}}()},7802:function(e,t,n){"use strict";n.d(t,{UD:function(){return d},Cj:function(){return h},GA:function(){return p},DS:function(){return f}});var r=n(2098),o=n(1505),i=function(e){if(void 0===e)return e;var t=e.split("?"),n=t[0],r=t[1],o=void 0===r?"":r;return o&&(o="?"+o),"/"===n?"/"+o:"/"===n.charAt(n.length-1)?n.slice(0,-1)+o:n+o},a=n(6073),s=new Map,u=[],c=function(e){var t=e;if(-1!==e.indexOf("?")){var n=e.split("?"),r=n[0],i=n[1];t=r+"?"+encodeURIComponent(i)}var a=decodeURIComponent(t);return(0,o.Z)(a,decodeURIComponent("")).split("#")[0]};function l(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}var f=function(e){u=e},d=function(e){var t=v(e),n=u.map((function(e){var t=e.path;return{path:e.matchPath,originalPath:t}})),o=(0,r.ei)(n,t);return o?i(o.route.originalPath):null},p=function(e){var t=v(e),n=u.map((function(e){var t=e.path;return{path:e.matchPath,originalPath:t}})),o=(0,r.ei)(n,t);return o?o.params:{}},h=function e(t){var n=c(l(t));if(s.has(n))return s.get(n);var r=(0,a.J)(t);if(r)return e(r.toPath);var o=d(n);return o||(o=v(t)),s.set(n,o),o},v=function(e){var t=c(l(e));return"/index.html"===t&&(t="/"),t=i(t)}},1597:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return o.ZP},PageRenderer:function(){return s.a},Script:function(){return l.Script},ScriptStrategy:function(){return l.ScriptStrategy},StaticQuery:function(){return h},StaticQueryContext:function(){return d},collectedScriptsByPage:function(){return l.collectedScriptsByPage},graphql:function(){return g},navigate:function(){return o.c4},parsePath:function(){return o.cP},prefetchPathname:function(){return f},scriptCache:function(){return l.scriptCache},scriptCallbackCache:function(){return l.scriptCallbackCache},useScrollRestoration:function(){return i.p2},useStaticQuery:function(){return v},withAssetPrefix:function(){return o.mc},withPrefix:function(){return o.dq}});var r=n(7294),o=n(1562),i=n(9679),a=n(2743),s=n.n(a),u=n(1975),c=n(3431),l=n(3521),f=u.ZP.enqueue,d=r.createContext({});function p(e){var t=e.staticQueryData,n=e.data,o=e.query,i=e.render,a=n?n.data:t[o]&&t[o].data;return(0,c.tZ)(r.Fragment,null,a&&i(a),!a&&(0,c.tZ)("div",null,"Loa
2ding (StaticQuery)"))}var h=function(e){var t=e.data,n=e.query,r=e.render,o=e.children;return(0,c.tZ)(d.Consumer,null,(function(e){return(0,c.tZ)(p,{data:t,query:n,render:r||o,staticQueryData:e})}))},v=function(e){var t;r.useContext;var n=r.useContext(d);if(isNaN(Number(e)))throw new Error("useStaticQuery was called with a string but expects to be called using `graphql`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql`"+e+"`);\n");if(null!==(t=n[e])&&void 0!==t&&t.data)return n[e].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")};function g(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away. Unfortunately, something went wrong and the query was left in the compiled code.\n\nUnless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}},1975:function(e,t,n){"use strict";n.d(t,{uQ:function(){return l},kL:function(){return y},ZP:function(){return k},hs:function(){return x},jN:function(){return w},N1:function(){return b}});var r=n(4578),o=n(3433),i=function(e){if("undefined"==typeof document)return!1;var t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e,t){return new Promise((function(n,r){if("undefined"!=typeof document){var o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",e),Object.keys(t).forEach((function(e){o.setAttribute(e,t[e])})),o.onload=n,o.onerror=r,(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)}else r()}))}:function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=function(){200===r.status?t():n()},r.send(null)}))},a={},s=function(e,t){return new Promise((function(n){a[e]?n():i(e,t).then((function(){n(),a[e]=!0})).catch((function(){}))}))},u=n(8299),c=n(7802),l={Error:"error",Success:"success"},f=function(e){var t,n=e.split("?"),r=n[0],o=n[1];return"/page-data/"+("/"===r?"index":(t="/"===(t=r)[0]?t.slice(1):t).endsWith("/")?t.slice(0,-1):t)+"/page-data.json"+(o?"?"+o:"")};function d(e,t){return void 0===t&&(t="GET"),new Promise((function(n){var r=new XMLHttpRequest;r.open(t,e,!0),r.onreadystatechange=function(){4==r.readyState&&n(r)},r.send(null)}))}var p,h=/bot|crawler|spider|crawling/i,v=function(e,t,n){void 0===t&&(t=null);var r={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes,getServerDataError:e.getServerDataError};return{component:t,head:n,json:e.result,page:r}},g=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,c.DS)(t)}var t=e.prototype;return t.memoizedGet=function(e){var t=this,n=this.inFlightNetworkRequests.get(e);return n||(n=d(e,"GET"),this.inFlightNetworkRequests.set(e,n)),n.then((function(n){return t.inFlightNetworkRequests.delete(e),n})).catch((function(n){throw t.inFlightNetworkRequests.delete(e),n}))},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some((function(e){return e}))},t.fetchPageDataJson=function(e){var t=this,n=e.pagePath,r=e.retries,o=void 0===r?0:r,i=f(n);return this.memoizedGet(i).then((function(r){var i=r.status,a=r.responseText;if(200===i)try{var s=JSON.parse(a);if(void 0===s.path)throw new Error("not a valid pageData response");var u=n.split("?")[1];return u&&!s.path.includes(u)&&(s.path+="?"+u),Object.assign(e,{status:l.Success,payload:s})}catch(c){}return 404===i||200===i?"/404.html"===n||"/500.html"===n?Object.assign(e,{status:l.Error}):t.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0}
2)):500===i?t.fetchPageDataJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):o<3?t.fetchPageDataJson(Object.assign(e,{retries:o+1})):Object.assign(e,{status:l.Error})}))},t.loadPageDataJson=function(e){var t=this,n=(0,c.Cj)(e);if(this.pageDataDb.has(n)){var r=this.pageDataDb.get(n);return Promise.resolve(r)}return this.fetchPageDataJson({pagePath:n}).then((function(e){return t.pageDataDb.set(n,e),e}))},t.findMatchPath=function(e){return(0,c.UD)(e)},t.loadPage=function(e){var t=this,n=(0,c.Cj)(e);if(this.pageDb.has(n)){var r=this.pageDb.get(n);return r.error?{error:r.error,status:r.status}:Promise.resolve(r.payload)}if(this.inFlightDb.has(n))return this.inFlightDb.get(n);var o=Promise.all([this.loadAppData(),this.loadPageDataJson(n)]).then((function(e){var r=e[1];if(r.status===l.Error)return{status:l.Error};var o=r.payload,i=o,a=i.componentChunkName,s=i.staticQueryHashes,c=void 0===s?[]:s,f={},d=Promise.all([t.loadComponent(a),t.loadComponent(a,"head")]).then((function(t){var n,i=t[0],a=t[1];return f.createdAt=new Date,!i||i instanceof Error?(f.status=l.Error,f.error=i):(f.status=l.Success,!0===r.notFound&&(f.notFound=!0),o=Object.assign(o,{webpackCompilationHash:e[0]?e[0].webpackCompilationHash:""}),n=v(o,i,a)),n})),p=Promise.all(c.map((function(e){if(t.staticQueryDb[e]){var n=t.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:n}}return t.memoizedGet("/page-data/sq/d/"+e+".json").then((function(t){var n=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:n}})).catch((function(){throw new Error("We couldn't load \"/page-data/sq/d/"+e+'.json"')}))}))).then((function(e){var n={};return e.forEach((function(e){var r=e.staticQueryHash,o=e.jsonPayload;n[r]=o,t.staticQueryDb[r]=o})),n}));return Promise.all([d,p]).then((function(e){var r,o=e[0],i=e[1];return o&&(r=Object.assign({},o,{staticQueryResults:i}),f.payload=r,u.Z.emit("onPostLoadPageResources",{page:r,pageResources:r})),t.pageDb.set(n,f),f.error?{error:f.error,status:f.status}:r})).catch((function(e){return{error:e,status:l.Error}}))}));return o.then((function(){t.inFlightDb.delete(n)})).catch((function(e){throw t.inFlightDb.delete(n),e})),this.inFlightDb.set(n,o),o},t.loadPageSync=function(e,t){void 0===t&&(t={});var n=(0,c.Cj)(e);if(this.pageDb.has(n)){var r,o=this.pageDb.get(n);if(o.payload)return o.payload;if(null!==(r=t)&&void 0!==r&&r.withErrorDetails)return{error:o.error,status:o.status}}},t.shouldPrefetch=function(e){return!!function(){if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0}()&&((!navigator.userAgent||!h.test(navigator.userAgent))&&!this.pageDb.has(e))},t.prefetch=function(e){var t=this;if(!this.shouldPrefetch(e))return{then:function(e){return e(!1)},abort:function(){}};if(this.prefetchTriggered.has(e))return{then:function(e){return e(!0)},abort:function(){}};var n={resolve:null,reject:null,promise:null};n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),this.prefetchQueued.push([e,n]);var r=new AbortController;return r.signal.addEventListener("abort",(function(){var n=t.prefetchQueued.findIndex((function(t){return t[0]===e}));-1!==n&&t.prefetchQueued.splice(n,1)})),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout((function(){t._processNextPrefetchBatch()}),3e3)),{then:function(e,t){return n.promise.then(e,t)},abort:r.abort.bind(r)}},t._processNextPrefetchBatch=function(){var e=this;(window.requestIdleCallback||function(e){return setTimeout(e,0)})((function(){var t=e.prefetchQueued.splice(0,4),n=Promise.all(t.map((function(t){var n=t[0],r=t[1];return e.prefetchTriggered.has(n)||(e.apiRunner("onPrefetchPathname",{pathname:n}),e.prefetchTriggered.add(n)),e.prefetchDisabled?r.resolve(!1):e.doPrefetch((0,c.Cj)(n)).then((function(){e.prefetchCompleted.has(n)||(e.apiRunner("onPostPrefetchPathname",{pathname:n}),e.prefetchCompleted.add(n)),r.resolve(!0)}))})));e.prefetchQueued.length?n.then((function(){setTimeout((function(){e._processNextPrefetchBatch()}),3e3)})):e.isPrefetchQueueRunning=!1}))},t.doPrefetch=function(e){var t=this,n=f(e);return s(n,{crossOrigin:"anonymous",as:"fetch"}).then((function(){return t.loadPageDataJson(e)}))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){var t=(0,c.Cj)(e),n=this.pageDataDb.get(t);if(n){var r=v(n.payload);return[].concat((0,o.Z)(m(r.page.componentChunkName)),[f(t)])}return null},t.isPageNotFound=function(e){var t=(0,c.Cj)(e),n=this.pageDb.get(t);return!n||n.notFound},t.loadAppData=function(e){var t=this;
2return void 0===e&&(e=0),this.memoizedGet("/page-data/app-data.json").then((function(n){var r,o=n.status,i=n.responseText;if(200!==o&&e<3)return t.loadAppData(e+1);if(200===o)try{var a=JSON.parse(i);if(void 0===a.webpackCompilationHash)throw new Error("not a valid app-data response");r=a}catch(s){}return r}))},e}(),m=function(e){return(window.___chunkMapping[e]||[]).map((function(e){return""+e}))},y=function(e){function t(t,n,r){var o;return o=e.call(this,(function(e){if(!t.components[e])throw new Error("We couldn't find the correct component chunk with the name "+e);return t.components[e]().catch((function(e){return e}))}),n)||this,r&&o.pageDataDb.set((0,c.Cj)(r.path),{pagePath:r.path,payload:r,status:"success"}),o}(0,r.Z)(t,e);var n=t.prototype;return n.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then((function(e){if(e.status!==l.Success)return Promise.resolve();var t=e.payload,n=t.componentChunkName,r=m(n);return Promise.all(r.map(s)).then((function(){return t}))}))},n.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then((function(e){return e.notFound?d(t,"HEAD").then((function(t){return 200===t.status?{status:l.Error}:e})):e}))},t}(g),b=function(e){p=e},w={enqueue:function(e){return p.prefetch(e)},getResourceURLsForPathname:function(e){return p.getResourceURLsForPathname(e)},loadPage:function(e){return p.loadPage(e)},loadPageSync:function(e,t){return void 0===t&&(t={}),p.loadPageSync(e,t)},prefetch:function(e){return p.prefetch(e)},isPageNotFound:function(e){return p.isPageNotFound(e)},hovering:function(e){return p.hovering(e)},loadAppData:function(){return p.loadAppData()}},k=w;function x(){return p?p.staticQueryDb:{}}},4779:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(7294),o=n(5697),i=n.n(o),a=n(3092),s=n(7802),u=n(1597),c=n(9499),l=n(4941);function f(e){var t=e.children,n=e.callback;return(0,r.useEffect)((function(){n()})),t}var d=["link","meta","style","title","base","noscript","script"];function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(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 v(e){for(var t,n=e.oldNodes,r=e.newNodes,o=e.onStale,i=e.onNew,a=function(){var e=t.value,n=r.findIndex((function(t){return function(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){var n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){var r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}(t,e)}));-1===n?o(e):r.splice(n,1)},s=p(n);!(t=s()).done;)a();for(var u,c=p(r);!(u=c()).done;){i(u.value)}}var g=n(3431);function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(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}var b=document.createElement("div"),w=function(){for(var e,t,n=[],r=new Map,o=m(b.childNodes);!(t=o()).done;){var i,a,s=t.value,u=s.nodeName.toLowerCase(),c=null===(i=s.attributes)||void 0===i||null===(a=i.id)||void 0===a?void 0:a.value;if(d.includes(u)){var l=s.cloneNode(!0);
2if(l.setAttribute("data-gatsby-head",!0),"script"===l.nodeName.toLowerCase()){for(var f,p=document.createElement("script"),h=m(l.attributes);!(f=h()).done;){var g=f.value;p.setAttribute(g.name,g.value)}p.innerHTML=l.innerHTML,l=p}if(c)if(r.has(c)){var y,w=r.get(c);null===(y=n[w].parentNode)||void 0===y||y.removeChild(n[w]),n[w]=l}else n.push(l),r.set(c,n.length-1);else n.push(l)}else;}var k=document.querySelectorAll("[data-gatsby-head]");if(0!==k.length){var x=[];v({oldNodes:k,newNodes:n,onStale:function(e){return e.parentNode.removeChild(e)},onNew:function(e){return x.push(e)}}),(e=document.head).append.apply(e,x)}else{var C;(C=document.head).append.apply(C,n)}};function k(e){var t=e.pageComponent,n=e.staticQueryResults,o=e.pageComponentProps;(0,r.useEffect)((function(){if(null!=t&&t.Head){!function(e){if("function"!=typeof e)throw new Error('Expected "Head" export to be a function got "'+typeof e+'".')}(t.Head);var e=(0,l.U)().render,r=t.Head;e((0,g.tZ)(f,{callback:w},(0,g.tZ)(u.StaticQueryContext.Provider,{value:n},(0,g.tZ)(c.LocationProvider,null,(0,g.tZ)(r,{location:{pathname:(i=o).location.pathname},params:i.params,data:i.data||{},pageContext:i.pageContext})))),b)}var i;return function(){!function(){for(var e,t=m(document.querySelectorAll("[data-gatsby-head]"));!(e=t()).done;){var n=e.value;n.parentNode.removeChild(n)}}()}}))}function x(e){var t,n=Object.assign({},e,{params:Object.assign({},(0,s.GA)(e.location.pathname),e.pageResources.json.pageContext.__params)}),o=(0,r.createElement)((t=e.pageResources.component)&&t.default||t,Object.assign({},n,{key:e.path||e.pageResources.page.path}));return k({pageComponent:e.pageResources.head,staticQueryResults:e.pageResources.staticQueryResults,pageComponentProps:n}),(0,a.h)("wrapPageElement",{element:o,props:n},o,(function(e){return{element:e.result,props:n}})).pop()}x.propTypes={location:i().object.isRequired,pageResources:i().object.isRequired,data:i().object,pageContext:i().object.isRequired};var C=x},5824:function(e,t,n){"use strict";var r=n(7462),o=n(4578),i=n(3092),a=n(7294),s=n(9499),u=n(9679),c=n(1597),l=n(1975),f=n(6073),d=n(8299),p={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"},h=n(2393),v=n(1562),g=n(3431);function m(e){var t=(0,f.J)(e),n=window.location,r=n.hash,o=n.search;return null!=t&&(window.___replace(t.toPath+o+r),!0)}var y="";window.addEventListener("unhandledrejection",(function(e){/loading chunk \d* failed./i.test(e.reason)&&y&&(window.location.pathname=y)}));var b=function(e,t){m(e.pathname)||(y=e.pathname,(0,i.h)("onPreRouteUpdate",{location:e,prevLocation:t}))},w=function(e,t){m(e.pathname)||(0,i.h)("onRouteUpdate",{location:e,prevLocation:t})},k=function(e,t){if(void 0===t&&(t={}),"number"!=typeof e){var n=(0,v.cP)(e),r=n.pathname,o=n.search,a=n.hash,u=(0,f.J)(r);if(u&&(e=u.toPath+o+a),window.___swUpdated)window.location=r+o+a;else{var c=setTimeout((function(){d.Z.emit("onDelayedLoadPageResources",{pathname:r}),(0,i.h)("onRouteUpdateDelayed",{location:window.location})}),1e3);l.ZP.loadPage(r+o).then((function(n){if(!n||n.status===l.uQ.Error)return window.history.replaceState({},"",location.href),window.location=r,void clearTimeout(c);n&&n.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=r+o+a),(0,s.navigate)(e,t),clearTimeout(c)}))}}else h.V5.navigate(e)};function x(e,t){var n=this,r=t.location,o=r.pathname,a=r.hash,s=(0,i.h)("shouldUpdateScroll",{prevRouterProps:e,pathname:o,routerProps:{location:r},getSavedScrollPosition:function(e){return[0,n._stateStorage.read(e,e.key)]}});if(s.length>0)return s[s.length-1];if(e&&e.location.pathname===o)return a?decodeURI(a.slice(1)):[0,0];return!0}var C=function(e){function t(t){var n;return(n=e.call(this,t)||this).announcementRef=a.createRef(),n}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){var n=this;requestAnimationFrame((function(){var e="new page at "+n.props.location.pathname;document.title&&(e=document.title);var t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);var r="Navigated to "+e;n.announcementRef.current&&(n.announcementRef.current.innerText!==r&&(n.announcementRef.current.innerText=r))}))},n.render=function(){return(0,g.tZ)("div",(0,r.Z)({},p,{ref:this.announcementRef}))},t}(a.Component),M=function(e,t){var n,r;return e.href!==t.href||(null==e||null===(n=e.state)||void 0===n?void 0:n.key)!==(null==t||null===(r=t.state)||void 0===r?void 0:r.key)},O=function(e){function t(t){var n;return n=e.call(this,t)||this,b(t.location,null),n}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){w(this.props.location,null)},n.shouldComponentUpdate=function(e){return!!M(e.location,this.props.location)&&(b(this.props.location,e.location),!0)},n.componentDidUpdate=function(e){M(e.location,this.props.location)&&w(this.props.location,e.location)},n.render=function(){return(0,g.tZ)(a.Fragment,null,this.props.children,(0,g.tZ)(C,{location:location}))},t}(a.Component),E=n(4779),I=n(5418);function S(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var j=function(e){function t(t){var n;n=e.call(this)||this;var r=t.location,o=t.pageResources;return n.state={location:Object.assign({},r),pageResources:o||l.ZP.loadPageSync(r.pathname+r.search,{withErrorDetails:!0})},n}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.location;return t.location.href!==n.href?{pageResources:l.ZP.loadPageSync(n.pathname+n.search,{withErrorDetails:!0}),location:Object.assign({},n)}:{location:Object.assign({},n)}};var n=t.prototype;return n.loadResources=function(e){var t=this;l.ZP.loadPage(e).then((function(n){n&&n.status!==l.uQ.Error?t.setState({location:Object.assign({},window.location),pageResources:n}):(window.history.replaceState({},"",location.href),window.location=e)}))},n.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||
2(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,n){return S(e.props,t)||S(e.state,n)}(this,e,t)))):(this.loadResources(e.location.pathname+e.location.search),!1)},n.render=function(){return this.props.children(this.state)},t}(a.Component),A=n(1505),D=n(4941),L=new l.kL(I,[],window.pageData);(0,l.N1)(L),L.setApiRunner(i.h);var N=(0,D.U)(),P=N.render,T=N.hydrate;window.asyncRequires=I,window.___emitter=d.Z,window.___loader=l.jN,h.V5.listen((function(e){e.location.action=e.action})),window.___push=function(e){return k(e,{replace:!1})},window.___replace=function(e){return k(e,{replace:!0})},window.___navigate=function(e,t){return k(e,t)};var _="gatsby-reload-compilation-hash-match";(0,i.I)("onClientEntry").then((function(){(0,i.h)("registerServiceWorker").filter(Boolean).length>0&&n(9939);var e=function(e){return(0,g.tZ)(s.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},(0,g.tZ)(E.Z,e))},t=a.createContext({}),f=function(e){function n(){return e.apply(this,arguments)||this}return(0,o.Z)(n,e),n.prototype.render=function(){var e=this.props.children;return(0,g.tZ)(s.Location,null,(function(n){var r=n.location;return(0,g.tZ)(j,{location:r},(function(n){var r=n.pageResources,o=n.location,i=(0,l.hs)();return(0,g.tZ)(c.StaticQueryContext.Provider,{value:i},(0,g.tZ)(t.Provider,{value:{pageResources:r,location:o}},e))}))}))},n}(a.Component),d=function(n){function i(){return n.apply(this,arguments)||this}return(0,o.Z)(i,n),i.prototype.render=function(){var n=this;return(0,g.tZ)(t.Consumer,null,(function(t){var o=t.pageResources,i=t.location;return(0,g.tZ)(O,{location:i},(0,g.tZ)(u.$C,{location:i,shouldUpdateScroll:x},(0,g.tZ)(s.Router,{basepath:"",location:i,id:"gatsby-focus-wrapper"},(0,g.tZ)(e,(0,r.Z)({path:"/404.html"===o.page.path||"/500.html"===o.page.path?(0,A.Z)(i.pathname,""):encodeURI((o.page.matchPath||o.page.path).split("?")[0])},n.props,{location:i,pageResources:o},o.json)))))}))},i}(a.Component),p=window,h=p.pagePath,v=p.location;h&&""+h!==v.pathname+(h.includes("?")?v.search:"")&&!(L.findMatchPath((0,A.Z)(v.pathname,""))||h.match(/^\/(404|500)(\/?|.html)$/)||h.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,s.navigate)(""+h+(h.includes("?")?"":v.search)+v.hash,{replace:!0});var m=function(){try{return sessionStorage}catch(e){return null}};l.jN.loadPage(v.pathname+v.search).then((function(e){var t,n=m();if(null!=e&&null!==(t=e.page)&&void 0!==t&&t.webpackCompilationHash&&e.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),n&&!("1"===n.getItem(_))))return n.setItem(_,"1"),void window.location.reload(!0);if(n&&n.removeItem(_),!e||e.status===l.uQ.Error){var r="page resources for "+v.pathname+" not found. Not rendering React";if(e&&e.error)throw console.error(r),e.error;throw new Error(r)}var o=(0,i.h)("wrapRootElement",{element:(0,g.tZ)(d,null)},(0,g.tZ)(d,null),(function(e){return{element:e.result}})).pop(),s=function(){var e=a.useRef(!1);return a.useEffect((function(){e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,i.h)("onInitialClientRender"))}),[]),(0,g.tZ)(f,null,o)},u=document.getElementById("gatsby-focus-wrapper"),c=P;u&&u.children.length&&(c=T);var p=(0,i.h)("replaceHydrateFunction",void 0,c)[0];function h(){var e="undefined"!=typeof window?document.getElementById("___gatsby"):null;p((0,g.tZ)(s,null),e)}var y=document;if("complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll)setTimeout((function(){h()}),0);else{var b=function e(){y.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),h()};y.addEventListener("DOMContentLoaded",b,!1),window.addEventListener("load",b,!1)}}))}))},224:function(e,t,n){"use strict";n.r(t);var r=n(7294),o=n(1975),i=n(4779);t.default=function(e){var t=e.location,n=o.ZP.loadPageSync(t.pathname);return n?r.createElement(i.Z,Object.assign({location:t,pageResources:n},n.json)):null}},2743:function(e,t,n){var r;e.exports=(r=n(224))&&r.default||r},4941:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});new WeakMap;function r(){var e=n(3935);return{render:e.render,hydrate:e.hydrate}}},9712:function(e,t){t.O=function(e){return e}},6073:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=new Map,o=new Map;function i(e){var t=r.get(e);return t||(t=o.get(e.toLowerCase())),t}[].forEach((function(e){e.ignoreCase?o.set(e.fromPath,e):r.set(e.fromPath,e)}))},9939:function(e,t,n){"use strict";n.r(t);var r=n(3092);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"
2in navigator&&navigator.serviceWorker.register("/sw.js").then((function(e){e.addEventListener("updatefound",(function(){(0,r.h)("onServiceWorkerUpdateFound",{serviceWorker:e});var t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",(function(){switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,r.h)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.h)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,r.h)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,r.h)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},1505:function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(t+"/")?e.slice(t.length):e:e}n.d(t,{Z:function(){return r}})},436:function(e,t,n){"use strict";n.r(t),n.d(t,{onClientEntry:function(){return u}});var r=n(1597),o=n(481),i=n.n(o),a=function(e){return"/"===e[0]?e:"/"+e},s=function(e,t){return function(n){if(window.___failedResources)return!0;if(function(e){return 0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}(n))return!0;if(function(e){return e.defaultPrevented}(n))return!0;var o,s=function(e){for(;e.parentNode;e=e.parentNode)if("a"===e.nodeName.toLowerCase())return e;return null}(n.target);if(null==s)return!0;if(!0===(o=s).hasAttribute("download")||!1===function(e){return!1===e.hasAttribute("target")||null==e.target||["_self",""].includes(e.target)||"_parent"===e.target&&(!e.ownerDocument.defaultView.parent||e.ownerDocument.defaultView.parent===e.ownerDocument.defaultView)||"_top"===e.target&&(!e.ownerDocument.defaultView.top||e.ownerDocument.defaultView.top===e.ownerDocument.defaultView)}(o))return!0;var u=document.createElement("a");""!==s.href&&(u.href=s.href),"SVGAnimatedString"in window&&s.href instanceof SVGAnimatedString&&(u.href=s.href.animVal);var c=document.createElement("a");if(c.href=window.location.href,!1===function(e,t){return e.protocol===t.protocol&&e.host===t.host}(c,u))return!0;var l=new RegExp("^"+i()((0,r.withPrefix)("/")));if(function(e,t){return!1===t.test(a(e.pathname))||-1!==e.pathname.search(/^.*\.((?!htm)[a-z0-9]{1,5})$/i)}(u,l))return!0;if(function(e,t){return""!==t.hash&&(""===t.pathname||t.pathname===e.pathname)}(c,u))return!0;if(t.excludePattern&&new RegExp(t.excludePattern).test(u.pathname))return!0;n.preventDefault();var f=a(u.pathname).replace(l,"/");return e(""+f+u.search+u.hash),!1}};var u=function(e,t){void 0===t&&(t={}),function(e,t,n){var r=s(n,t);e.addEventListener("click",r)}(window,t,(function(e){(0,r.navigate)(e)}))}},481:function(e){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},6052:function(e,t){"use strict";t.onRouteUpdate=function(e){var t=e.location;if("function"!=typeof gtag)return null;if(t&&void 0!==window.excludeGtagPaths&&window.excludeGtagPaths.some((function(e){return e.test(t.pathname)})))return null;var n=function(){var e=t?t.pathname+t.search+t.hash:void 0;window.gtag("event","page_view",{page_path:e})};return"requestAnimationFrame"in window?requestAnimationFrame((function(){requestAnimationFrame(n)})):setTimeout(n,32),null}},5688:function(e,t,n){"use strict";t.wrapPageElement=n(4184)},4184:function(e,t,n){"use strict";var r,o,i=n(7294);try{o=n(7803),r=o&&o.default||o}catch(a){throw-1!==a.toString().indexOf("Error: Cannot find module")?new Error("Couldn't find layout component at \"/Users/halsey/Sites/moondisaster.org/dev/ieomd-website/src/templates/app-container.tsx.\n\nPlease create layout component in that location or specify path to layout component in gatsby-config.js"):(console.error(a),a)}e.exports=function(e){var t=e.element,n=e.props;return i.createElement(r,n,t)}},9608:function(e,t,n){"use strict";n.r(t),n.d(t,{onRouteUpdate:function(){return r}});n(1597),n(292);var r=function(e,t){e.location}},292:function(e,t,n){"use strict";var r=n(1597)},9684:function(e,t){"use strict";t.registerServiceWorker=function(){return"true"!=={}.GATSBY_IS_PREVIEW};var n=/^(stylesheet|preload)$/,r=[];
2function o(e,t){if(!window.___swUpdated&&"serviceWorker"in navigator){var n=navigator.serviceWorker;if(null===n.controller)r.push(e);else{var o=t(e);n.controller.postMessage({gatsbyApi:"setPathResources",path:e,resources:o})}}}t.onServiceWorkerActive=function(e){var t=e.getResourceURLsForPathname,o=e.serviceWorker;if("true"!=={}.GATSBY_IS_PREVIEW)if(window.___swUpdated)o.active.postMessage({gatsbyApi:"clearPathResources"});else{var i=document.querySelectorAll("\n    head > script[src],\n    head > link[href],\n    head > style[data-href]\n  "),a=[].slice.call(i).filter((function(e){return"LINK"!==e.tagName||n.test(e.getAttribute("rel"))})).map((function(e){return e.src||e.href||e.getAttribute("data-href")})),s=[];r.forEach((function(e){var n=t(e);s.push.apply(s,n),o.active.postMessage({gatsbyApi:"setPathResources",path:e,resources:n})})),[].concat(a,s).forEach((function(e){var t=document.createElement("link");t.rel="prefetch",t.href=e,t.onload=t.remove,t.onerror=t.remove,document.head.appendChild(t)}))}},t.onRouteUpdate=function(e){var t=e.location,n=e.getResourceURLsForPathname;o(t.pathname.replace("",""),n),"serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"enableOfflineShell"})},t.onPostPrefetchPathname=function(e){o(e.pathname,e.getResourceURLsForPathname)}},580:function(e,t,n){"use strict";n.r(t),n.d(t,{onRouteUpdate:function(){return a}});var r,o,i=n(7294);function a(){"requestIdleCallback"in window?(r&&cancelIdleCallback(r),r=requestIdleCallback(s)):(r&&clearTimeout(r),r=setTimeout(s))}function s(){var e=document,t=Array.from(e.querySelectorAll("[data-wp-inline-image]"));t.length&&n.e(194).then(n.bind(n,3272)).then((function(n){t.forEach((function(t){var r,a,s,u,c,l=null==t||null===(r=t.parentNode)||void 0===r||null===(a=r.parentNode)||void 0===a||null===(s=a.classList)||void 0===s?void 0:s.contains("gatsby-image-wrapper"),f=null==t||null===(u=t.parentNode)||void 0===u||null===(c=u.classList)||void 0===c?void 0:c.contains("gatsby-image-wrapper");if(l||f){var d=l?t.parentNode.parentNode:t.parentNode;if(t.dataset&&t.dataset.wpInlineImage&&d){var p=e.querySelector('script[data-wp-inline-image-hydration="'+t.dataset.wpInlineImage+'"]');if(p){var h=JSON.parse(p.innerHTML);if(o.createRoot)o.createRoot(d).render(i.createElement(n.GatsbyImage,h));else o.hydrate(i.createElement(n.GatsbyImage,h),d)}}}}))}))}o=n(3935)},3589:function(e,t,n){"use strict";n.d(t,{SQ:function(){return Pe},XX:function(){return Be},KL:function(){return He},uL:function(){return Ze},t:function(){return ze}});var r=n(1002),o=n(5671),i=n(3144),a=n(7326),s=n(136),u=n(2963),c=n(1120),l=n(4942),f=n(3878),d=n(9199),p=n(181),h=n(5267);function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.Z)(this,e),this.init(t,n)}return(0,i.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||m,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,g(g({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),b=new y,w=function(){function e(){(0,o.Z)(this,e),this.observers={}}return(0,i.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);
2i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function k(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function x(e){return null==e?"":""+e}function C(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function M(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function O(e,t,n){var r=M(e,t,Object);r.obj[r.k]=n}function E(e,t){var n=M(e,t),r=n.obj,o=n.k;if(r)return r[o]}function I(e,t,n){var r=E(e,n);return void 0!==r?r:E(t,n)}function S(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):S(e[r],t[r],n):e[r]=t[r]);return e}function j(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return A[e]})):e}var L="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,N=[" ",",","?","!",";"];function P(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(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=(0,c.Z)(e);if(t){var o=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.Z)(this,n)}}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,s=r.slice(i,i+a).join(n),u=o[s];void 0===u&&r.length>i+a;)a++,u=o[s=r.slice(i,i+a).join(n)];if(void 0===u)return;if(null===u)return null;if(t.endsWith(s)){if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s]}var c=r.slice(i+a).join(n);return c?R(u,c,n):void 0}o=o[r[i]]}return o}}var B=function(e){(0,s.Z)(n,e);var t=_(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,o.Z)(this,n),r=t.call(this),L&&w.call((0,a.Z)(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return(0,i.Z)(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.
2indexOf(".")>-1&&(a=e.split("."));var s=E(this.data,a);return s||!i||"string"!=typeof n?s:R(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),O(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=E(this.data,a)||{};r?S(s,n,o):s=T(T({},s),n),O(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?T(T({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(w),U={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}};function z(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(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=(0,c.Z)(e);if(t){var o=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.Z)(this,n)}}var H={},W=function(e){(0,s.Z)(n,e);var t=F(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.Z)(this,n),r=t.call(this),L&&w.call((0,a.Z)(r)),C(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,(0,a.Z)(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=b.create("translator"),r}return(0,i.Z)(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=N.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,n,r));if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),e=u.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,o){var i=this;if("object"!==(0,r.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,u=this.extractFromKey(e[e.length-1],t),c=u.key,l=u.namespaces,f=l[l.length-1],d=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=t.nsSeparator||this.options.nsSeparator;return a?(v.res="".concat(f).concat(h).concat(c),v):"".concat(f).concat(h).concat(c)}return a?(v.res=c,v):c}var v=this.resolve(e,t),g=v&&v.res,m=v&&v.usedKey||c,y=v&&v.exactUsedKey||c,b=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,C="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(x&&g&&C&&w.indexOf(b)<0&&("string"!=typeof k||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var M=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,Z(Z({},t),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return a?(v.res=M,v):M}if(s){var O="[object Array]"===b,E=O?[]:{},I=O?y:m;for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var j="".concat(I).concat(s).concat(S);E[S]=this.translate(j,Z(Z({},t),{joinArrays:!1,ns:l})),E[S]===j&&(E[S]=g[S])}g=E}}else if(x&&"string"==typeof k&&"[object Array]"===b)(g=g.join(k))&&(g=this.extendTranslation(g,e,t,o));else{var A=!1,D=!1,L=void 0!==t.count&&"string"!=typeof t.count,N=n.hasDefaultValue(t),P=L?this.pluralResolver.getSuffix(d,t.count,t):"",T=t["defaultValue".concat(P)]||t.defaultValue;!this.isValidLookup(g)&&N&&(A=!0,g=T),this.isValidLookup(g)||(D=!0,g=c);var _=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,R=_&&D?void 0:g,B=N&&T!==g&&this.options.updateMissing;if(D||A||B){if(this.logger.log(B?"updateKey":"missingKey",d,f,c,B?T:g),s){var U=this.resolve(c,Z(Z({},t),{},{keySeparator:!1}));U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var z=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var H=0;H<F.length;H++)z.push(F[H]);else"all"===this.options.saveMissingTo?z=this.languageUtils.toResolveHierarchy(t.lng||this.language):z.push(t.lng||this.language);var W=function(e,n,r){var o=N&&r!==g?r:R;i.options.missingKeyHandler?i.options.missingKeyHandler(e,f,n,o,B,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,f,n,o,B,t),i.emit("missingKey",e,f,n,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?z.forEach((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){W([e],c+n,t["defaultValue".concat(n)]||T)}))})):W(z,c,T))}g=this.extendTranslation(g,e,t,v,o),D&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(f,":").concat(c)),(D||A)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(f,":").concat(c):c,A?g:void 0):this.options.parseMissingKeyHandler(g))}return a?(v.res=g,v):g}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Z(Z({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Z(Z({},n),{interpolation:Z(Z({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=Z(Z({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=U.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Z({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s
vendor: 13,286 bytes, line 2
2),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!H["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(H["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,e,s);else{var l;f&&(l=a.pluralResolver.getSuffix(n,s.count,s));var h="".concat(a.options.pluralSeparator,"zero");if(f&&(u.push(c+l),d&&u.push(c+h)),p){var v="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(v),f&&(u.push(v+l),d&&u.push(v+h))}}for(;i=u.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(w);function q(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Q=function(){function e(t){(0,o.Z)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=b.create("languageUtils")}return(0,i.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=q(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=q(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=q(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Y=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],K={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},G=["v1","v2","v3"],V={zero:0,one:1,two:2,few:3,many:4,other:5};function $(){var e={};return Y.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:K[t.fc]}}))})),e}var J=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.Z)(this,e),this.languageUtils=t,this.options=n,this.logger=b.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=$()}return(0,i.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return V[e]-V[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!G.includes(this.options.compatibilityJSON)}}]),e}();function X(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var te=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,e),this.logger=b.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,i.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:D,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?j(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?j(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?j(t.nestingPrefix):t.nestingPrefixEscaped||j("$t("),this.nestingSuffix=t.nestingSuffix?j(t.nestingSuffix):t.nestingSuffixEscaped||j(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var o=I(t,u,e);
2return s.alwaysFormat?s.format(o,void 0,n,ee(ee(ee({},r),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(I(t,u,a),c,n,ee(ee(ee({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=l(n)))if("function"==typeof f){var u=f(e,o,r);i="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))i="";else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=x(i));var c=t.safeValue(i);if(e=e.replace(o[0],c),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ee({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=ee(ee({},t),a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),u=l,c=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=x(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return o.format(e,t,i.lng,ee(ee({},i),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if("currency"===t&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if("relativetime"===t&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{o.split(";").forEach((function(e){if(e){var t,r=e.split(":"),o=(t=r,(0,f.Z)(t)||(0,d.Z)(t)||(0,p.Z)(t)||(0,h.Z)()),i=o[0],a=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=a),"false"===a&&(n[i.trim()]=!1),"true"===a&&(n[i.trim()]=!0),isNaN(a)||(n[i.trim()]=parseInt(a,10))}}))}}return{formatName:t,formatOptions:n}}var ie=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,e),this.logger=b.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,re(re({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,re({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,re({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,re({},n)).format(e)}},this.init(t)}return(0,i.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var o=this;return t.split(this.formatSeparator).reduce((function(e,t){var i=oe(t),a=i.formatName,s=i.formatOptions;if(o.formats[a]){var u=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=c.locale||c.lng||r.locale||r.lng||n;u=o.formats[a](e,l,re(re(re({},s),r),c))}catch(f){o.logger.warn(f)}return u}return o.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function ae(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 se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ae(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(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=(0,c.Z)(e);if(t){var o=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.Z)(this,n)}}var ce=function(e){(0,s.Z)(n,e);var t=ue(n);function n(e,r,i){var s,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,o.Z)(this,n),s=t.call(this),L&&w.call((0,a.Z)(s)),s.backend=e,s.store=r,s.services=i,s.languageUtils=i.languageUtils,s.options=u,s.logger=b.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=u.maxParallelReads||10,s.readingCalls=0,s.maxRetries=u.maxRetries>=0?u.maxRetries:5,s.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(i,u.backend,u),s}return(0,i.Z)(n,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l,f;r=n.loaded,s=i,c=M(r,[o],Object),l=c.obj,f=c.k,l[f]=l[f]||[],u&&(l[f]=l[f].concat(s)),u||l[f].push(s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:i,callback:a}):(this.readingCalls++,this.backend[n](e,t,(function(s,u){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&u&&o<r.maxRetries?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,u)}))):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,se(se({},i),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(w);function le(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,r.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,r.Z)(e[2])||"object"===(0,r.Z)(e[3])){var n=e[3]||e[2];
2Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function fe(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function de(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 pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(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=(0,c.Z)(e);if(t){var o=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.Z)(this,n)}}function ve(){}function ge(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var me=function(e){(0,s.Z)(n,e);var t=he(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if((0,o.Z)(this,n),e=t.call(this),L&&w.call((0,a.Z)(e)),e.options=fe(r),e.services={},e.logger=b,e.modules={external:[]},ge((0,a.Z)(e)),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),(0,u.Z)(e,(0,a.Z)(e));setTimeout((function(){e.init(r,i)}),0)}return e}return(0,i.Z)(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=le();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=pe(pe(pe({},r),this.options),fe(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=pe(pe({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?b.init(o(this.modules.logger),this.options):b.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=ie);var a=new Q(this.options);this.store=new B(this.options.resources,this.options);var s=this.services;s.logger=b,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new J(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new te(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ce(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new W(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=ve),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];
vendor: 4,866 bytes, line 2
2c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var f=k(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ve,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=k();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ve),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&U.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=k();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||o(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var o=this,i=function e(t,i){var a;if("object"!==(0,r.Z)(i)){for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];a=o.options.overloadTranslationOptionHandler([t,i].concat(u))}else a=pe({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,a.keyPrefix=a.keyPrefix||n||e.keyPrefix;var l=o.options.keySeparator||".",f=a.keyPrefix?"".concat(a.keyPrefix).concat(l).concat(t):t;return o.t(f,a)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=k();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=k();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ve,o=pe(pe(pe({},this.options),t),{isClone:!0}),i=new n(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=pe({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new W(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(w);(0,l.Z)(me,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new me(e,t)}));var ye=me.createInstance();ye.createInstance=me.createInstance;ye.createInstance,ye.init,ye.loadResources,ye.reloadResources,ye.use,ye.changeLanguage,ye.getFixedT,ye.t,ye.exists,ye.setDefaultNamespace,ye.hasLoadedNamespace,ye.loadNamespaces,ye.loadLanguages;var be=ye,we=n(6690),ke=n.n(we),xe=n(9728),Ce=n.n(xe),Me=n(8416),Oe=n.n(Me),Ee=n(7294),Ie=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Se={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},je=function(e){return Se[e]};function Ae(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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){Oe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Le={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(Ie,je)}};(0,Ee.createContext)();!function(){function e(){ke()(this,e),this.usedNamespaces={}}Ce()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])}();var Ne={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Le=De(De({},Le),e)}(e.options.react),function(e){e}(e)}};var Pe,Te=JSON.parse('{"translation":{"404":{"heading":"Moon Walk?","subHeading":"You are looking for something that doesn\'t exist.","backButtonLabel":"Back to safety!"},"menu":{"film":"The Film","resources":"Resources","about":"About"},"opener":{"para1":"In 1969,","para2":"the world gathered to watch the moon landing.","para3":"It was extraordinarily risky, so a backup speech was written in case the mission failed.","para4":"Thankfully it was never delivered.","para5":"Until now...","continueButtonLabel":"Tap to continue","meta":{"description":"What if the moon landing had gone wrong? In Event of Moon Disaster presents an alternative history using deepfake tech showing its potential for misinformation.","imageAlt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Home"}},"question":{"heading":"Can you spot a deepfake?","yes":"yes","no":"no","yesResponse1":"OK, hot shot","yesResponse2":"let\'s see","noResponse1":"Don\'t worry","noResponse2":"the following will help","meta":{"description":"What if the moon landing had gone wrong? In Event of Moon Disaster presents an alternative history using deepfake tech showing its potential for misinformation.","imageAlt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"Can You Spot a Deepfake?"}},"film":{"meta":{"description":"What if the moon landing had gone wrong? In Event of Moon Disaster presents an alternative history using deepfake tech showing its potential for misinformation.","imageAlt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Film"}},"quiz":{"heading":"Let\'s see if you spotted the deepfake","realButtonLabel":"Real","fakeButtonLabel":"Fake","replaySpeechButtonLabel":"Replay Speech","skipToResourcesButtonLabel":"Skip to Resources","nextButtonLabel":"Next","speech":{"name":"Speech","question":"Was the text of the speech real?","answer":"Real","answerDetails":"The speech was written by President Nixon\'s speechwriter, Bill Safire, in case something went wrong and the astronauts were stranded on the moon.","correct":"Correct!","incorrect":"Nice try, but..."},"face":{"name":"Face","question":"Was Nixon\'s face real?","answer":"Fake","answerDetails":"Nixon was a deepfake. We used artificial intelligence to manipulate the area around his mouth to make him appear to deliver the speech.","correct":"You are a rock star!","incorrect":"Good guess, but..."},"voice":{"name":"Voice","question":"Was Nixon\'s voice real?","answer":"Fake","answerDetails":"Nixon’s voice was a deepfake too. It was entirely synthesized using artificial intelligence which converted an actor\'s voice delivering the speech into Nixon\'s voice.","correct":"Good Job!","incorrect":"Oops...you got tricked!"},"archive":{"name":"Archive","question":"Was the space footage real?","answer":"Real","answerDetails":"All of the footage we used was real archival footage from Apollo 11. However, we used techniques of misinformation to tell a story vastly different from what actually happened.","correct":"Woohoo!","incorrect":"Actually, it was real."},"congrats":{"heading":"Congratulations!","subHeading":"You are well on your way to becoming a deepfake detective!","buttonTextMobile":"Tap here to become a pro","buttonTextDesktop":"Click here to become a pro","retakeQuizButtonLabel":"Retake Quiz"},"meta":{"description":"Test your deepfake spotting skills! After watching our film, can you correctly tell what was real and what was fake?","imageAlt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Quiz"}},"resources":{"heading":"Resources","subHeading":"A collection of articles, videos, and interactive experiences to help you understand the rise of deepfakes and where they\'re heading.","instructionsDesktop":"Use arrows to explore","instructionsMobile":"Swipe to explore","interactiveLabel":"Interactive","articleLabel":"Article","videoLabel":"Video","linksLabel":"Links","behindTheScenesTitle":"Behind the scenes","backToResourcesButtonLabel":"Back to Resources","links":{"heading":"Danish Educational Resources","subHeading":"External resources in Danish","outboundLink1":"Middle School Resources","outboundLink2":"Primary School Resources"},"meta":{"description":"A collection of articles, videos, and interactive experiences to help you understand the rise of deepfakes and where they\'re heading.","imageAlt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Resources"}},"explainer":{"intro":{"heading":"Behind the Scenes","subHeading1":"How We Brought President Nixon Back to Life","subHeading2":"(And Killed the Astronauts of Apollo 11)"},"story":{"heading":"The Story","para1":"The contingency speech for the Apollo 11 moon landing was our inspiration.","para2":"It was written by President Richard Nixon\'s speechwriter, Bill Safire, who wrote it in case of any \\"mishaps\\" with the mission.","para3":"The most dangerous part of the eight-day journey was leaving the moon. Michael Collin\'s, the \\"third astronaut\\" on the mission, said he \\"wouldn\'t give better than even odds on a successful landing and return.\\""},"visuals":{"heading":"The Visuals","para1":"Deepfakes are made using a type of artificial intelligence called deep learning. It works a little like the human brain by recognizing patterns in data and \\"learning\\" from them.","para2":"We used \\"Video Dialogue Replacement\\" to train an AI model to \\"understand\\" facial movements. By using lots of visual data of human faces it \\"learns\\" the different facial parts and how they move together when people speak. It can then realistically reconstruct videos frame by frame.","para3":"To make the deepfake first we needed a \\"target\\" video.","para4":"Our new video would look exactly the same as this one, except the mouth would say the new words. All the gestures and mannerisms, including his head movements, hands shuffling papers, and eyes blinking, would remain the same.","para5":"We picked Nixon\'s resignation speech because it had the right serious and somber tone.","para6":"We filmed an actor performing the contingency speech.","para7":"As the AI could now understand faces, it was able to map our actor\'s facial motion onto that of Nixon in the resignation video."},"audio":{"heading":"The Audio","para1":"We also wanted a synthetic version of Nixon\'s voice so we needed to create an audio AI model as well.","para2":"Again, we had to feed the model loads of data. Our actor recorded hundreds of short clips from Nixon Vietnam speeches.","para3":"We then had two parallel set
2s of audio: the original Nixon clips and our actor reading them.","para4":"This enabled the AI to learn how to \\"translate\\" one voice into the other.","para5":"We then recorded our actor reading the contingency speech and the AI \\"converted\\" it into Nixon\'s voice."},"complete":{"heading":"The Complete Deepfake","para1":"We synced the video and the audio and that made our \\"complete deepfake.\\""},"misc":{"scrollInstruction":"Scroll down to continue","buttonLabels":{"nixonTrainingAudio":"Nixon Training Clip","actorTrainingAudio":"Actor Training Clip","actorPerformanceAudio":"Actor Speech Performance Clip","syntheticNixonAudio":"Final Nixon Speech Clip","resources":"Resources"}},"meta":{"description":"How We Brought President Nixon Back to Life (And Killed the Astronauts of Apollo 11)","imageAlt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Behind the Scenes"}},"post":{"previousArticleDesktop":"Previous Article","previousArticleMobile":"Prev","nextArticleDesktop":"Next Article","nextArticleMobile":"Next"}}}'),_e=JSON.parse('{"translation":{"404":{"heading":"Månevandring?","subHeading":"Du leder efter noget, der ikke findes.","backButtonLabel":"Tilbage i sikkerhed!"},"menu":{"film":"Film","resources":"Ressourcer","about":"Om"},"opener":{"para1":"I 1969","para2":"samledes verden for at se månelandingen.","para3":"Det var ekstremt risikabelt, så der blev skrevet en backup-tale, hvis missionen mislykkedes.","para4":"Heldigvis blev den aldrig leveret.","para5":"Indtil nu ...","continueButtonLabel":"Start","meta":{"description":"Hvad hvis månelandingen var gået galt? In Event of Moon Disaster præsenterer en alternativ historie ved hjælp af deepfake-teknologi, der viser sit potentiale for misinformation.","imageAlt":"månelandskab med projektlogo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Hjem"}},"question":{"heading":"Kan du spotte en deepfake?","yes":"Ja","no":"Nej","yesResponse1":"OK, smarte","yesResponse2":"lad os se","noResponse1":"Bare rolig","noResponse2":"Det kan vi hjælpe med","meta":{"description":"Hvad hvis månelandingen var gået galt? In Event of Moon Disaster præsenterer en alternativ historie ved hjælp af deepfake-teknologi, der viser sit potentiale for misinformation.","imageAlt":"månelandskab med projektlogo","authorName":"Francesca Panetta and Halsey Burgund","title":"Kan du spotte en deepfake?"}},"film":{"meta":{"description":"Hvad hvis månelandingen var gået galt? In Event of Moon Disaster præsenterer en alternativ historie ved hjælp af deepfake-teknologi, der viser sit potentiale for misinformation.","imageAlt":"månelandskab med projektlogo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Home"}},"quiz":{"heading":"Lad os se, om du opdagede deepfaken","realButtonLabel":"Ægte","fakeButtonLabel":"Falsk","replaySpeechButtonLabel":"Genspil tale","skipToResourcesButtonLabel":"Tilbage til ressourcer","nextButtonLabel":"Næste","speech":{"name":"Tale","question":"Var teksten i talen ægte?","answer":"Virkelig","answerDetails":"Talen blev skrevet af præsident Nixons taleskriver, Bill Safire, i det tilfælde at noget gik galt, og astronauterne strandede på Månen.","correct":"Rigtigt!","incorrect":"Godt forsøg, men ..."},"face":{"name":"Ansigt","question":"Var Nixons ansigt ægte?","answer":"Falsk","answerDetails":"Nixon var en deepfake. Vi brugte kunstig intelligens til at manipulere området omkring hans mund for at få ham til at se ud til at holde talen.","correct":"Du er en rockstjerne!","incorrect":"Godt gæt, men ... "},"voice":{"name":"Stemme","question":"Var Nixons stemme ægte?","answer":"Falsk","answerDetails":"Nixons stemme var også en deepfake. Den blev fuldstændig syntetiseret ved hjælp af kunstig intelligens, som konverterede en skuespillers stemme, der leverede talen, til Nixons stemme.","correct":"Godt arbejde!","incorrect":"Ups... du blev narret!"},"archive":{"name":"Arkiv","question":"Var rumoptagelserne ægte?","answer":"
2Virkelig","answerDetails":"Alle de optagelser, vi brugte, var rigtige arkivoptagelser fra Apollo 11. Men vi brugte misinformationsteknikker til at fortælle en historie, der var meget forskellig fra, hvad der faktisk skete.","correct":"Juhuu!","incorrect":"Faktisk var det rigtigt."},"congrats":{"heading":"Tillykke!","subHeading":"Du er godt på vej til at blive en deepfake-detektiv!","buttonTextMobile":"Tryk her for at blive professionel","buttonTextDesktop":"Klik her for at blive professionel","retakeQuizButtonLabel":"Retake Quiz"},"meta":{"description":"Test dine deepfake spotting færdigheder! Efter at have set vores film, kan du fortælle korrekt, hvad der var ægte, og hvad der var falsk?","imageAlt":"månelandskab med projektlogo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Quiz"}},"resources":{"heading":"Ressourcer","subHeading":"En samling af undervisningsmaterialer, artikler og videoer, der hjælper dig med at forstå deepfakes, og hvad de betyder for fremtiden.","instructionsDesktop":"Brug pilen til at udforske kilderne","instructionsMobile":"Swipe for at udforske kilderne","interactiveLabel":"Interaktiv","articleLabel":"Artikel","videoLabel":"Video","linksLabel":"Links","behindTheScenesTitle":"Bag kulisserne","backToResourcesButtonLabel":"Tilbage til ressourcer","links":{"heading":"Undervisningsmaterialer på Filmcentralen","subHeading":"(Det Danske Filminstitut)","outboundLink1":"Grundskole","outboundLink2":"Gymnasie"},"meta":{"description":"En samling af artikler, videoer og interaktive oplevelser, der hjælper dig med at forstå stigningen i deepfakes, og hvor de er på vej hen.","imageAlt":"månelandskab med projektlogo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Ressourcer"}},"explainer":{"intro":{"heading":"Bag kulisserne","subHeading1":"Sådan bragte vi præsident Nixon til live igen","subHeading2":"(Og gjorde det af med astronauterne fra Apollo 11)"},"story":{"heading":"Historien","para1":"Vores inspiration var beredskabstalen for Apollo 11-missionen.","para2":"Den blev skrevet af præsident Richard Nixons taleskriver, Bill Safire, som skrev den i tilfælde af en ulykke på missionen.","para3":"Den farligste del af den otte dage lange rejse var at forlade Månen. Michael Collins, den \\"tredje astronaut\\" på missionen, sagde, at han \\"ikke ville give bedre end lige odds på en vellykket landing og tilbagevenden.\\""},"visuals":{"heading":"Det visuelle","para1":"Deepfakes er lavet ved hjælp af en type kunstig intelligens kaldet deep learning. Deep learning fungerer lidt som den menneskelige hjerne ved at genkende mønstre i data og \\"lære\\" ud fra dem.","para2":"Vi brugte \\"Video Dialogue Replacement\\" til at træne en AI-model til at \\"forstå\\" ansigtsbevægelser. Ved at bruge masser af visuelle data om menneskelige ansigter \\"lærer\\" den de forskellige ansigtsdele at kende, og hvordan de bevæger sig sammen, når folk taler. AI\'en kan derefter rekonstruere videoer billede for billede på en realistisk måde.","para3":"For at lave deepfaken havde vi først brug for en \\"mål\\"-video.","para4":"Vores nye video skulle se ud nøjagtig som denne, bortset fra at munden skulle sige de nye ord. Alle bevægelser og manerer, herunder hans hovedbevægelser, hænder, der blandede papirer og blinkende øjne, skulle forblive de samme.","para5":"Vi valgte Nixons afskedstale, fordi den havde den rigtige alvorlige og dystre tone.","para6":"Vi filmede en skuespiller, der udførte beredskabstalen.","para7":"Fordi AI\'en kunne forstå ansigter, var den i stand til at overføre vores skuespillers ansigtsbevægelse til Nixons ansigt i fratrædelsesvideoen."},"audio":{"heading":"Lyden","para1":"Vi havde også brug for en syntetisk version af Nixons stemme, så vi var nødt til at udvikle en AI-model til lyd.","para2":"Igen var vi nødt til at fodre modellen med masser af data. Vores skuespiller optog hundredvis af korte klip med Nixons Vietnamkrigs-taler.","para3":"Vi havde derefter to parallelle sæt lyd: de originale Nixon-klip og vores skuespiller, der gentog dem.","para4":"Det gjorde det muligt for AI\'en at lære at \\"oversætte\\" den ene stemme til den anden.","para5":"Vi optog derefter vores skuespiller, der læste beredskabstalen, og AI\'en \\"konverterede\\" den til Nixons stemme."},"complete":{"heading":"Den komplette Deepfake","para1":"Til sidst synkroniserede vi videoen og lyden og fik vores \\"komplette deepfake.\\""},"misc":{"scrollInstruction":"Scroll ned for at fortsætte","buttonLabels":{"nixonTrainingAudio":"Skuespiller gentager","actorTrainingAudio":"Skuespiller træningsklip","actorPerformanceAudio":"Skuespiller holder talen","syntheticNixonAudio":"Endelig AI-version","resources":"Ressourcer"}},"meta":{"description":"Hvordan vi bragte præsident Nixon til live igen (og gjorde det af med astronauterne fra Apollo 11)","imageAlt":"månelandskab med projektlogo","authorName":"Francesca Panetta og Halsey Burgund","title":"In Event of Moon Disaster - Behind the Scenes"}},"post":{"previousArticleDesktop":"Forrige artikel","previousArticleMobile":"Forrige","nextArticleDesktop":"Næste artikel","nextArticleMobile":"Næste"}}}'),Re=JSON.parse('{"translation":{"404":{"heading":"Moon Walk?","subHeading":"You are looking for something that doesn\'t exist.","backButtonLabel":"Back to safety!"},"menu":{"home":"Film","resources":"Resources","about":"About"},"opener":{"para1":"In 1969,","para2":"the world gathered to watch the moon landing.","para3":"It was extraordinarily risky, so a backup speech was written in case the mission failed.","para4":"Thankfully it was never delivered.","para5":"Until now...","continueButtonLabel":"Tap to continue","meta":{"description":"What if the moon landing had gone wrong? In Event of Moon Disaster presents an alternative history using deepfake tech showing its potential for misinformation.","image:alt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Home"}},"question":{"heading":"Can you spot a deepfake?","yes":"yes","no":"no","yesResponse1":"OK, hot shot","yesResponse2":"let\'s see","noResponse1":"Don\'t worry","noResponse2":"the following will help","meta":{"description":"What if the moon landing had gone wrong? In Event of Moon Disaster presents an alternative history using deepfake tech showing its potential for misinformation.","image:alt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"Can You Spot a Deepfake?"}}
2,"film":{"meta":{"description":"What if the moon landing had gone wrong? In Event of Moon Disaster presents an alternative history using deepfake tech showing its potential for misinformation.","image:alt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Film"}},"quiz":{"heading":"試看看你是否有辦法分辨深偽技術吧!","realButtonLabel":"真的","fakeButtonLabel":"假的","replaySpeechButtonLabel":"Replay Speech","skipToResourcesButtonLabel":"Skip to resources","nextButtonLabel":"下一題","speech":{"name":"演講稿","question":"演講稿的內容是真的嗎?","answer":"是真的","answerDetails":"演講稿是當時由尼克森總統的寫手威廉・薩菲爾撰寫的,目的是預防太空人受困於月球或發生其他意外時所需要。","correct":"答對了!","incorrect":"再想想吧…"},"face":{"name":"臉","question":"尼克森總統的臉是真的嗎?","answer":"是假的","answerDetails":"尼克森總統的臉是透過深偽技術做出來的。我們使用AI人工智慧技術去操縱他嘴部周圍的區域,讓他看起來像是在讀這份演講稿。","correct":"你太厲害了!","incorrect":"猜的好,不過…"},"voice":{"name":"聲音","question":"尼克森總統的聲音是真的嗎?","answer":"是假的","answerDetails":"尼克森總統的聲音也是透過深偽技術做出來的。我們把演員的聲音透過AI人工智慧技術合成、轉換成尼克森總統的聲音。","correct":"做的好!","incorrect":"哎呀,你被騙囉!"},"archive":{"name":"檔案","question":"那些太空艙片段是真的嗎?","answer":"是真的","answerDetails":"所有太空艙的片段都是使用阿波羅11號的真實檔案。但是,我們使用了假消息的手法來講述一個與事實完å
2…¨ç›¸åçš„æ•…事。","correct":"喔耶!","incorrect":"好可惜,但事實上…"},"congrats":{"heading":"恭喜你!","subHeading":"你正在成為深偽技術偵探的路上!","buttonTextMobile":"再玩一次","buttonTextDesktop":"再玩一次","retakeQuizButtonLabel":"再玩一次"},"meta":{"description":"Test your deepfake spotting skills! After watching our film, can you correctly tell what was real and what was fake?","image:alt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Quiz"}},"resources":{"heading":"Resources","subHeading":"A collection of articles, videos, and interactive experiences to help you understand the rise of deepfakes and where they\'re heading.","instructionsDesktop":"Use arrows to explore","instructionsMobile":"Swipe to explore","interactiveLabel":"Interactive","articleLabel":"Article","videoLabel":"Video","behindTheScenesTitle":"Behind the scenes","backToResourcesButtonLabel":"Back to Resources","meta":{"description":"A collection of articles, videos, and interactive experiences to help you understand the rise of deepfakes and where they\'re heading.","image:alt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Resources"}},"explainer":{"intro":{"heading":"幕後花絮","subHeading1":"我們是怎麼讓尼克森總統復活的呢","subHeading2":"(又是如何導致阿波羅11號的太空人死亡的呢)"},"story":{"heading":"故事","para1":"我們的靈感來源是阿波羅 11 號當時登月的備用演講稿。這份講稿是由理查.尼克森總統的寫手威廉・薩菲爾撰寫的,以備登月任務發生任何「失敗」時之需。","para2":"","para3":"而這八天最危險的部分就是離開月球,執行登月任務的第三位太空人麥可.柯林斯表示:「甚至無法給出比成功登陸並返回更好的機率」。"},"visuals":{"heading":"視覺","para1":"「深偽技術」是由一種AI人工智慧的技術──「深度學習」所製造的。它的工作方式有點像大腦:透過識別數據中的模式並從中「學習」。","para2":"我們使用了「同步對嘴錄影」(Video Dialogue Replacement)技術來訓練AI模型以「理解」臉部的動作。透過大量使用臉部的視覺數據,它「學習」了不同的臉部動作以及當人們說話時這些部位是如何一起動作,來一步一步真實地重建影片。","para3":"為了製作這件作品。","para4":"我們需要一個作為「目標」的影片,也就是除了嘴巴跟說出的話,完成作品會長得跟這部目標影片完全相同。像是所有的姿勢、習性,包括頭部動作、手持文件及眨眼等,都會相同。","para5":"而尼克森總統的辭職演說有足夠的嚴肅與陰鬱感,適合作為我們的「目標」影片。","para6":"我們拍攝了一位演員表演備用演說。","para7":"由於現在AI人工智慧已經可以理解臉部動作,因此可以將演員的臉部動作合成到尼克森總統的辭職演講影片裡了。"},"audio":{"heading":"聲音","para1":"我們還需要合成尼克森總統的聲音,因此也必須創建AI人工智慧的聲音模型。","para2":"同樣地,我們必須為模型提供大量的數據。為此,我們的演員錄製了與尼克森總統於越南演講相同的數百個小片段。","para3":"接著我們有兩組平行的音軌──原始尼克森總統的片段與我們演員模仿的片段。","para4":"這使AI人工智慧學習如何「轉化」演員的聲音為尼克森總統的。","para5":"最後AI人工智慧「合成」演員讀備用演說的片段至尼克森總統的聲音裡就完成了。"},"complete":{"heading":"完全的深偽技術","para1":"我們最後將影片及聲音同步以達到「完全的深偽技術」。"},"misc":{"scrollInstruction":"往下滑繼續","buttonLabels":{"nixonTrainingAudio":"尼克森總統的訓練片段","actorTrainingAudio":"演員的訓練片段","actorPerformanceAudio":"演員讀演講稿的片段","syntheticNixonAudio":"最後尼克森讀演講稿的片段","resources":"回到頂部"}},"meta":{"description":"How We Brought President Nixon Back to Life (And Killed the Astronauts of Apollo 11)","image:alt":"lunar landscape with project logo","authorName":"Francesca Panetta and Halsey Burgund","title":"In Event of Moon Disaster - Behind the Scenes"}}}}');!function(e){e.English="en",e.Danish="da",e.ChineseTaiwan="zh_tw"}(Pe||(Pe={}));var Be="da",Ue={en:Te,da:_e,zh_tw:Re};be.use(Ne).init({resources:Ue,lng:Be,interpolation:{escapeValue:!1}});var ze=be.t;function Ze(e){var t=e.startsWith("/")?e.substring(1):e;return"/"+(Be===Pe.English?t:t.substring(t.indexOf("-")+1))}var Fe=Object.values(Pe).join("|"),He=Be===Pe.English?"^(?!("+Fe+")-)":"^"+Be+"-"},7803:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return qo},useMenu:function(){return Wo}});var r=n(7294),o=n(6620),i=n(3431),a=n(3628),s=n(3366),u=n(7462),c=n(1008),l=n(6264),f=n(946),d=n(7994),p=n(5767);function h(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=(0,l.b)(e);!(t=o()).done;)r();return n}function v(e){for(var t,n=[],r=(0,l.b)(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function g(e){return e.slice().reverse()}function m(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t}
2)):e.find((function(e){return!e.disabled}))}function y(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=m(e.items||[]))||void 0===n?void 0:n.id}function b(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function w(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}var k=n(7681);function x(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function C(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&x(t.ref.current,e.ref.current)}))}function M(e){for(var t,n=0,r=(0,l.b)(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function O(e){for(var t=h(e),n=M(t),r=[],o=0;o<n;o+=1)for(var i,a=(0,l.b)(t);!(i=a()).done;){var s=i.value;s[o]&&r.push((0,l.a)((0,l.a)({},s[o]),{},{groupId:s[o].groupId?""+o:void 0}))}return r}function E(e,t,n){for(var r,o=M(e),i=(0,l.b)(e);!(r=i()).done;)for(var a=r.value,s=0;s<o;s+=1){var u=a[s];if(!u||n&&u.disabled){var c=0===s&&n?m(a):a[s-1];a[s]=c&&t!==(null==c?void 0:c.id)&&n?c:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==c?void 0:c.groupId}}}return e}var I={id:null,ref:{current:null}};function S(e,t){return e.filter((function(e){return e.groupId===t}))}var j={horizontal:"vertical",vertical:"horizontal"};function A(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function D(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],i=t[0],a=t[1],s=o.ref.current,u=a.ref.current;return s&&u?x(s,u)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function L(e,t){var n=D(e);e!==n&&t(n)}function N(e,t){var n=(0,r.useRef)([]);(0,r.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,i=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var a=i();if("object"==typeof a)return a.v}return(0,p.M)(o).body}(e),i=new IntersectionObserver((function(){!!n.current.length&&L(e,t),n.current=e}),{root:o}),a=(0,l.b)(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function P(e,t){"function"==typeof IntersectionObserver?N(e,t):function(e,t){(0,r.useEffect)((function(){var n=setTimeout((function(){return L(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function T(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,i=e.items,a=e.groups,s=e.currentId,u=e.loop,c=e.wrap,f=e.pastIds,d=e.shift,p=e.unstable_moves,k=e.unstable_includesBaseElement,x=e.initialVirtual,M=e.initialRTL,L=e.initialOrientation,N=e.initialCurrentId,P=e.initialLoop,_=e.initialWrap,R=e.initialShift,B=e.hasSetCurrentId;switch(t.type){case"registerGroup":var U=t.group;if(0===a.length)return(0,l.a)((0,l.a)({},e),{},{groups:[U]});var z=C(a,U);return(0,l.a)((0,l.a)({},e),{},{groups:A(a,U,z)});case"unregisterGroup":var Z=t.id,F=a.filter((function(e){return e.id!==Z}));return F.length===a.length?e:(0,l.a)((0,l.a)({},e),{},{groups:F});case"registerItem":var H,W=t.item,q=a.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(W.ref.current)})),Q=(0,l.a)({groupId:null==q?void 0:q.id},W),Y=C(i,Q),K=(0,l.a)((0,l.a)({},e),{},{items:A(i,Q,Y)});return B||p||void 0!==N?K:(0,l.a)((0,l.a)({},K),{},{currentId:null===(H=m(K.items))||void 0===H?void 0:H.id});case"unregisterItem":var G=t.id,V=i.filter((function(e){return e.id!==G}));if(V.length===i.length)return e;var $=f.filter((function(e){return e!==G})),J=(0,l.a)((0,l.a)({},e),{},{pastIds:$,items:V});if(s&&s===G){var X=k?null:y((0,l.a)((0,l.a)({},J),{},{currentId:$[0]}));return(0,l.a)((0,l.a)({},J),{},{currentId:X})}return J;case"move":var ee=t.id;if(void 0===ee)return e;var te=f.filter((function(e){return e!==s&&e!==ee})),ne=s?[s].concat(te):te,re=(0,l.a)((0,l.a)({},e),{},{pastIds:ne});if(null===ee)return(0,l.a)((0,l.a)({},re),{},{unstable_moves:p+1,currentId:y(re,ee)});var oe=b(i,ee);return(0,l.a)((0,l.a)({},re),{},{unstable_moves:oe?p+1:p,currentId:y(re,null==oe?void 0:oe.id)});case"next":if(null==s)return T(e,(0,l.a)((0,l.a)({},t),{},{type:"first"}));var ie=r&&"vertical"!==o,ae=ie?g(i):i,se=ae.find((function(e){return e.id===s}));if(!se)return T(e,(0,l.a)((0,l.a)({},t),{},{type:"first"}));var ue=!!se.groupId,ce=ae.indexOf(se),le=ae.slice(ce+1),fe=S(le,se.groupId);if(t.allTheWay){var de=m(ie?S(ae,se.groupId):g(fe));return T(e,(0,l.a)((0,l.a)({},t),{},{type:"move",id:null==de?void 0:de.id}))}var pe=function(e){return e&&j[e]}(ue?o||"horizontal":o),he=u&&u!==pe,ve=ue&&c&&c!==pe,ge=t.hasNullItem||!ue&&he&&k;if(he){var me=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[I]:[],e.slice(0,r))}(ve&&!ge?ae:S(ae,se.groupId),s,ge),ye=m(me,s);return T(e,(0,l.a)((0,l.a)({},t),{},{type:"move",id:null==ye?void 0:ye.id}))}if(ve){var be=m(ge?fe:le,s),we=ge?(null==be?void 0:be.id)||null:null==be?void 0:be.id;return T(e,(0,l.a)((0,l.a)({},t),{},{type:"move",id:we}))}var ke=m(fe,s);return T(e,!ke&&ge?(0,l.a)((0,l.a)({},t),{},{type:"move",id:null}):(0,l.a)((0,l.a)({},t),{},{type:"move",id:null==ke?void 0:ke.id}));case"previous":var xe=!!!a.length&&k,Ce=T((0,l.a)((0,l.a)({},e),{},{items:g(i)}),(0,l.a)((0,l.a)({},t),{},{type:"next",hasNullItem:xe}));return(0,l.a)((0,l.a)({},Ce),{},{items:i});
2case"down":var Me=d&&!t.allTheWay,Oe=O(v(E(h(i),s,Me))),Ee=u&&"horizontal"!==u&&k,Ie=T((0,l.a)((0,l.a)({},e),{},{orientation:"vertical",items:Oe}),(0,l.a)((0,l.a)({},t),{},{type:"next",hasNullItem:Ee}));return(0,l.a)((0,l.a)({},Ie),{},{orientation:o,items:i});case"up":var Se=d&&!t.allTheWay,je=O(g(v(E(h(i),s,Se)))),Ae=k,De=T((0,l.a)((0,l.a)({},e),{},{orientation:"vertical",items:je}),(0,l.a)((0,l.a)({},t),{},{type:"next",hasNullItem:Ae}));return(0,l.a)((0,l.a)({},De),{},{orientation:o,items:i});case"first":var Le=m(i);return T(e,(0,l.a)((0,l.a)({},t),{},{type:"move",id:null==Le?void 0:Le.id}));case"last":var Ne=T((0,l.a)((0,l.a)({},e),{},{items:g(i)}),(0,l.a)((0,l.a)({},t),{},{type:"first"}));return(0,l.a)((0,l.a)({},Ne),{},{items:i});case"sort":return(0,l.a)((0,l.a)({},e),{},{items:D(i),groups:D(a)});case"setVirtual":return(0,l.a)((0,l.a)({},e),{},{unstable_virtual:w(t.virtual,n)});case"setRTL":return(0,l.a)((0,l.a)({},e),{},{rtl:w(t.rtl,r)});case"setOrientation":return(0,l.a)((0,l.a)({},e),{},{orientation:w(t.orientation,o)});case"setCurrentId":var Pe=y((0,l.a)((0,l.a)({},e),{},{currentId:w(t.currentId,s)}));return(0,l.a)((0,l.a)({},e),{},{currentId:Pe,hasSetCurrentId:!0});case"setLoop":return(0,l.a)((0,l.a)({},e),{},{loop:w(t.loop,u)});case"setWrap":return(0,l.a)((0,l.a)({},e),{},{wrap:w(t.wrap,c)});case"setShift":return(0,l.a)((0,l.a)({},e),{},{shift:w(t.shift,d)});case"setIncludesBaseElement":return(0,l.a)((0,l.a)({},e),{},{unstable_includesBaseElement:w(t.includesBaseElement,k)});case"reset":return(0,l.a)((0,l.a)({},e),{},{unstable_virtual:x,rtl:M,orientation:L,currentId:y((0,l.a)((0,l.a)({},e),{},{currentId:N})),loop:P,wrap:_,shift:R,unstable_moves:0,pastIds:[]});case"setItems":return(0,l.a)((0,l.a)({},e),{},{items:t.items});default:throw new Error}}function _(e){return(0,r.useCallback)(e,[])}function R(e){void 0===e&&(e={});var t=(0,f.T)(e),n=t.unstable_virtual,o=void 0!==n&&n,i=t.rtl,a=void 0!==i&&i,s=t.orientation,u=t.currentId,c=t.loop,p=void 0!==c&&c,h=t.wrap,v=void 0!==h&&h,g=t.shift,m=void 0!==g&&g,y=t.unstable_includesBaseElement,b=(0,l._)(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"]),w=(0,k.C)(b),x=(0,r.useReducer)(T,{unstable_virtual:o,rtl:a,orientation:s,items:[],groups:[],currentId:u,loop:p,wrap:v,shift:m,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=y?y:null===u,initialVirtual:o,initialRTL:a,initialOrientation:s,initialCurrentId:u,initialLoop:p,initialWrap:v,initialShift:m}),C=x[0],M=(C.pastIds,C.initialVirtual,C.initialRTL,C.initialOrientation,C.initialCurrentId,C.initialLoop,C.initialWrap,C.initialShift,C.hasSetCurrentId,(0,l._)(C,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),O=x[1],E=(0,r.useState)(!1),I=E[0],S=E[1],j=function(){var e=(0,r.useRef)(!1);return(0,d.Y)((function(){return function(){e.current=!0}}),[]),e}(),A=(0,r.useCallback)((function(e){return O({type:"setItems",items:e})}),[]);return P(M.items,A),(0,l.a)((0,l.a)((0,l.a)({},w),M),{},{unstable_hasActiveWidget:I,unstable_setHasActiveWidget:S,registerItem:_((function(e){j.current||O({type:"registerItem",item:e})})),unregisterItem:_((function(e){j.current||O({type:"unregisterItem",id:e})})),registerGroup:_((function(e){j.current||O({type:"registerGroup",group:e})})),unregisterGroup:_((function(e){j.current||O({type:"unregisterGroup",id:e})})),move:_((function(e){return O({type:"move",id:e})})),next:_((function(e){return O({type:"next",allTheWay:e})})),previous:_((function(e){return O({type:"previous",allTheWay:e})})),up:_((function(e){return O({type:"up",allTheWay:e})})),down:_((function(e){return O({type:"down",allTheWay:e})})),first:_((function(){return O({type:"first"})})),last:_((function(){return O({type:"last"})})),sort:_((function(){return O({type:"sort"})})),unstable_setVirtual:_((function(e){return O({type:"setVirtual",virtual:e})})),setRTL:_((function(e){return O({type:"setRTL",rtl:e})})),setOrientation:_((function(e){return O({type:"setOrientation",orientation:e})})),setCurrentId:_((function(e){return O({type:"setCurrentId",currentId:e})})),setLoop:_((function(e){return O({type:"setLoop",loop:e})})),setWrap:_((function(e){return O({type:"setWrap",wrap:e})})),setShift:_((function(e){return O({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:_((function(e){return O({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:_((function(){return O({type:"reset"})}))})}function B(e){void 0===e&&(e={});var t=(0,f.T)(e),n=t.orientation,r=void 0===n?"horizontal":n,o=(0,l._)(t,["orientation"]);return R((0,l.a)({orientation:r},o))}var U=n(6163),z=n(6004),Z=(n(7311),n(5410)),F=n(8161),H=n(9843),W=n(2627),q=n(8081),Q=n(7774),Y=n(5559);function K(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=(0,p.M)(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function G(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):K(e,t,n)}function V(e,t){var n=G(e,"blur",t),r=e.dispatchEvent(n),o=(0,Y.a)((0,Y.a)({},t),{},{bubbles:!0});return e.dispatchEvent(G(e,"focusout",o)),r}var $=n(3524);function J(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);
2var r=(0,p.M)(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,(0,$.J)(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var X=n(7175),ee=n(9334),te=X.N&&"msCrypto"in window;function ne(e){return te?(0,ee.v)(e.currentTarget):e.relatedTarget}var re=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],oe=re;function ie(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ae(e,t){e.userFocus=t}var se=X.N&&"msCrypto"in window;function ue(e,t,n){var o=(0,H.c)(n);return(0,r.useCallback)((function(n){var r;if(null===(r=o.current)||void 0===r||r.call(o,n),!n.defaultPrevented&&e&&function(e){return!!(0,W.U)(e)&&!e.metaKey&&"Tab"!==e.key}(n)){var i=null==t?void 0:t.ref.current;i&&(J(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function ce(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var le=(0,z.B)({name:"Composite",compose:[Q.u],keys:re,useOptions:function(e){return(0,l.a)((0,l.a)({},e),{},{currentId:y(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocusCapture,i=t.onFocus,a=t.onBlurCapture,s=t.onKeyDown,u=t.onKeyDownCapture,c=t.onKeyUpCapture,f=(0,l._)(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),d=(0,r.useRef)(null),y=b(e.items,e.currentId),w=(0,r.useRef)(null),k=(0,H.c)(o),x=(0,H.c)(i),C=(0,H.c)(a),M=(0,H.c)(s),O=function(e){var t=(0,H.c)(e),n=(0,r.useReducer)((function(e){return e+1}),0),o=n[0],i=n[1];return(0,r.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;o&&n&&ie(n)}),[o]),i}(y),E=se?function(e){var t=(0,r.useRef)(null);return(0,r.useEffect)((function(){var n=(0,p.M)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(d):void 0;(0,r.useEffect)((function(){var t=d.current;e.unstable_moves&&!y&&(null==t||t.focus())}),[e.unstable_moves,y]);var I=ue(e.unstable_virtual,y,u),S=ue(e.unstable_virtual,y,c),j=(0,r.useCallback)((function(t){var n;if(null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==E?void 0:E.current)||t.relatedTarget,o=ce(e.items,r);(0,W.U)(t)&&o&&(t.stopPropagation(),w.current=r)}}),[e.unstable_virtual,e.items]),A=(0,r.useCallback)((function(t){var n;if(null===(n=x.current)||void 0===n||n.call(x,t),!t.defaultPrevented)if(e.unstable_virtual)(0,W.U)(t)&&O();else if((0,W.U)(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),D=(0,r.useCallback)((function(t){var n;if(null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==y?void 0:y.ref.current)||null,o=ne(t),i=ce(e.items,o);if((0,W.U)(t)&&i)o===r?w.current&&w.current!==o&&V(w.current,t):r&&V(r,t),t.stopPropagation();else!ce(e.items,t.target)&&r&&V(r,t)}}),[e.unstable_virtual,e.items,y]),L=(0,r.useCallback)((function(t){var n,r;if(null===(n=M.current)||void 0===n||n.call(M,t),!t.defaultPrevented&&null===e.currentId&&(0,W.U)(t)){var o="horizontal"!==e.orientation,i="vertical"!==e.orientation,a=!(null===(r=e.groups)||void 0===r||!r.length),s={ArrowUp:(a||o)&&function(){if(a){var t,n=m(v(g(h(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(a||i)&&e.first,ArrowDown:(a||o)&&e.first,ArrowLeft:(a||i)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last}[t.key];s&&(t.preventDefault(),s())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return(0,l.a)({ref:(0,F.c)(d,n),id:e.baseId,onFocus:A,onFocusCapture:j,onBlurCapture:D,onKeyDownCapture:I,onKeyDown:L,onKeyUpCapture:S,"aria-activedescendant":e.unstable_virtual&&(null==y?void 0:y.id)||void 0},f)},useComposeProps:function(e,t){t=(0,q.q)(e,t,!0);var n=(0,Q.u)(e,t,!0);return e.unstable_virtual||null===e.currentId?(0,l.a)({tabIndex:0},n):(0,l.a)((0,l.a)({},t),{},{ref:n.ref})}}),fe=((0,U.L)({as:"div",useHook:le,useCreateElement:function(e,t,n){return(0,Z.C)(e,t,n)}}),["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"]),de=fe,pe=(0,z.B)({name:"Toolbar",compose:le,keys:fe,useProps:function(e,t){return(0,l.a)({role:"toolbar","aria-orientation":e.orientation},t)}}),he=(0,U.L)({as:"div",useHook:pe,useCreateElement:function(e,t,n){return(0,Z.C)(e,t,n)}}),ve=n(3991),ge=n(7726),me=n(8197);function ye(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(o){return!1}}function be(e){var t=(0,ee.v)(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function we(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?be:o;return i(e)?-1:(e.focus({preventScroll:r}),i(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:r})})))}var ke=n(4355),xe=[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),Ce=(0,z.B)({keys:xe,useOptions:function(e,t){var n=(0,r.useContext)(ke.U),o=(0,r.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],i=(0,r.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),a=t.id||e.id||""+i+o;return(0,l.a)((0,l.a)({},e),{},{id:a})},useProps:function(e,t){return(0,l.a)({id:e.id},t)}});(0,U.L)({as:"div",useHook:Ce});function Me(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(K(e,t,n))}(e,"input",{bubbles:!0}))}}function Oe(e){return e.querySelector("[data-composite-item-widget]")}var Ee=(0,z.B)({name:"CompositeItem",compose:[me.h,Ce],keys:oe,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return me.h.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=(0,l._)(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=(0,l._)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return me.h.unstable_propsAreEqual(o,s)},useOptions:function(e){return(0,l.a)((0,l.a)({},e),{},{id:e.id,currentId:y(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,i=t.tabIndex,a=void 0===i?0:i,s=t.onMouseDown,u=t.onFocus,c=t.onBlurCapture,f=t.onKeyDown,d=t.onClick,h=(0,l._)(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),v=(0,r.useRef)(null),g=e.id,m=e.disabled&&!e.focusable,y=e.currentId===g,b=(0,H.c)(y),w=(0,r.useRef)(!1),k=function(e){return(0,r.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),x=(0,H.c)(s),C=(0,H.c)(u),M=(0,H.c)(c),O=(0,H.c)(f),E=(0,H.c)(d),I=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,r.useEffect)((function(){var t;if(g)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:g,ref:v,disabled:!!m}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,g)}}),[g,m,e.registerItem,e.unregisterItem]),(0,r.useEffect)((function(){var t=v.current;t&&e.unstable_moves&&b.current&&ie(t)}),[e.unstable_moves]);var S=(0,r.useCallback)((function(e){var t;null===(t=x.current)||void 0===t||t.call(x,e),ae(e.currentTarget,!0)}),[]),j=(0,r.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ae(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!(0,ge.K)(t)&&g&&!function(e,t){if((0,W.U)(e))return!1;for(var n,r=(0,l.b)(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,g),o&&e.unstable_virtual&&e.baseId&&(0,W.U)(t))){var i=t.target,a=(0,p.M)(i).getElementById(e.baseId);a&&(w.current=!0,we(a))}}),[g,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),A=(0,r.useCallback)((function(t){var n;null===(n=M.current)||void 0===n||n.call(M,t),t.defaultPrevented||e.unstable_virtual&&w.current&&(w.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),D=(0,r.useCallback)((function(t){var n;if((0,W.U)(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==k||!k.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=O.current)||void 0===n||n.call(O,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Oe(t.currentTarget);s&&ye(s)&&(s.focus(),Me(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var u=Oe(t.currentTarget);u&&ye(u)&&(t.preventDefault(),Me(u,""))}}}),[e.orientation,k,e.up,e.next,e.down,e.previous,e.first,e.last]),L=(0,r.useCallback)((function(e){var t;if(null===(t=E.current)||void 0===t||t.call(E,e),!e.defaultPrevented){var n=Oe(e.currentTarget);n&&!(0,ve.B)(n)&&n.focus()}}),[]);return(0,l.a)({ref:(0,F.c)(v,o),id:g,tabIndex:I?a:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:S,onFocus:j,onBlurCapture:A,onKeyDown:D,onClick:L},h)}}),Ie=((0,U.L)({as:"button",memo:!0,useHook:Ee}),(0,z.B)({name:"ToolbarItem",compose:Ee,keys:de})),Se=(0,U.L)({as:"button",memo:!0,useHook:Ie}),je=n(2027),Ae=n(5505);function De(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Le(e){return e instanceof De(e).Element||e instanceof Element}function Ne(e){return e instanceof De(e).HTMLElement||e instanceof HTMLElement}function Pe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof De(e).ShadowRoot||e instanceof ShadowRoot)}var Te=Math.max,_e=Math.min,Re=Math.round;function Be(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ue(){return!/^((?!chrome|android).)*safari/i.test(Be())}function ze(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ne(e)&&(o=e.offsetWidth>0&&Re(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Re(r.height)/e.offsetHeight||1);
vendor: 4,445 bytes, line 2
2var a=(Le(e)?De(e):window).visualViewport,s=!Ue()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,l=r.width/o,f=r.height/i;return{width:l,height:f,top:c,right:u+l,bottom:c+f,left:u,x:u,y:c}}function Ze(e){var t=De(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fe(e){return e?(e.nodeName||"").toLowerCase():null}function He(e){return((Le(e)?e.ownerDocument:e.document)||window.document).documentElement}function We(e){return ze(He(e)).left+Ze(e).scrollLeft}function qe(e){return De(e).getComputedStyle(e)}function Qe(e){var t=qe(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ye(e,t,n){void 0===n&&(n=!1);var r,o,i=Ne(t),a=Ne(t)&&function(e){var t=e.getBoundingClientRect(),n=Re(t.width)/e.offsetWidth||1,r=Re(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=He(t),u=ze(e,a,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Fe(t)||Qe(s))&&(c=(r=t)!==De(r)&&Ne(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Ze(r)),Ne(t)?((l=ze(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=We(s))),{x:u.left+c.scrollLeft-l.x,y:u.top+c.scrollTop-l.y,width:u.width,height:u.height}}function Ke(e){var t=ze(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ge(e){return"html"===Fe(e)?e:e.assignedSlot||e.parentNode||(Pe(e)?e.host:null)||He(e)}function Ve(e){return["html","body","#document"].indexOf(Fe(e))>=0?e.ownerDocument.body:Ne(e)&&Qe(e)?e:Ve(Ge(e))}function $e(e,t){var n;void 0===t&&(t=[]);var r=Ve(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=De(r),a=o?[i].concat(i.visualViewport||[],Qe(r)?r:[]):r,s=t.concat(a);return o?s:s.concat($e(Ge(a)))}function Je(e){return["table","td","th"].indexOf(Fe(e))>=0}function Xe(e){return Ne(e)&&"fixed"!==qe(e).position?e.offsetParent:null}function et(e){for(var t=De(e),n=Xe(e);n&&Je(n)&&"static"===qe(n).position;)n=Xe(n);return n&&("html"===Fe(n)||"body"===Fe(n)&&"static"===qe(n).position)?t:n||function(e){var t=/firefox/i.test(Be());if(/Trident/i.test(Be())&&Ne(e)&&"fixed"===qe(e).position)return null;var n=Ge(e);for(Pe(n)&&(n=n.host);Ne(n)&&["html","body"].indexOf(Fe(n))<0;){var r=qe(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var tt="top",nt="bottom",rt="right",ot="left",it="auto",at=[tt,nt,rt,ot],st="start",ut="end",ct="viewport",lt="popper",ft=at.reduce((function(e,t){return e.concat([t+"-"+st,t+"-"+ut])}),[]),dt=[].concat(at,[it]).reduce((function(e,t){return e.concat([t,t+"-"+st,t+"-"+ut])}),[]),pt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ht(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var vt={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function mt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?vt:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},vt,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,l={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;f(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Le(e)?$e(e):e.contextElement?$e(e.contextElement):[],popper:$e(t)};var a=function(e){var t=ht(e);return pt.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled}
vendor: 6,363 bytes, line 2
2)),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:r}),a=function(){};u.push(i||a)}})),l.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(gt(t,n)){s.rects={reference:Ye(t,et(n),"fixed"===s.options.strategy),popper:Ke(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,u=void 0===a?{}:a,f=o.name;"function"==typeof i&&(s=i({state:s,options:u,name:f,instance:l})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){f(),c=!0}};if(!gt(e,t))return l;function f(){u.forEach((function(e){return e()})),u=[]}return l.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var yt={passive:!0};function bt(e){return e.split("-")[0]}function wt(e){return e.split("-")[1]}function kt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xt(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?bt(o):null,a=o?wt(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case tt:t={x:s,y:n.y-r.height};break;case nt:t={x:s,y:n.y+n.height};break;case rt:t={x:n.x+n.width,y:u};break;case ot:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?kt(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case st:t[c]=t[c]-(n[l]/2-r[l]/2);break;case ut:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var Ct={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,h=a.y,v=void 0===h?0:h,g="function"==typeof l?l({x:p,y:v}):{x:p,y:v};p=g.x,v=g.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=ot,w=tt,k=window;if(c){var x=et(n),C="clientHeight",M="clientWidth";if(x===De(n)&&"static"!==qe(x=He(n)).position&&"absolute"===s&&(C="scrollHeight",M="scrollWidth"),o===tt||(o===ot||o===rt)&&i===ut)w=nt,v-=(f&&x===k&&k.visualViewport?k.visualViewport.height:x[C])-r.height,v*=u?1:-1;if(o===ot||(o===tt||o===nt)&&i===ut)b=rt,p-=(f&&x===k&&k.visualViewport?k.visualViewport.width:x[M])-r.width,p*=u?1:-1}var O,E=Object.assign({position:s},c&&Ct),I=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Re(t*r)/r||0,y:Re(n*r)/r||0}}({x:p,y:v}):{x:p,y:v};return p=I.x,v=I.y,u?Object.assign({},E,((O={})[w]=y?"0":"",O[b]=m?"0":"",O.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",O)):Object.assign({},E,((t={})[w]=y?v+"px":"",t[b]=m?p+"px":"",t.transform="",t))}var Ot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=dt.reduce((function(e,n){return e[n]=function(e,t,n){var r=bt(e),o=[ot,tt].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ot,rt].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},Et={left:"right",right:"left",bottom:"top",top:"bottom"};function It(e){return e.replace(/left|right|bottom|top/g,(function(e){return Et[e]}))}var St={start:"end",end:"start"};function jt(e){return e.replace(/start|end/g,(function(e){return St[e]}))}function At(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pe(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lt(e,t,n){return t===ct?Dt(function(e,t){var n=De(e),r=He(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=Ue();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+We(e),y:u}}(e,n)):Le(t)?function(e,t){var n=ze(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Dt(function(e){var t,n=He(e),r=Ze(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Te(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Te(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+We(e),u=-r.scrollTop;return"rtl"===qe(o||n).direction&&(s+=Te(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(He(e)))}function Nt(e,t,n,r){var o="clippingParents"===t?function(e){var t=$e(Ge(e)),n=["absolute","fixed"].indexOf(qe(e).position)>=0&&Ne(e)?et(e):e;return Le(n)?t.filter((function(e){return Le(e)&&At(e,n)&&"body"!==Fe(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Lt(e,n,r);return t.top=Te(o.top,t.top),t.right=_e(o.right,t.right),t.bottom=_e(o.bottom,t.bottom),t.left=Te(o.left,t.left),t}),Lt(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Pt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Tt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function _t(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,u=void 0===s?"clippingParents":s,c=n.rootBoundary,l=void 0===c?ct:c,f=n.elementContext,d=void 0===f?lt:f,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,g=void 0===v?0:v,m=Pt("number"!=typeof g?g:Tt(g,at)),y=d===lt?"reference":lt,b=e.rects.popper,w=e.elements[h?y:d],k=Nt(Le(w)?w:w.contextElement||He(e.elements.popper),u,l,a),x=ze(e.elements.reference),C=xt({reference:x,element:b,strategy:"absolute",placement:o}),M=Dt(Object.assign({},b,C)),O=d===lt?M:x,E={top:k.top-O.top+m.top,bottom:O.bottom-k.bottom+m.bottom,left:k.left-O.left+m.left,right:O.right-k.right+m.right},I=e.modifiersData.offset;if(d===lt&&I){var S=I[o];
vendor: 4,411 bytes, line 2
2Object.keys(E).forEach((function(e){var t=[rt,nt].indexOf(e)>=0?1:-1,n=[tt,nt].indexOf(e)>=0?"y":"x";E[e]+=S[n]*t}))}return E}function Rt(e,t,n){return Te(e,_e(t,n))}var Bt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,g=_t(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:l}),m=bt(t.placement),y=wt(t.placement),b=!y,w=kt(m),k="x"===w?"y":"x",x=t.modifiersData.popperOffsets,C=t.rects.reference,M=t.rects.popper,O="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(x){if(i){var j,A="y"===w?tt:ot,D="y"===w?nt:rt,L="y"===w?"height":"width",N=x[w],P=N+g[A],T=N-g[D],_=p?-M[L]/2:0,R=y===st?C[L]:M[L],B=y===st?-M[L]:-C[L],U=t.elements.arrow,z=p&&U?Ke(U):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=Z[A],H=Z[D],W=Rt(0,C[L],z[L]),q=b?C[L]/2-_-W-F-E.mainAxis:R-W-F-E.mainAxis,Q=b?-C[L]/2+_+W+H+E.mainAxis:B+W+H+E.mainAxis,Y=t.elements.arrow&&et(t.elements.arrow),K=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(j=null==I?void 0:I[w])?j:0,V=N+Q-G,$=Rt(p?_e(P,N+q-G-K):P,N,p?Te(T,V):T);x[w]=$,S[w]=$-N}if(s){var J,X="x"===w?tt:ot,ee="x"===w?nt:rt,te=x[k],ne="y"===k?"height":"width",re=te+g[X],oe=te-g[ee],ie=-1!==[tt,ot].indexOf(m),ae=null!=(J=null==I?void 0:I[k])?J:0,se=ie?re:te-C[ne]-M[ne]-ae+E.altAxis,ue=ie?te+C[ne]+M[ne]-ae-E.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Rt(e,t,n);return r>n?n:r}(se,te,ue):Rt(p?se:re,te,p?ue:oe);x[k]=ce,S[k]=ce-te}t.modifiersData[r]=S}},requiresIfExists:["offset"]};var Ut={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=bt(n.placement),u=kt(s),c=[ot,rt].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return Pt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Tt(e,at))}(o.padding,n),f=Ke(i),d="y"===u?tt:ot,p="y"===u?nt:rt,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],g=et(i),m=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,y=h/2-v/2,b=l[d],w=m-f[c]-l[p],k=m/2-f[c]/2+y,x=Rt(b,k,w),C=u;n.modifiersData[r]=((t={})[C]=x,t.centerOffset=x-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&At(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Zt(e){return[tt,rt,nt,ot].some((function(t){return e[t]>=0}))}var Ft=mt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,u=De(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,yt)})),s&&u.addEventListener("resize",n.update,yt),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,yt)})),s&&u.removeEventListener("resize",n.update,yt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=xt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:bt(t.placement),variation:wt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Mt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roun
2dOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Ne(o)&&Fe(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Ne(r)&&Fe(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Ot,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,g=t.options.placement,m=bt(g),y=u||(m===g||!h?[It(g)]:function(e){if(bt(e)===it)return[];var t=It(e);return[jt(e),t,jt(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(bt(n)===it?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?dt:u,l=wt(r),f=l?s?ft:ft.filter((function(e){return wt(e)===l})):at,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=_t(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[bt(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,k=t.rects.popper,x=new Map,C=!0,M=b[0],O=0;O<b.length;O++){var E=b[O],I=bt(E),S=wt(E)===st,j=[tt,nt].indexOf(I)>=0,A=j?"width":"height",D=_t(t,{placement:E,boundary:l,rootBoundary:f,altBoundary:d,padding:c}),L=j?S?rt:ot:S?nt:tt;w[A]>k[A]&&(L=It(L));var N=It(L),P=[];if(i&&P.push(D[I]<=0),s&&P.push(D[L]<=0,D[N]<=0),P.every((function(e){return e}))){M=E,C=!1;break}x.set(E,P)}if(C)for(var T=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},_=h?3:1;_>0;_--){if("break"===T(_))break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Bt,Ut,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=_t(t,{elementContext:"reference"}),s=_t(t,{altBoundary:!0}),u=zt(a,r),c=zt(s,o,i),l=Zt(u),f=Zt(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Ht=n(6692);var Wt=(0,Ae.N)("Mac")&&!(0,Ae.N)("Chrome")&&(0,Ae.N)("Safari");function qt(e){return function(t){return e&&!(0,je.w)(t,e)?e:t}}function Qt(e){void 0===e&&(e={});var t=(0,f.T)(e),n=t.gutter,o=void 0===n?12:n,i=t.placement,a=void 0===i?"bottom":i,s=t.unstable_flip,u=void 0===s||s,c=t.unstable_offset,p=t.unstable_preventOverflow,h=void 0===p||p,v=t.unstable_fixed,g=void 0!==v&&v,m=t.modal,y=void 0!==m&&m,b=(0,l._)(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),w=(0,r.useRef)(null),k=(0,r.useRef)(null),x=(0,r.useRef)(null),C=(0,r.useRef)(null),M=(0,r.useState)(a),O=M[0],E=M[1],I=(0,r.useState)(a),S=I[0],j=I[1],A=(0,r.useState)(c||[0,o])[0],D=(0,r.useState)({position:"fixed",left:"100%",top:"100%"}),L=D[0],N=D[1],P=(0,r.useState)({}),T=P[0],_=P[1],R=function(e){void 0===e&&(e={});var t=(0,f.T)(e),n=t.modal,o=void 0===n||n,i=(0,l._)(t,["modal"]),a=(0,Ht.b)(i),s=(0,r.useState)(o),u=s[0],c=s[1],d=(0,r.useRef)(null);return(0,l.a)((0,l.a)({},a),{},{modal:u,setModal:c,unstable_disclosureRef:d})}((0,l.a)({modal:y},b)),B=(0,r.useCallback)((function(){return!!w.current&&(w.current.forceUpdate(),!0)}),[]),U=(0,r.useCallback)((function(e){e.placement&&j(e.placement),e.styles&&(N(qt(e.styles.popper)),C.current&&_(qt(e.styles.arrow)))}),[]);return(0,d.Y)((function(){return k.current&&x.current&&(w.current=Ft(k.current,x.current,{placement:O,strategy:g?"fixed":"absolute",onFirstUpdate:Wt?U:void 0,modifiers:[{name:"eventListeners",enabled:R.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:u,options:{padding:8}},{name:"offset",options:{offset:A}},{name:"preventOverflow",enabled:h,options:{tetherOffset:function(){var e;return(null===(e=C.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!C.current,options:{element:C.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:R.visible&&!0,fn:function(e){var t=e.state;return U(t)}}]})),function(){w.current&&(w.current.destroy(),w.current=null)}}),[O,g,R.visible,u,A,h]),(0,r.useEffect)((function(){if(R.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=w.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[R.visible]),(0,l.a)((0,l.a)({},R),{},{unstable_referenceRef:k,unstable_popoverRef:x,unstable_arrowRef:C,unstable_popoverStyles:L,unstable_arrowStyles:T,unstable_update:B,unstable_originalPlacement:O,placement:S,place:E})}function Yt(e,t){var n=e.indexOf(t);return function(e,t){return-1===t?e:[].concat(e.slice(0,t),e.slice(t+1))}
2(e,n)}var Kt=(0,r.createContext)(null);function Gt(e){void 0===e&&(e={});var t=(0,r.useContext)(Kt),n=(0,f.T)(e),o=n.orientation,i=void 0===o?"vertical":o,a=n.gutter,s=void 0===a?0:a,u=(0,l._)(n,["orientation","gutter"]),c=u.placement||(t&&"vertical"===t.orientation?"right-start":"bottom-start"),d=function(e){void 0===e&&(e={});var t=(0,f.T)(e),n=t.orientation,o=void 0===n?"horizontal":n,i=t.unstable_values,a=void 0===i?{}:i,s=(0,l._)(t,["orientation","unstable_values"]),u=(0,r.useState)(a),c=u[0],d=u[1],p=R((0,l.a)((0,l.a)({},s),{},{orientation:o}));return(0,l.a)((0,l.a)({},p),{},{unstable_values:c,unstable_setValue:(0,r.useCallback)((function(e,t){d((function(n){var r;return(0,l.a)((0,l.a)({},n),{},((r={})[e]="function"==typeof t?t(n):t,r))}))}),[])})}((0,l.a)((0,l.a)({},u),{},{orientation:i})),p=Qt((0,l.a)((0,l.a)({},u),{},{placement:c,gutter:s}));return(0,r.useEffect)((function(){p.visible||d.reset()}),[p.visible,d.reset]),(0,l.a)((0,l.a)({},d),p)}var Vt=n(3935);var $t=!1;if("undefined"!=typeof window){var Jt={get passive(){$t=!0}};window.addEventListener("testPassive",null,Jt),window.removeEventListener("testPassive",null,Jt)}var Xt="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),en=[],tn=!1,nn=-1,rn=void 0,on=void 0,an=function(e){return en.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},sn=function(e){var t=e||window.event;return!!an(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},un=function(){void 0!==on&&(document.body.style.paddingRight=on,on=void 0),void 0!==rn&&(document.body.style.overflow=rn,rn=void 0)},cn=function(e,t){if(e){if(!en.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};en=[].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)}(en),[n]),Xt?(e.ontouchstart=function(e){1===e.targetTouches.length&&(nn=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-nn;!an(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?sn(e):e.stopPropagation())}(t,e)},tn||(document.addEventListener("touchmove",sn,$t?{passive:!1}:void 0),tn=!0)):function(e){if(void 0===on){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(on=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===rn&&(rn=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.")},ln=n(325),fn=n(1868);function dn(e,t){var n=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(n.current)return e();n.current=!0}),t)}var pn=n(8013);function hn(){return X.N?document.body:null}var vn=(0,r.createContext)(hn());function gn(e){var t=e.children,n=(0,r.useContext)(vn)||hn(),o=(0,r.useState)((function(){if(X.N){var e=document.createElement("div");return e.className=gn.__className,e}return null}))[0];return(0,d.Y)((function(){if(o&&n)return n.appendChild(o),function(){n.removeChild(o)}}),[o,n]),o?(0,Vt.createPortal)((0,r.createElement)(vn.Provider,{value:o},t),o):null}gn.__className="__reakit-portal",gn.__selector="."+gn.__className;var mn=n(979);function yn(e,t){if("closest"in e)return e.closest(t);do{if((0,mn.w)(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}var bn=n(7723),wn=(0,r.createContext)(void 0),kn=n(3688);var xn=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal"],Cn=[].concat(xn,["hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_initialFocusRef","unstable_finalFocusRef","unstable_orphan","unstable_autoFocusOnShow","unstable_autoFocusOnHide"]),Mn=xn;function On(e,t){var n=Boolean(t.preventBodyScroll&&t.visible);(0,r.useEffect)((function(){var t=e.current;if(t&&n)return cn(t,{reserveScrollBarGap:!0}),function(){var e;(e=t)?(en=en.filter((function(t){return t.targetElement!==e})),Xt?(e.ontouchstart=null,e.ontouchmove=null,tn&&0===en.length&&(document.removeEventListener("touchmove",sn,$t?{passive:!1}:void 0),tn=!1)):en.length||un()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}),[e,n])}function En(e){null!=e.parentNode&&e.parentNode.removeChild(e)}var In="__reakit-focus-trap";function Sn(e,t,n){var o=function(e,t){var n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var r=e.current;r&&t.visible&&(n.current=yn(r,gn.__selector))}),[e,t.visible]),n}(e,n),i=n.visible&&n.modal,a=(0,r.useRef)(null),s=(0,r.useRef)(null);(0,r.useEffect)((function(){if(i){var e=o.current;if(e){if(!a.current){var t=(0,p.M)(e);a.current=t.createElement("div"),a.current.className=In,a.current.tabIndex=0,a.current.style.position="fixed",a.current.setAttribute("aria-hidden","true")}return s.current||(s.current=a.current.cloneNode()),e.insertAdjacentElement("beforebegin",a.current),e.insertAdjacentElement("afterend",s.current),function(){a.current&&En(a.current),s.current&&En(s.current)}}}}),[o,i]),(0,r.useEffect)((function(){var n=a.current,r=s.current;if(i&&n&&r){var o=function(n){var o=e.current;if(o&&!t.length){n.preventDefault();var i=n.target===r?(0,fn.YC)(o):(0,fn.KE)(o);i?i.focus():o.focus()}};return n.addEventListener("focus",o),r.addEventListener("focus",o),function(){n.removeEventListener("focus",o),r.removeEventListener("focus",o)}}}),[e,t,i])}function jn(e,t,n){var r=n.unstable_autoFocusOnHide&&!n.visible,o=!(!n.animated||!n.animating);dn((function(){var i;if(r&&!o&&!function(e){var t=e.current;if(!t)return!1;var n=(0,ee.v)(t);return!(!n||(0,bn.r)(t,n)||!(0,fn.Wq)(n)&&"true"!==n.getAttribute("data-dialog"))}(e)){var a=(null===(i=n.unstable_finalFocusRef)||void 0===i?void 0:i.current)||t.current;if(a){if(a.id){var s=(0,p.M)(a).querySelector("[aria-activedescendant='"+a.id+"']");if(s)return void we(s)}we(a)}else;}}),[r,o,e,t])}var An=(0,r.createContext)({});
2function Dn(e,t,n,o,i,a,s){var u=(0,H.c)(i);(0,r.useEffect)((function(){if(a){var r=function(r){if(u.current){var o,i=e.current,a=t.current,s=r.target;if(i)if(function(e){var t=(0,p.M)(e);return"HTML"===e.tagName||(0,bn.r)(t.body,e)}(s))if(!(0,bn.r)(i,s))if(!a||!function(e,t){return(0,bn.r)(t,e)}(s,a))if(!(null===(o=s.classList)||void 0===o?void 0:o.contains(In))&&!n.some(function(e){return function(t){var n=t.current;if(!n)return!1;if((0,bn.r)(n,e))return!0;var r=(0,p.M)(n).querySelector('[data-dialog-ref="'+n.id+'"]');return!!r&&(0,bn.r)(r,e)}}(s)))u.current(r)}},i=(0,p.M)(e.current);return i.addEventListener(o,r,s),function(){return i.removeEventListener(o,r,s)}}}),[e,t,n,o,a,u])}function Ln(e,t,n,o){var i=function(e,t){var n=(0,r.useRef)();return(0,r.useEffect)((function(){if(t.visible&&t.hideOnClickOutside){var r=(0,p.M)(e.current),o=function(e){n.current=e.target};return r.addEventListener("mousedown",o),function(){return r.removeEventListener("mousedown",o)}}}),[t.visible,t.hideOnClickOutside,e]),n}(e,o);Dn(e,t,n,"click",(function(e){var t;i.current===e.target&&(null===(t=o.hide)||void 0===t||t.call(o))}),o.visible&&o.hideOnClickOutside),Dn(e,t,n,"focusin",(function(t){var n,r=(0,p.M)(e.current);t.target!==r&&t.target!==r.body&&(null===(n=o.hide)||void 0===n||n.call(o))}),o.visible&&o.hideOnClickOutside)}function Nn(e,t){(0,r.useEffect)((function(){var n=e.current;if(t.visible&&n){var r=new MutationObserver((function(e){if(e[0].target===n){var t,r=(0,p.M)(n),o=(0,ee.v)(n);o!==r.body&&(t=o,Array.isArray(t)?t.length:(0,kn.K)(t)?Object.keys(t).length:null!=t&&""!==t)||n.focus()}}));return r.observe(n,{childList:!0,subtree:!0}),function(){r.disconnect()}}}),[t.visible,e])}function Pn(e){return e&&e.tagName&&"HTML"!==e.tagName&&e!==(0,p.M)(e).body}var Tn=(0,z.B)({name:"Dialog",compose:pn.f,keys:Cn,useOptions:function(e){var t=e.modal,n=void 0===t||t,r=e.hideOnEsc,o=void 0===r||r,i=e.hideOnClickOutside,a=void 0===i||i,s=e.preventBodyScroll,u=void 0===s?n:s,c=e.unstable_autoFocusOnShow,f=void 0===c||c,d=e.unstable_autoFocusOnHide,p=void 0===d||d,h=e.unstable_orphan,v=(0,l._)(e,["modal","hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_autoFocusOnShow","unstable_autoFocusOnHide","unstable_orphan"]);return(0,l.a)({modal:n,hideOnEsc:o,hideOnClickOutside:a,preventBodyScroll:n&&u,unstable_autoFocusOnShow:f,unstable_autoFocusOnHide:p,unstable_orphan:n&&h},v)},useProps:function(e,t){var n=t.ref,o=t.onKeyDown,i=t.onBlur,a=t.wrapElement,s=t.tabIndex,u=(0,l._)(t,["ref","onKeyDown","onBlur","wrapElement","tabIndex"]),c=(0,r.useRef)(null),f=(0,r.useContext)(wn),h=f&&f===e.baseId,v=function(e,t){var n=(0,r.useRef)(null),o=!(!t.animated||!t.animating);return(0,r.useEffect)((function(){if(!t.visible&&!o){var r=function(e){var r=e.target;"focus"in r&&(n.current=r,t.unstable_disclosureRef&&(t.unstable_disclosureRef.current=r))},i=(0,p.M)(e.current);return i.addEventListener("focusin",r),function(){return i.removeEventListener("focusin",r)}}}),[t.visible,o,t.unstable_disclosureRef,e]),(0,r.useEffect)((function(){var e;if(t.visible&&!o){var r=function(e){var t=e.currentTarget;(0,ln.i)(t)&&(e.preventDefault(),t.focus())},i=(null===(e=t.unstable_disclosureRef)||void 0===e?void 0:e.current)||n.current;return null==i||i.addEventListener("mousedown",r),function(){return null==i?void 0:i.removeEventListener("mousedown",r)}}}),[t.visible,o,t.unstable_disclosureRef]),t.unstable_disclosureRef||n}(c,e),g=(0,H.c)(o),m=(0,H.c)(i),y=function(e,t){var n=(0,r.useReducer)((function(e){return e+1}),0),o=n[0],i=n[1];return(0,d.Y)((function(){var n=e.current;t.visible&&o&&(Pn((0,ee.v)(n))||null==n||n.focus())}),[o,e]),(0,r.useCallback)((function(e){t.visible&&(Pn(ne(e))||i())}),[t.visible])}(c,e),b=function(e,t){var n=(0,r.useContext)(An),o=(0,r.useState)([]),i=o[0],a=o[1],s=(0,r.useState)(i),u=s[0],c=s[1],l=(0,r.useCallback)((function(e){var t;null===(t=n.addDialog)||void 0===t||t.call(n,e),a((function(t){return[].concat(t,[e])}))}),[n.addDialog]),f=(0,r.useCallback)((function(e){var t;null===(t=n.removeDialog)||void 0===t||t.call(n,e),a((function(t){return Yt(t,e)}))}),[n.removeDialog]),d=(0,r.useCallback)((function(e){var t;null===(t=n.showDialog)||void 0===t||t.call(n,e),c((function(t){return[].concat(t,[e])}))}),[n.showDialog]),p=(0,r.useCallback)((function(e){var t;null===(t=n.hideDialog)||void 0===t||t.call(n,e),c((function(t){return Yt(t,e)}))}),[n.hideDialog]);(0,r.useEffect)((function(){var r;if(!t.unstable_orphan)return null===(r=n.addDialog)||void 0===r||r.call(n,e),function(){var t;null===(t=n.removeDialog)||void 0===t||t.call(n,e)}}),[t.unstable_orphan,n.addDialog,e,n.removeDialog]),(0,r.useEffect)((function(){var r;if(!t.unstable_orphan&&t.modal&&t.visible)return null===(r=n.showDialog)||void 0===r||r.call(n,e),function(){var t;null===(t=n.hideDialog)||void 0===t||t.call(n,e)}}),[t.unstable_orphan,t.modal,t.visible,n.showDialog,e,n.hideDialog]),(0,r.useEffect)((function(){var e;!1===n.visible&&t.visible&&!t.unstable_orphan&&(null===(e=t.hide)||void 0===e||e.call(t))}),[n.visible,t.visible,t.hide,t.unstable_orphan]);var h=(0,r.useMemo)((function(){return{visible:t.visible,addDialog:l,removeDialog:f,showDialog:d,hideDialog:p}}),[t.visible,l,f,d,p]);return{dialogs:i,visibleModals:u,wrap:(0,r.useCallback)((function(e){return(0,r.createElement)(An.Provider,{value:h},e)}),[h])}}(c,e),w=b.dialogs,k=b.visibleModals,x=b.wrap,C=!(!e.modal||k.length)||void 0;On(c,e),Sn(c,k,e),Nn(c,e),function(e,t,n){var r=n.unstable_initialFocusRef,o=n.visible&&n.unstable_autoFocusOnShow,i=!(!n.animated||!n.animating);dn((function(){var n=e.current;if(o&&n&&!i&&!t.some((function(e){return e.current&&!e.current.hidden})))if(null!=r&&r.current)r.current.focus({preventScroll:!0});else{we((0,fn.YC)(n,!0)||n,{preventScroll:!0,isActive:function(){return(0,ve.B)(n)}})}}),[e,o,i,t,r])}(c,w,e),jn(c,v,e),Ln(c,v,w,e),function(e,t,n){var r=function(r){return Dn(e,{current:null},t,r,(function(e){e.stopPropagation(),e.preventDefault()}),n.visible&&n.modal,!0)};r("mouseover"),r("mousemove"),r("mouseout")}(c,w,e);var M=(0,r.useCallback)((function(t){var n;null===(n=g.current)||void 0===n||n.call(g,t),t.defaultPrevented||"Escape"===t.key&&e.hideOnEsc&&e.hide&&(t.stopPropagation(),e.hide())}),[e.hideOnEsc,e.hide]),O=(0,r.useCallback)((function(e){var t;null===(t=m.current)||void 0===t||t.call(m,e),y(e)}),[y]),E=(0,r.useCallback)((function(t){return t=x(t),e.modal&&!h&&(t=(0,r.createElement)(gn,null,t)),a&&(t=a(t)),(0,r.createElement)(Kt.Provider,{value:null},t)}),[x,e.modal,h,a]);return(0,l.a)({ref:(0,F.c)(c,n),role:"dialog",tabIndex:null!=s?s:-1,"aria-modal":C,"data-dialog":!0,onKeyDown:M,onBlur:O,wrapElement:E},u)}}),_n=((0,U.L)({as:"div",useHook:Tn,useCreateElement:function(e,t,n){return(0,Z.C)(e,t,n)}}),["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"]),Rn=([].concat(_n,["size"]),_n),Bn=(0,z.B)({name:"Popover",compose:Tn,keys:_n,useOptions:function(e){var t=e.modal,n=void 0!==t&&t,r=(0,l._)(e,["modal"]);return(0,l.a)({modal:n},r)},useProps:function(e,t){var n=t.ref,r=t.style,o=(0,l._)(t,["ref","style"]);return(0,l.a)({ref:(0,F.c)(e.unstable_popoverRef,n),style:(0,l.a)((0,l.a)({},e.unstable_popoverStyles),r)},o)}}),Un=((0,U.L)({as:"div",useHook:Bn,useCreateElement:function(e,t,n){return(0,Z.C)(e,t,n)}}),[].concat(["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","unstable_values","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","unstable_setValue"],["visible","animated","animating","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"])),zn=Un,Zn=zn,Fn=Zn;[].concat(Fn,["name"]);var Hn=(0,z.B)({name:"MenuBar",compose:le,keys:zn,useProps:function(e,t){var n=t.ref,o=t.wrapElement,i=t.role,a=void 0===i?"menubar":i,s=(0,l._)(t,["ref","wrapElement","role"]),u=(0,r.useRef)(null),c=function(e,t,n){var o="unstable_orphan"in n&&n.unstable_orphan,i=(0,r.useContext)(Kt),a=(0,r.useState)([]),s=a[0],u=a[1],c=i||{},l=c.addChild,f=c.removeChild,d=(0,r.useCallback)((function(e){return u((function(t){return[].concat(t,[e])}))}),[]),p=(0,r.useCallback)((function(e){return u((function(t){return Yt(t,e)}))}),[]);(0,r.useEffect)((function(){if(l&&!o)return l(e),function(){null==f||f(e)}}),[e,l,f,o]);var h=(0,r.useMemo)((function(){return{orientation:n.orientation,next:n.next,previous:n.previous,ref:e,role:t,parent:i,
2children:s,addChild:d,removeChild:p}}),[n.orientation,n.next,n.previous,e,t,i,s,d,p]);return(0,r.useCallback)((function(e){return(0,r.createElement)(Kt.Provider,{value:h},e)}),[h])}(u,a,e);!function(e,t,n){var o=t.items,i=void 0===o?[]:o,a=t.move;void 0===n&&(n=500);var s=(0,r.useState)(""),u=s[0],c=s[1];(0,r.useEffect)((function(){if(u){var e=setTimeout((function(){return c("")}),n),t=i.find((function(e){return Boolean(e.ref.current&&e.ref.current.textContent&&e.ref.current.textContent.toLowerCase().startsWith(u))}));return t&&a(t.id),function(){return clearTimeout(e)}}}),[u,i,a,n]),(0,r.useEffect)((function(){var t=e.current;if(t){var n=function(e){var n;if(!(e.key.length>1||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)){var r=e.target,o=null===(n=r.getAttribute)||void 0===n?void 0:n.call(r,"role"),i=r===t,a=o&&-1!==o.indexOf("menuitem")&&yn(r,"[role=menu],[role=menubar]")===t;(i||a)&&/^[a-z0-9_-]$/i.test(e.key)&&(e.stopPropagation(),e.preventDefault(),c((function(t){return""+t+e.key})))}};return t.addEventListener("keydown",n),function(){return t.removeEventListener("keydown",n)}}}),[e,c])}(u,e);var f=(0,r.useCallback)((function(e){return e=c(e),o?o(e):e}),[c,o]);return(0,l.a)({ref:(0,F.c)(u,n),role:a,"aria-orientation":e.orientation,wrapElement:f},s)}});(0,U.L)({as:"div",useHook:Hn,useCreateElement:function(e,t,n){return(0,Z.C)(e,t,n)}});var Wn=(0,z.B)({name:"Menu",compose:[Hn,Bn],keys:Un,useOptions:function(e){var t=(0,r.useContext)(Kt),n="menubar"===(null==t?void 0:t.role);return(0,l.a)((0,l.a)({unstable_autoFocusOnHide:!n,modal:!1},e),{},{unstable_autoFocusOnShow:!1,hideOnEsc:!1})},useProps:function(e,t){for(var n=t.onKeyDown,o=(0,l._)(t,["onKeyDown"]),i=(0,H.c)(n),a=(0,r.useContext)(Kt),s=!!a,u=a;u&&"menubar"!==u.role;)u=u.parent;var c,f=u||{},d=f.next,p=f.previous,h="horizontal"===f.orientation,v=(c=e.placement,(0,r.useMemo)((function(){var e;return null==c||null===(e=c.split("-"))||void 0===e?void 0:e[0]}),[c])),g=(0,r.useCallback)((function(t){var n,r;if(null===(n=i.current)||void 0===n||n.call(i,t),!t.defaultPrevented)if("Escape"===t.key)s||t.stopPropagation(),null===(r=e.hide)||void 0===r||r.call(e);else if(s&&!(0,ge.K)(t)){var o={ArrowRight:h&&"left"!==v?d:"left"===v&&e.hide,ArrowLeft:h&&"right"!==v?p:"right"===v&&e.hide}[t.key];o&&(t.preventDefault(),s&&t.stopPropagation(),o())}}),[s,h,d,p,v,e.hide]);return(0,l.a)({role:"menu",onKeyDown:g},o)}}),qn=(0,U.L)({as:"div",useHook:Wn,useCreateElement:function(e,t,n){return(0,Z.C)(e,t,n)}}),Qn=n(2746),Yn=(0,z.B)({name:"DialogDisclosure",compose:Qn.q,keys:Mn,useProps:function(e,t){var n=t.ref,o=t.onClick,i=(0,l._)(t,["ref","onClick"]),a=(0,r.useRef)(null),s=(0,H.c)(o),u=(0,r.useState)(!1),c=u[0],f=u[1],p=e.unstable_disclosureRef;(0,d.Y)((function(){var t=a.current;p&&!p.current&&(p.current=t);var n=!(null!=p&&p.current)||p.current===t;f(!!e.visible&&n)}),[e.visible,p]);var h=(0,r.useCallback)((function(e){var t;null===(t=s.current)||void 0===t||t.call(s,e),e.defaultPrevented||p&&(p.current=e.currentTarget)}),[p]);return(0,l.a)({ref:(0,F.c)(a,n),"aria-haspopup":"dialog","aria-expanded":c,onClick:h},i)}}),Kn=((0,U.L)({as:"button",memo:!0,useHook:Yn}),(0,z.B)({name:"PopoverDisclosure",compose:Yn,keys:Rn,useProps:function(e,t){var n=t.ref,r=(0,l._)(t,["ref"]);return(0,l.a)({ref:(0,F.c)(e.unstable_referenceRef,n)},r)}}));(0,U.L)({as:"button",memo:!0,useHook:Kn});function Gn(e){var t=null==e?void 0:e.find((function(e){return e.current&&!e.current.hidden}));return null==t?void 0:t.current}var Vn=function(){},$n=(0,z.B)({name:"MenuButton",compose:Kn,keys:Zn,propsAreEqual:function(e,t){e.unstable_popoverStyles,e.unstable_arrowStyles,e.currentId,e.unstable_moves;var n=(0,l._)(e,["unstable_popoverStyles","unstable_arrowStyles","currentId","unstable_moves"]),r=(t.unstable_popoverStyles,t.unstable_arrowStyles,t.currentId,t.unstable_moves,(0,l._)(t,["unstable_popoverStyles","unstable_arrowStyles","currentId","unstable_moves"]));return Kn.unstable_propsAreEqual(n,r)},useProps:function(e,t){var n=t.ref,o=t.onClick,i=t.onKeyDown,a=t.onFocus,s=t.onMouseEnter,u=t.onMouseDown,c=(0,l._)(t,["ref","onClick","onKeyDown","onFocus","onMouseEnter","onMouseDown"]),f=(0,r.useContext)(Kt),d=(0,r.useRef)(null),p=(0,r.useRef)(!1),h=e.placement.split("-")[0],v=!!f,g="menubar"===(null==f?void 0:f.role),m=e.disabled||c["aria-disabled"],y=(0,H.c)(o),b=(0,H.c)(i),w=(0,H.c)(a),k=(0,H.c)(s),x=(0,H.c)(u),C=(0,r.useCallback)((function(t){var n,r;if("Escape"===t.key)null===(r=e.hide)||void 0===r||r.call(e);else if(!m){var o,i=e.first&&function(){return setTimeout(e.first)},a=e.last&&function(){return setTimeout(e.last)},s={Enter:i," ":i,ArrowUp:("top"===h||"bottom"===h)&&a,ArrowRight:"right"===h&&i,ArrowDown:("bottom"===h||"top"===h)&&i,ArrowLeft:"left"===h&&i}[t.key];if(s)return t.preventDefault(),t.stopPropagation(),null===(o=e.show)||void 0===o||o.call(e),void s()}null===(n=b.current)||void 0===n||n.call(b,t)}),[m,e.hide,e.first,e.last,h,e.show]),M=(0,r.useCallback)((function(t){var n;if(null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented&&f){var r=t.currentTarget;g?Gn(f.children)&&r.focus():setTimeout((function(){var t;(0,ve.B)(r)&&(null===(t=e.show)||void 0===t||t.call(e))}),200)}}),[f,g,e.show]),O=(0,r.useCallback)((function(e){var t;p.current=!0,null===(t=x.current)||void 0===t||t.call(x,e)}),[]),E=(0,r.useCallback)((function(t){var n,r;(null===(n=w.current)||void 0===n||n.call(w,t),t.defaultPrevented)||(m||g&&!p.current&&(null===(r=e.show)||void 0===r||r.call(e)))}),[g,m,e.show]),I=(0,r.useCallback)((function(t){var n;if(null===(n=y.current)||void 0===n||n.call(y,t),!t.defaultPrevented){var r,o,i;if(v&&!g)null===(r=e.show)||void 0===r||r.call(e);else if(null===(o=e.toggle)||void 0===o||o.call(e),p.current&&!g&&!e.visible)null===(i=e.move)||void 0===i||i.call(e,null);p.current=!1}}),[v,g,e.show,e.toggle,e.visible,e.move]);return(0,l.a)({ref:(0,F.c)(d,n),"aria-haspopup":"menu",onKeyDown:C,onMouseEnter:M,onMouseDown:O,onF
2ocus:E,onClick:I},c)},useComposeOptions:function(e){return(0,l.a)((0,l.a)({},e),{},{toggle:Vn})}}),Jn=(0,U.L)({as:"button",memo:!0,useHook:$n});function Xn(e,t,n){return Math.abs((e.x*(t.y-n.y)+t.x*(n.y-e.y)+n.x*(e.y-t.y))/2)}function er(e,t){var n=(0,H.c)(t),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=(0,r.useRef)(null),s=(0,r.useRef)(0),u=(0,r.useRef)(0),c=(0,r.useCallback)((function(t){if(null!=e&&e.children.length){i.current=null,a.current=null;var n=Gn(e.children);if(n){var r=function(e,t){var n=t.getBoundingClientRect(),r=n.top,o=n.right,i=n.bottom,a=n.left,s=a>e.clientX?a:o;return[{x:s,y:r},{x:s,y:i}]}(t,n);i.current=r[0],a.current=r[1]}}}),[null==e?void 0:e.children]),l=(0,r.useCallback)((function(e){var t=s.current!==e.clientX||u.current!==e.clientY;if(e.isTrusted&&!t)return!0;var n=Math.abs(s.current-e.clientX);s.current=e.clientX,u.current=e.clientY;var r,l,f,d,p=function(){return i.current&&a.current};return"mouseleave"!==e.type||p()||c(e),!!p()&&(n&&o.current&&(r={x:e.clientX,y:e.clientY},l=o.current,f=i.current,d=a.current,Xn(l,f,d)===Xn(r,f,d)+Xn(l,r,d)+Xn(l,f,r)))}),[c]);return{onMouseEnter:(0,r.useCallback)((function(t){var r;null===(r=n.current)||void 0===r||r.call(n,t),t.defaultPrevented||"menubar"!==(null==e?void 0:e.role)&&(o.current={x:t.clientX,y:t.clientY},c(t))}),[null==e?void 0:e.role,c]),isMouseInTransitToSubmenu:l}}function tr(e){var t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?e.relatedTarget:e.toElement||null}var nr=(0,z.B)({name:"MenuItem",compose:Ee,keys:Fn,propsAreEqual:function(e,t){e.unstable_popoverStyles,e.unstable_arrowStyles,e.visible;var n=(0,l._)(e,["unstable_popoverStyles","unstable_arrowStyles","visible"]),r=(t.unstable_popoverStyles,t.unstable_arrowStyles,t.visible,(0,l._)(t,["unstable_popoverStyles","unstable_arrowStyles","visible"]));return Ee.unstable_propsAreEqual(n,r)},useProps:function(e,t){var n=t.onMouseEnter,o=t.onMouseMove,i=t.onMouseLeave,a=(0,l._)(t,["onMouseEnter","onMouseMove","onMouseLeave"]),s=(0,r.useContext)(Kt),u=(0,H.
2c)(o),c=(0,H.c)(i),f=er(s,n),d=f.onMouseEnter,p=f.isMouseInTransitToSubmenu,h=(0,r.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||"menubar"!==(null==s?void 0:s.role)&&(p(t)||(0,ve.B)(t.currentTarget)||null===(r=e.move)||void 0===r||r.call(e,t.currentTarget.id))}),[e.move]),v=(0,r.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!(t.defaultPrevented||"menubar"===(null==s?void 0:s.role)||function(e){var t=tr(e);return!!t&&(0,bn.r)(e.currentTarget,t)}(t)||function(e,t){if(null==t||!t.length)return!1;var n=tr(e);if(!n)return!1;var r=Gn(t);return r&&(0,bn.r)(r,n)}(t,null==s?void 0:s.children)||function(e,t){var n=tr(e);return!!n&&(null==t?void 0:t.some((function(e){return e.ref.current&&(0,bn.r)(e.ref.current,n)})))}(t,e.items))){var r;if(p(t))return;null===(r=e.move)||void 0===r||r.call(e,null)}}),[null==s?void 0:s.role,null==s?void 0:s.children,e.items,e.move]);return(0,l.a)({role:"menuitem",onMouseEnter:d,onMouseMove:h,onMouseLeave:v},a)}}),rr=(0,U.L)({as:"button",memo:!0,useHook:nr}),or=n(8);function ir(e,t){if(null==e)return{};var n,r,o=(0,s.Z)(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 ar=n(5671),sr=n(3144),ur=n(136),cr=n(1120),lr=n(8814),fr=n(2963);function dr(e){var t=(0,lr.Z)();return function(){var n,r=(0,cr.Z)(e);if(t){var o=(0,cr.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,fr.Z)(this,n)}}var pr=n(1002),hr=function(e){return+setTimeout(e,16)},vr=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(hr=function(e){return window.requestAnimationFrame(e)},vr=function(e){return window.cancelAnimationFrame(e)});var gr=0,mr=new Map;function yr(e){mr.delete(e)}function br(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=gr+=1;function r(t){if(0===t)yr(n),e();else{var o=hr((function(){r(t-1)}));mr.set(n,o)}}return r(t),n}function wr(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}br.cancel=function(e){var t=mr.get(e);return yr(t),vr(t)};var kr,xr=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,i=e.children,a=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var u=(0,r.useRef)(!1);return!u.current&&wr()&&(s.current=o(),a.current=s.current.parentNode,u.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==a.current&&a.current.appendChild(s.current),function(){var e,t;null===(e=s.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(s.current)}}),[]),s.current?Vt.createPortal(i,s.current):null}));function Cr(e){if("undefined"==typeof document)return 0;if(e||void 0===kr){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),kr=o-i}return kr}var Mr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{};var n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var Or={},Er=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return Mr(Or),Or={},void(document.body.className=r.replace(n,"").trim())}var o=Cr();if(o&&(Or=Mr({position:"relative",width:"calc(100% - ".concat(o,"px)")}),!n.test(r))){var i="".concat(r," ").concat(t);document.body.className=i.trim()}}},Ir=n(3433),Sr=0,jr=[],Ar="ant-scrolling-effect",Dr=new RegExp("".concat(Ar),"g"),Lr=new Map,Nr=(0,sr.Z)((function e(t){var n=this;(0,ar.Z)(this,e),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var e;return null===(e=n.options)||void 0===e?void 0:e.container},this.reLock=function(e){var t=jr.find((function(e){return e.target===n.lockTarget}));t&&n.unLock(),n.options=e,t&&(t.options=e,n.lock())},this.lock=function(){var e;if(!jr.some((function(e){return e.target===n.lockTarget})))if(jr.some((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})))jr=[].concat((0,Ir.Z)(jr),[{target:n.lockTarget,options:n.options}]);else{var t=0,r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&(t=Cr());var o=r.className;if(0===jr.filter((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})).length&&Lr.set(r,Mr({width:0!==t?"calc(100% - ".concat(t,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!Dr.test(o)){var i="".concat(o," ").concat(Ar);r.className=i.trim()}jr=[].concat((0,Ir.Z)(jr),[{target:n.lockTarget,options:n.options}])}},this.unLock=function(){var e,t=jr.find((function(e){return e.target===n.lockTarget}));if(jr=jr.filter((function(e){return e.target!==n.lockTarget})),t&&!jr.some((function(e){var n,r=e.options;return(null==r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)}))){var r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body,o=r.className;Dr.test(o)&&(Mr(Lr.get(r),{element:r}),Lr.delete(r),r.className=r.className.replace(Dr,"").trim())}},this.lockTarget=Sr++,this.options=t})),Pr=0,Tr=wr();var _r={},Rr=function(e){if(!Tr)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===(0,pr.Z)(e)&&e instanceof window.HTMLElement)return e}return document.body},Br=function(e){(0,ur.Z)(n,e);var t=dr(n);function n(e){var o;return(0,ar.Z)(this,n),(o=t.call(this,e)).container=void 0,o.componentRef=r.createRef(),o.rafId=void 0,o.scrollLocker=void 0,o.renderComponent=void 0,o.updateScrollLocker=function(e){var t=(e||{}).visible,n=o.props,r=n.getContainer,i=n.visible;i&&i!==t&&Tr&&Rr(r)!==o.scrollLocker.getContainer()&&o.scrollLocker.reLock({container:Rr(r)})},o.updateOpenCount=function(e){var t=e||{},n=t.visible,r=t.getContainer,i=o.props,a=i.visible,s=i.getContainer;a!==n&&Tr&&Rr(s)===document.body&&(a&&!n?Pr+=1:e&&(Pr-=1)),("function"==typeof s&&"function"==typeof r?s.toString()!==r.toString():s!==r)&&o.removeCurrentContainer()},o.attachToParent=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||o.container&&!o.container.parentNode){var t=Rr(o.props.getContainer);return!!t&&(t.appendChild(o.container),!0)}return!0},o.getContainer=function(){return Tr?(o.container||(o.container=document.createElement("div"),o.attachToParent(!0)),o.setWrapperClassName(),o.container):null},o.setWrapperClassName=function(){var e=o.props.wrapperClassName;o.container&&e&&e!==o.container.className&&(o.container.className=e)},o.removeCurrentContainer=function(){var e,t;null===(e=o.container)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(o.container)},o.switchScrollingEffect=function(){1!==Pr||Object.keys(_r).length?Pr||(Mr(_r),_r={},Er(!0)):(Er(),_r=Mr({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))},o.scrollLocker=new Nr({container:Rr(e.getContainer)}),o}
2return(0,sr.Z)(n,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=br((function(){e.forceUpdate()})))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;Tr&&Rr(n)===document.body&&(Pr=t&&Pr?Pr-1:Pr),this.removeCurrentContainer(),br.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.forceRender,o=e.visible,i=null,a={getOpenCount:function(){return Pr},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(n||o||this.componentRef.current)&&(i=r.createElement(xr,{getContainer:this.getContainer,ref:this.componentRef},t(a))),i}}]),n}(r.Component),Ur=Br,zr=n(4942);function Zr(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 Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){(0,zr.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hr=n(7326),Wr=n(5900),qr=n.n(Wr),Qr={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Qr.F1&&t<=Qr.F12)return!1;switch(t){case Qr.ALT:case Qr.CAPS_LOCK:case Qr.CONTEXT_MENU:case Qr.CTRL:case Qr.DOWN:case Qr.END:case Qr.ESC:case Qr.HOME:case Qr.INSERT:case Qr.LEFT:case Qr.MAC_FF_META:case Qr.META:case Qr.NUMLOCK:case Qr.NUM_CENTER:case Qr.PAGE_DOWN:case Qr.PAGE_UP:case Qr.PAUSE:case Qr.PRINT_SCREEN:case Qr.RIGHT:case Qr.SHIFT:case Qr.UP:case Qr.WIN_KEY:case Qr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Qr.ZERO&&e<=Qr.NINE)return!0;if(e>=Qr.NUM_ZERO&&e<=Qr.NUM_MULTIPLY)return!0;if(e>=Qr.A&&e<=Qr.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Qr.SPACE:case Qr.QUESTION_MARK:case Qr.NUM_PLUS:case Qr.NUM_MINUS:case Qr.NUM_PERIOD:case Qr.NUM_DIVISION:case Qr.SEMICOLON:case Qr.DASH:case Qr.EQUALS:case Qr.COMMA:case Qr.PERIOD:case Qr.SLASH:case Qr.APOSTROPHE:case Qr.SINGLE_QUOTE:case Qr.OPEN_SQUARE_BRACKET:case Qr.BACKSLASH:case Qr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Yr=Qr;var Kr={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},Gr=Object.keys(Kr).filter((function(e){if("undefined"==typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0],Vr=Kr[Gr];function $r(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function Jr(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on".concat(t),n)}var Xr=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},eo=!("undefined"!=typeof window&&window.document&&window.document.createElement),to=function e(t,n,r,o){if(!n||n===document||n instanceof Document)return!1;if(n===t.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,u=n.scrollWidth-n.clientWidth,c=document.defaultView.getComputedStyle(n),l="auto"===c.overflowY||"scroll"===c.overflowY,f="auto"===c.overflowX||"scroll"===c.overflowX,d=s&&l,p=u&&f;return!!(i&&(!d||d&&(n.scrollTop>=s&&o<0||n.scrollTop<=0&&o>0))||a&&(!p||p&&(n.scrollLeft>=u&&r<0||n.scrollLeft<=0&&r>0)))&&e(t,n.parentNode,r,o)},no=["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","scrollLocker","contentWrapperStyle"],ro={},oo=function(e){(0,ur.Z)(n,e);var t=dr(n);function n(e){var r;return(0,ar.Z)(this,n),(r=t.call(this,e)).levelDom=void 0,r.dom=void 0,r.contentWrapper=void 0,r.contentDom=void 0,r.maskDom=void 0,r.handlerDom=void 0,r.drawerId=void 0,r.timeout=void 0,r.passive=void 0,r.startPos=void 0,r.domFocus=function(){r.dom&&r.dom.focus()},r.removeStartHandler=function(e){e.touches.length>1?r.startPos=null:r.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY}},r.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)&&r.startPos){var t=e.currentTarget,n=e.changedTouches[0].clientX-r.startPos.x,o=e.changedTouches[0].clientY-r.startPos.y;(t===r.maskDom||t===r.handlerDom||t===r.contentDom&&to(t,e.target,n,o))&&e.cancelable&&e.preventDefault()}},r.transitionEnd=function(e){var t=e.target;Jr(t,Vr,r.transitionEnd),t.style.transition=""},r.onKeyDown=function(e){if(e.keyCode===Yr.ESC){var t=r.props.onClose;e.stopPropagation(),t&&t(e)}},r.onWrapperTransitionEnd=function(e){var t=r.props,n=t.open,o=t.afterVisibleChange;e.target===r.contentWrapper&&e.propertyName.match(/transform$/)&&(r.dom.style.transition="",!n&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),o&&o(!!n))},r.openLevelTransition=function(){var e=r.props,t=e.open,n=e.width,o=e.height,i=r.getHorizontalBoolAndPlacementName(),a=i.isHorizontal,s=i.placementName,u=r.contentDom?r.contentDom.getBoundingClientRect()[a?"width":"height"]:0,c=(a?n:o)||u;r.setLevelAndScrolling(t,s,c)},r.setLevelTransform=function(e,t,n,o){var i=r.props,a=i.placement,s=i.levelMove,u=i.duration,c=i.ease,l=i.showMask;r.levelDom.forEach((function(i){i.style.transition="transform ".concat(u," ").concat(c),$r(i,Vr,r.transitionEnd);var f,d,p,h=e?n:0;if(s){var v=(d={target:i,open:e},p="function"==typeof(f=s)?f(d):f,Array.isArray(p)?2===p.length?p:[p[0],p[1]]:[p]);h=e?v[0]:v[1]||0}
2var g="number"==typeof h?"".concat(h,"px"):h,m="left"===a||"top"===a?g:"-".concat(g);m=l&&"right"===a&&o?"calc(".concat(m," + ").concat(o,"px)"):m,i.style.transform=h?"".concat(t,"(").concat(m,")"):""}))},r.setLevelAndScrolling=function(e,t,n){var o=r.props.onChange;if(!eo){var i=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Cr(!0):0;r.setLevelTransform(e,t,n,i),r.toggleScrollingToDrawerAndBody(i)}o&&o(e)},r.toggleScrollingToDrawerAndBody=function(e){var t=r.props,n=t.getContainer,o=t.showMask,i=t.open,a=n&&n();if(a&&a.parentNode===document.body&&o){var s=["touchstart"],u=[document.body,r.maskDom,r.handlerDom,r.contentDom];i&&"hidden"!==document.body.style.overflow?(e&&r.addScrollingEffect(e),document.body.style.touchAction="none",u.forEach((function(e,t){e&&$r(e,s[t]||"touchmove",t?r.removeMoveHandler:r.removeStartHandler,r.passive)}))):r.getCurrentDrawerSome()&&(document.body.style.touchAction="",e&&r.remScrollingEffect(e),u.forEach((function(e,t){e&&Jr(e,s[t]||"touchmove",t?r.removeMoveHandler:r.removeStartHandler,r.passive)})))}},r.addScrollingEffect=function(e){var t=r.props,n=t.placement,o=t.duration,i=t.ease,a="width ".concat(o," ").concat(i),s="transform ".concat(o," ").concat(i);switch(r.dom.style.transition="none",n){case"right":r.dom.style.transform="translateX(-".concat(e,"px)");break;case"top":case"bottom":r.dom.style.width="calc(100% - ".concat(e,"px)"),r.dom.style.transform="translateZ(0)"}clearTimeout(r.timeout),r.timeout=setTimeout((function(){r.dom&&(r.dom.style.transition="".concat(s,",").concat(a),r.dom.style.width="",r.dom.style.transform="")}))},r.remScrollingEffect=function(e){var t,n=r.props,o=n.placement,i=n.duration,a=n.ease;Gr&&(document.body.style.overflowX="hidden"),r.dom.style.transition="none";var s="width ".concat(i," ").concat(a),u="transform ".concat(i," ").concat(a);switch(o){case"left":r.dom.style.width="100%",s="width 0s ".concat(a," ").concat(i);break;case"right":r.dom.style.transform="translateX(".concat(e,"px)"),r.dom.style.width="100%",s="width 0s ".concat(a," ").concat(i),r.maskDom&&(r.maskDom.style.left="-".concat(e,"px"),r.maskDom.style.width="calc(100% + ".concat(e,"px)"));break;case"top":case"bottom":r.dom.style.width="calc(100% + ".concat(e,"px)"),r.dom.style.height="100%",r.dom.style.transform="translateZ(0)",t="height 0s ".concat(a," ").concat(i)}clearTimeout(r.timeout),r.timeout=setTimeout((function(){r.dom&&(r.dom.style.transition="".concat(u,",").concat(t?"".concat(t,","):"").concat(s),r.dom.style.transform="",r.dom.style.width="",r.dom.style.height="")}))},r.getCurrentDrawerSome=function(){return!Object.keys(ro).some((function(e){return ro[e]}))},r.getLevelDom=function(e){var t=e.level,n=e.getContainer;if(!eo){var o,i=n&&n(),a=i?i.parentNode:null;if(r.levelDom=[],"all"===t)(a?Array.prototype.slice.call(a.children):[]).forEach((function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==i&&r.levelDom.push(e)}));else t&&(o=t,Array.isArray(o)?o:[o]).forEach((function(e){document.querySelectorAll(e).forEach((function(e){r.levelDom.push(e)}))}))}},r.getHorizontalBoolAndPlacementName=function(){var e=r.props.placement,t="left"===e||"right"===e;return{isHorizontal:t,placementName:"translate".concat(t?"X":"Y")}},r.state={_self:(0,Hr.Z)(r)},r}return(0,sr.Z)(n,[{key:"componentDidMount",value:function(){var e=this;if(!eo){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}}))}catch(c){}this.passive=!!t&&{passive:!1}}var n,r=this.props,o=r.open,i=r.getContainer,a=r.showMask,s=r.autoFocus,u=i&&i();(this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),this.getLevelDom(this.props),o)&&(u&&u.parentNode===document.body&&(ro[this.drawerId]=o),this.openLevelTransition(),this.forceUpdate((function(){s&&e.domFocus()})),a&&(null===(n=this.props.scrollLocker)||void 0===n||n.lock()))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.open,r=t.getContainer,o=t.scrollLocker,i=t.showMask,a=t.autoF
2ocus,s=r&&r();n!==e.open&&(s&&s.parentNode===document.body&&(ro[this.drawerId]=!!n),this.openLevelTransition(),n?(a&&this.domFocus(),i&&(null==o||o.lock())):null==o||o.unLock())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.open,n=e.scrollLocker;delete ro[this.drawerId],t&&(this.setLevelTransform(!1),document.body.style.touchAction=""),null==n||n.unLock()}},{key:"render",value:function(){var e,t,n,o=this,i=this.props,a=i.className,s=i.children,c=i.style,l=i.width,f=i.height,d=(i.defaultOpen,i.open),p=i.prefixCls,h=i.placement,v=(i.level,i.levelMove,i.ease,i.duration,i.getContainer,i.handler),g=(i.onChange,i.afterVisibleChange,i.showMask),m=i.maskClosable,y=i.maskStyle,b=i.onClose,w=i.onHandleClick,k=i.keyboard,x=(i.getOpenCount,i.scrollLocker,i.contentWrapperStyle),C=ir(i,no),M=!!this.dom&&d,O=qr()(p,(e={},(0,zr.Z)(e,"".concat(p,"-").concat(h),!0),(0,zr.Z)(e,"".concat(p,"-open"),M),(0,zr.Z)(e,a||"",!!a),(0,zr.Z)(e,"no-mask",!g),e)),E=this.getHorizontalBoolAndPlacementName().placementName,I="left"===h||"top"===h?"-100%":"100%",S=M?"":"".concat(E,"(").concat(I,")"),j=v&&r.cloneElement(v,{onClick:function(e){v.props.onClick&&v.props.onClick(),w&&w(e)},ref:function(e){o.handlerDom=e}});return r.createElement("div",(0,u.Z)({},(t=["switchScrollingEffect","autoFocus"],n=Fr({},C),Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n),{tabIndex:-1,className:O,style:c,ref:function(e){o.dom=e},onKeyDown:M&&k?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),g&&r.createElement("div",{className:"".concat(p,"-mask"),onClick:m?b:void 0,style:y,ref:function(e){o.maskDom=e}}),r.createElement("div",{className:"".concat(p,"-content-wrapper"),style:Fr({transform:S,msTransform:S,width:Xr(l)?"".concat(l,"px"):l,height:Xr(f)?"".concat(f,"px"):f},x),ref:function(e){o.contentWrapper=e}},r.createElement("div",{className:"".concat(p,"-content"),ref:function(e){o.contentDom=e}},s),j))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,o={prevProps:e};if(void 0!==n){var i=e.placement,a=e.level;i!==n.placement&&(r.contentDom=null),a!==n.level&&r.getLevelDom(e)}return o}}]),n}(r.Component),io=oo,ao=["defaultOpen","getContainer","wrapperClassName","forceRender","handler"],so=["visible","afterClose"],uo=function(e){(0,ur.Z)(n,e);var t=dr(n);function n(e){var r;(0,ar.Z)(this,n),(r=t.call(this,e)).dom=void 0,r.onHandleClick=function(e){var t=r.props,n=t.onHandleClick,o=t.open;if(n&&n(e),void 0===o){var i=r.state.open;r.setState({open:!i})}},r.onClose=function(e){var t=r.props,n=t.onClose,o=t.open;n&&n(e),void 0===o&&r.setState({open:!1})};var o=void 0!==e.open?e.open:!!e.defaultOpen;return r.state={open:o},"onMaskClick"in e&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return(0,sr.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultOpen,t.getContainer),o=t.wrapperClassName,i=t.forceRender,a=t.handler,s=ir(t,ao),c=this.state.open;if(!n)return r.createElement("div",{className:o,ref:function(t){e.dom=t}},r.createElement(io,(0,u.Z)({},s,{open:c,handler:a,getContainer:function(){return e.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var l=!!a||i;return r.createElement(Ur,{visible:c,forceRender:l,getContainer:n,wrapperClassName:o},(function(t){var n=t.visible,o=t.afterClose,i=ir(t,so);return r.createElement(io,(0,u.Z)({},s,i,{open:void 0!==n?n:c,afterVisibleChange:void 0!==o?o:s.afterVisibleChange,handler:a,onClose:e.onClose,onHandleClick:e.onHandleClick}))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return void 0!==n&&e.open!==n.open&&(r.open=e.open),r}}]),n}(r.Component);uo.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:r.createElement("div",{className:"drawer-handle"},r.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1,autoFocus:!0};var co,lo=uo,fo=n(1597);var po,ho,vo,go,mo,yo,bo,wo=function(e){return(0,i.tZ)(ko,{open:e.isOpen,placement:"left",width:"300px",maskClosable:!0,onClose:function(){return e.setOpen(!1)},level:null,handler:null},e.menu?(0,i.tZ)(Co,null,(0,i.tZ)(xo,{items:e.menu.items})):null)},ko=(0,c.Z)(lo,{target:"e9nxk4v3"})(((co={height:"100%",position:"fixed",top:0,left:0,zIndex:"9999",display:"none"})[a.ZP.mq.mobile]={display:"initial"},co["&, & > *"]={transition:"transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86)"},co[".drawer-mask"]={opacity:0,position:"fixed",top:0,left:0,background:"black"},co["&.drawer-open"]={width:"100%"},co["&.drawer-open .drawer-mask"]={opacity:"0.3",width:"100%",height:"100%"},co["& .drawer-content-wrapper"]={position:"absolute",height:"100%",backgroundColor:a.ZP.colors.highlight,left:0},co[".drawer-content"]={position:"relative",overflow:"scroll"},co[".drawer-handle"]={display:"none",position:"absolute",top:0,right:"-40px",height:"40px",width:"40px","&-icon::before":{content:'"X"'}},co),""),xo=function(e){return(0,i.tZ)(r.Fragment,null,e.items.map((function(e){return(0,i.tZ)(Mo,{key:e.ur
2i,as:fo.Link,to:Ao(e.uri)},e.label)})))},Co=(0,c.Z)("nav",{target:"e9nxk4v2"})({height:"100vh",width:"100%",display:"flex",flexFlow:"column nowrap",paddingLeft:30,paddingTop:10,a:{color:a.ZP.colors.dark}},""),Mo=(0,c.Z)(or.z,{target:"e9nxk4v0"})({name:"1qh4wsj",styles:"margin-top:20px;font-size:2rem;color:#717171;text-align:left"}),Oo=n(9499),Eo=n(3589),Io=[{label:(0,Eo.t)("menu.film"),uri:"/film#question"},{label:(0,Eo.t)("menu.resources"),uri:"/resources"},{label:(0,Eo.t)("menu.about"),uri:"/about"}],So=["parent","menuComponent"],jo=["item","isActive"];function Ao(e){return/^(https?:)?\/\//.test(e)?new URL(e).pathname.replace(/\/$/,""):e}var Do=function(e){var t=(0,r.useState)(e.hidden),n=t[0],o=t[1],a=(0,r.useState)(!1),s=a[0],u=a[1],c=(0,r.useRef)(null),l=(0,Oo.useLocation)().pathname.replace(/\/$/,"");(0,r.useEffect)((function(){u(!1)}),[l]);var f=function(t){e.hidden&&(c.current=setTimeout((function(){return o(!0)}),200))};(0,r.useEffect)((function(){e.hidden&&f()}),[e.hidden]);var d=e.alternate?No:Lo,p={items:Io};return(0,i.tZ)(r.Fragment,null,(0,i.tZ)(wo,{isOpen:s,setOpen:u,menu:p}),(0,i.tZ)(d,{hide:f,show:function(e){c.current&&clearTimeout(c.current),o(!1)},toggleDrawer:function(){return u(!s)},hidden:e.hidden&&n,menu:p,currentPath:l}))},Lo=function(e){var t=B();return(0,i.tZ)(Po,(0,u.Z)({},t,{"aria-label":"Navigation Toolbar",onMouseEnter:e.show,onMouseLeave:e.hide}),(0,i.tZ)(Fo,t),(0,i.tZ)(To,{style:{transform:e.hidden?"translateY(-100px)":"none"}},e.menu&&e.menu.items.map((function(n){return(0,i.tZ)(zo,(0,u.Z)({key:n.uri,item:n,isActive:n.uri==e.currentPath},t))})),(0,i.tZ)(_o,(0,u.Z)({},t,{onClick:e.toggleDrawer}),"Menu")))},No=function(e){var t=B();return(0,i.tZ)(Po,(0,u.Z)({},t,{"aria-label":"Navigation Toolbar",onMouseEnter:e.show,onMouseLeave:e.hide}),(0,i.tZ)(Fo,t),(0,i.tZ)(To,{style:{transform:e.hidden?"translateY(-100px)":"none",background:"none",borderBottom:"none","button:hover":{color:a.ZP.colors.highlight,backgroundColor:"#3a3a3a"}}},e.menu&&e.menu.items.map((function(n){return(0,i.tZ)(zo,(0,u.Z)({key:n.uri,isActive:n.uri==e.currentPath,item:n},t))})),(0,i.tZ)(_o,(0,u.Z)({},t,{onClick:e.toggleDrawer}),"Menu")))},Po=(0,c.Z)(he,{target:"esnaqdd7"})({fontFamily:a.ZP.fonts.header,position:"fixed",top:0,left:0,width:"100%",zIndex:9999,transform:"none",display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"flex-end",background:"#00000000",borderBottom:"0px solid lightgray",fontWeight:"bold",textTransform:"uppercase"},""),To=(0,c.Z)("nav",{target:"esnaqdd6"})(((po={transition:"transform 300ms",width:"100%",borderBottom:"2px solid",borderBottomColor:a.ZP.colors.highlight,background:"#1d1d1dcf",padding:"20px 48px",display:"flex",justifyContent:"flex-end"})[a.ZP.mq.mobile]={padding:"15px 5px"},po),""),_o=(0,c.Z)(Se,{target:"esnaqdd5"})(((ho={marginLeft:10,marginRight:10,color:"#909090",display:"none"})[a.ZP.mq.mobile]={display:"initial"},ho),""),Ro=r.forwardRef((function(e,t){var n=e.parent,o=e.menuComponent,a=(0,s.Z)(e,So),c=Gt(),l=o||qn;return(0,i.tZ)(r.Fragment,null,(0,i.tZ)(Jn,(0,u.Z)({ref:t},c,a),n.label),(0,i.tZ)(l,(0,u.Z)({},c,{"aria-label":n.label}),n.childItems.nodes.map((function(e){var t;return null!==(t=e.childItems)&&void 0!==t&&t.nodes?(0,i.tZ)(rr,(0,u.Z)({},c,{key:e.label,as:Ro,menuComponent:Uo,parent:e})):(0,i.tZ)(rr,(0,u.Z)({},c,{key:e.label,as:fo.Link,to:e.uri}),e.label)}))))})),Bo=(0,c.Z)(qn,{target:"esnaqdd4"})(((vo={display:"flex",flexDirection:"column",alignItems:"flex-start",backgroundColor:a.ZP.colors.dark,border:"1px solid #909090",width:100,"&:hover":{color:a.ZP.colors.highlight},button:{color:"#909090",padding:"0 0 0 5px",border:"none",width:"100%",textAlign:"left"},"button:hover":{color:a.ZP.colors.highlight,backgroundColor:"#3a3a3a"},a:{color:"#909090",padding:"0 0 0 5px",border:"none",width:"100%",textAlign:"left"},"a:hover":{color:a.ZP.colors.highlight,backgroundColor:"#3a3a3a"}})[a.ZP.mq.mobile]={},vo),""),Uo=(0,c.Z)(qn,{target:"esnaqdd3"})(((mo={display:"flex",flexDirection:"column",alignItems:"flex-start",backgroundColor:a.ZP.colors.dark,border:"1px solid #909090",width:200,"&:hover":{color:a.ZP.colors.highlight},a:(go={color:"#909090",padding:"0 0 0 5px",border:"none",width:"100%",textAlign:"right"},go.padding="5px 8px",go),"a:hover":{color:a.ZP.colors.highlight,backgroundColor:"#3a3a3a"}})[a.ZP.mq.mobile]={},mo),""),zo=(0,c.Z)((function(e){var t=e.item,n=(e.isActive,(0,s.Z)(e,jo));return t.childItems?(0,i.tZ)(Se,(0,u.Z)({},n,{as:Ro,menuComponent:Bo,parent:t})):(0,i.tZ)(Se,(0,u.Z)({},n,{as:fo.Link,to:t.uri}),t.label)}),{target:"esnaqdd2"})(((yo={fontSize:"1rem",marginLeft:10,marginRight:10,color:"#909090",letterSpacing:"0.03em",margin:"auto 10px","&:hover":{color:a.ZP.colors.highlight}})[a.ZP.mq.mobile]={display:"none"},yo),(function(e){return{color:e.isActive?a.ZP.colors.highlight:void 0}}),""),Zo=(0,c.Z)("img",{target:"esnaqdd1"})(((bo={width:"200px"})[a.ZP.mq.mobile]={width:"150px",margin:0},bo),""),Fo=(0,c.Z)((function(e){return(0,i.tZ)(Se,(0,u.Z)({},e,{as:fo.Link,to:"/"}),(0,i.tZ)(Zo,{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTM1M3B4IiBoZWlnaHQ9IjIxMXB4IiB2aWV3Qm94PSIwIDAgMTM1MyAyMTEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU2LjMgKDgxNzE2KSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5pZW9tZExvZ29CbGFjazwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJ2aWduZXR0ZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkFydGJvYXJkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTIzLjAwMDAwMCwgLTE5ODYuMDAwMDAwKSIgZmlsbD0iIzAw
2MDAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9Imllb21kTG9nb0JsYWNrIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMjMuMDAwMDAwLCAxOTg2LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlBhdGgiIHBvaW50cz0iMzAuNCA4MS4zIDAuMyA4MS4zIDAuMyAyLjIgMzAuNCAyLjIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBwb2ludHM9Ijc3LjQgMi4yIDEyMy4zIDQ3LjIgMTIzLjMgMi4yIDE1My4zIDIuMiAxNTMuMyA4MS4zIDEyMy4xIDgxLjMgNzMuNSAzMy4zIDczLjUgODEuMyA0My41IDgxLjMgNDMuNSAyLjIgNzcuNCAyLjIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBwb2ludHM9IjI4OS4xIDIuMiAyODkuMSAyMS42IDIzMS40IDIxLjYgMjMxLjQgMzEuNSAyODggMzEuNSAyODggNTAuNyAyMzEuNCA1MC43IDIzMS40IDYxLjUgMjkwIDYxLjUgMjkwIDgxLjMgMjAxLjYgODEuMyAyMDEuNiAyLjIgMjg5LjEgMi4yIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aCIgcG9pbnRzPSIzMzUuMiA4MS4zIDI5NS4yIDIuMiAzMjkuNCAyLjIgMzU2IDU3LjQgMzgxIDIuMiA0MTIuNCAyLjIgMzc1LjMgODEuMyAzMzUuMiA4MS4zIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aCIgcG9pbnRzPSI1MDMuNiAyLjIgNTAzLjYgMjEuNiA0NDUuOSAyMS42IDQ0NS45IDMxLjUgNTAyLjUgMzEuNSA1MDIuNSA1MC43IDQ0NS45IDUwLjcgNDQ1LjkgNjEuNSA1MDQuNSA2MS41IDUwNC41IDgxLjMgNDE2LjEgODEuMyA0MTYuMSAyLjIgNTAzLjYgMi4yIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aCIgcG9pbnRzPSI1NDcgMi4yIDU5Mi45IDQ3LjIgNTkyLjkgMi4yIDYyMi45IDIuMiA2MjIuOSA4MS4zIDU5Mi43IDgxLjMgNTQzLjEgMzMuMyA1NDMuMSA4MS4zIDUxMy4xIDgxLjMgNTEzLjEgMi4yIDU0NyAyLjIiPjwvcG9seWdvbj4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBwb2ludHM9IjY2NC44IDIzLjggNjMwLjcgMjMuOCA2MzAuNyAyLjIgNzI5LjIgMi4yIDcyOS4yIDIzLjggNjk1IDIzLjggNjk1IDgxLjMgNjY0LjggODEuMyI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTgyOS4yLDAuNyBDODgwLjIsMC43IDg4Ni44LDI1LjEgODg2LjgsMzkuOSBMODg2LjgsNDMuMSBDODg2LjgsNTcuOSA4ODAuMyw4Mi44IDgyOS4yLDgyLjggTDgyNC40LDgyLjggQzc3My4xLDgyLjggNzY2LjcsNTcuOSA3NjYuNyw0My4xIEw3NjYuNyw0MCBDNzY2LjcsMjUuMSA3NzMuMiwwLjggODI0LjQsMC44IEw4MjkuMiwwLjggTDgyOS4yLDAuNyBaIE04NTUuNiw0MC43IEM4NTUuNiwzMi4zIDg1MC4yLDIyIDgyNi44LDIyIEM4MDMsMjIgNzk4LDMyLjMgNzk4LDQwLjcgTDc5OCw0MiBDNzk4LDUwLjMgODAzLjQsNjEuNSA4MjYuOCw2MS41IEM4NTAuMiw2MS41IDg1NS42LDUwLjggODU1LjYsNDIuMyBMODU1LjYsNDAuNyBaIiBpZD0iU2hhcGUiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBwb2ludHM9Ijk4NiAyLjIgOTg2IDIxLjYgOTMwLjEgMjEuNiA5MzAuMSAzMS41IDk4NC45IDMxLjUgOTg0LjkgNTEgOTMwLjEgNTEgOTMwLjEgODEuNCA5MDAuMiA4MS40IDkwMC4yIDIuMyA5ODYgMi4zIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aCIgcG9pbnRzPSIwLjQgMTI5LjggNDEuOSAxMjkuOCA2Ni4xIDE3NC4yIDkwLjggMTI5LjggMTMwLjYgMTI5LjggMTMwLjYgMjA4LjkgMTAwLjcgMjA4LjkgMTAwLjcgMTU5LjYgNzIuOSAyMDguOSA1Ny41IDIwOC45IDI5LjkgMTU5LjYgMjkuOSAyMDguOSAwLjQgMjA4LjkgMC40IDEyOS44Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aCIgcG9pbnRzPSI0MjQuNiAxMjkuOCA0NzAuNSAxNzQuOCA0NzAuNSAxMjkuOCA1MDAuNSAxMjkuOCA1MDAuNSAyMDguOSA0NzAuMyAyMDguOSA0MjAuNyAxNjAuOSA0MjAuNyAyMDguOSAzOTAuNyAyMDguOSAzOTAuNyAxMjkuOCA0MjQuNiAxMjkuOCI+PC9wb2x5Z29uPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTU0OC44LDEyOS44IEw2MDUsMTI5LjggQzY1MC42LDEyOS44IDY2Mi4xLDE0OC42IDY2Mi4xLDE2Ny4yIEw2NjIuMSwxNzAuNCBDNjYyLjEsMTg4LjQgNjUyLjIsMjA4LjkgNjA1LjEsMjA4LjkgTDU0OC44LDIwOC45IEw1NDguOCwxMjkuOCBMNTQ4LjgsMTI5LjggWiBNNTc5LjEsMTg4IEw2MDEuNSwxODggQzYyNy45LDE4OCA2MzAuNywxNzYuNCA2MzAuNywxNjkuNSBMNjMwLjcsMTY4LjkgQzYzMC43LDE2MiA2MjcuOCwxNTAuNiA2MDEuNSwxNTAuNiBMNTc5LjEsMTUwLjYgTDU3OS4xLDE4OCBaIiBpZD0iU2hhcGUiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBwb2ludHM9IjcwMi4zIDIwOC45IDY3Mi4yIDIwOC45IDY3Mi4yIDEyOS44IDcwMi4zIDEyOS44Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNzYwLjEsMjEwLjQgQzcxNi40LDIxMC40IDcxMS44LDE5Mi42IDcxMS44LDE4Mi4zIEw3MTEuOCwxODEuMiBMNzQ1LDE4MS4yIEM3NDUuMywxODUuNSA3NDcuNiwxOTIuNCA3NjQuOCwxOTIuNCBMNzY1LjgsMTkyLjQgQzc4Mi43LDE5Mi40IDc4NS4yLDE4OC44IDc4NS4yLDE4NSBMNzg1LjIsMTg0LjkgQzc4NS4yLDE4MC45IDc4My4yLDE3OC4zIDc2Ni42LDE3Ny44IEw3NTEuOSwxNzcuNCBDNzIxLjMsMTc2LjUgNzEzLjEsMTY1LjggNzEzLjEsMTUzLjYgTDcxMy4xLDE1Mi42IEM3MTMuMSwxMzkuNyA3MjEuNywxMjguNSA3NTguNiwxMjguNSBMNzY4LjEsMTI4LjUgQzgwNy4yLDEyOC41IDgxNi4yLDE0MC45IDgxNi4yLDE1My41IEw4MTYuMiwxNTQuNCBMNzgzLjMsMTU0LjQgQzc4MywxNTEuNSA3ODEuMywxNDYgNzY0LjIsMTQ2IEw3NjMsMTQ2IEM3NDcuMiwxNDYgNzQ1LjYsMTQ4LjggNzQ1LjYsMTUxLjggTDc0NS42LDE1MS45IEM3NDUuNiwxNTUuMSA3NDcuOSwxNTcuNiA3NjIuOCwxNTggTDc3NywxNTguMyBDODA3LjEsMTU5LjIgODE4LjgsMTY2LjIgODE4LjgsMTgyLjEgTDgxOC44LDE4My42IEM4MTguOCwxOTYuOSA4MTEuNCwyMTAuNSA3NjkuOCwyMTAuNSBMNzYwLjEsMjEwLjUgTDc2MC4xLDIxMC40IFoiIGlkPSJQYXRoIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNODk3LjUsMTk2LjIgTDg1Mi4zLDE5Ni4yIEw4NDYuMiwyMDkgTDgxNS42LDIwOSBMODU0LjcsMTI5LjkgTDg5NS4zLDEyOS45IEw5MzYuNywyMDkgTDkwMy42LDIwOSBMODk3LjUsMTk2LjIgWiBNODc0LjUsMTQ5LjIgTDg2MS41LDE3Ni40IEw4ODcuOCwxNzYuNCBMODc0LjUsMTQ5LjIgWiIgaWQ9IlNoYXBlIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNOTgxLjIsMjEwLjQgQzkzNy41LDIxMC40IDkzMi45LDE5Mi42IDkzMi45LDE4Mi4zIEw5MzIuOSwxODEuMiBMOTY2LjEsMTgxLjIgQzk2Ni40LDE4NS41IDk2OC43LDE5Mi40IDk4NS45LDE5Mi40IEw5ODYuOSwxOTIuNCBDMTAwMy44LDE5Mi40IDEwMDYuMywxODguOCAxMDA2LjMsMTg1IEwxMDA2LjMsMTg0LjkgQzEwMDYuMywxODAuOSAxMDA0LjMsMTc4LjMgOTg3LjcsMTc3LjggTDk3MywxNzcuNCBDOTQyLjQsMTc2LjUgOTM0LjIsMTY1LjggOTM0LjIsMTUzLjYgTDkzNC4yLDE1Mi42IEM5MzQuMiwxMzkuNyA5NDIuOCwxMjguNSA5NzkuNywxMjguNSBMOTg5LjIsMTI4LjUgQzEwMjguMywxMjguNSAxMDM3LjMsMTQwLjkgMTAzNy4zLDE1My41IEwxMDM3LjMsMTU0LjQgTDEwMDQuNCwxNTQuNCBDMTAwNC4xLDE1MS41IDEwMDIuNCwxNDYgOTg1LjMsMTQ2IEw5ODQuMiwxNDYgQzk2OC40LDE0NiA5NjYuOCwxNDguOCA5NjYuOCwxNTEuOCBMOTY2LjgsMTUxLjkgQzk2Ni44LDE1NS4xIDk2OS4xLDE1Ny42IDk4NCwxNTggTDk5OC4yLDE1OC4zIEMxMDI4LjMsMTU5LjIgMTA0MCwxNjYuMiAxMDQwLDE4Mi4xIEwxMDQwLDE4My42IEMxMDQwLDE
25Ni45IDEwMzIuNiwyMTAuNSA5OTEsMjEwLjUgTDk4MS4yLDIxMC41IEw5ODEuMiwyMTAuNCBaIiBpZD0iUGF0aCI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlBhdGgiIHBvaW50cz0iMTA3NiAxNTEuNCAxMDQxLjkgMTUxLjQgMTA0MS45IDEyOS44IDExNDAuNCAxMjkuOCAxMTQwLjQgMTUxLjQgMTEwNi4zIDE1MS40IDExMDYuMyAyMDguOSAxMDc2IDIwOC45Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aCIgcG9pbnRzPSIxMjM1LjcgMTI5LjggMTIzNS43IDE0OS4yIDExNzggMTQ5LjIgMTE3OCAxNTkuMSAxMjM0LjYgMTU5LjEgMTIzNC42IDE3OC4zIDExNzggMTc4LjMgMTE3OCAxODkuMSAxMjM2LjYgMTg5LjEgMTIzNi42IDIwOC45IDExNDguMiAyMDguOSAxMTQ4LjIgMTI5LjggMTIzNS43IDEyOS44Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTI3NS40LDIwOC45IEwxMjQ1LjIsMjA4LjkgTDEyNDUuMiwxMjkuOCBMMTMxNy4xLDEyOS44IEMxMzQwLjIsMTI5LjggMTM1MC40LDEzNy4yIDEzNTAuNCwxNTAuMSBMMTM1MC40LDE1MS4zIEMxMzUwLjQsMTYyLjggMTM0MC40LDE2Ny42IDEzMzQuNSwxNjkgQzEzNDQuMywxNzEuMiAxMzUwLjgsMTc3LjYgMTM1MC44LDE4Ny44IEwxMzUwLjgsMTk5LjUgQzEzNTAuOCwyMDUgMTM1MS41LDIwNyAxMzUyLjMsMjA4LjQgTDEzNTIuMywyMDguOSBMMTMyMS41LDIwOC45IEMxMzIwLjgsMjA4IDEzMjAuNSwyMDcgMTMyMC41LDIwNC44IEwxMzIwLjUsMTk1LjUgQzEzMjAuNSwxODYuNSAxMzE2LjQsMTgxLjggMTMwNC40LDE4MS44IEwxMjc1LjUsMTgxLjggTDEyNzUuNSwyMDguOSBMMTI3NS40LDIwOC45IFogTTEyNzUuNCwxNjIuNyBMMTMxMC4xLDE2Mi43IEMxMzE2LjgsMTYyLjcgMTMxOS4yLDE1OS43IDEzMTkuMiwxNTUuOSBMMTMxOS4yLDE1NS44IEMxMzE5LjIsMTUyLjEgMTMxNi45LDE0OS4xIDEzMTAuMSwxNDkuMSBMMTI3NS40LDE0OS4xIEwxMjc1LjQsMTYyLjcgWiIgaWQ9IlNoYXBlIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMjA0LDE3MC43IEwyMDQsMTY3LjQgQzIwNCwxNTUuOSAyMDcuOCwxMzguOSAyMzEuNywxMzEgQzIyNC44LDEyOS40IDIxNi40LDEyOC40IDIwNi4zLDEyOC40IEwyMDEuNSwxMjguNCBDMTUwLjIsMTI4LjQgMTQzLjgsMTUyLjggMTQzLjgsMTY3LjYgTDE0My44LDE3MC44IEMxNDMuOCwxODUuNiAxNTAuMywyMTAuNSAyMDEuNSwyMTAuNSBMMjA2LjMsMjEwLjUgQzIxNi42LDIxMC41IDIyNS4xLDIwOS41IDIzMi4xLDIwNy43IEMyMDcuOCwxOTkuNyAyMDQsMTgyLjIgMjA0LDE3MC43IFoiIGlkPSJQYXRoIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMzE5LjgsMTI4LjMgTDMxNSwxMjguMyBDMzA0LjgsMTI4LjMgMjk2LjUsMTI5LjMgMjg5LjUsMTMwLjkgQzMxMy40LDEzOC44IDMxNy4yLDE1NS44IDMxNy4yLDE2Ny4zIEwzMTcuMiwxNzAuNiBDMzE3LjIsMTgyLjEgMzEzLjQsMTk5LjYgMjg5LjEsMjA3LjYgQzI5Ni4xLDIwOS4zIDMwNC42LDIxMC40IDMxNC45LDIxMC40IEwzMTkuNywyMTAuNCBDMzcwLjksMjEwLjQgMzc3LjMsMTg1LjUgMzc3LjMsMTcwLjcgTDM3Ny4zLDE2Ny41IEMzNzcuNCwxNTIuNyAzNzAuOCwxMjguMyAzMTkuOCwxMjguMyBaIiBpZD0iUGF0aCI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="}))}),{target:"esnaqdd0"})({fontSize:"1.5rem",color:a.ZP.colors.highlight,filter:"invert(100%) sepia(0%) saturate(7500%) hue-rotate(353deg) brightness(112%) contrast(104%)",position:"absolute",zIndex:1,top:16,left:20,width:"200px","&:hover":{filter:"invert(93%) sepia(5%) saturate(2399%) hue-rotate(55deg) brightness(94%) contrast(110%)"}},""),Ho=(0,r.createContext)({show:function(e){},setAlternate:function(e){}}),Wo=function(){return(0,r.useContext)(Ho)},qo=function(e){var t=e.children,n=(0,r.useState)(!0),s=n[0],u=n[1],c=(0,r.useState)(!1),l=c[0],f=c[1];return(0,i.tZ)(r.Fragment,null,(0,i.tZ)(Do,{hidden:!s,alternate:l}),(0,i.tZ)(Ho.Provider,{value:{show:u,setAlternate:f}},(0,i.tZ)(o.M,{initial:!0,exitBeforeEnter:!1},t)),(0,i.tZ)(i.xB,{styles:a.W0}))}},3628:function(e,t,n){"use strict";var r;n.d(t,{W0:function(){return a},yD:function(){return i}});var o={colors:{dark:"#1d1d1d",highlight:"#b4fba8"},fonts:{body:"Arimo",header:"DIN W01 Cond Bold",special:"Druk Wide Web",emphasis:"Druk XCond Cy Web",condensed:"Druk XCond Cy Web"},breakpoints:{mobile:0,tablet:768,desktop:1024,desktophd:1280},mq:{mobile:"@media (max-width: 767px)",tablet:"@media (min-width: 768px) and (max-width: 1023px)",desktop:"@media (min-width: 1024px) and (max-width: 1279px)",desktophd:"@media (min-width: 1280px)",tall:"@media (min-height: 100vw)",wide:"@media (min-width: 100vh)"},wordpressUrl:"https://ieomd.halseyburgund.com"};t.ZP=o;var i=((r={width:"100%"})[o.mq.desktophd]={width:1e3},r[o.mq.desktop]={width:1e3},r[o.mq.tablet]={width:700},r),a={"*":{boxSizing:"border-box"},html:{minWidth:"initial !important"},body:{margin:0,backgroundColor:o.colors.dark,fontFamily:o.fonts.body,color:"white"},"h1, h2, h3, h4, nav, header, address":{fontFamily:o.fonts.header,textTransform:"uppercase"},"h1, h2, h3, h4":{textAlign:"center"},h1:{fontSize:"3rem",fontWeight:"normal"},main:{width:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",backgroundColor:o.colors.dark},a:{textDecoration:"none",color:"white","&:hover":{color:o.colors.highlight},"&:focus":{outline:"1px dotted #909090"}},button:{fontSize:"100%",fontFamily:"inherit",border:0,padding:0,background:"none","&:hover":{cursor:"pointer"},"&:focus":{outline:"none"},textTransform:"uppercase",fontWeight:"bold"},img:{height:"auto"},div:{"&:focus":{outline:"1px dotted #909090"}},".container_wrap":{borderTopStyle:"none !important"}}},9499:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseContext:function(){return R},Link:function(){return Y},Location:function(){return P},LocationProvider:function(){return T},Match:function(){return X},Redirect:function(){return J},Router:function(){return B},ServerLocation:function(){return _},createHistory:function(){return x},createMemorySource:function(){return C},globalHistory:function(){return O},isRedirect:function(){return G},matchPath:function(){return c},navigate:function(){return E},redirectTo:function(){return V},resolve:function(){return l},useLocation:function(){return ee},useMatch:function(){return re},useNavigate:function(){return te},useParams:function(){return ne}});var r=n(7294),o=n(1143),i=n.n(o),a=n(9712),s=function(e,t){return e.substr(0,t.length)===t},u=function(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],a=m(o),s=""===a[0],u=g(e),c=0,l=u.length;c<l;c++){var f=!1,p=u[c].route;if(p.default)r={route:p,params:{},uri:t};else{for(var v=m(p.path),y={},w=Math.max(a.length,v.length),k=0;k<w;k++){var x=v[k],C=a[k];if(h(x)){y[x.slice(1)||"*"]=a.slice(k).map(decodeURIComponent).join("/");break}if(void 0===C){f=!0;break}var M=d.exec(x);if(M&&!s){-1===b.indexOf(M[1])||i()(!1);var O=decodeURIComponent(C);y[M[1]]=O}else if(x!==C){f=!0;break}}if(!f){n={route:p,params:y,uri:"/"+a.slice(0,k).join("/")};break}}}return n||r||null},c=function(e,t){return u([{path:e}],t)},l=function(e,t){if(s(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],i=t.split("?")[0],a=m(r),u=m(i);if(""===a[0])return y(i,o);if(!s(a[0],".")){var c=u.concat(a).join("/");return y(("/"===i?"":"/")+c,o)}for(var l=u.concat(a),f=[],d=0,p=l.length;d<p;d++){var h=l[d];".."===h?f.pop():"."!==h&&f.push(h)}return y("/"+f.join("/"),o)},f=function(e,t){var n=e.split("?"),r=n[0],o=n[1],i=void 0===o?"":o,a="/"+m(r).map((function(e){var n=d.exec(e);return n?t[n[1]]:e})).join("/"),s=t.location,u=(s=void 0===s?{}:s).search,c=(void 0===u?"":u).split("?")[1]||"";return a=y(a,i,c)},d=/^:(.+)/,p=function(e){return d.test(e)},h=function(e){return e&&"*"===e[0]},v=function(e,t){return{route:e,score:e.default?0:m(e.path).reduce((function(e,t){return e+=4,!function(e){return""===e}(t)?p(t)?e+=2:h(t)?e-=5:e+=3:e+=1,e}),0),index:t}},g=function(e){return e.map(v).sort((function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index}))},m=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},y=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter((function(e){return e&&e.length>0})))&&n.length>0?"?"+n.join("&"):"")},b=["uri","path"],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},k=function(e){var t=e.location,n=t.search,r=t.hash,o=t.href,i=t.origin,a=t.protocol,s=t.host,u=t.hostname,c=t.port,l=e.location.pathname;!l&&o&&M&&(l=new URL(o).pathname);return{pathname:encodeURI(decodeURI(l)),search:n,hash:r,href:o,origin:i,protocol:a,host:s,hostname:u,port:c,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},x=function(e,t){var n=[],r=k(e),o=!1,i=function(){};return{get location(){return r},get transitioning(){return o},_onTransitionComplete:function(){o=!1,i()},listen:function(t){n.push(t);var o=function(){r=k(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",o),function(){e.removeEventListener("popstate",o),n=n.filter((function(e){return e!==t}))}},navigate:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.state,u=a.replace,c=void 0!==u&&u;if("number"==typeof t)e.history.go(t);else{s=w({},s,{key:Date.now()+""});try{o||c?e.history.replaceState(s,null,t):e.history.pushState(s,null,t)}catch(f){e.location[c?"replace":"assign"](t)}}r=k(e),o=!0;var l=new Promise((function(e){return i=e}));
2return n.forEach((function(e){return e({location:r,action:"PUSH"})})),l}}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,o=[n],i=[null];return{get location(){return o[r]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return o},get index(){return r},get state(){return i[r]},pushState:function(e,t,n){var a=n.split("?"),s=a[0],u=a[1],c=void 0===u?"":u;r++,o.push({pathname:s,search:c.length?"?"+c:c}),i.push(e)},replaceState:function(e,t,n){var a=n.split("?"),s=a[0],u=a[1],c=void 0===u?"":u;o[r]={pathname:s,search:c},i[r]=e},go:function(e){var t=r+e;t<0||t>i.length-1||(r=t)}}}},M=!("undefined"==typeof window||!window.document||!window.document.createElement),O=x(M?window:C()),E=O.navigate,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};function S(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function D(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var L=function(e,t){var n=(0,r.createContext)(t);return n.displayName=e,n},N=L("Location"),P=function(e){var t=e.children;return r.createElement(N.Consumer,null,(function(e){return e?t(e):r.createElement(T,null,t)}))},T=function(e){function t(){var n,r;j(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=A(this,e.call.apply(e,[this].concat(i))),r.state={context:r.getContext(),refs:{unlisten:null}},A(r,n)}return D(t,e),t.prototype.getContext=function(){var e=this.props.history;return{navigate:e.navigate,location:e.location}},t.prototype.componentDidCatch=function(e,t){if(!G(e))throw e;(0,this.props.history.navigate)(e.uri,{replace:!0})},t.prototype.componentDidUpdate=function(e,t){t.context.location!==this.state.context.location&&this.props.history._onTransitionComplete()},t.prototype.componentDidMount=function(){var e=this,t=this.state.refs,n=this.props.history;n._onTransitionComplete(),t.unlisten=n.listen((function(){Promise.resolve().then((function(){requestAnimationFrame((function(){e.unmounted||e.setState((function(){return{context:e.getContext()}}))}))}))}))},t.prototype.componentWillUnmount=function(){var e=this.state.refs;this.unmounted=!0,e.unlisten()},t.prototype.render=function(){var e=this.state.context,t=this.props.children;return r.createElement(N.Provider,{value:e},"function"==typeof t?t(e):t||null)},t}(r.Component);T.defaultProps={history:O};var _=function(e){var t=e.url,n=e.children,o=t.indexOf("?"),i=void 0,a="";return o>-1?(i=t.substring(0,o),a=t.substring(o)):i=t,r.createElement(N.Provider,{value:{location:{pathname:i,search:a,hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},R=L("Base",{baseuri:"/",basepath:"/",navigate:O.navigate}),B=function(e){return r.createElement(R.Consumer,null,(function(t){return r.createElement(P,null,(function(n){return r.createElement(U,I({},t,n,e))}))}))},U=function(e){function t(){return j(this,t),A(this,e.apply(this,arguments))}return D(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.navigate,o=e.basepath,i=e.primary,a=e.children,s=(e.baseuri,e.component),c=void 0===s?"div":s,f=S(e,["location","navigate","basepath","primary","children","baseuri","component"]),d=r.Children.toArray(a).reduce((function(e,t){var n=ie(o)(t);return e.concat(n)}),[]),p=t.pathname,h=u(d,p);if(h){var v=h.params,g=h.uri,m=h.route,y=h.route.value;o=m.default?o:m.path.replace(/\*$/,"");var b=I({},v,{uri:g,location:t,navigate:function(e,t){return n(l(e,g),t)}}),w=r.cloneElement(y,b,y.props.children?r.createElement(B,{location:t,primary:i},y.props.children):void 0),k=i?Z:c,x=i?I({uri:g,location:t,component:c},f):f;return r.createElement(R.Provider,{value:{baseuri:g,basepath:o,navigate:b.navigate}},r.createElement(k,x,w))}return null},t}(r.PureComponent);U.defaultProps={primary:!0};var z=L("Focus"),Z=function(e){var t=e.uri,n=e.location,o=e.component,i=S(e,["uri","location","component"]);return r.createElement(z.Consumer,null,(function(e){return r.createElement(W,I({},i,{component:o,requestFocus:e,uri:t,location:n}))}))},F=!0,H=0,W=function(e){function t(){var n,r;j(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=A(this,e.call.apply(e,[this].concat(i))),r.state={},r.requestFocus=function(e){!r.state.shouldFocus&&e&&e.focus()},A(r,n)}return D(t,e),t.getDerivedStateFromProps=function(e,t){if(null==t.uri)return I({shouldFocus:!0},e);var n=e.uri!==t.uri,r=t.location.pathname!==e.location.pathname&&e.location.pathname===e.uri;return I({shouldFocus:n||r},e)},t.prototype.componentDidMount=function(){H++,this.focus()},t.prototype.componentWillUnmount=function(){0===--H&&(F=!0)},t.prototype.componentDidUpdate=function(e,t){e.location!==this.props.location&&this.state.shouldFocus&&this.focus()}
2,t.prototype.focus=function(){var e=this.props.requestFocus;e?e(this.node):F?F=!1:this.node&&(this.node.contains(document.activeElement)||this.node.focus())},t.prototype.render=function(){var e=this,t=this.props,n=(t.children,t.style),o=(t.requestFocus,t.component),i=void 0===o?"div":o,a=(t.uri,t.location,S(t,["children","style","requestFocus","component","uri","location"]));return r.createElement(i,I({style:I({outline:"none"},n),tabIndex:"-1",ref:function(t){return e.node=t}},a),r.createElement(z.Provider,{value:this.requestFocus},this.props.children))},t}(r.Component);(0,a.O)(W);var q=function(){},Q=r.forwardRef;void 0===Q&&(Q=function(e){return e});var Y=Q((function(e,t){var n=e.innerRef,o=S(e,["innerRef"]);return r.createElement(R.Consumer,null,(function(e){e.basepath;var i=e.baseuri;return r.createElement(P,null,(function(e){var a=e.location,u=e.navigate,c=o.to,f=o.state,d=o.replace,p=o.getProps,h=void 0===p?q:p,v=S(o,["to","state","replace","getProps"]),g=l(c,i),m=encodeURI(g),y=a.pathname===m,b=s(a.pathname,m);return r.createElement("a",I({ref:t||n,"aria-current":y?"page":void 0},v,h({isCurrent:y,isPartiallyCurrent:b,href:g,location:a}),{href:g,onClick:function(e){if(v.onClick&&v.onClick(e),ae(e)){e.preventDefault();var t=d;if("boolean"!=typeof d&&y){var n=I({},a.state),r=(n.key,S(n,["key"]));o=I({},f),i=r,t=(s=Object.keys(o)).length===Object.keys(i).length&&s.every((function(e){return i.hasOwnProperty(e)&&o[e]===i[e]}))}u(g,{state:f,replace:t})}var o,i,s}}))}))}))}));function K(e){this.uri=e}Y.displayName="Link";var G=function(e){return e instanceof K},V=function(e){throw new K(e)},$=function(e){function t(){return j(this,t),A(this,e.apply(this,arguments))}return D(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.navigate,n=e.to,r=(e.from,e.replace),o=void 0===r||r,i=e.state,a=(e.noThrow,e.baseuri),s=S(e,["navigate","to","from","replace","state","noThrow","baseuri"]);Promise.resolve().then((function(){var e=l(n,a);t(f(e,s),{replace:o,state:i})}))},t.prototype.render=function(){var e=this.props,t=(e.navigate,e.to),n=(e.from,e.replace,e.state,e.noThrow),r=e.baseuri,o=S(e,["navigate","to","from","replace","state","noThrow","baseuri"]),i=l(t,r);return n||V(f(i,o)),null},t}(r.Component),J=function(e){return r.createElement(R.Consumer,null,(function(t){var n=t.baseuri;return r.createElement(P,null,(function(t){return r.createElement($,I({},t,{baseuri:n},e))}))}))},X=function(e){var t=e.path,n=e.children;return r.createElement(R.Consumer,null,(function(e){var o=e.baseuri;return r.createElement(P,null,(function(e){var r=e.navigate,i=e.location,a=l(t,o),s=c(a,i.pathname);return n({navigate:r,location:i,match:s?I({},s.params,{uri:s.uri,path:t}):null})}))}))},ee=function(){var e=(0,r.useContext)(N);if(!e)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.location},te=function(){var e=(0,r.useContext)(R);if(!e)throw new Error("useNavigate hook was used but a BaseContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.navigate},ne=function(){var e=(0,r.useContext)(R);if(!e)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var t=ee(),n=c(e.basepath,t.pathname);return n?n.params:null},re=function(e){if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");var t=(0,r.useContext)(R);if(!t)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var n=ee(),o=l(e,t.baseuri),i=c(o,n.pathname);return i?I({},i.params,{uri:i.uri,path:e}):null},oe=function(e){return e.replace(/(^\/+|\/+$)/g,"")},ie=function e(t){return function(n){if(!n)return null;if(n.type===r.Fragment&&n.props.children)return r.Children.map(n.props.children,e(t));if(n.props.path||n.props.default||n.type===J||i()(!1),n.type!==J||n.props.from&&n.props.to||i()(!1),n.type!==J||function(e,t){var n=function(e){return p(e)};return m(e).filter(n).sort().join("/")===m(t).filter(n).sort().join("/")}(n.props.from,n.props.to)||i()(!1),n.props.default)return{value:n,default:!0};var o=n.type===J?n.props.from:n.props.path,a="/"===o?t:oe(t)+"/"+oe(o);return{value:n,default:n.props.default,path:n.props.children?oe(a)+"/*":a}}},ae=function(e){return!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}},1143:function(e){"use strict";
2e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e){function t(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)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},8416:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},434:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7867:function(e,t,n){var r=n(6015);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2911:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SCRIPT_TYPE="text/partytown",t.partytownSnippet=e=>((e,t)=>{const{forward:n=[],...r}=e||{},o=JSON.stringify(r,((e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t)));return["!(function(w,p,f,c){",Object.keys(r).length>0?`c=w[p]=Object.assign(w[p]||{},${o});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",n.length>0?`.concat(${JSON.stringify(n)})`:"","})(window,'partytown','forward');",t].join("")})(e,'/* Partytown 0.5.4 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll(\'script[type="text/partytown"]\'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener("pt0",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.5.4":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement("script")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);')},907: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}})},3878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";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 o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},4942: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}})},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},1120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9611);function o(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},4578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},8814:function(e,t,n){"use strict";function r(){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}}n.d(t,{Z:function(){return r}})},9199:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},5267:function(e,t,n){"use strict";
2function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},3366:function(e,t,n){"use strict";function r(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}n.d(t,{Z:function(){return r}})},2963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1002),o=n(7326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},3433:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);var o=n(9199),i=n(181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.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.")}()}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907);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}}},1562:function(e,t,n){"use strict";n.d(t,{ZP:function(){return y},c4:function(){return b},cP:function(){return s},dq:function(){return l},mc:function(){return h}});var r=n(5697),o=n(7294),i=n(9499);n(72);function a(){return a=Object.assign?Object.assign.bind():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},a.apply(this,arguments)}function s(e){let t=e||"/",n="",r="";const o=t.indexOf("#");-1!==o&&(r=t.slice(o),t=t.slice(0,o));const i=t.indexOf("?");return-1!==i&&(n=t.slice(i),t=t.slice(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}const u=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>{if("string"==typeof e)return!(e=>u.test(e))(e)};function l(e,t=""){var n;if(!c(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;const r=null!=(n=null!=t?t:"")?n:"/";return`${null!=r&&r.endsWith("/")?r.slice(0,-1):r}${e.startsWith("/")?e:`/${e}`}`}const f=e=>null==e?void 0:e.startsWith("/"),d=(e,t)=>{if("number"==typeof e)return e;if(!c(e))return e;const{pathname:n,search:r,hash:o}=s(e);let a=e;return f(a)?l(a):function(e,t){if(f(e))return e;const n=(0,i.resolve)(e,t);return n}(a,t)},p=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];function h(e){return l(e,"")}const v={activeClassName:r.string,activeStyle:r.object,partiallyActive:r.bool};function g(e){return o.createElement(i.Location,null,(({location:t})=>o.createElement(m,a({},e,{_location:t}))))}class m extends o.Component{constructor(e){super(e),this.defaultGetProps=({isPartiallyCurrent:e,isCurrent:t})=>(this.props.partiallyActive?e:t)?{className:[this.props.className,this.props.activeClassName].filter(Boolean).join(" "),style:a({},this.props.style,this.props.activeStyle)}:null;let t=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(t=!0),this.state={IOSupported:t},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let e=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);const t=s(d(this.props.to,e)),n=t.pathname+t.search;if(e!==n)return ___loader.enqueue(n)}componentWillUnmount(){if(!this.io)return;const{instance:e,el:t}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),e.unobserve(t),e.disconnect()}handleRef(e){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=((e,t)=>{const n=new window.IntersectionObserver((n=>
2{n.forEach((n=>{e===n.target&&t(n.isIntersecting||n.intersectionRatio>0)}))}));return n.observe(e),{instance:n,el:e}})(e,(e=>{e?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()})))}render(){const e=this.props,{to:t,getProps:n=this.defaultGetProps,onClick:r,onMouseEnter:u,state:l,replace:f,_location:h}=e,v=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,p),g=d(t,h.pathname);return c(g)?o.createElement(i.Link,a({to:g,state:l,getProps:n,innerRef:this.handleRef,onMouseEnter:e=>{u&&u(e);const t=s(g);___loader.hovering(t.pathname+t.search)},onClick:e=>{if(r&&r(e),!(0!==e.button||this.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault();let t=f;const n=encodeURI(g)===h.pathname;"boolean"!=typeof f&&n&&(t=!0),window.___navigate(g,{state:l,replace:t})}return!0}},v)):o.createElement("a",a({href:g},v))}}m.propTypes=a({},v,{onClick:r.func,to:r.string.isRequired,replace:r.bool,state:r.object});var y=o.forwardRef(((e,t)=>o.createElement(g,a({innerRef:t},e))));const b=(e,t)=>{window.___navigate(d(e,window.location.pathname),t)}},3521:function(e,t,n){"use strict";n.r(t),n.d(t,{Script:function(){return h},ScriptStrategy:function(){return c},collectedScriptsByPage:function(){return s},scriptCache:function(){return d},scriptCallbackCache:function(){return p}});var r=n(7294),o=n(9499);function i(){return i=Object.assign?Object.assign.bind():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},i.apply(this,arguments)}const a=new Map,s={get:e=>a.get(e)||[],set(e,t){const n=a.get(e)||[];n.push(t),a.set(e,n)},delete(e){a.delete(e)}},u="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){const t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};var c,l;(l=c||(c={})).postHydrate="post-hydrate",l.idle="idle",l.offMainThread="off-main-thread";const f=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),d=new Set,p=new Map;function h(e){return r.createElement(o.Location,null,(()=>r.createElement(v,e)))}function v(e){const{src:t,strategy:n=c.postHydrate}=e||{},{pathname:a}=(0,o.useLocation)();if((0,r.useEffect)((()=>{let t;switch(n){case c.postHydrate:t=g(e);break;case c.idle:u((()=>{t=g(e)}));break;case c.offMainThread:{const t=y(e);s.set(a,t)}}return()=>{const{script:e,loadCallback:n,errorCallback:r}=t||{};n&&(null==e||e.removeEventListener("load",n)),r&&(null==e||e.removeEventListener("error",r)),null==e||e.remove()}}),[]),n===c.offMainThread){const o=m(e),u=y(e);return"undefined"==typeof window&&s.set(a,u),r.createElement("script",o?i({type:"text/partytown","data-strategy":n,crossOrigin:"anonymous"},u,{dangerouslySetInnerHTML:{__html:m(e)}}):i({type:"text/partytown",src:b(t),"data-strategy":n,crossOrigin:"anonymous"},u))}return null}function g(e){const{id:t,src:n,strategy:r=c.postHydrate,onLoad:o,onError:a}=e||{},s=t||n,u=["load","error"],l={load:o,error:a};if(s){for(const e of u)if(null!=l&&l[e]){var f;const t=p.get(s)||{},{callbacks:n=[]}=(null==t?void 0:t[e])||{};var h,v;n.push(null==l?void 0:l[e]),null!=t&&null!=(f=t[e])&&f.event?null==l||null==(h=l[e])||h.call(l,null==t||null==(v=t[e])?void 0:v.event):p.set(s,i({},t,{[e]:{callbacks:n}}))}if(d.has(s))return null}const g=m(e),b=y(e),k=document.createElement("script");t&&(k.id=t),k.dataset.strategy=r;for(const[i,c]of Object.entries(b))k.setAttribute(i,c);g&&(k.textContent=g),n&&(k.src=n);const x={};if(s){for(const e of u){const t=t=>w(t,s,e);k.addEventListener(e,t),x[`${e}Callback`]=t}d.add(s)}return document.body.appendChild(k),{script:k,loadCallback:x.loadCallback,errorCallback:x.errorCallback}}function m(e){const{dangerouslySetInnerHTML:t,children:n=""}=e||{},{__html:r=""}=t||{};return r||n}function y(e){const t={};for(const[n,r]of Object.entries(e))f.has(n)||(t[n]=r);return t}function b(e){if(e)return`/__third-party-proxy?url=${encodeURIComponent(e)}`}function w(e,t,n){const r=p.get(t)||{};for(const i of(null==r||null==(o=r[n])?void 0:o.callbacks)||[]){var o;i(e)}p.set(t,{[n]:{event:e}})}}},function(e){e.O(0,[774,532,349],(function(){return t=5824,e(e.s=t);var t}));e.O()}]);
3//# sourceMappingURL=app-18b3045a9cad28f41520.js.map

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.