1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7ab58b68-19e7-fca3-5ac5-087e408858fb")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,301440,e=>{"use strict";var t=e.i(271645);let i=e.i(12124).canUseDOM?t.useLayoutEffect:t.useEffect;e.s(["useIsomorphicLayoutEffect",0,i])},514089,e=>{"use strict";var t=e.i(869981),i=e.i(271645),n=e.i(559409),s=e.i(991407),r=e.i(301440),o=e.i(276320);function a(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["useMutation",0,function(e,l){let c=(0,o.useApolloClient)(null==l?void 0:l.client),[u,d]=i.useState(()=>a(c)),p=i.useRef({result:u,mutationId:0,isMounted:!0,client:c,mutation:e,options:l});(0,r.useIsomorphicLayoutEffect)(()=>{Object.assign(p.current,{client:c,options:l,mutation:e})});let h=i.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{options:i,mutation:r}=p.current,o={...i,mutation:r},a=e.client||p.current.client;!p.current.result.loading&&p.current.isMounted&&d(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:a});let l=++p.current.mutationId,c=(0,n.mergeOptions)(o,e);return(0,s.preventUnhandledRejection)(a.mutate(c).then(i=>{var n,s;let{data:r,error:o}=i,u=e.onError||(null==(n=p.current.options)?void 0:n.onError);if(o&&u&&u(o,c),l===p.current.mutationId){let e={called:!0,loading:!1,data:r,error:o,client:a};p.current.isMounted&&!(0,t.equal)(p.current.result,e)&&d(p.current.result=e)}let h=e.onCompleted||(null==(s=p.current.options)?void 0:s.onCompleted);return o||null==h||h(i.data,c),i},i=>{var n;if(l===p.current.mutationId&&p.current.isMounted){let e={loading:!1,error:i,data:void 0,called:!0,client:a};(0,t.equal)(p.current.result,e)||d(p.current.result=e)}let s=e.onError||(null==(n=p.current.options)?void 0:n.onError);throw s&&s(i,c),i}))},[]),m=i.useCallback(()=>{if(p.current.isMounted){let e=a(p.current.client);Object.assign(p.current,{mutationId:0,result:e}),d(e)}},[]);return i.useEffect(()=>{let e=p.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[h,{reset:m,...u}]}])},991407,e=>{"use strict";e.s(["preventUnhandledRejection",0,function(e){return e.catch(()=>{}),e}])},462819,(e,t,i)=>{"use strict";i.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var i={},s=e.split(r),o=(t||{}).decode||n,a=0;a<s.length;a++){var l=s[a],c=l.indexOf("=");if(!(c<0)){var u=l.substr(0,c).trim(),d=l.substr(++c,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==i[u]&&(i[u]=function(e,t){try{return t(e)}catch(t){return e}}(d,o))}}return i},i.serialize=function(e,t,i){var n=i||{},r=n.encode||s;if("function"!=typeof r)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var a=r(t);if(a&&!o.test(a))throw TypeError("argument val is invalid");var l=e+"="+a;if(null!=n.maxAge){var c=n.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(n.domain){if(!o.test(n.domain))throw TypeError("option domain is invalid");l+="; Domain="+n.domain}if(n.path){if(!o.test(n.path))throw TypeError("option path is invalid");l+="; Path="+n.path}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw TypeError("option expires is invali
2d");l+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(l+="; HttpOnly"),n.secure&&(l+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l};var n=decodeURIComponent,s=encodeURIComponent,r=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},131060,(e,t,i)=>{function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var i=String(e),n=s[i.toLowerCase()];if(n)return n;var n=r[i.toLowerCase()];return n||(1===i.length?i.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var i=e.which||e.keyCode||e.charCode;if(null==i)return!1;if("string"==typeof t){var n=s[t.toLowerCase()];if(n)return n===i;var n=r[t.toLowerCase()];if(n)return n===i}else if("number"==typeof t)return t===i;return!1}};var s=(i=t.exports=n).code=i.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":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,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=i.aliases={windows:91,"â§":16,"â¥":18,"â":17,"â":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)s[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)s[o-48]=o;for(o=1;o<13;o++)s["f"+o]=o+111;for(o=0;o<10;o++)s["numpad "+o]=o+96;var a=i.names=i.title={};for(o in s)a[s[o]]=o;for(var l in r)s[l]=r[l]},585642,e=>{"use strict";var t=e.i(299105),i=e.i(119364);e.i(583552);var n=e.i(271645),s=e.i(174080),r=e.i(234604),o=e.i(52883),a="unmounted",l="exited",c="entering",u="entered",d="exiting",p=function(e){function p(t,i){var n,s=e.call(this,t,i)||this,r=i&&!i.isMounting?t.enter:t.appear;return s.appearStatus=null,t.in?r?(n=l,s.appearStatus=c):n=u:n=t.unmountOnExit||t.mountOnEnter?a:l,s.state={status:n},s.nextCallback=null,s}(0,i.default)(p,e),p.getDerivedStateFromProps=function(e,t){return e.in&&t.status===a?{status:l}:null};var h=p.prototype;return h.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},h.componentDidUpdate=function(e){var t=null;if(e!==this.props){var i=this.state.status;this.props.in?i!==c&&i!==u&&(t=c):(i===c||i===u)&&(t=d)}this.updateStatus(!1,t)},h.componentWillUnmount=function(){this.cancelNextCallback()},h.getTimeouts=function(){var e,t,i,n=this.props.timeout;return e=t=i=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,i=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:i}},h.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===c){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:s.default.findDOMNode(this);i&&i.scrollTop}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:a})},h.performEnter=function(e){var t=this,i=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[s.default.findDOMNode(this),n],a=o[0],l=o[1],d=this.getTimeouts(),p=n?d.appear:d.enter;(e||i)&&!r.default.disabled?(this.props.onEnter(a,l),this.safeSetState({status:c},function(){t.props.onEntering(a,l),t.onTransitionEnd(p,function(){t.safeSetState({status:u},function(){t.props.onEntered(a,l)})})})):this.safeSetState({status:u},function(){t.props.onEntered(a)})},h.performExit=function(){var e=this,t=this.props.exit,i=this.getTimeouts(),n=this.props.nodeRef?void 0:s.default.findDOMNode(this);!t||r.default.disabled?this.safeSetState({status:l},function(){e.props.onExited(n)}):(this.props.onExit(n),this.safeSetState({status:d},function(){e.props.onExiting(n),e.onTransitionEnd(i.exit,function(){e.safeSetState({status:l},function(){e.props.onExited(n)})})}))},h.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},h.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},h.setNextCallback=function(e){var t=this,i=!0;return this.nextCallback=function(n){i&&(i=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},h.onTransitionEnd=function(e,t){this.setNextCallback(t);var i=this.props.nodeRef?this.props.nodeRef.current:s.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!i||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],o=r[0],a=r[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},h.render=function(){var e=this.state.status;if(e===a)return null;
2var i=this.props,s=i.children,r=(i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef,(0,t.default)(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n.default.createElement(o.default.Provider,{value:null},"function"==typeof s?s(e,r):n.default.cloneElement(n.default.Children.only(s),r))},p}(n.default.Component);function h(){}p.contextType=o.default,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=a,p.EXITED=l,p.ENTERING=c,p.ENTERED=u,p.EXITING=d,e.s(["default",0,p],585642)},76887,e=>{"use strict";var t=e.i(299105),i=e.i(546462),n=e.i(300445),s=e.i(119364);e.i(583552);var r=e.i(271645),o=e.i(52883);function a(e,t){var i=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){i[e.key]=t&&(0,r.isValidElement)(e)?t(e):e}),i}function l(e,t,i){return null!=i[t]?i[t]:e.props[t]}var c=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},u=function(e){function u(t,i){var s=e.call(this,t,i)||this,r=s.handleExited.bind((0,n.default)(s));return s.state={contextValue:{isMounting:!0}
2,handleExited:r,firstRender:!0},s}(0,s.default)(u,e);var d=u.prototype;return d.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},d.componentWillUnmount=function(){this.mounted=!1},u.getDerivedStateFromProps=function(e,t){var i,n,s=t.children,o=t.handleExited;return{children:t.firstRender?a(e.children,function(t){return(0,r.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:l(t,"appear",e),enter:l(t,"enter",e),exit:l(t,"exit",e)})}):(Object.keys(n=function(e,t){function i(i){return i in t?t[i]:e[i]}e=e||{},t=t||{};var n,s=Object.create(null),r=[];for(var o in e)o in t?r.length&&(s[o]=r,r=[]):r.push(o);var a={};for(var l in t){if(s[l])for(n=0;n<s[l].length;n++){var c=s[l][n];a[s[l][n]]=i(c)}a[l]=i(l)}for(n=0;n<r.length;n++)a[r[n]]=i(r[n]);return a}(s,i=a(e.children))).forEach(function(t){var a=n[t];if((0,r.isValidElement)(a)){var c=t in s,u=t in i,d=s[t],p=(0,r.isValidElement)(d)&&!d.props.in;u&&(!c||p)?n[t]=(0,r.cloneElement)(a,{onExited:o.bind(null,a),in:!0,exit:l(a,"exit",e),enter:l(a,"enter",e)}):u||!c||p?u&&c&&(0,r.isValidElement)(d)&&(n[t]=(0,r.cloneElement)(a,{onExited:o.bind(null,a),in:d.props.in,exit:l(a,"exit",e),enter:l(a,"enter",e)})):n[t]=(0,r.cloneElement)(a,{in:!1})}}),n),firstRender:!1}},d.handleExited=function(e,t){var n=a(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,i.default)({},t.children);return delete n[e.key],{children:n}}))},d.render=function(){var e=this.props,i=e.component,n=e.childFactory,s=(0,t.default)(e,["component","childFactory"]),a=this.state.contextValue,l=c(this.state.children).map(n);
2return(delete s.appear,delete s.enter,delete s.exit,null===i)?r.default.createElement(o.default.Provider,{value:a},l):r.default.createElement(o.default.Provider,{value:a},r.default.createElement(i,s,l))},u}(r.default.Component);u.propTypes={},u.defaultProps={component:"div",childFactory:function(e){return e}},e.s(["default",0,u],76887)},52883,e=>{"use strict";let t=e.i(271645).default.createContext(null);e.s(["default",0,t])},234604,e=>{"use strict";e.s(["default",0,{disabled:!1}])},546462,300445,e=>{"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}e.s(["default",()=>t],546462),e.s(["default",0,function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}],300445)},119364,e=>{"use strict";e.s(["default",0,function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}])},125686,(e,t,i)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},905815,(e,t,i)=>{"use strict";var n=e.r(125686);function s(){}function r(){}r.resetWarningCache=s,t.exports=function(){function e(e,t,i,s,r,o){if(o!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var i={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:s};return i.PropTypes=i,i}},583552,(e,t,i)=>{t.exports=e.r(905815)()},299105,e=>{"use strict";e.s(["default",0,function(e,t){if(null==e)return{};var i,n,s={},r=Object.keys(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||(s[i]=e[i]);return s}])},716512,e=>{"use strict";var t=e.i(843476),i=e.i(343794),n=e.i(79732);let s=(0,e.i(429329).defineStyles)("Typography",e=>({root:{display:"block",margin:0},display4:e.typography.display4,display3:e.typography.display3,display2:e.typography.display2,display1:e.typography.display1,headline:e.typography.headline,title:e.typography.title,subheading:e.typography.subheading,body2:e.typography.body2,body1:e.typography.body1,gutterBottom:{marginBottom:"0.35em"}}),{stylePriority:-2}),r={display4:"h1",display3:"h1",display2:"h1",display1:"h1",headline:"h1",title:"h2",subheading:"h3",body2:"aside",body1:"p"};e.s(["Typography",0,e=>{let{children:o,variant:a,component:l,className:c,onClick:u,gutterBottom:d=!1,id:p,htmlFor:h}=e,m=(0,n.useStyles)(s),f=l||r[a]||"span";return(0,t.jsx)(f,{id:p,htmlFor:h,className:(0,i.default)(m.root,m[a],c,d&&m.gutterBottom),onClick:u,children:o})}])},530841,e=>{"use strict";e.s(["UserContextProvider",()=>g,"useCurrentUser",()=>_,"useCurrentUserId",()=>b,"useCurrentUserLoading",()=>v,"useFilteredCurrentUser",()=>E,"useGetCurrentUser",()=>C,"useRefetchCurrentUser",()=>T],530841);var t=e.i(843476),i=e.i(77284),n=e.i(271645),s=e.i(920347),r=e.i(420616),o=e.i(704479),a=e.i(161517),l=e.i(993808),c=e.i(421579),u=e.i(681387),d=e.i(424935);function p(e){var t;let i,n;(i=(0,d.getSentry)())&&i.getIsolationScope().setUser(e?{id:e._id,email:(0,u.getUserEmail)(e),username:null!=(t=e.username)?t:void 0}:null),(n=window.dataLayer)?n.push({userId:e?e._id:null}):console.warn("Trying to call gtag before dataLayer has been initialized")}window.addEventListener("load",e=>{var t,i,n,s,r,o,u,d;let p=new URLSearchParams(null==(t=document.location)?void 0:t.search),h={url:null==(i=document.location)?void 0:i.href,referrer:document.referrer,utmSource:p.get("utm_source"),utmMedium:p.get("utm_medium"),utmCampaign:p.get("utm_campaign"),utmContent:p.get("utm_content"),utmTerm:p.get("utm_term"),utmUserId:p.get("utm_user_id"),browserProps:(0,l.browserProperties)(),prefersDarkMode:(0,c.devicePrefersDarkMode)(),performance:{memory:null==(s=window.performance)||null==(n=s.memory)?void 0:n.usedJSHeapSize,timeOrigin:null==(r=window.performance)?void 0:r.timeOrigin,timing:null==(d=window.performance)||null==(u=d.timing)||null==(o=u.toJSON)?void 0:o.call(u)}};(0,a.captureEvent)("pageLoadFinished",h)});
2var h=e.i(552275),m=e.i(166540);let f=(0,n.createContext)(()=>null),y=(0,n.createContext)(!1),g=e=>{let{children:s}=e,{forumType:a}=(0,i.useForumType)(),{currentUser:l,refetchCurrentUser:c,currentUserLoading:u}=(0,o.useQueryCurrentUser)(),d=h.localeSetting.get(a);(0,n.useEffect)(()=>{p(l),m.default.locale(d)},[l,d]),(0,n.useEffect)(()=>{p(l)},[null==l?void 0:l._id]);let g=(0,n.useRef)(l);g.current=l;let _=(0,n.useCallback)(()=>g.current,[]);return(0,t.jsx)(S.Provider,{value:c,children:(0,t.jsx)(y.Provider,{value:u,children:(0,t.jsx)(r.UserContext.Provider,{value:l,children:(0,t.jsx)(f.Provider,{value:_,children:s})})})})},_=()=>(0,s.useContextSelector)(r.UserContext,e=>e);function E(e){return(0,s.useContextSelector)(r.UserContext,e)}let C=()=>(0,n.useContext)(f),b=()=>E(e=>null==e?void 0:e._id),v=()=>(0,n.useContext)(y),S=(0,n.createContext)(async()=>{}),T=()=>(0,n.useContext)(S)},338552,58884,387424,413540,e=>{"use strict";var t=e.i(77284),i=e.i(271645);let n=i.createContext(null),{Provider:s,Consumer:r}=n;e.s(["Provider",0,s,"default",0,n],58884);var o=e.i(898892);let a={doNotUpdate:!0};function l(e,t){let s=(0,i.useContext)(n);if(!s)throw Error("Missing <CookiesProvider>");let{cookies:r,initialCookies:l}=s,c=(0,i.useMemo)(()=>e?new Set(e):null,[e]),u=(0,i.useCallback)(()=>r.getAll({...a,...t}),[r,t]),d=(0,i.useRef)(l),p=(0,i.useRef)(d.current),h=(0,i.useRef)(d.current),m=(0,i.useCallback)(()=>{let t=u();return!function(e,t,i){if(!e)return!0;for(let n of e)if(!(0,o.default)(t[n],i[n]))return!0;return!1}(e||null,t,p.current)?h.current:(p.current=t,h.current=t,t)},[e,u]),f=(0,i.useCallback)(e=>{let t=t=>{let{name:i}=t;(!c||!i||c.has(i))&&e()};return r.addChangeListener(t),()=>{r.removeChangeListener(t)}},[r,c]);
2return[(0,i.useSyncExternalStore)(f,m,()=>d.current),(0,i.useCallback)(r.set.bind(r),[r]),(0,i.useCallback)(r.remove.bind(r),[r])]}e.s(["default",0,l],387424);var c=e.i(449403),u=e.i(255265),d=e.i(714818),p=e.i(552275);d.isAnyTest||(window.onReCaptchaLoaded=function(){window.recaptchaLoaded=!0});let h=!1;async function m(){if(d.isServer||h)return;let{cookiePreferences:e}=await (0,c.getCookiePreferences)();if(!e.includes("analytics"))return void console.log("Not initializing ReCaptcha because analytics cookies are not allowed");let t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js?onload=onReCaptchaLoaded&render=".concat(p.reCaptchaSiteKey),document.body.appendChild(t),h=!0}e.s(["initReCaptcha",0,m],413540);var f=e.i(89458);function y(e){let{cookiePreferences:t,explicitlyChanged:i}=e;(0,f.backgroundTask)(m());let n=window.dataLayer;if(n?n.push({event:"cookie_preferences_changed"}):console.warn("Trying to call gtag before dataLayer has been initialized"),!i||JSON.stringify(t)===JSON.stringify(c.ALL_COOKIES))return;let s=new u.default;for(let e in console.log("Removing cookies that are not allowed"),s.getAll())(0,c.isCookieAllowed)(e,t)||s.remove(e)}var g=e.i(219105),_=e.i(161517),E=e.i(166540);let C=null;function b(){let{forumType:e}=(0,t.useForumType)(),{captureEvent:n}=(0,_.useTracking)(),[s,r]=(0,i.useState)((0,g.getExplicitConsentRequiredSync)()),[o,a]=l([c.COOKIE_PREFERENCES_COOKIE,c.COOKIE_CONSENT_TIMESTAMP_COOKIE]),u=o[c.COOKIE_PREFERENCES_COOKIE],d=!!o[c.COOKIE_CONSENT_TIMESTAMP_COOKIE]&&(0,c.isValidCookieTypeArray)(u),h=(0,i.useMemo)(()=>!1!==s?c.ONLY_NECESSARY_COOKIES:c.ALL_COOKIES,[s]),m=d?u:h;return(0,i.useEffect)(()=>{"unknown"===s&&(async()=>{r(await (0,g.getExplicitConsentRequiredAsync)())})()},[s]),(0,i.useEffect)(()=>{p.disableCookiePreferenceAutoUpdateSetting.get(e)||(null===C||(0,E.default)().diff(C,"seconds")>30)&&"unknown"!==s&&!d&&JSON.stringify(h)!==JSON.stringify(u)&&(C=new Date,a(c.COOKIE_PREFERENCES_COOKIE,m,{path:"/",expires:(0,E.default)().add(2,"years").toDate()}),y({cookiePreferences:m,explicitlyChanged:!1}))},[s,JSON.stringify(m),JSON.stringify(u),a]),{cookiePreferences:m,updateCookiePreferences:(0,i.useCallback)(e=>{n("cookiePreferencesUpdated",{cookiePreferences:e}),a(c.COOKIE_CONSENT_TIMESTAMP_COOKIE,new Date,{path:"/",expires:(0,E.default)().add(2,"years").toDate()}),a(c.COOKIE_PREFERENCES_COOKIE,e,{path:"/",expires:(0,E.default)().add(2,"years").toDate()}),y({cookiePreferences:e,explicitlyChanged:!0})},[n,a]),explicitConsentGiven:d,explicitConsentRequired:s}}e.s(["useCookiePreferences",0,b,"useCookiesWithConsent",0,function(e){let{cookiePreferences:t}=b(),[n,s,r]=l(e);return[n,(0,i.useCallback)((e,i,n)=>{(0,c.isCookieAllowed)(e,t)?s(e,i,n):console.warn('Consent has not been granted for cookie "'.concat(e,'" to be set'))},[JSON.stringify(t),s]),r]}],338552)},421579,e=>{"use strict";e.s(["ThemeContextProvider",()=>b,"devicePrefersDarkMode",()=>I],421579);var t=e.i(843476),i=e.i(77284),n=e.i(271645),s=e.i(791434),r=e.i(146764),o=e.i(166540
2);e.i(552275);var a=e.i(935132),l=e.i(600723),c=e.i(338552),u=e.i(283343),d=e.i(289078),p=e.i(714818),h=e.i(161517),m=e.i(79732),f=e.i(618566),y=e.i(429329),g=e.i(530841),_=e.i(970899);let E={},C={},b=e=>{let{children:h}=e,{forumType:f}=(0,i.useForumType)(),[y,_,E]=(0,c.useCookiesWithConsent)([l.THEME_COOKIE]),C=y[l.THEME_COOKIE],b=(0,g.useCurrentUser)(),O=(0,r.getThemeOptions)(C,b),[I,k]=(0,n.useState)(O),x=w();(0,n.useEffect)(()=>{(0,a.isEAForum)()?E(l.THEME_COOKIE,{path:"/"}):(0,u.default)(I)!==C&&_(l.THEME_COOKIE,(0,u.default)(I),{path:"/",expires:(0,o.default)().add(2,"years").toDate()})},[I,C,_,E]);let P=(0,r.abstractThemeToConcrete)(I,x),M=(0,n.useMemo)(()=>(0,s.getForumTheme)(P,f),[P,f]),D=(0,n.useMemo)(()=>({theme:M,abstractThemeOptions:I,concreteThemeOptions:P,setThemeOptions:k}),[M,I,P,k]),[N]=(0,n.useState)(()=>(0,m.createStylesContext)(M,I));return(0,t.jsx)(d.ThemeContext.Provider,{value:D,children:(0,t.jsxs)(v,{stylesContext:N,children:[p.isClient&&(0,t.jsx)(S,{}),p.isServer&&(0,t.jsx)(T,{}),h]})})},v=e=>{let{stylesContext:i,children:n}=e;return p.isClient&&(0,y.setClientMountedStyles)(i),(0,t.jsx)(m.StylesContext.Provider,{value:i,children:n})},S=()=>{let e=(0,n.useContext)(d.ThemeContext),t=(0,n.useContext)(m.StylesContext),i=e.abstractThemeOptions;return(0,n.useLayoutEffect)(()=>{var n;(0,u.default)(i)!==(0,u.default)(window.themeOptions)&&(window.themeOptions=i,n=i.name,document.body.classList.remove("theme-default"),document.body.classList.remove("theme-auto"),document.body.classList.remove("theme-dark"),document.body.classList.add("theme-"+n),(0,m.regeneratePageStyles)(e,t))},[i,e,t]),null},T=()=>{let{forumType:e}=(0,i.useForumType)(),o=(0,n.useContext)(m.StylesContext),a=(0,n.useContext)(d.ThemeContext);return(0,f.useServerInsertedHTML)(()=>{if(o.stylesAwaitingServerInjection.length>0){let i=function(e,t,i){let n=JSON.stringify([i,e]);E[n]||(E[n]={});let o=[];for(let c of t){let t=c.name;if(!E[n][t]){var a,l;let o=null!=(a=null==(l=c.options)?void 0:l.stylePriority)?a:0,u=function(e,t,i){let n=JSON.stringify([i,e]);C[n]||(C[n]={});let o=t.name;if(!C[n][o]){var a;if(null==(a=t.options)||a.stylePriority,(0,r.themeOptionsAreConcrete)(e)){let r=(0,s.getForumTheme)(e,i),a=(0,_.styleNodeToString)(r,t);C[n][o]=a}else{let a=(0,r.abstractThemeToConcrete)(e,!1),l=(0,r.abstractThemeToConcrete)(e,!0),c=(0,s.getForumTheme)(a,i),u=(0,s.getForumTheme)(l,i),d=(0,_.styleNodeToString)(c,t),p=(0,_.styleNodeToString)(u,t),h=d===p?d:"@media (prefers-color-scheme: light) {\n".concat(d,"\n}\n@media (prefers-color-scheme: dark) {\n").concat(p,"\n}");C[n][o]=h}}return C[n][o]}(e,c,i),d="_embedStyles(".concat(JSON.stringify(c.name),",").concat(o,",").concat(JSON.stringify(u),")");E[n][t]=d}o.push(E[n][t])}return o.join(";")}(a.abstractThemeOptions,o.stylesAwaitingServerInjection,e);return o.stylesAwaitingServerInjection=[],(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:i}})}return null}),null},O=()=>p.isClient&&"matchMedia"in window?window.matchMedia("(prefers-color-scheme: dark)"):{matches:!1,addEventListener:()=>{},removeEventListener:()=>{}},w=()=>{let[e]=(0,n.useState)(()=>O()),[t,i]=(0,n.useState)(e.matches),{captureEvent:s}=(0,h.useTracking)();return(0,n.useEffect)(()=>{let t=e=>{let{matches:t}=e;i(t),s("prefersDarkModeChange",{prefersDarkMode:t})};if(e.addEventListener)return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[e,s]),t},I=()=>{var e;let t=O();return null!=(e=null==t?void 0:t.matches)&&e}},600723,255265,219105,449403,e=>{"use strict";var t=e.i(462819);function i(e,t){void 0===t&&(t={});var i,n,s=(i=e)&&"j"===i[0]&&":"===i[1]?i.substr(2):i;if(void 0===(n=t.doNotParse)&&(n=!s||"{"!==s[0]&&"["!==s[0]&&'"'!==s[0]),!n)try{return JSON.parse(s)}catch(e){}return e}var n=function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},s=function(){function e(e,i){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?t.parse(e,i):"object"==typeof e&&null!==e?e:{},new Promise(function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=t.parse(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),i(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var s in this.cookies)n[s]=i(this.cookies[s],e);return n},e.prototype.set=function(e,i,s){var r;"object"==typeof i&&(i=JSON.stringify(i)),this.cookies=n(n({},this.cookies),((r={})[e]=i,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=t.serialize(e,i,s)),this._emitChange({name:e,value:i,options:s})},e.prototype.remove=function(e,i){var s=i=n(n({},i),{expires:new Date(1970,1,1,0,0,1),maxAge:0}
2);this.cookies=n({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=t.serialize(e,"",s)),this._emitChange({name:e,value:void 0,options:i})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}();e.s(["default",0,s],255265);var r=e.i(345955),o=e.i(714818),a=e.i(552275),l=e.i(130697);let c=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB"];function u(){let e,t,i;if(o.isServer)return null;let n=(e=(0,l.getBrowserLocalStorage)(),t=(0,l.safeStorageGetItem)(e,"countryCode"),i=(0,l.safeStorageGetItem)(e,"countryCodeTimestamp"),t&&i?new Date().getTime()-parseInt(i)>1728e5?((0,l.safeStorageRemoveItem)(e,"countryCode"),(0,l.safeStorageRemoveItem)(e,"countryCodeTimestamp"),null):t:null);return n||null}let d=null;async function p(){let{signal:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o.isServer)return null;let t=u();if(t)return t;if(d)return await d;let i=a.ipApiKey,n=i?"https://ipapi.co/json/?key=".concat(i):"https://ipapi.co/json/";return d=(async()=>{try{let t,i,s=await fetch(n,{signal:e});if(!s.ok)throw Error("Error fetching user country: ".concat(s.statusText));let r=(await s.json()).country;return t=(0,l.getBrowserLocalStorage)(),i=new Date().getTime(),(0,l.safeStorageSetItem)(t,"countryCode",r),(0,l.safeStorageSetItem)(t,"countryCodeTimestamp",i.toString()),r}finally{d=null}})(),await d}async function h(){if(!a.hasCookieConsent)return!1;if(o.isServer)return"unknown";let e=new AbortController,t=setTimeout(()=>e.abort(),5e3);try{let i=await p({signal:e.signal});if(clearTimeout(t),i)return c.includes(i);return!0}catch(e){return clearTimeout(t),!0}}e.s(["getExplicitConsentRequiredAsync",0,h,"getExplicitConsentRequiredSync",0,function(){if(!a.hasCookieConsent)return!1;if(o.isServer)return"unknown";let e=u();return e?c.includes(e):"unknown"}],219105);let m={},f=new r.TupleSet(["necessary","functional","analytics"]),y=["necessary"],g=["necessary","functional","analytics"],_=v({name:"cookie_preferences",type:"necessary",description:"Stores the current cookie preferences (set by the user, or automatically if outside a country subject to GDPR)"}),E=v({name:"cookie_consent_timestamp",type:"necessary",description:"Stores the time at which the user set their cookie preferences (once this is set the cookie preferences will never be changed automatically)"}),C=e=>!!e&&e.every(e=>f.has(e));async function b(){let e=new s,t=e.get(_),i=!!e.get(E)&&C(t),n=await h()?y:g;return{cookiePreferences:i?t:n,explicitConsentGiven:i}}function v(e){if(e.name in m&&m[e.name]!==e)throw Error("Two cookies with the same name: ".concat(e.name));return m[e.name]={maxExpires:"24 months",matches:t=>t===e.name,...e},e.name}e.s(["ALL_COOKIES",0,g,"COOKIE_CONSENT_TIMESTAMP_COOKIE",0,E,"COOKIE_PREFERENCES_COOKIE",0,_,"CookiesTable",0,m,"ONLY_NECESSARY_COOKIES",0,y,"getCookiePreferences",0,b,"isCookieAllowed",0,function(e,t){let i=m[e];if(i)return t.includes(i.type);for(let i in m)if(m[i].matches(e))return t.includes(m[i].type);return console.error("Unknown cookie: ".concat(e,", you must register it with registerCookie")),!1},"isValidCookieTypeArray",0,C,"registerCookie",0,v],449403),v({name:"forumType",type:"necessary",description:"Set to AlignmentForum to display the Alignment Forum for debugging"});let S=v({name:"clientId",type:"necessary",description:"A unique identifier for this browser"}),T=v({name:"clientIdUnset",type:"necessary",description:"Whether the client ID is newly assigned"});v({name:"loginToken",type:"necessary",description:"The user's login token"});let O=v({name:"timezone",type:"necessary",description:"Stores the user's timezone"}),w=v({name:"theme",type:"necessary",description:"Stores the user's theme preferences"});v({name:"hide_featured_resource",type:"necessary",description:"Controls whether the featured resource banner in the left sidebar is hidden"}),v({name:"show_community_posts_section",type:"necessary",description:"Whether to show the community posts section on the EA Forum home page"});let I=v({name:"show_quick_takes_section",type:"necessary",description:"Whether to show the quick takes section on the EA Forum home page"}),k=v({name:"show_quick_takes_community",type:"necessary",description:"Whether to include quick takes tagged with community in the home page quick takes section"}),x=v({name:"show_popular_comments_section",type:"necessary",description:"Whether to show the popular comments section on the EA Forum home page"});v({name:"hide_home_handbook",type:"necessary",description:"Whether to hide the EA Handbook on the EA Forum home page"});let P=v({name:"show_post_podcast_player",type:"necessary",description:"Whether to show the podcast player on a posts pages"});v({name:"hideMapFromFrontpage",type:"necessary",description:"Stores whether the user has hidden the map from the frontpage."});let M="hide_collection_item_";
2v({name:"".concat(M,"[*]"),matches:e=>e.startsWith(M),type:"necessary",description:"Stores whether a collection item has been hidden (for a specific collection item id)"});let D="hide_spotlight_item_";v({name:"".concat(D,"[*]"),matches:e=>e.startsWith(D),type:"necessary",description:"Stores whether a spotlight item has been hidden (for a specific spotlight item id)"});let N="hide_forum_event_banner_";v({name:"".concat(N,"[*]"),matches:e=>e.startsWith(N),type:"necessary",description:"Stores whether a forum event banner has been hidden"}),v({name:"show_recommendations_section",type:"necessary",description:"Controls whether the recommendations ('Classic posts') section on the frontpage is shown or hidden"}),v({name:"hide_import_eag_profile",type:"necessary",description:"Controls whether the EAG profile import banner is shown or hidden on the edit profile page"}),v({name:"hide_more_from_the_forum_recommendations",type:"necessary",description:'Don\'t show the "More from the forum" recommendations section'}),v({name:"hide_new_post_how_to_guide",type:"necessary",description:"Don't show the how-to guide on the new post page"}),v({name:"hide_2021_book_banner",type:"necessary",description:"Don't show the 2021 book banner"});let R=v({name:"last_visited_frontpage",type:"functional",description:"Stores the date of the user's last visit to the frontpage"}),L=v({name:"admin_recombee_settings",type:"functional",description:"Stores recombee settings for admins experimenting with latest posts"});v({name:"new_posts_list_view_toggle",type:"necessary",description:'Tracks whether or not to show the "NEW" flag on the posts list view toggle'});let A=v({name:"posts_list_view_type",type:"necessary",description:"Whether to display post lists as list items or card items"}),U=v({name:"hide_subscribed_feed_suggested_users",type:"necessary",description:"Whether to hide the suggested users section on the subscribed tab feed"}),K=v({name:"selected_frontpage_tab",type:"functional",description:"Stores the selected tab for logged out users"}),j=v({name:"selected_profile_tab",type:"functional",description:"Stores the selected profile page tab (feed, posts, comments, wiki edits, sequences, or quick takes)"}),F=v({name:"profile_tab_settings",type:"functional",description:"Stores settings for all profile page tabs, including comments"});v({name:"hide_eag_banner",type:"necessary",description:"Don't show any EAG(x) banners"});let V="nav_menu_flag_";v({name:"".concat(V,"[*]"),matches:e=>e.startsWith(V),type:"necessary",description:"Whether or not to show particular flags in the main navigation menu"});let H=v({name:"llm_chat_conversation_open",type:"functional",description:"Whether the LLM chat conversation UI is open"}),W=v({name:"home_design_default_public_id",type:"necessary",description:"Stores the user's preferred homepage design publicId for the April Fools homepage"}),G=v({name:"llm_chat_guide_open",type:"functional",description:"Whether the LLM chat guide is open"});v({name:"llm_chat_expanded",type:"functional",description:"Whether the LLM chat has expanded size"}),v({name:"ultra_feed_enabled",type:"functional",description:"Whether the ultra feed mode is enabled, which hides QuickTakes and Popular Comments"}),v({name:"ultra_feed_page_visited",type:"functional",description:"Whether the user has ever visited the ultra feed page"});let B=v({name:"ultra_feed_active_tab",type:"functional",description:"Stores the last active UltraFeed tab"}),q=v({name:"pinnedGlossary",type:"functional",description:"Whether the glossary is pinned"}),J=v({name:"hide_solstice_globe",type:"necessary",description:"Whether the solstice season globe is hidden and replaced with a map"});v({name:"no_admin_next_redirect",type:"functional",description:"If set, admins won't be redirected to the baserates-prod-test.vercel.app domain"});let z=v({name:"hide_fundraiser_banner_2026",type:"necessary",description:"Whether the 2026 fundraiser banner has been dismissed"});v({name:"intercom-session-[*]",matches:e=>e.startsWith("intercom-session-"),type:"functional",thirdPartyName:"Intercom",description:"Session cookie used by Intercom"}),v({name:"intercom-id-[*]",matches:e=>e.startsWith("intercom-id-"),type:"functional",thirdPartyName:"Intercom",description:"ID cookie used by Intercom"}),v({name:"intercom-device-id-[*]",matches:e=>e.startsWith("intercom-id-"),type:"functional",thirdPartyName:"Intercom",description:"Device ID cookie used by Intercom"}),v({name:"intercom-[*]",matches:e=>e.startsWith("intercom-"),type:"functional",thirdPartyName:"Intercom",description:"Miscellaneous cookies which may be set by Intercom"}),v({name:"_hjTLDTest",type:"functional",thirdPartyName:"Hotjar",description:"When the Hotjar script executes we try to determine the most generic cookie path we should use, instead of the page hostname. This is done so that cookies can be shared across subdomains (where applicable). To determine this, we try to store the _hjTLDTest cookie for different URL substring alternatives until it fails. After this check, the cookie is removed."}),v({name:"_hjSessionUser_[*]",matches:e=>e.startsWith("_hjSessionUser_"),type:"functional",thirdPartyName:"Hotjar",description:"Hotjar cookie that is set when a user first lands on a page with the Hotjar script. It is used to persist the Hotjar User ID, unique to that site on the browser. This ensures that behavior in subsequent visits to the same site will be attributed to the same user ID."}),v({name:"_hjIncludedInSessionSample_[*]",matches:e=>e.startsWith("_hjIncludedInSessionSample_"),type:"functional",thirdPartyName:"Hotjar",description:"Whether the current user is included in the session sample."}),v({name:"_hjFirstSeen",type:"functional",thirdPartyName:"Hotjar",description:"Identifies a new user's first session on a website, indicating whether or not Hotjar's seeing this user for the first time."}),v({name:"_hjAbsoluteSessionInProgress",type:"functional",thirdPartyName:"Hotjar",description:"This cookie is used by HotJar to detect the first pageview session of a user. This is a True/False flag set by the cookie."}),v({name:"_gid",type:"analytics",thirdPartyName:"Google",description:"This cookie name is associated with Google Universal Analytics. This appears to be a new cookie and as of Spring 2017 no information is available from Google. It appears to store and update a unique value for each page visited."}),v({name:"_ga",type:"analytics",thirdPartyName:"Google",description:"This cookie name is associated with Google Universal Analytics. This cookie is used to distinguish unique users by assigning a randomly generated number as a client identifier."}),v({name:"_dc_gtm_UA[*]",matches:e=>e.startsWith("_dc_gtm_UA"),type:"analytics",thirdPartyName:"Google",description:"Used by Google Tag Manager to control the loading of a Google Analytics script tag."}),v({name:"__Host-GAPS",type:"necessary",thirdPartyName:"Google",description:"This cookie name is associated with Google. It is set by Google to identify the user and is used in support of the Google Identity application."}),v({name:"(various)",type:"analytics",thirdPartyName:"Google ReCaptcha",description:"Google ReCaptcha may set a number of cookies under the 'google.com' domain in order to check for suspicious activity. The full list of known possible cookies are: __Secure-3PSIDCC, __Secure-1PSIDCC, SIDCC, __Secure-3PAPISID, SSID, __Secure-1PAPISID, HSID, __Secure-3PSID, __Secure-1PSID, SID, SAPISID, APISID, NID, OTZ, 1P_JAR, AEC, DV, __Secure-ENID"}),e.s(["CLIENT_ID_COOKIE",0,S,"CLIENT_ID_NEW_COOKIE",0,T,"HIDE_COLLECTION_ITEM_PREFIX",0,M,"HIDE_FUNDRAISER_BANNER_COOKIE",0,z,"HIDE_LLM_CHAT_GUIDE_COOKIE",0,G,"HIDE_SOLSTICE_GLOBE_COOKIE",0,J,"HIDE_SPOTLIGHT_ITEM_PREFIX",0,D,"HIDE_SUBSCRIBED_FEED_SUGGESTED_USERS",0,U,"HOME_DESIGN_DEFAULT_BUILT_IN_VALUE",0,"__built_in_home_design__","HOME_DESIGN_DEFAULT_CLASSIC_VALUE",0,"__classic_home__","HOME_DESIGN_DEFAULT_PUBLIC_ID_COOKIE",0,W,"LAST_VISITED_FRONTPAGE_COOKIE",0,R,"NAV_MENU_FLAG_COOKIE_PREFIX",0,V,"PINNED_GLOSSARY_COOKIE",0,q,"POSTS_LIST_VIEW_TYPE_COOKIE",0,A,"PROFILE_TAB_SETTINGS_COOKIE",0,F,"RECOMBEE_SETTINGS_COOKIE",0,L,"SELECTED_FRONTPAGE_TAB_COOKIE",0,K,"SELECTED_PROFILE_TAB_COOKIE",0,j,"SHOW_LLM_CHAT_COOKIE",0,H,"SHOW_PODCAST_PLAYER_COOKIE",0,P,"SHOW_POPULAR_COMMENTS_SECTION_COOKIE",0,x,"SHOW_QUICK_TAKES_SECTION_COMMUNITY_COOKIE",0,k,"SHOW_QUICK_TAKES_SECTION_COOKIE",0,I,"THEME_COOKIE",0,w,"TIMEZONE_COOKIE",0,O,"ULTRA_FEED_ACTIVE_TAB_COOKIE",0,B],600723)},704479,993808,e=>{"use strict";var t=e.i(946271),i=e.i(276320);e.i(813868);let n=(0,e.i(122756).gql)("\n query getCurrentUser {\n currentUser {\n ...UsersCurrent\n }\n }\n");e.s(["useQueryCurrentUser",0,()=>{var e;let s=(0,i.useApolloClient)(),{data:r,refetch:o,loading:a}=(0,t.useQuery)(n,{fetchPolicy:"cache-first",ssr:!0});return{currentUser:null!=(e=null==r?void 0:r.currentUser)?e:null,refetchCurrentUser:async()=>{s.prioritizeCacheValues=!1,await o()},currentUserLoading:a}}],704479);var s=e.i(798908),r=e.i(714818);e.s(["browserProperties",0,()=>{var e,t,i,n,o;if(!r.isClient)return{};let a=(null==(t=window)||null==(e=t.navigator)?void 0:e.userAgent)?{userAgent:null==(n=window)||null==(i=n.navigator)?void 0:i.userAgent,mobile:s.default.mobile,tablet:s.default.tablet,chrome:s.default.chrome,firefox:s.default.firefox,safari:s.default.safari,osname:s.default.osname}:{},l=window,c=l?{blocksGA:!(null==(o=l.ga)?void 0:o.create),blocksGTM:!l.google_tag_manager}:{};return{...a,...c}}],993808)},83697,331724,e=>{"use strict";var t=e.i(299749),i=e.i(843476),n=e.i(271645),s=e.i(343794),r=e.i(131060),o=e.i(965553),a=e.i(222470),l=n,c=e.i(76887),u=e.i(585642),d=e.i(79732),p=e.i(429329);let h=(0,p.defineStyles)("MuiTouchRipple",e=>({root:{display:"block",position:"absolute",overflow:"hidden",borderRadius:"inherit",width:"100%",height:"100%",left:0,top:0,pointerEvents:"none !important",zIndex:0},ripple:{width:50,height:50,left:0,top:0,opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"mui-ripple-enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"mui-ripple-exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"mui-ripple-pulsate 2500m
2s ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes mui-ripple-enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes mui-ripple-exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes mui-ripple-pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}),{stylePriority:-10});class m extends l.default.PureComponent{componentWillUnmount(){this.startTimer&&clearTimeout(this.startTimer)}render(){let{center:e=!1,classes:t,className:n,ref:r,...o}=this.props;return(0,i.jsx)("span",{ref:this.wrapperRef,className:(0,s.default)(t.root,n),children:this.state.ripples.length>0&&(0,i.jsx)(c.default,{component:null,enter:!0,exit:!0,...o,children:this.state.ripples})})}constructor(...e){var n;super(...e),n=this,(0,t._)(this,"wrapperRef",l.default.createRef()),(0,t._)(this,"ignoringMouseDown",!1),(0,t._)(this,"startTimer",null),(0,t._)(this,"startTimerCommit",null),(0,t._)(this,"state",{nextKey:0,ripples:[]}),(0,t._)(this,"pulsate",()=>{this.start({},{pulsate:!0})}),(0,t._)(this,"start",function(){let e,t,i,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,{pulsate:a=!1,center:l=n.props.center||r.pulsate,fakeElement:c=!1}=r;if("mousedown"===s.type&&n.ignoringMouseDown){n.ignoringMouseDown=!1;return}"touchstart"===s.type&&(n.ignoringMouseDown=!0);let u=c?null:n.wrapperRef.current,d=u?u.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!l&&(0!==s.clientX||0!==s.clientY)&&(s.clientX||s.touches)){let i=s.clientX?s.clientX:s.touches[0].clientX,n=s.clientY?s.clientY:s.touches[0].clientY;e=Math.round(i-d.left),t=Math.round(n-d.top)}else e=Math.round(d.width/2),t=Math.round(d.height/2);l?(i=Math.sqrt((2*d.width**2+d.height**2)/3))%2==0&&(i+=1):i=Math.sqrt((2*Math.max(Math.abs((u?u.clientWidth:0)-e),e)+2)**2+(2*Math.max(Math.abs((u?u.clientHeight:0)-t),t)+2)**2),s.touches?(n.startTimerCommit=()=>{n.startCommit({pulsate:a,rippleX:e,rippleY:t,rippleSize:i,cb:o})},n.startTimer=setTimeout(()=>{n.startTimerCommit&&(n.startTimerCommit(),n.startTimerCommit=null)},80)):n.startCommit({pulsate:a,rippleX:e,rippleY:t,rippleSize:i,cb:o})}),(0,t._)(this,"startCommit",e=>{let{pulsate:t,rippleX:n,rippleY:s,rippleSize:r,cb:o}=e;this.setState(e=>({nextKey:e.nextKey+1,ripples:[...e.ripples,(0,i.jsx)(f,{pulsate:t,rippleX:n,rippleY:s,rippleSize:r},e.nextKey)]}),o)}),(0,t._)(this,"stop",(e,t)=>{this.startTimer&&clearTimeout(this.startTimer);let{ripples:i}=this.state;if("touchend"===e.type&&this.startTimerCommit){e.persist(),this.startTimerCommit(),this.startTimerCommit=null,this.startTimer=setTimeout(()=>{this.stop(e,t)},0);return}this.startTimerCommit=null,i&&i.length&&this.setState({ripples:i.slice(1)},t)})}}let f=e=>{let[t,n]=(0,l.useState)(!1),[r,o]=(0,l.useState)(!1),a=(0,d.useStyles)(h),{className:c,pulsate:p=!1,rippleX:m,rippleY:f,rippleSize:y,...g}=e,_=(0,s.default)(a.ripple,{[a.rippleVisible]:t,[a.ripplePulsate]:p},c),E=(0,s.default)(a.child,{[a.childLeaving]:r,[a.childPulsate]:p}),C=(0,l.useRef)(null);return(0,i.jsx)(u.default,{onEnter:()=>{n(!0)},onExit:()=>{o(!0)},nodeRef:C,timeout:550,...g,children:(0,i.jsx)("span",{className:_,ref:C,style:{width:y,height:y,top:-(y/2)+f,left:-(y/2)+m},children:(0,i.jsx)("span",{className:E})})})},y=(0,d.withStyles)(h,m),g=function(e,t,i,n){return function(s){n&&n.call(e,s);let r=!1;return s.defaultPrevented&&(r=!0),e.props.disableTouchRipple&&"Blur"!==t&&(r=!0),!r&&e.ripple&&e.ripple[i](s),"function"==typeof e.props["on".concat(t)]&&e.props["on".concat(t)](s),!0}},_=(0,p.defineStyles)("MuiButtonBase",e=>({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:"none",border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}}),{stylePriority:-11});class E extends n.default.Component{componentDidMount(){(0,a.listenForFocusKeys)((0,o.default)(this.buttonRef.current)),this.props.action&&this.props.action({focusVisible:()=>{this.setState({focusVisible:!0}),this.button.focus()}})}componentDidUpdate(e,t){this.props.focusRipple&&!this.props.disableRipple&&!t.focusVisible&&this.state.focusVisible&&this.ripple.pulsate()}componentWillUnmount(){this.focusVisibleTimeout&&clearTimeout(this.focusVisibleTimeout)}static getDerivedStateFromProps(e,t){return void 0===t.focusVisible||!t.prevState&&e.disabled&&t.focu
2sVisible?{focusVisible:!1,lastDisabled:e.disabled}:{lastDisabled:e.disabled}}render(){let{action:e,centerRipple:t,children:n,classes:r,className:o,component:a,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,focusVisibleClassName:p,onBlur:h,onFocus:m,onFocusVisible:f,onKeyDown:g,onKeyUp:_,onMouseDown:E,onMouseLeave:C,onMouseUp:b,onTouchEnd:v,onTouchMove:S,onTouchStart:T,tabIndex:O,type:w,...I}=this.props,k=(0,s.default)(r.root,{[r.disabled]:l,[r.focusVisible]:this.state.focusVisible},this.state.focusVisible&&p,o),x={},P=a;return"button"===P&&I.href&&(P="a"),"button"===P?(x.type=w||"button",x.disabled=l):x.role="button",(0,i.jsxs)(P,{onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onMouseLeave:this.handleMouseLeave,onMouseUp:this.handleMouseUp,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,tabIndex:l?"-1":O,className:k,ref:this.buttonRef,...x,...I,children:[n,c||l?null:(0,i.jsx)(y,{ref:this.onRippleRef,center:t})]})}constructor(...e){super(...e),(0,t._)(this,"buttonRef",n.default.createRef()),(0,t._)(this,"state",{focusVisible:!1}),(0,t._)(this,"focusVisibleTimeout",void 0),(0,t._)(this,"button",void 0),(0,t._)(this,"ripple",void 0),(0,t._)(this,"keyDown",!1),(0,t._)(this,"focusVisibleCheckTime",50),(0,t._)(this,"focusVisibleMaxCheckTimes",5),(0,t._)(this,"handleMouseDown",g(this,"MouseDown","start",()=>{this.focusVisibleTimeout&&clearTimeout(this.focusVisibleTimeout),this.state.focusVisible&&this.setState({focusVisible:!1})})),(0,t._)(this,"handleMouseUp",g(this,"MouseUp","stop")),(0,t._)(this,"handleMouseLeave",g(this,"MouseLeave","stop",e=>{this.state.focusVisible&&e.preventDefault()})),(0,t._)(this,"handleTouchStart",g(this,"TouchStart","start")),(0,t._)(this,"handleTouchEnd",g(this,"TouchEnd","stop")),(0,t._)(this,"handleTouchMove",g(this,"TouchMove","stop")),(0,t._)(this,"handleBlur",g(this,"Blur","stop",()=>{this.focusVisibleTimeout&&clearTimeout(this.focusVisibleTimeout),this.state.focusVisible&&this.setState({focusVisible:!1})})),(0,t._)(this,"onRippleRef",e=>{this.ripple=e}),(0,t._)(this,"onFocusVisibleHandler",e=>{this.keyDown=!1,this.setState({focusVisible:!0}),this.props.onFocusVisible&&this.props.onFocusVisible(e)}),(0,t._)(this,"handleKeyDown",e=>{let{component:t,focusRipple:i,onKeyDown:n,onClick:s}=this.props,o=(0,r.default)(e);i&&!this.keyDown&&this.state.focusVisible&&this.ripple&&"space"===o&&(this.keyDown=!0,e.persist(),this.ripple.stop(e,()=>{this.ripple.start(e)})),n&&n(e),e.target===e.currentTarget&&t&&"button"!==t&&("space"===o||"enter"===o)&&!("A"===this.button.tagName&&this.button.href)&&(e.preventDefault(),s&&s(e))}),(0,t._)(this,"handleKeyUp",e=>{this.props.focusRipple&&"space"===(0,r.default)(e)&&this.ripple&&this.state.focusVisible&&(this.keyDown=!1,e.persist(),this.ripple.stop(e,()=>{this.ripple.pulsate(e)})),this.props.onKeyUp&&this.props.onKeyUp(e)}),(0,t._)(this,"handleFocus",e=>{!this.props.disabled&&(this.buttonRef.current||(this.buttonRef.current=e.currentTarget),e.persist(),(0,a.detectFocusVisible)(this,this.buttonRef.current,()=>{this.onFocusVisibleHandler(e)}),this.props.onFocus&&this.props.onFocus(e))})}}E.defaultProps={centerRipple:!1,component:"button",disableRipple:!1,disableTouchRipple:!1,focusRipple:!1,tabIndex:"0",type:"button"};let C=(0,d.withStyles)(_,E);e.s(["default",0,C],331724),e.s([],83697)},965553,222470,e=>{"use strict";let t=function(e){return e&&e.ownerDocument||document};e.s(["default",0,function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=t(e);return n.defaultView||n.parentView||i}],965553);var i=e.i(131060),n=e.i(442656);let s={focusKeyPressed:!1,keyUpEventTimeout:-1},r=["tab","enter","space","esc","up","down","left","right"],o=e=>{r.indexOf((0,i.default)(e))>-1&&(s.focusKeyPressed=!0,clearTimeout(s.keyUpEventTimeout),s.keyUpEventTimeout=setTimeout(()=>{s.focusKeyPressed=!1},1e3))};e.s(["detectFocusVisible",0,function e(i,r,o){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;(0,n.default)(i.focusVisibleCheckTime,"Material-UI: missing instance.focusVisibleCheckTime."),(0,n.default)(i.focusVisibleMaxCheckTimes,"Material-UI: missing instance.focusVisibleMaxCheckTimes."),i.focusVisibleTimeout=setTimeout(()=>{let n=t(r);s.focusKeyPressed&&(n.activeElement===r||r.contains(n.activeElement))?o():a<i.focusVisibleMaxCheckTimes&&e(i,r,o,a+1)},i.focusVisibleCheckTime)},"listenForFocusKeys",0,function(e){e.addEventListener("keyup",o)}],222470)}]); 3 4//# debugId=7ab58b68-19e7-fca3-5ac5-087e408858fb 5//# sourceMappingURL=3dn640_lhrk2r.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.